Struct bellperson::bls::G1Affine [−][src]
pub struct G1Affine { /* fields omitted */ }
Implementations
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
type Projective = G1
type Uncompressed = G1Uncompressed
type Compressed = G1Compressed
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.
Converts this element into its affine representation.
Converts this element into its compressed encoding, so long as it’s not the point at infinity. Read more
Converts this element into its uncompressed encoding, so long as it’s not the point at infinity. Read more
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
type Prepared = G1Prepared
type PairingResult = Fq12
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
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
Auto Trait Implementations
impl RefUnwindSafe for G1Affine
impl UnwindSafe for G1Affine
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V