Include chunked phase2 script
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
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.
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.
This may need a rebase after #448 is merged.
Merged phase2 into this.