-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to tally votes on localhost network #383
Comments
Looks like this is an issue with our documentation being out of date. The final zkey file, qvt32_final.zkey, can be found here |
Hi @auryn-macmillan, Thanks for the reply. I used the wrong snark-params to the circuits level in the example above. To make it clear, just list existing snark-params I found in
But when I change function // contracts/utils/deployment.ts
export async function deployMaciFactory(
account: Signer,
circuit = 'test', // I changed this line for testing
{ poseidonT3, poseidonT6, batchUstVerifier, qvtVerifier }: MaciFactoryDependencies = {},
): Promise<Contract> It seems to be that the function However, for Generating proofs of message processing...
Progress: 1 / 1; batch index: 0
/bin/sh: /Users/howard/Desktop/clrfund/snark-params/batchUst32: cannot execute binary file
Error: unable to compute batch update state tree witness data
Error: exec: /bin/sh: /Users/howard/Desktop/clrfund/snark-params/batchUst32: cannot execute binary file
Reference
|
Hi @chnejohnson, what is your OS and CPU type? |
macOS - Intel Core i5 |
The binaries are compiled for Linux on Intel and won't work in macOS. It's best to try again in a Linux VM. Hope this helps! |
Hi @weijiekoh, Thanks for the reply. Now I use Ubuntu 20.04, and successfully run It created a folder named Generating proofs of message processing...
Progress: 1 / 1; batch index: 0
/bin/sh: 1: /home/johnson/clrfund-contracts/snark-params/batchUst: not found Apparently there is no // maci/circuits/params
❯ ls
BatchUpdateStateTreeVerifier.sol batchUstVk.json fr.o qvtPk.bin
batchUst.c calcwit.cpp main.cpp qvt.sym
batchUstCircuit.r1cs calcwit.hpp QuadVoteTallyVerifier.sol qvtVk.json
batchUst.dat circom.hpp qvt.c utils.cpp
batchUst.params fr.asm qvtCircuit.r1cs utils.hpp
batchUstPk.json fr.cpp qvt.dat
batchUst.sym fr.hpp qvt.params |
Hi @chnejohnson , please try: sudo apt-get install build-essential libgmp-dev libsodium-dev git nlohmann-json3-dev nasm g++ and run I'll update the readme to reflect this! |
Hi @weijiekoh, Thanks. It successfully created But there is a new problem...any thoughts? ❯ node build/index.js genProofs \
-x 0x856e4424f806D16E8CBC702B3c0F2ede5468eae5 \
-sk macisk.1e67c39a50b1fdc2ac21ac46d9af3f2700ce9f4eff730ca82a71601832932fed \
-o proofs.json \
-t tally.json
Generating proofs of message processing...
Progress: 1 / 1; batch index: 0
Illegal instruction (core dumped)
Error: unable to compute batch update state tree witness data
Error: exec: Illegal instruction (core dumped)
at Object.error (/home/johnson/maci/circuits/node_modules/shelljs/src/common.js:110:27)
at execSync (/home/johnson/maci/circuits/node_modules/shelljs/src/exec.js:102:12)
at Object._exec (/home/johnson/maci/circuits/node_modules/shelljs/src/exec.js:205:12)
at Object.exec (/home/johnson/maci/circuits/node_modules/shelljs/src/common.js:335:23)
at /home/johnson/maci/circuits/ts/index.ts:230:11
at step (/home/johnson/maci/circuits/build/index.js:33:23)
at Object.next (/home/johnson/maci/circuits/build/index.js:14:53)
at /home/johnson/maci/circuits/build/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/johnson/maci/circuits/build/index.js:4:12) |
Closing as this issue has gone stale. |
I tried to deploy contracts on localhost and follow the steps, but failed to tally votes...
Reproduce
In a new terminal
Tally votes
Error:
The text was updated successfully, but these errors were encountered: