Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blockchainsllc/in3-trie

Implementation of the patricia merkle tree
https://github.com/blockchainsllc/in3-trie

Last synced: 10 days ago
JSON representation

Implementation of the patricia merkle tree

Awesome Lists containing this project

README

        

# in3-trie
Implementation of the patricia merkle tree in typescript.
This also includes Merkle proofs.

## Usage

```js
import {serialize} from 'in3'
import Trie,{verifyProof} from 'in3-trie'

const encode = serialize.rlp.encode

// create a new Merkle Tree
const trie = new Trie()

// put all transactions of a block into the tree
for (let i=0;i