@ethereumjs/mpt
Version:
Implementation of the modified merkle patricia tree as specified in Ethereum's yellow paper.
12 lines • 684 B
TypeScript
import { MerklePatriciaTrie } from './index.ts';
import type { MPTOpts, Proof } from './index.ts';
export declare function createMPT(opts?: MPTOpts): Promise<MerklePatriciaTrie>;
/**
* Create a trie from a given (EIP-1186)[https://eips.ethereum.org/EIPS/eip-1186] proof. A proof contains the encoded trie nodes
* from the root node to the leaf node storing state data.
* @param proof an EIP-1186 proof to create trie from
* @param trieOpts trie opts to be applied to returned trie
* @returns new trie created from given proof
*/
export declare function createMPTFromProof(proof: Proof, trieOpts?: MPTOpts): Promise<MerklePatriciaTrie>;
//# sourceMappingURL=constructors.d.ts.map