A Simple, Minimalist Template for Noir Projects.
Click use this template
to create a new repository with this repo as the initial state.
Both hardhat and foundry are supported.
With the help of the ffi
, you can write complex JS/TS scripts, feed them inputs FROM the foundry test contract and use the output in the test contract.
Setup
npm install
Regarding the installation of nargo
, please refer to its repo here.
Building
cd circuits
nargo build
nargo compile BUILD_NAME
Testing
npx hardhat test
forge test --ffi
We have provided two bash scripts in utils/
to make your life easier when it comes to generating the Verifier contract and a proof.
./utils/safeGenerateContract.sh
./utils/safeGenerateProof.sh
These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.