Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harzu/merkle-tree-for-solidity-proof
Merkle tree implementation for solidity proof
https://github.com/harzu/merkle-tree-for-solidity-proof
ethereum javascript merkle-tree proof smart-contracts solidity web3
Last synced: 22 days ago
JSON representation
Merkle tree implementation for solidity proof
- Host: GitHub
- URL: https://github.com/harzu/merkle-tree-for-solidity-proof
- Owner: Harzu
- Created: 2021-03-20T08:41:41.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T21:33:04.000Z (almost 4 years ago)
- Last Synced: 2024-10-25T10:50:21.977Z (2 months ago)
- Topics: ethereum, javascript, merkle-tree, proof, smart-contracts, solidity, web3
- Language: TypeScript
- Homepage:
- Size: 290 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Merkle tree implementation for solidity proof
lib allow:
- generating merkle tree (with save order / without save order elements).
- get proof for each element
- validate generated proof from javascript and solidity contracts### Install
```bash
# With NPM
npm i merkle-tree-for-solidity-proof# With yarn
yarn add merkle-tree-for-solidity-proof
```### Tests run
JavaScript tests
```bash
yarn test:js
```Tests with contract
You need to run develop chain network for run test with contracts. You need to install truffle for run develop chain network `npm i -g truffle`.
procedure:
- run develop chain `truffle develop`.
- run test command `npm run test:contract` or `yarn test:contract`.