[][src]Function bitcoin_spv::btcspv::verify_hash256_merkle

pub fn verify_hash256_merkle(proof: &Vec<u8>, index: u64) -> bool

Verifies a Bitcoin-style merkle tree. Leaves are 0-indexed.

Arguments

  • proof - The proof. Tightly packed LE sha256 hashes. The last hash is the root
  • index - The index of the leaf