Struct bellperson::bls::G1Affine [−][src]
pub struct G1Affine { /* fields omitted */ }
Implementations
impl G1Affine
[src]
impl G1Affine
[src]These methods provide fast reading and writing for G1Affine
points.
Points are guaranteed to be unaffected by a write
-read
roundtrip,
but input to read
is assumed to be correct. No validation is performed
on the raw components, so it is an error to read
arbitrary data.
Trait Implementations
impl CurveAffine for G1Affine
[src]
impl CurveAffine for G1Affine
[src]type Engine = Bls12
type Scalar = Fr
type Base = Fq
type Projective = G1
type Uncompressed = G1Uncompressed
type Compressed = G1Compressed
pub fn is_zero(&self) -> bool
[src]
pub fn is_zero(&self) -> bool
[src]Determines if this point represents the point at infinity; the additive identity. Read more
pub fn mul<S>(&self, by: S) -> G1 where
S: Into<<<G1Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
[src]
pub fn mul<S>(&self, by: S) -> G1 where
S: Into<<<G1Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
[src]Performs scalar multiplication of this element with mixed addition.
pub fn into_projective(&self) -> G1
[src]
pub fn into_projective(&self) -> G1
[src]Converts this element into its affine representation.
fn into_compressed(&self) -> Self::Compressed
[src]
fn into_compressed(&self) -> Self::Compressed
[src]Converts this element into its compressed encoding, so long as it’s not the point at infinity. Read more
fn into_uncompressed(&self) -> Self::Uncompressed
[src]
fn into_uncompressed(&self) -> Self::Uncompressed
[src]Converts this element into its uncompressed encoding, so long as it’s not the point at infinity. Read more
impl<'de> Deserialize<'de> for G1Affine
[src]
impl<'de> Deserialize<'de> for G1Affine
[src]pub fn deserialize<D>(d: D) -> Result<G1Affine, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
pub fn deserialize<D>(d: D) -> Result<G1Affine, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PairingCurveAffine for G1Affine
[src]
impl PairingCurveAffine for G1Affine
[src]type Prepared = G1Prepared
type Pair = G2Affine
type PairingResult = Fq12
pub fn prepare(&self) -> <G1Affine as PairingCurveAffine>::Prepared
[src]
pub fn prepare(&self) -> <G1Affine as PairingCurveAffine>::Prepared
[src]Prepares this element for pairing purposes.
pub fn pairing_with(
&self,
other: &<G1Affine as PairingCurveAffine>::Pair
) -> <G1Affine as PairingCurveAffine>::PairingResult
[src]
pub fn pairing_with(
&self,
other: &<G1Affine as PairingCurveAffine>::Pair
) -> <G1Affine as PairingCurveAffine>::PairingResult
[src]Perform a pairing
impl Serialize for G1Affine
[src]
impl Serialize for G1Affine
[src]pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for G1Affine
[src]
impl Eq for G1Affine
[src]
impl StructuralEq for G1Affine
[src]
impl StructuralPartialEq for G1Affine
[src]
Auto Trait Implementations
impl RefUnwindSafe for G1Affine
impl Send for G1Affine
impl Sync for G1Affine
impl Unpin for G1Affine
impl UnwindSafe for G1Affine
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,