ethereumjs-monorepo

@ethereumjs/mpt


@ethereumjs/mpt / createMPTFromProof

Function: createMPTFromProof()

createMPTFromProof(proof, trieOpts?): Promise<MerklePatriciaTrie>

Defined in: constructors.ts:74

Reconstruct a sparse trie from an EIP-1186 proof.

Parameters

proof

Proof

Serialized trie nodes from root to the proven leaf

trieOpts?

MPTOpts

Options for the returned trie (root verification, key hashing, etc.)

Returns

Promise<MerklePatriciaTrie>

Trie populated with proof nodes, root set from the proof