Struct ark_poly_commit::ipa_pc::Commitment [−][src]
pub struct Commitment<G: AffineCurve> { pub comm: G, pub shifted_comm: Option<G>, }
Expand description
Commitment to a polynomial that optionally enforces a degree bound.
Fields
comm: GA Pedersen commitment to the polynomial.
shifted_comm: Option<G>A Pedersen commitment to the shifted polynomial.
This is none if the committed polynomial does not
enforce a strict degree bound.
Trait Implementations
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
Auto Trait Implementations
impl<G> RefUnwindSafe for Commitment<G> where
G: RefUnwindSafe, impl<G> Send for Commitment<G>impl<G> Sync for Commitment<G>impl<G> Unpin for Commitment<G> where
G: Unpin, impl<G> UnwindSafe for Commitment<G> where
G: 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