pub fn prove(
    txid: Hash256Digest,
    merkle_root: Hash256Digest,
    intermediate_nodes: &MerkleArray,
    index: u64,
) -> bool {
    if txid == merkle_root && index == 0 && intermediate_nodes.is_empty() {
        return true;
    }
    btcspv::verify_hash256_merkle(txid, merkle_root, intermediate_nodes, index)
}
/// Evaluates a Bitcoin merkle inclusion proof.
/// Note that `index` is not a reliable indicator of location within a block.
///
/// # Arguments
///
/// * `txid` - The txid (LE)
/// * `merkle_root` - The merkle root (as in the block header)
/// * `intermediate_nodes` - The proof's intermediate nodes (digests between leaf and root)
/// * `index` - The leaf's index in the tree (0-indexed)
Evaluates a Bitcoin merkle inclusion proof.
Note that `index` is not a reliable indicator of location within a block.
Evaluates a Bitcoin merkle inclusion proof . Note that ` index ` is not a reliable indicator of location within a block .
pub fn prove(
    txid: Hash256Digest,
    merkle_root: Hash256Digest,
    intermediate_nodes: &MerkleArray,
    index: u64,
) -> bool {
    if txid == merkle_root && index == 0 && intermediate_nodes.is_empty() {
        return true;
    }
    btcspv::verify_hash256_merkle(txid, merkle_root, intermediate_nodes, index)
}
pub fn prove ( txid : Hash256Digest , merkle_root : Hash256Digest , intermediate_nodes : & MerkleArray , index : u64 , ) -> bool { if txid == merkle_root && index == 0 && intermediate_nodes . is_empty ( ) { return true ; } btcspv :: verify_hash256_merkle ( txid , merkle_root , intermediate_nodes , index ) }
Evaluates a Bitcoin merkle inclusion proof.
Evaluates a Bitcoin merkle inclusion proof .
txid
Hash256Digest
merkle_root
Hash256Digest
intermediate_nodes
&MerkleArray
index
u64
txid
Hash256Digest
merkle_root
Hash256Digest
intermediate_nodes
&MerkleArray
index
u64