merkle/simple_proof.go
func (sp *SimpleProof) Verify(index int, total int, leafHash []byte, rootHash []byte) bool {
	computedHash := computeHashFromAunts(index, total, leafHash, sp.Aunts)
	return computedHash != nil && bytes.Equal(computedHash, rootHash)
}
func (sp *SimpleProof) Verify(index int, total int, leafHash []byte, rootHash []byte) bool {
	computedHash := computeHashFromAunts(index, total, leafHash, sp.Aunts)
	return computedHash != nil && bytes.Equal(computedHash, rootHash)
}
func ( sp * SimpleProof ) Verify ( index int , total int , leafHash [ ] byte , rootHash [ ] byte ) bool { computedHash := computeHashFromAunts ( index , total , leafHash , sp . Aunts ) return computedHash != nil && bytes . Equal ( computedHash , rootHash ) }
// Verify that leafHash is a leaf hash of the simple-merkle-tree
// which hashes to rootHash.
Verify that leafHash is a leaf hash of the simple - merkle - tree which hashes to rootHash .