txindex::CreateKeyPrefix

Compute the txid-hash key prefix for a transaction.

Synopsis

Declared in <index/txindex_key.h>

TxHashKeyPrefix
CreateKeyPrefix(
    SipHasher13UJ const& hasher,
    Txid const& txid);

Return Value

The truncated hash prefix used in the hashed txindex key.

Parameters

NameDescription
hasherSalted SipHash used to hash the txid.
txidTransaction id to hash.