Module bdk_chain::bitcoin::merkle_tree
Expand description
Bitcoin merkle tree functions.
§Examples
let tx_hashes = vec![tx1, tx2]; // All the hashes we wish to merkelize.
let root = merkle_tree::calculate_root(tx_hashes.into_iter());
Structs§
- Data structure that represents a block header paired to a partial merkle tree.
- Data structure that represents a partial merkle tree.
Enums§
- An error when verifying the merkle block.
Functions§
- Calculates the merkle root of an iterator of hashes.
- Calculates the merkle root of a list of hashes, inline (in place) in
hashes
.