Skip to content

Commit

Permalink
Add Verify export comment
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jun 15, 2022
1 parent 4988ab6 commit af7791a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/trie/proof/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ var (

// Verify verifies a given key and value belongs to the trie by creating
// a proof trie based on the encoded proof nodes given. The order of proofs is ignored.
// A nil error is returned on success.
// Note this is exported because it is imported and used by:
// https://github.com/ComposableFi/ibc-go/blob/6d62edaa1a3cb0768c430dab81bb195e0b0c72db/modules/light-clients/11-beefy/types/client_state.go#L78
func Verify(encodedProofNodes [][]byte, rootHash, key, value []byte) (err error) {
proofTrie, err := buildTrie(encodedProofNodes, rootHash)
if err != nil {
Expand Down

0 comments on commit af7791a

Please sign in to comment.