Struct snarkvm_polycommit::kzg10::Powers[][src]

pub struct Powers<'a, E: PairingEngine> {
    pub powers_of_g: Cow<'a, [E::G1Affine]>,
    pub powers_of_gamma_g: Cow<'a, [E::G1Affine]>,
}

Powers is used to commit to and create evaluation proofs for a given polynomial.

Fields

powers_of_g: Cow<'a, [E::G1Affine]>

Group elements of the form β^i G, for different values of i.

powers_of_gamma_g: Cow<'a, [E::G1Affine]>

Group elements of the form β^i γG, for different values of i.

Implementations

impl<E: PairingEngine> Powers<'_, E>[src]

pub fn size(&self) -> usize[src]

The number of powers in self.

Trait Implementations

impl<'a, E: PairingEngine> Clone for Powers<'a, E>[src]

impl<'a, E: PairingEngine> Debug for Powers<'a, E>[src]

impl<'a, E: PairingEngine> Default for Powers<'a, E>[src]

impl<'a, E: PairingEngine> Hash for Powers<'a, E>[src]

Auto Trait Implementations

impl<'a, E> RefUnwindSafe for Powers<'a, E> where
    <E as PairingEngine>::G1Affine: RefUnwindSafe

impl<'a, E> Send for Powers<'a, E>

impl<'a, E> Sync for Powers<'a, E>

impl<'a, E> Unpin for Powers<'a, E> where
    <E as PairingEngine>::G1Affine: Unpin

impl<'a, E> UnwindSafe for Powers<'a, E> where
    <E as PairingEngine>::G1Affine: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,