[][src]Struct dusk_plonk::commitment_scheme::kzg10::Commitment

pub struct Commitment(pub G1Affine);

Holds a commitment to a polynomial in a form of a G1Affine Bls12_381 point.

Implementations

impl Commitment[src]

pub fn from_projective(g: G1Projective) -> Self[src]

Builds a Commitment from a Bls12_381 G1Projective point.

pub fn from_affine(g: G1Affine) -> Self[src]

Builds a Commitment from a Bls12_381 G1Affine point.

pub fn empty() -> Self[src]

Builds an empty Commitment which is equivalent to the G1Affine identity point in Bls12_381.

Trait Implementations

impl Clone for Commitment[src]

impl Copy for Commitment[src]

impl Debug for Commitment[src]

impl Default for Commitment[src]

impl Eq for Commitment[src]

impl PartialEq<Commitment> for Commitment[src]

impl StructuralEq for Commitment[src]

impl StructuralPartialEq for Commitment[src]

Auto Trait Implementations

impl RefUnwindSafe for Commitment

impl Send for Commitment

impl Sync for Commitment

impl Unpin for Commitment

impl UnwindSafe for Commitment

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> 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>,