Struct ark_poly_commit::kzg10::Powers
source · pub struct Powers<'a, E: Pairing> {
pub powers_of_g: Cow<'a, [E::G1Affine]>,
pub powers_of_gamma_g: Cow<'a, [E::G1Affine]>,
}
Expand description
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§
Trait Implementations§
source§impl<'a, E: Pairing> CanonicalDeserialize for Powers<'a, E>
impl<'a, E: Pairing> CanonicalDeserialize for Powers<'a, E>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_compressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
source§impl<'a, E: Pairing> CanonicalSerialize for Powers<'a, E>
impl<'a, E: Pairing> CanonicalSerialize for Powers<'a, E>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn uncompressed_size(&self) -> usize
Auto Trait Implementations§
impl<'a, E> RefUnwindSafe for Powers<'a, E>where <E as Pairing>::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 Pairing>::G1Affine: Unpin,
impl<'a, E> UnwindSafe for Powers<'a, E>where <E as Pairing>::G1Affine: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more