ethereumjs-monorepo

@ethereumjs/mpt


@ethereumjs/mpt / createMerkleProof

Function: createMerkleProof()

createMerkleProof(trie, key): Promise<Proof>

Defined in: proof/proof.ts:37

Build an EIP-1186 proof for key from a full trie.

Parameters

trie

MerklePatriciaTrie

Source trie (must contain the key path)

key

Uint8Array

Key to prove

Returns

Promise<Proof>

Serialized nodes along the path from root to leaf