@ethereumjs/mpt / verifyMPTWithMerkleProof
verifyMPTWithMerkleProof(
trie,rootHash,key,proof):Promise<Uint8Array<ArrayBufferLike> |null>
Defined in: proof/proof.ts:95
Verify a proof by loading nodes into a scratch trie and reading the key.
Reference trie (supplies key-hashing options)
Uint8Array
Expected root hash of the proven trie
Uint8Array
Key whose value is being verified
EIP-1186 proof nodes
Promise<Uint8Array<ArrayBufferLike> | null>
Proven value, or null for a valid non-existence proof
If the proof is invalid