Struct ark_poly_commit::kzg10::Commitment [−][src]
pub struct Commitment<E: PairingEngine>(pub E::G1Affine);
Expand description
Commitment commits to a polynomial. It is output by KZG10::commit.
Trait Implementations
impl<'a, E: PairingEngine> AddAssign<(<E as PairingEngine>::Fr, &'a Commitment<E>)> for Commitment<E>[src]
impl<'a, E: PairingEngine> AddAssign<(<E as PairingEngine>::Fr, &'a Commitment<E>)> for Commitment<E>[src]Performs the += operation. Read more
Reads Self from reader.
Reads Self from reader without compression.
Reads self from reader without compression, and without performing
validity checks. Should be used only when the input is trusted. Read more
Serializes self into writer.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read more
Serializes self into writer without compression.
Serializes self into writer without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read more
Does this commitment have a degree bound?
Size in bytes
prepare PreparedCommitment from Commitment
impl<E: PairingEngine> ToConstraintField<<<E as PairingEngine>::Fq as Field>::BasePrimeField> for Commitment<E> where
E::G1Affine: ToConstraintField<<E::Fq as Field>::BasePrimeField>, [src]
impl<E: PairingEngine> ToConstraintField<<<E as PairingEngine>::Fq as Field>::BasePrimeField> for Commitment<E> where
E::G1Affine: ToConstraintField<<E::Fq as Field>::BasePrimeField>, [src]Auto Trait Implementations
impl<E> RefUnwindSafe for Commitment<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe, impl<E> Send for Commitment<E>impl<E> Sync for Commitment<E>impl<E> Unpin for Commitment<E> where
<E as PairingEngine>::G1Affine: Unpin, impl<E> UnwindSafe for Commitment<E> where
<E as PairingEngine>::G1Affine: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize> where
H: Digest, [src]type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V