Skip to content

Commit af7791a

Browse files
committed
Add Verify export comment
1 parent 4988ab6 commit af7791a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/trie/proof/verify.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ var (
2121

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

0 commit comments

Comments
 (0)