Struct snarkvm_curves::templates::bls12::g2::G2Prepared
source · pub struct G2Prepared<P: Bls12Parameters> {
pub ell_coeffs: Vec<(Fp2<P::Fp2Params>, Fp2<P::Fp2Params>, Fp2<P::Fp2Params>)>,
pub infinity: bool,
}
Fields§
§ell_coeffs: Vec<(Fp2<P::Fp2Params>, Fp2<P::Fp2Params>, Fp2<P::Fp2Params>)>
§infinity: bool
Implementations§
source§impl<P: Bls12Parameters> G2Prepared<P>
impl<P: Bls12Parameters> G2Prepared<P>
Trait Implementations§
source§impl<P: Bls12Parameters> CanonicalDeserialize for G2Prepared<P>
impl<P: Bls12Parameters> CanonicalDeserialize for G2Prepared<P>
fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
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<P: Bls12Parameters> CanonicalSerialize for G2Prepared<P>
impl<P: Bls12Parameters> CanonicalSerialize for G2Prepared<P>
fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
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
source§impl<P: Clone + Bls12Parameters> Clone for G2Prepared<P>where
P::Fp2Params: Clone,
impl<P: Clone + Bls12Parameters> Clone for G2Prepared<P>where
P::Fp2Params: Clone,
source§fn clone(&self) -> G2Prepared<P>
fn clone(&self) -> G2Prepared<P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more