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§

Functions§