pub struct G1Prepared<P: MNT4Parameters> {
pub x: P::Fp,
pub y: P::Fp,
pub x_twist: Fp2<P::Fp2Config>,
pub y_twist: Fp2<P::Fp2Config>,
}
Fields
x: P::Fp
y: P::Fp
x_twist: Fp2<P::Fp2Config>
y_twist: Fp2<P::Fp2Config>
Trait Implementations
sourceimpl<P: MNT4Parameters> CanonicalDeserialize for G1Prepared<P>
impl<P: MNT4Parameters> CanonicalDeserialize for G1Prepared<P>
sourcefn 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,
sourceimpl<P: MNT4Parameters> CanonicalSerialize for G1Prepared<P>
impl<P: MNT4Parameters> CanonicalSerialize for G1Prepared<P>
sourcefn 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
sourceimpl<P: MNT4Parameters> Clone for G1Prepared<P>where
P: MNT4Parameters,
impl<P: MNT4Parameters> Clone for G1Prepared<P>where
P: MNT4Parameters,
sourceimpl<P: MNT4Parameters> Debug for G1Prepared<P>where
P: MNT4Parameters,
impl<P: MNT4Parameters> Debug for G1Prepared<P>where
P: MNT4Parameters,
sourceimpl<P: MNT4Parameters> Default for G1Prepared<P>
impl<P: MNT4Parameters> Default for G1Prepared<P>
sourceimpl<'a, P: MNT4Parameters> From<&'a Affine<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
impl<'a, P: MNT4Parameters> From<&'a Affine<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
sourceimpl<'a, P: MNT4Parameters> From<&'a Projective<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
impl<'a, P: MNT4Parameters> From<&'a Projective<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
sourcefn from(g1: &'a G1Projective<P>) -> Self
fn from(g1: &'a G1Projective<P>) -> Self
Converts to this type from the input type.
sourceimpl<P: MNT4Parameters> From<Affine<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
impl<P: MNT4Parameters> From<Affine<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
sourceimpl<P: MNT4Parameters> From<Projective<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
impl<P: MNT4Parameters> From<Projective<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>
sourcefn from(g1: G1Projective<P>) -> Self
fn from(g1: G1Projective<P>) -> Self
Converts to this type from the input type.
sourceimpl<P: MNT4Parameters> PartialEq<G1Prepared<P>> for G1Prepared<P>where
P: MNT4Parameters,
impl<P: MNT4Parameters> PartialEq<G1Prepared<P>> for G1Prepared<P>where
P: MNT4Parameters,
sourceimpl<P: MNT4Parameters> Valid for G1Prepared<P>
impl<P: MNT4Parameters> Valid for G1Prepared<P>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send
) -> Result<(), SerializationError>where
Self: 'a,
impl<P: MNT4Parameters> Copy for G1Prepared<P>where
P: MNT4Parameters,
impl<P: MNT4Parameters> Eq for G1Prepared<P>where
P: MNT4Parameters,
Auto Trait Implementations
impl<P> RefUnwindSafe for G1Prepared<P>where
<P as MNT4Parameters>::Fp: RefUnwindSafe,
impl<P> Send for G1Prepared<P>
impl<P> Sync for G1Prepared<P>
impl<P> Unpin for G1Prepared<P>where
<P as MNT4Parameters>::Fp: Unpin,
impl<P> UnwindSafe for G1Prepared<P>where
<P as MNT4Parameters>::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