Struct ark_test_curves::mnt4::G2Prepared
source · pub struct G2Prepared<P>where
P: MNT4Config,{
pub x: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>,
pub y: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>,
pub x_over_twist: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>,
pub y_over_twist: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>,
pub double_coefficients: Vec<AteDoubleCoefficients<P>, Global>,
pub addition_coefficients: Vec<AteAdditionCoefficients<P>, Global>,
}
Fields§
§x: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>
§y: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>
§x_over_twist: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>
§y_over_twist: QuadExtField<Fp2ConfigWrapper<<P as MNT4Config>::Fp2Config>>
§double_coefficients: Vec<AteDoubleCoefficients<P>, Global>
§addition_coefficients: Vec<AteAdditionCoefficients<P>, Global>
Trait Implementations§
source§impl<P> CanonicalDeserialize for G2Prepared<P>where
P: MNT4Config,
impl<P> CanonicalDeserialize for G2Prepared<P>where P: MNT4Config,
source§fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<G2Prepared<P>, SerializationError>where
R: Read,
fn deserialize_with_mode<R>( reader: R, compress: Compress, validate: Validate ) -> Result<G2Prepared<P>, SerializationError>where R: Read,
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<P> CanonicalSerialize for G2Prepared<P>where
P: MNT4Config,
impl<P> CanonicalSerialize for G2Prepared<P>where P: MNT4Config,
source§fn serialize_with_mode<W>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>where
W: Write,
fn serialize_with_mode<W>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>where W: Write,
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
source§impl<P> Clone for G2Prepared<P>where
P: MNT4Config,
impl<P> Clone for G2Prepared<P>where P: MNT4Config,
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 moresource§impl<P> Debug for G2Prepared<P>where
P: MNT4Config,
impl<P> Debug for G2Prepared<P>where P: MNT4Config,
source§impl<P> Default for G2Prepared<P>where
P: MNT4Config,
impl<P> Default for G2Prepared<P>where P: MNT4Config,
source§fn default() -> G2Prepared<P>
fn default() -> G2Prepared<P>
Returns the “default value” for a type. Read more
source§impl<'a, P> From<&'a Affine<<P as MNT4Config>::G2Config>> for G2Prepared<P>where
P: MNT4Config,
impl<'a, P> From<&'a Affine<<P as MNT4Config>::G2Config>> for G2Prepared<P>where P: MNT4Config,
source§fn from(g2: &'a Affine<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
fn from(g2: &'a Affine<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
Converts to this type from the input type.
source§impl<'a, P> From<&'a Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>where
P: MNT4Config,
impl<'a, P> From<&'a Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>where P: MNT4Config,
source§fn from(g2: &'a Projective<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
fn from(g2: &'a Projective<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
Converts to this type from the input type.
source§impl<P> From<Affine<<P as MNT4Config>::G2Config>> for G2Prepared<P>where
P: MNT4Config,
impl<P> From<Affine<<P as MNT4Config>::G2Config>> for G2Prepared<P>where P: MNT4Config,
source§fn from(g: Affine<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
fn from(g: Affine<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
Converts to this type from the input type.
source§impl<P> From<Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>where
P: MNT4Config,
impl<P> From<Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>where P: MNT4Config,
source§fn from(g2: Projective<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
fn from(g2: Projective<<P as MNT4Config>::G2Config>) -> G2Prepared<P>
Converts to this type from the input type.
source§impl<P> PartialEq<G2Prepared<P>> for G2Prepared<P>where
P: MNT4Config,
impl<P> PartialEq<G2Prepared<P>> for G2Prepared<P>where P: MNT4Config,
source§fn eq(&self, other: &G2Prepared<P>) -> bool
fn eq(&self, other: &G2Prepared<P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<P> Valid for G2Prepared<P>where
P: MNT4Config,
impl<P> Valid for G2Prepared<P>where P: MNT4Config,
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>( batch: impl Iterator<Item = &'a G2Prepared<P>> + Send ) -> Result<(), SerializationError>where G2Prepared<P>: 'a,
impl<P> Eq for G2Prepared<P>where P: MNT4Config,
Auto Trait Implementations§
impl<P> RefUnwindSafe for G2Prepared<P>where <P as MNT4Config>::Fp: RefUnwindSafe,
impl<P> Send for G2Prepared<P>
impl<P> Sync for G2Prepared<P>
impl<P> Unpin for G2Prepared<P>where <P as MNT4Config>::Fp: Unpin,
impl<P> UnwindSafe for G2Prepared<P>where <P as MNT4Config>::Fp: UnwindSafe,
Blanket Implementations§
§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere T: CanonicalSerialize,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more