Struct bellperson::groth16::aggregate::Key [−][src]
pub struct Key<G: CurveAffine> { pub a: Vec<G>, pub b: Vec<G>, }
Expand description
Key is a generic commitment key that is instanciated with g and h as basis, and a and b as powers.
Fields
a: Vec<G>
Exponent is a
b: Vec<G>
Exponent is b
Implementations
Returns true if commitment keys have the exact required length. It is necessary for the IPP scheme to work that commitment key have the exact same number of arguments as the number of proofs to aggregate.
Returns both vectors scaled by the given vector entrywise. In other words, it returns ${v_i^{s_i}}$
Returns the left and right commitment key part. It makes copy.
Takes a left and right commitment key and returns a commitment key $left \circ right^{scale} = (left_i*right_i^{scale} …)$. This is required step during GIPA recursion.
Trait Implementations
Auto Trait Implementations
impl<G> RefUnwindSafe for Key<G> where
G: RefUnwindSafe,
impl<G> UnwindSafe for Key<G> where
G: 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