@polkadot/trie-db

A re-implementation of a Patricia Trie. Unlike other implementations, this allows for the specification of a hash function as well as encoder/decoder and operates in a sync fashion by default.

This is a JavaScript port of the Python Ethereum Trie with additions to support transactions (checkpoints) and multiple codecs, by default only the Substrate codec.

Usage

Installation -

yarn add @polkadot/trie-db
1

Classes can be imported as follows:

import Trie from '@polkadot/trie-db'; // Default export
1

Utilities

Utilities

Last Updated: 2/26/2019, 11:08:42 AM