https://github.com/blockchainsllc/in3-trie
Implementation of the patricia merkle tree
https://github.com/blockchainsllc/in3-trie
Last synced: 5 months ago
JSON representation
Implementation of the patricia merkle tree
- Host: GitHub
- URL: https://github.com/blockchainsllc/in3-trie
- Owner: blockchainsllc
- Created: 2018-11-13T09:25:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T00:23:29.000Z (over 3 years ago)
- Last Synced: 2024-12-30T07:43:35.629Z (7 months ago)
- Language: TypeScript
- Size: 265 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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