quadratic-funding / mpc-phase2-suite

The MPC suite of tools for conducting zkSNARK Phase 2 Trusted Setup ceremonies
MIT License
16 stars 6 forks source link

`coordinate setup` fails when proceeds with pre-computed .zkey file #268

Closed baumstern closed 1 year ago

baumstern commented 1 year ago

coordinate setup command didn't preserve a pre-computed zkey file name which user provided. Then the process is trying to resolve file name with user provided name. But this attempt got failed because it has replaced file name to different one:

🕗  Uploading first zkey to storage...✖ Something went wrong: Error: ENOENT: no such file or directory, open '/Users/daehyun/20230111/mpc-phase2-suite/packages/phase2cli/ProcessMessages_10-2-1-2_test.0.zkey'

Following is more log:

? Do you wanna select a pre-computed zkey for the ProcessMessages_10-2-1-2_test circuit? › Yes

✔ Select a pre-computed zkey › ProcessMessages_10-2-1-2_test.0.zkey
âš  No Powers of Tau (.ptau) files found
✔ Please, provide the amounts of powers you have used to generate the pre-computed zkey (>= 19): … 20
✔ Powers of Tau #20 correctly downloaded
Reading r1cs
Reading tauG1
Reading tauG2
Reading alphatauG1
Reading betatauG1
processing constraints: 0/310318
processing constraints: 10000/310318
processing constraints: 20000/310318
processing constraints: 30000/310318
processing constraints: 40000/310318
processing constraints: 50000/310318
processing constraints: 60000/310318
processing constraints: 70000/310318
processing constraints: 80000/310318
processing constraints: 90000/310318
processing constraints: 100000/310318
processing constraints: 110000/310318
processing constraints: 120000/310318
processing constraints: 130000/310318
processing constraints: 140000/310318
processing constraints: 150000/310318
processing constraints: 160000/310318
processing constraints: 170000/310318
processing constraints: 180000/310318
processing constraints: 190000/310318
processing constraints: 200000/310318
processing constraints: 210000/310318
processing constraints: 220000/310318
processing constraints: 230000/310318
processing constraints: 240000/310318
processing constraints: 250000/310318
processing constraints: 260000/310318
processing constraints: 270000/310318
processing constraints: 280000/310318
processing constraints: 290000/310318
processing constraints: 300000/310318
processing constraints: 310000/310318
writing coeffs: 0/1536330
writing coeffs: 100000/1536330
writing coeffs: 200000/1536330
writing coeffs: 300000/1536330
writing coeffs: 400000/1536330
writing coeffs: 500000/1536330
writing coeffs: 600000/1536330
writing coeffs: 700000/1536330
writing coeffs: 800000/1536330
writing coeffs: 900000/1536330
writing coeffs: 1000000/1536330
writing coeffs: 1100000/1536330
writing coeffs: 1200000/1536330
writing coeffs: 1300000/1536330
writing coeffs: 1400000/1536330
writing coeffs: 1500000/1536330
Writing points start IC: 0/2
Configuring big array IC: 10000/181205
Configuring big array IC: 20000/181205
Configuring big array IC: 30000/181205
Configuring big array IC: 40000/181205
Configuring big array IC: 50000/181205
Configuring big array IC: 60000/181205
Configuring big array IC: 70000/181205
Configuring big array IC: 80000/181205
Configuring big array IC: 90000/181205
Configuring big array IC: 100000/181205
Configuring big array IC: 110000/181205
Configuring big array IC: 120000/181205
Configuring big array IC: 130000/181205
Configuring big array IC: 140000/181205
Configuring big array IC: 150000/181205
Configuring big array IC: 160000/181205
Configuring big array IC: 170000/181205
Configuring big array IC: 180000/181205
Multiexp start: IC: 0/181205
Writing points start IC: 1/2
Multiexp start: IC: 0/5
Multiexp end: IC: 0/5
Writing points end IC: 1/2
Multiexp end: IC: 0/181205
Writing points end IC: 0/2
spliting buffer: 0/524288
spliting buffer: 10000/524288
spliting buffer: 20000/524288
spliting buffer: 30000/524288
spliting buffer: 40000/524288
spliting buffer: 50000/524288
spliting buffer: 60000/524288
spliting buffer: 70000/524288
spliting buffer: 80000/524288
spliting buffer: 90000/524288
spliting buffer: 100000/524288
spliting buffer: 110000/524288
spliting buffer: 120000/524288
spliting buffer: 130000/524288
spliting buffer: 140000/524288
spliting buffer: 150000/524288
spliting buffer: 160000/524288
spliting buffer: 170000/524288
spliting buffer: 180000/524288
spliting buffer: 190000/524288
spliting buffer: 200000/524288
spliting buffer: 210000/524288
spliting buffer: 220000/524288
spliting buffer: 230000/524288
spliting buffer: 240000/524288
spliting buffer: 250000/524288
spliting buffer: 260000/524288
spliting buffer: 270000/524288
spliting buffer: 280000/524288
spliting buffer: 290000/524288
spliting buffer: 300000/524288
spliting buffer: 310000/524288
spliting buffer: 320000/524288
spliting buffer: 330000/524288
spliting buffer: 340000/524288
spliting buffer: 350000/524288
spliting buffer: 360000/524288
spliting buffer: 370000/524288
spliting buffer: 380000/524288
spliting buffer: 390000/524288
spliting buffer: 400000/524288
spliting buffer: 410000/524288
spliting buffer: 420000/524288
spliting buffer: 430000/524288
spliting buffer: 440000/524288
spliting buffer: 450000/524288
spliting buffer: 460000/524288
spliting buffer: 470000/524288
spliting buffer: 480000/524288
spliting buffer: 490000/524288
spliting buffer: 500000/524288
spliting buffer: 510000/524288
spliting buffer: 520000/524288
HashingHPoints: 0/524288
HashingHPoints: 16384/524288
HashingHPoints: 32768/524288
HashingHPoints: 49152/524288
HashingHPoints: 65536/524288
HashingHPoints: 81920/524288
HashingHPoints: 98304/524288
HashingHPoints: 114688/524288
HashingHPoints: 131072/524288
HashingHPoints: 147456/524288
HashingHPoints: 163840/524288
HashingHPoints: 180224/524288
HashingHPoints: 196608/524288
HashingHPoints: 212992/524288
HashingHPoints: 229376/524288
HashingHPoints: 245760/524288
HashingHPoints: 262144/524288
HashingHPoints: 278528/524288
HashingHPoints: 294912/524288
HashingHPoints: 311296/524288
HashingHPoints: 327680/524288
HashingHPoints: 344064/524288
HashingHPoints: 360448/524288
HashingHPoints: 376832/524288
HashingHPoints: 393216/524288
HashingHPoints: 409600/524288
HashingHPoints: 425984/524288
HashingHPoints: 442368/524288
HashingHPoints: 458752/524288
HashingHPoints: 475136/524288
HashingHPoints: 491520/524288
HashingHPoints: 507904/524288
Writing points start C: 0/306783
Writing points start C: 4512/306783
Writing points start C: 9609/306783
Writing points start C: 14269/306783
Writing points start C: 19118/306783
Writing points start C: 23818/306783
Writing points start C: 25557/306783
Writing points start C: 27195/306783
Writing points end C: 27195/306783
Writing points end C: 25557/306783
Writing points end C: 23818/306783
Writing points end C: 0/306783
Writing points end C: 19118/306783
Writing points end C: 9609/306783
Writing points end C: 4512/306783
Writing points end C: 14269/306783
Writing points start C: 29095/306783
Writing points start C: 30742/306783
Writing points start C: 38328/306783
Writing points start C: 45938/306783
Writing points start C: 55290/306783
Writing points start C: 56928/306783
Writing points start C: 58841/306783
Writing points start C: 60508/306783
Writing points end C: 29095/306783
Writing points end C: 56928/306783
Writing points end C: 58841/306783
Writing points end C: 55290/306783
Writing points end C: 30742/306783
Writing points end C: 38328/306783
Writing points end C: 60508/306783
Writing points end C: 45938/306783
Writing points start C: 68195/306783
Writing points start C: 76064/306783
Writing points start C: 85323/306783
Writing points start C: 86961/306783
Writing points start C: 88877/306783
Writing points start C: 90547/306783
Writing points start C: 98253/306783
Writing points start C: 106188/306783
Writing points end C: 86961/306783
Writing points end C: 88877/306783
Writing points end C: 85323/306783
Writing points end C: 90547/306783
Writing points end C: 106188/306783
Writing points end C: 68195/306783
Writing points end C: 76064/306783
Writing points end C: 98253/306783
Writing points start C: 115256/306783
Writing points start C: 116895/306783
Writing points start C: 118840/306783
Writing points start C: 120816/306783
Writing points start C: 127928/306783
Writing points start C: 137098/306783
Writing points start C: 144985/306783
Writing points start C: 147536/306783
Writing points end C: 116895/306783
Writing points end C: 118840/306783
Writing points end C: 115256/306783
Writing points end C: 147536/306783
Writing points end C: 144985/306783
Writing points end C: 120816/306783
Writing points end C: 137098/306783
Writing points end C: 127928/306783
Writing points start C: 150168/306783
Writing points start C: 152515/306783
Writing points start C: 156215/306783
Writing points start C: 158800/306783
Writing points start C: 162111/306783
Writing points start C: 165439/306783
Writing points start C: 168227/306783
Writing points start C: 172186/306783
Writing points end C: 150168/306783
Writing points end C: 152515/306783
Writing points end C: 156215/306783
Writing points end C: 158800/306783
Writing points end C: 162111/306783
Writing points end C: 165439/306783
Writing points end C: 168227/306783
Writing points end C: 172186/306783
Writing points start C: 177279/306783
Writing points start C: 179781/306783
Writing points start C: 183332/306783
Writing points start C: 186696/306783
Writing points start C: 189219/306783
Writing points start C: 192742/306783
Writing points start C: 195330/306783
Writing points start C: 200864/306783
Writing points end C: 179781/306783
Writing points end C: 183332/306783
Writing points end C: 186696/306783
Writing points end C: 177279/306783
Writing points end C: 195330/306783
Writing points end C: 189219/306783
Writing points end C: 200864/306783
Writing points end C: 192742/306783
Writing points start C: 204384/306783
Writing points start C: 208062/306783
Writing points start C: 210629/306783
Writing points start C: 213992/306783
Writing points start C: 217308/306783
Writing points start C: 219852/306783
Writing points start C: 223563/306783
Writing points start C: 228929/306783
Writing points end C: 208062/306783
Writing points end C: 204384/306783
Writing points end C: 210629/306783
Writing points end C: 213992/306783
Writing points end C: 217308/306783
Writing points end C: 219852/306783
Writing points end C: 223563/306783
Writing points end C: 228929/306783
Writing points start C: 231494/306783
Writing points start C: 235201/306783
Writing points start C: 237973/306783
Writing points start C: 241102/306783
Writing points start C: 244628/306783
Writing points start C: 246970/306783
Writing points start C: 251750/306783
Writing points start C: 256260/306783
Writing points end C: 237973/306783
Writing points end C: 235201/306783
Writing points end C: 231494/306783
Writing points end C: 244628/306783
Writing points end C: 251750/306783
Writing points end C: 246970/306783
Writing points end C: 241102/306783
Writing points end C: 256260/306783
Writing points start C: 259506/306783
Writing points start C: 262310/306783
Writing points start C: 265623/306783
Writing points start C: 268207/306783
Writing points start C: 271733/306783
Writing points start C: 275279/306783
Writing points start C: 280846/306783
Writing points start C: 283423/306783
Writing points end C: 259506/306783
Writing points end C: 268207/306783
Writing points end C: 262310/306783
Writing points end C: 271733/306783
Writing points end C: 265623/306783
Writing points end C: 283423/306783
Writing points end C: 275279/306783
Writing points end C: 280846/306783
Writing points start C: 286968/306783
Writing points start C: 289836/306783
Writing points start C: 293107/306783
Writing points start C: 296908/306783
Writing points start C: 299290/306783
Writing points start C: 303041/306783
Writing points end C: 289836/306783
Writing points end C: 286968/306783
Writing points end C: 296908/306783
Writing points end C: 303041/306783
Writing points end C: 299290/306783
Writing points end C: 293107/306783
Writing points start A: 0/306785
Configuring big array A: 10000/116991
Configuring big array A: 20000/116991
Configuring big array A: 30000/116991
Configuring big array A: 40000/116991
Configuring big array A: 50000/116991
Configuring big array A: 60000/116991
Configuring big array A: 70000/116991
Configuring big array A: 80000/116991
Configuring big array A: 90000/116991
Configuring big array A: 100000/116991
Configuring big array A: 110000/116991
Multiexp start: A: 0/116991
Writing points start A: 1/306785
Writing points start A: 19120/306785
Writing points start A: 26132/306785
Writing points start A: 29869/306785
Writing points start A: 42940/306785
Writing points start A: 57068/306785
Writing points start A: 62959/306785
Multiexp end: A: 0/116991
Writing points end A: 0/306785
Writing points end A: 26132/306785
Writing points end A: 57068/306785
Writing points end A: 19120/306785
Writing points end A: 42940/306785
Writing points end A: 29869/306785
Writing points end A: 1/306785
Writing points end A: 62959/306785
Writing points start A: 84952/306785
Writing points start A: 88639/306785
Writing points start A: 98914/306785
Writing points start A: 116205/306785
Writing points start A: 119932/306785
Writing points start A: 138646/306785
Writing points start A: 157811/306785
Writing points start A: 176244/306785
Writing points end A: 116205/306785
Writing points end A: 84952/306785
Writing points end A: 88639/306785
Writing points end A: 98914/306785
Writing points end A: 119932/306785
Writing points end A: 157811/306785
Writing points end A: 176244/306785
Writing points end A: 138646/306785
Writing points start A: 193755/306785
Writing points start A: 211640/306785
Writing points start A: 229840/306785
Writing points start A: 247609/306785
Writing points start A: 265899/306785
Writing points start A: 283768/306785
Writing points start A: 301423/306785
Writing points end A: 301423/306785
Writing points end A: 193755/306785
Writing points end A: 211640/306785
Writing points end A: 247609/306785
Writing points end A: 265899/306785
Writing points end A: 283768/306785
Writing points end A: 229840/306785
Writing points start B1: 0/306785
Configuring big array B1: 10000/11479
Writing points start B1: 9624/306785
Writing points start B1: 24587/306785
Writing points start B1: 29321/306785
Writing points start B1: 44060/306785
Writing points start B1: 58747/306785
Writing points start B1: 71636/306785
Writing points start B1: 88493/306785
Writing points end B1: 0/306785
Writing points end B1: 24587/306785
Writing points end B1: 9624/306785
Writing points end B1: 44060/306785
Writing points end B1: 71636/306785
Writing points end B1: 88493/306785
Writing points end B1: 58747/306785
Writing points end B1: 29321/306785
Writing points start B1: 100233/306785
Writing points start B1: 118201/306785
Writing points start B1: 129035/306785
Writing points start B1: 151865/306785
Writing points start B1: 165151/306785
Writing points start B1: 180047/306785
Writing points start B1: 193370/306785
Writing points start B1: 208741/306785
Writing points end B1: 193370/306785
Writing points end B1: 165151/306785
Writing points end B1: 180047/306785
Writing points end B1: 151865/306785
Writing points end B1: 208741/306785
Writing points end B1: 118201/306785
Writing points end B1: 100233/306785
Writing points end B1: 129035/306785
Writing points start B1: 221153/306785
Writing points start B1: 236524/306785
Writing points start B1: 249991/306785
Writing points start B1: 265072/306785
Writing points start B1: 280263/306785
Writing points start B1: 293076/306785
Writing points start B1: 306555/306785
Writing points end B1: 306555/306785
Writing points end B1: 221153/306785
Writing points end B1: 265072/306785
Writing points end B1: 249991/306785
Writing points end B1: 236524/306785
Writing points end B1: 293076/306785
Writing points end B1: 280263/306785
Writing points start B2: 0/306785
Configuring big array B2: 10000/11479
Writing points start B2: 9624/306785
Writing points start B2: 24587/306785
Writing points start B2: 29321/306785
Writing points start B2: 44060/306785
Writing points start B2: 58747/306785
Writing points start B2: 71636/306785
Writing points start B2: 88493/306785
Writing points end B2: 0/306785
Writing points end B2: 24587/306785
Writing points end B2: 9624/306785
Writing points end B2: 44060/306785
Writing points end B2: 71636/306785
Writing points end B2: 88493/306785
Writing points end B2: 58747/306785
Writing points end B2: 29321/306785
Writing points start B2: 100233/306785
Writing points start B2: 118201/306785
Writing points start B2: 129035/306785
Writing points start B2: 151865/306785
Writing points start B2: 165151/306785
Writing points start B2: 180047/306785
Writing points start B2: 193370/306785
Writing points start B2: 208741/306785
Writing points end B2: 165151/306785
Writing points end B2: 151865/306785
Writing points end B2: 193370/306785
Writing points end B2: 180047/306785
Writing points end B2: 208741/306785
Writing points end B2: 118201/306785
Writing points end B2: 100233/306785
Writing points end B2: 129035/306785
Writing points start B2: 221153/306785
Writing points start B2: 236524/306785
Writing points start B2: 249991/306785
Writing points start B2: 265072/306785
Writing points start B2: 280263/306785
Writing points start B2: 293076/306785
Writing points start B2: 306555/306785
Writing points end B2: 306555/306785
Writing points end B2: 265072/306785
Writing points end B2: 249991/306785
Writing points end B2: 221153/306785
Writing points end B2: 236524/306785
Writing points end B2: 293076/306785
Writing points end B2: 280263/306785
Circuit hash: 
                23eb4980 d584c7ef 647478b9 dea49a6d
                2c595cd0 43a0e9f2 e83fbfb7 b2fd7617
                6fbe4b6f ba7f1f82 566c443d a8f0fec6
                1c2c2662 20e0df3d 12a057f3 2a071937
Same ratio check L section:  0/306783
H Verificaition(tau):  0/524288
H Verificaition(lagrange):  0/524288
Circuit Hash: 
                23eb4980 d584c7ef 647478b9 dea49a6d
                2c595cd0 43a0e9f2 e83fbfb7 b2fd7617
                6fbe4b6f ba7f1f82 566c443d a8f0fec6
                1c2c2662 20e0df3d 12a057f3 2a071937
-------------------------
ZKey Ok!
✔ Your pre-computed zKey is valid
🕗  Uploading first zkey to storage...✖ Something went wrong: Error: ENOENT: no such file or directory, open '/Users/daehyun/20230111/mpc-phase2-suite/packages/phase2cli/ProcessMessages_10-2-1-2_test.0.zkey'