// Calculate the hash value from toBeProof through the whole proof chain
Calculate the hash value from toBeProof through the whole proof chain
// Calculate the hash value from toBeProof through the whole proof chain
func (c ProofChain) Proof(toBeProof common.Hash) ([]byte, error) {
	h := toBeProof[:]
	input := toBeProof
	var err error
	for i := 0; i < len(c); i++ {
		h, err = c[i].Proof(input)
		if err != nil {
			return nil, err
		}
		input = common.BytesToHash(h)
	}
	return h, nil
}
func ( c ProofChain ) Proof ( toBeProof common . Hash ) ( [ ] byte , error ) { h := toBeProof [ : ] input := toBeProof var err error for i := 0 ; i < len ( c ) ; i ++ { h , err = c [ i ] . Proof ( input ) if err != nil { return nil , err } input = common . BytesToHash ( h ) } return h , nil }
Calculate the hash value from toBeProof through the whole proof chain
Calculate the hash value from toBeProof through the whole proof chain