pub fn verify_merkle_branch( leaf: H256, branch: &[H256], index: usize, depth: usize, root: H256, ) -> bool
Specified by https://github.com/ethereum/consensus-specs/blob/fe9c1a8cbf0c2da8a4f349efdcd77dd7ac8445c4/specs/phase0/beacon-chain.md?plain=1#L742 with improvements from https://github.com/ethereum/consensus-specs/blob/dev/ssz/merkle-proofs.md