Struct bellperson::bls::G1Projective [−][src]
pub struct G1Projective { /* fields omitted */ }
Trait Implementations
Implements “Indifferentiable Hashing to Barreto–Naehrig Curves” from Foque-Tibouchi. https://www.di.ens.fr/~fouque/pub/latincrypt12.pdf
Returns an element chosen uniformly at random using a user-provided RNG.
Checks if the point is already “normalized” so that cheap affine conversion is possible. Read more
Normalizes a slice of projective elements so that conversion to affine is cheap. Read more
Adds another element to this element.
Adds an affine element to this element.
pub fn mul_assign<S>(&mut self, other: S) where
S: Into<<<G1 as CurveProjective>::Scalar as PrimeField>::Repr>,
[src]
pub fn mul_assign<S>(&mut self, other: S) where
S: Into<<<G1 as CurveProjective>::Scalar as PrimeField>::Repr>,
[src]Performs scalar multiplication of this element.
Converts this element into its affine representation.
pub fn recommended_wnaf_for_scalar(
scalar: <<G1 as CurveProjective>::Scalar as PrimeField>::Repr
) -> usize
[src]
pub fn recommended_wnaf_for_scalar(
scalar: <<G1 as CurveProjective>::Scalar as PrimeField>::Repr
) -> usize
[src]Recommends a wNAF window table size given a scalar. Always returns a number between 2 and 22, inclusive. Read more
Recommends a wNAF window size given the number of scalars you intend to multiply a base by. Always returns a number between 2 and 22, inclusive. Read more
Subtracts another element from this element.
pub fn deserialize<D>(d: D) -> Result<G1, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
pub fn deserialize<D>(d: D) -> Result<G1, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Eavluate isogeny map.
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
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<PtT, X> HashToCurve<X> for PtT where
X: ExpandMsg,
PtT: ClearH + IsogenyMap + OsswuMap,
<PtT as CurveProjective>::Base: FromRO,
[src]
impl<PtT, X> HashToCurve<X> for PtT where
X: ExpandMsg,
PtT: ClearH + IsogenyMap + OsswuMap,
<PtT as CurveProjective>::Base: FromRO,
[src]type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V