Skip to main content

CommitmentTrait

Trait CommitmentTrait 

Source
pub trait CommitmentTrait<E: Engine>:
    Clone
    + Copy
    + Debug
    + Default
    + PartialEq
    + Eq
    + Send
    + Sync
    + TranscriptReprTrait<E::GE>
    + Serialize
    + for<'de> Deserialize<'de>
    + AbsorbInROTrait<E>
    + AbsorbInRO2Trait<E>
    + Add<Self, Output = Self>
    + ScalarMul<E::Scalar> {
    // Required method
    fn to_coordinates(&self) -> (E::Base, E::Base, bool);
}
Expand description

This trait defines the behavior of the commitment

Required Methods§

Source

fn to_coordinates(&self) -> (E::Base, E::Base, bool)

Returns the coordinate representation of the commitment

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E: Engine> CommitmentTrait<E> for nova_snark::provider::hyperkzg::Commitment<E>
where E::GE: PairingGroup,

Source§

impl<E: Engine> CommitmentTrait<E> for nova_snark::provider::pedersen::Commitment<E>
where E::GE: DlogGroup,