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
sourceimpl<P: Bls12Parameters> G2Prepared<P>
impl<P: Bls12Parameters> G2Prepared<P>
Trait Implementations
sourceimpl<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,
sourceimpl<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
sourceimpl<P: Clone + Bls12Parameters> Clone for G2Prepared<P>where
P::Fp2Params: Clone,
impl<P: Clone + Bls12Parameters> Clone for G2Prepared<P>where
P::Fp2Params: Clone,
sourcefn clone(&self) -> G2Prepared<P>
fn clone(&self) -> G2Prepared<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<P: Debug + Bls12Parameters> Debug for G2Prepared<P>where
P::Fp2Params: Debug,
impl<P: Debug + Bls12Parameters> Debug for G2Prepared<P>where
P::Fp2Params: Debug,
sourceimpl<P: Bls12Parameters> Default for G2Prepared<P>
impl<P: Bls12Parameters> Default for G2Prepared<P>
sourceimpl<P: Bls12Parameters> FromBytes for G2Prepared<P>
impl<P: Bls12Parameters> FromBytes for G2Prepared<P>
sourceimpl<P: Hash + Bls12Parameters> Hash for G2Prepared<P>where
P::Fp2Params: Hash,
impl<P: Hash + Bls12Parameters> Hash for G2Prepared<P>where
P::Fp2Params: Hash,
sourceimpl<P: PartialEq + Bls12Parameters> PartialEq<G2Prepared<P>> for G2Prepared<P>where
P::Fp2Params: PartialEq,
impl<P: PartialEq + Bls12Parameters> PartialEq<G2Prepared<P>> for G2Prepared<P>where
P::Fp2Params: PartialEq,
sourcefn eq(&self, other: &G2Prepared<P>) -> bool
fn eq(&self, other: &G2Prepared<P>) -> bool
sourceimpl<P: Bls12Parameters> ToBytes for G2Prepared<P>
impl<P: Bls12Parameters> ToBytes for G2Prepared<P>
sourceimpl<P: Bls12Parameters> Valid for G2Prepared<P>
impl<P: Bls12Parameters> Valid for G2Prepared<P>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send
) -> Result<(), SerializationError>where
Self: 'a,
impl<P: Eq + Bls12Parameters> Eq for G2Prepared<P>where
P::Fp2Params: Eq,
impl<P: Bls12Parameters> StructuralEq for G2Prepared<P>
impl<P: Bls12Parameters> StructuralPartialEq for G2Prepared<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for G2Prepared<P>where
<P as Bls12Parameters>::Fp: RefUnwindSafe,
impl<P> Send for G2Prepared<P>
impl<P> Sync for G2Prepared<P>
impl<P> Unpin for G2Prepared<P>where
<P as Bls12Parameters>::Fp: Unpin,
impl<P> UnwindSafe for G2Prepared<P>where
<P as Bls12Parameters>::Fp: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more