Struct bellperson::groth16::aggregate::GenericSRS [−][src]
pub struct GenericSRS<E: Engine> { pub g_alpha_powers: Vec<E::G1Affine>, pub h_alpha_powers: Vec<E::G2Affine>, pub g_beta_powers: Vec<E::G1Affine>, pub h_beta_powers: Vec<E::G2Affine>, }
Expand description
It contains the maximum number of raw elements of the SRS needed to aggregate and verify
Groth16 proofs. One can derive specialized prover and verifier key for specific size of
aggregations by calling srs.specialize(n)
. The specialized prover key also contains
precomputed tables that drastically increase prover’s performance.
This GenericSRS is usually formed from the transcript of two distinct power of taus ceremony
,in other words from two distinct Groth16 CRS.
See there a way on how to generate this GenesisSRS.
Fields
g_alpha_powers: Vec<E::G1Affine>
${g^a^i}_{i=0}^{N}$ where N is the smallest size of the two Groth16 CRS.
h_alpha_powers: Vec<E::G2Affine>
${h^a^i}_{i=0}^{N}$ where N is the smallest size of the two Groth16 CRS.
g_beta_powers: Vec<E::G1Affine>
${g^b^i}_{i=n}^{N}$ where N is the smallest size of the two Groth16 CRS.
h_beta_powers: Vec<E::G2Affine>
${h^b^i}_{i=0}^{N}$ where N is the smallest size of the two Groth16 CRS.
Implementations
specializes returns the prover and verifier SRS for a specific number of proofs to aggregate. The number of proofs MUST BE a power of two, it panics otherwise. The number of proofs must be inferior to half of the size of the generic srs otherwise it panics.
Trait Implementations
Auto Trait Implementations
impl<E> RefUnwindSafe for GenericSRS<E> where
<E as Engine>::G1Affine: RefUnwindSafe,
<E as Engine>::G2Affine: RefUnwindSafe,
impl<E> Send for GenericSRS<E>
impl<E> Sync for GenericSRS<E>
impl<E> Unpin for GenericSRS<E> where
<E as Engine>::G1Affine: Unpin,
<E as Engine>::G2Affine: Unpin,
impl<E> UnwindSafe for GenericSRS<E> where
<E as Engine>::G1Affine: UnwindSafe,
<E as Engine>::G2Affine: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V