pub fn calc_merkle_root_hash(
account: &MinaBaseAccountBinableArgStableV2,
merkle_path: &[MerkleTreeNode],
) -> Result<BigInt, InvalidBigInt>
Expand description
Computes the root hash of the merkle tree with an account and its merkle path
- The output of this method should be compared with the expected root hash
- Caller must ensure that the length of
merkle_path
is equal to the depth of the tree