mpt-noirjs
v0.3.1
Published
Typescript suit for mpt-noir
Readme
MPT NoirJS Witness generator for mpt-noir circuits.
Installation
npm i mpt-noirjsSimple Usage
const provider = new ethers.JsonRpcProvider("RPC_URL")
const address = "MY_ADDRESS"
const output = await provider.send("eth_getProof", [address, [], "latest"])
const mpt_proof = getNodesFromProof(output.accountProof, address)The mpt_proof contains all the data necessary to generate proof using the mpt-noir circuits. To see an elaborated example you can checkout Balance Proof application.
License
This project is licensed under the MIT License. See the LICENSE file for details.
