Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ npm i
npm run build
npm run setup
npm run verify
npm run generateVerifier
npm run generate-verifier
```
- To clean the existing build files
```bash
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/generateProof.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const appRoot = require('app-root-path');
async function generateProof(value){

const poseidon = await circomlibjs.buildPoseidon();
const hash = poseidon.F.toString(poseidon([10]));
const hash = poseidon.F.toString(poseidon([value]));

const { proof, publicSignals } = await groth16.fullProve(
{ in: value, hash: hash },
Expand Down