@polkadot/trie-db
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

@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

Classes can be imported as follows:

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

Utilities

Utilities

Readme

Keywords

Package Sidebar

Install

npm i @polkadot/trie-db

Weekly Downloads

31

Version

1.8.1

License

Apache-2.0

Unpacked Size

59 kB

Total Files

33

Last publish

Collaborators

  • polkadotjs
  • jacogr