Package Exports
- nacho-proof-generator
- nacho-proof-generator/build/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nacho-proof-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nacho-proof-generator
The zero knowledge proof generator of Nacho using o1js.
nacho-proof-generator package is intended to be used for Nacho only as it is a naive implementation.
📦 Installation
If you are using npm:
npm install nacho-proof-generatorIf you are using yarn:
yarn add nacho-proof-generatorIf you are using pnpm:
pnpm add nacho-proof-generator🔍 Details
Nacho's zero knowledge proof generator is created using o1js's ZkProgram.
This package also provides a function to create a state utility for tests.
🔐 Zero Knowledge Proof
The provable type for zk proofs generated by Nacho's proof generator.ZkProof
🏗️ Zero Knowledge Proof Generator
proofGenerator-
Generates the initial proof.
mergeProofs(stateRoots, currentProof, laterProof):Generates a proof by merging given proofs.
-
Generates a proof by depositing a specific token for a user.
-
Generates a proof by burning token on a user's behalf.
-
Generates a proof by creating an AMM pool on a user's behalf.
-
Generates a proof by providing liquidity to an AMM pool on a user's behalf.
-
Generates a proof by removing liquidity from an AMM pool on a user's behalf.
-
Generates a proof by buying a token on a user's behalf.
-
Generates a proof by selling a token on a user's behalf.
-
🛠️ State Utility
Returns a state utility object for tests.createStateUtil
📝 License
This project is licensed under the MIT License.
You may use the source code of this project accordingly.
👤 About Me
I am Berzan and I am developing Nacho to express my skills in the real world.
I built this library to use inside Nacho.