cuprate_txpool

Function transaction_blob_hash

Source
pub fn transaction_blob_hash(tx_blob: &[u8]) -> TransactionBlobHash
Expand description

Calculate the transaction blob hash.

This value is supposed to be quick to compute just based of the tx-blob without needing to parse the tx.

The exact way the hash is calculated is not stable and is subject to change, as such it should not be exposed as a way to interact with Cuprate externally.