https://github.com/blockchainsllc/in3-trie
Implementation of the patricia merkle tree
https://github.com/blockchainsllc/in3-trie
Last synced: 4 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 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T00:23:29.000Z (over 4 years ago)
- Last Synced: 2024-12-30T07:43:35.629Z (over 1 year 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