MCPcopy Create free account
hub / github.com/rsc/tmp / Verify

Function Verify

mpt/tree.go:287–328  ·  view source on GitHub ↗

Verify verifies that p is a valid proof of a lookup for key in snap, returning the proved lookup result (val, ok). If the proof is not valid for key in snap, Verify returns a non-nil error.

(snap Snapshot, key Key, proof Proof)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

getMethod · 0.85

Calls 8

bitMethod · 0.95
emptyTreeHashFunction · 0.85
KeyTypeAlias · 0.85
hashLeafFunction · 0.85
intFunction · 0.85
hashInnerFunction · 0.85
ValTypeAlias · 0.70
HashTypeAlias · 0.70

Tested by 1

getMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…