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.

Returns the first values in the vector of v1 and v2 (respectively w1 and w2). When commitment key is of size one, it’s a proxy to get the final values.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.