aleo-setup icon indicating copy to clipboard operation
aleo-setup copied to clipboard

Include chunked phase2 script

Open emmorais opened this issue 4 years ago • 4 comments

Ongoing work. Currently getting the following error:

Running `/media/eduardo/DATA/eduardo/Aleo/code/aleo-setup/target/release/setup2 new --curve-type bw6 --chunk-size 131072 --batch-size 131072 --contribution-mode full --challenge-fname challenge --challenge-hash-fname challenge.verified.hash --phase1-fname ../../phase1-cli/scripts/combined --phase1-powers 18 --num-validators 1 --num-epochs 1`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ZexeSerializationError(IoError(Custom { kind: Other, error: "Invalid field element" }))', setup2/src/cli/new.rs:200:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

emmorais avatar Nov 04 '21 17:11 emmorais

Update: in the latest commit, the error that Eduardo encountered is no longer present, so the new subcommand runs to completion. The remaining work involves implementing the rest of the commands specified in the script.

Pratyush avatar Jan 04 '22 23:01 Pratyush

In the latest commit, most tests are passing, except some tests in setup1-verifier. These tests are failing due to an inability to deserialize a PrivateKey from the hardcoded ViewKey bytes. We can no longer use the ViewKey because in the latest snarkvm, we use PrivateKeys to sign (whereas earlier we signed with ViewKeys).

To get the tests passing, I can sample a new PrivateKey and hardcode this in the tests, but overall I'm not sure if the new behaviour (i.e. switching away from ViewKey signing) is wanted.

Pratyush avatar Jan 06 '22 01:01 Pratyush

This may need a rebase after #448 is merged.

niklaslong avatar Jan 11 '22 20:01 niklaslong

Merged phase2 into this.

Pratyush avatar Jan 18 '22 19:01 Pratyush