1 unstable release

0.1.0 Aug 30, 2023

#8 in #groth16

Download history 77/week @ 2023-12-17 5/week @ 2023-12-24 5/week @ 2023-12-31 44/week @ 2024-01-07 9/week @ 2024-01-14 9/week @ 2024-01-21 33/week @ 2024-01-28 64/week @ 2024-02-04 17/week @ 2024-02-11 26/week @ 2024-02-18 33/week @ 2024-02-25 19/week @ 2024-03-03 58/week @ 2024-03-10 26/week @ 2024-03-17 20/week @ 2024-03-24 102/week @ 2024-03-31

208 downloads per month
Used in 5 crates (via bellperson)

Apache-2.0

45KB
962 lines

Commit 2

The final step of the sealing process is to generate a zkSNARK for the proof of replication (porep). Using the inclusion proofs from C1, the inputs are put through the porep circuit and a proof generated using Groth16.

Intended Usage

The SupraSeal C2 operations are different than the rest of the library in that there are dependencies on primitives in external libraries. Specifically with bellperson through the use of a modified version of synthesize_circuits_batch() to generate the witness. From there the vectors are put through various MSM and NTT kernels on GPU and CPU. Note this requires the usage of a Rust based interface as opposed to the C/C++ seen throughout SupraSeal.

The use of bellperson currently complicates matters since the library needs to be modified slightly in order to run with the SupraSeal Groth16 primitives. This will be rectified in bellperson v0.26 introducing cuda-supraseal feature flag, but for the moment of this writing the demos/c2-test/run.me PoC script performs the necessary steps and executes a 32GiB test/benchmark. It's assumed that you've previously fetched the corresponding parameters. The expected execution time for the test is approximately 2-3 minutes depending on GPU.

Dependencies

~2.6–4.5MB
~136K SLoC