README.md

July 13, 2025 ยท View on GitHub

License: MIT Node.js Package


MPT NoirJS Witness generator for mpt-noir circuits.

Installation

npm i mpt-noirjs

Simple 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.