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

Name

Description

hasher

Salted SipHash used to hash the txid.

txid

Transaction id to hash.

Created with MrDocs