UNPKG

@ethereumjs/mpt

Version:

Implementation of the modified merkle patricia tree as specified in Ethereum's yellow paper.

20 lines 654 B
import type { Nibbles } from '../types.ts'; /** * Prepends hex prefix to an array of nibbles. * @param key - Array of nibbles * @returns returns buffer of encoded data **/ export declare function addHexPrefix(key: Nibbles, terminator: boolean): Nibbles; /** * Removes hex prefix of an array of nibbles. * @param val - Array of nibbles * @private */ export declare function removeHexPrefix(val: Nibbles): Nibbles; /** * Returns true if hex-prefixed path is for a terminating (leaf) node. * @param key - a hex-prefixed array of nibbles * @private */ export declare function isTerminator(key: Nibbles): boolean; //# sourceMappingURL=hex.d.ts.map