Struct ark_ec::models::short_weierstrass::Projective
source · pub struct Projective<P: SWCurveConfig> {
pub x: P::BaseField,
pub y: P::BaseField,
pub z: P::BaseField,
}
Expand description
Jacobian coordinates for a point on an elliptic curve in short Weierstrass
form, over the base field P::BaseField
. This struct implements arithmetic
via the Jacobian formulae
Fields§
§x: P::BaseField
X / Z
projection of the affine X
y: P::BaseField
Y / Z
projection of the affine Y
z: P::BaseField
Projective multiplicative inverse. Will be 0
only at infinity.
Implementations§
source§impl<P: SWCurveConfig> Projective<P>
impl<P: SWCurveConfig> Projective<P>
sourcepub const fn new_unchecked(
x: P::BaseField,
y: P::BaseField,
z: P::BaseField
) -> Self
pub const fn new_unchecked( x: P::BaseField, y: P::BaseField, z: P::BaseField ) -> Self
Constructs a new group element without checking whether the coordinates specify a point in the subgroup.
Trait Implementations§
source§impl<'a, 'b, P: SWCurveConfig> Add<&'a Projective<P>> for &'b Projective<P>
impl<'a, 'b, P: SWCurveConfig> Add<&'a Projective<P>> for &'b Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
+
operator.source§fn add(self, other: &'a Projective<P>) -> Projective<P>
fn add(self, other: &'a Projective<P>) -> Projective<P>
+
operation. Read moresource§impl<'a, P: SWCurveConfig> Add<&'a Projective<P>> for Affine<P>
impl<'a, P: SWCurveConfig> Add<&'a Projective<P>> for Affine<P>
§type Output = Projective<P>
type Output = Projective<P>
+
operator.source§fn add(self, other: &'a Projective<P>) -> Projective<P>
fn add(self, other: &'a Projective<P>) -> Projective<P>
+
operation. Read moresource§impl<'a, P: SWCurveConfig> Add<&'a Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> Add<&'a Projective<P>> for Projective<P>
source§impl<'a, 'b, P: SWCurveConfig> Add<&'a mut Projective<P>> for &'b Projective<P>
impl<'a, 'b, P: SWCurveConfig> Add<&'a mut Projective<P>> for &'b Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
+
operator.source§fn add(self, other: &'a mut Projective<P>) -> Projective<P>
fn add(self, other: &'a mut Projective<P>) -> Projective<P>
+
operation. Read moresource§impl<'a, P: SWCurveConfig> Add<&'a mut Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> Add<&'a mut Projective<P>> for Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
+
operator.source§fn add(self, other: &'a mut Self) -> Self
fn add(self, other: &'a mut Self) -> Self
+
operation. Read moresource§impl<'b, P: SWCurveConfig> Add<Projective<P>> for &'b Projective<P>
impl<'b, P: SWCurveConfig> Add<Projective<P>> for &'b Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
+
operator.source§fn add(self, other: Projective<P>) -> Projective<P>
fn add(self, other: Projective<P>) -> Projective<P>
+
operation. Read moresource§impl<P: SWCurveConfig> Add<Projective<P>> for Affine<P>
impl<P: SWCurveConfig> Add<Projective<P>> for Affine<P>
§type Output = Projective<P>
type Output = Projective<P>
+
operator.source§fn add(self, other: Projective<P>) -> Projective<P>
fn add(self, other: Projective<P>) -> Projective<P>
+
operation. Read moresource§impl<P: SWCurveConfig> Add<Projective<P>> for Projective<P>
impl<P: SWCurveConfig> Add<Projective<P>> for Projective<P>
source§impl<P: SWCurveConfig, T: Borrow<Affine<P>>> Add<T> for Projective<P>
impl<P: SWCurveConfig, T: Borrow<Affine<P>>> Add<T> for Projective<P>
source§impl<'a, P: SWCurveConfig> AddAssign<&'a Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> AddAssign<&'a Projective<P>> for Projective<P>
source§fn add_assign(&mut self, other: &'a Self)
fn add_assign(&mut self, other: &'a Self)
+=
operation. Read moresource§impl<'a, P: SWCurveConfig> AddAssign<&'a mut Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> AddAssign<&'a mut Projective<P>> for Projective<P>
source§fn add_assign(&mut self, other: &'a mut Self)
fn add_assign(&mut self, other: &'a mut Self)
+=
operation. Read moresource§impl<P: SWCurveConfig> AddAssign<Projective<P>> for Projective<P>
impl<P: SWCurveConfig> AddAssign<Projective<P>> for Projective<P>
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresource§impl<P: SWCurveConfig, T: Borrow<Affine<P>>> AddAssign<T> for Projective<P>
impl<P: SWCurveConfig, T: Borrow<Affine<P>>> AddAssign<T> for Projective<P>
source§fn add_assign(&mut self, other: T)
fn add_assign(&mut self, other: T)
Using http://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-madd-2007-bl
source§impl<P: SWCurveConfig> CanonicalDeserialize for Projective<P>
impl<P: SWCurveConfig> CanonicalDeserialize for Projective<P>
source§fn 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>
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: SWCurveConfig> CanonicalSerialize for Projective<P>
impl<P: SWCurveConfig> CanonicalSerialize for Projective<P>
source§fn 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>
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 Projective<P>where
P: SWCurveConfig,
impl<P> Clone for Projective<P>where P: SWCurveConfig,
source§impl<P: SWCurveConfig> CurveGroup for Projective<P>
impl<P: SWCurveConfig> CurveGroup for Projective<P>
source§fn normalize_batch(v: &[Self]) -> Vec<Self::Affine>
fn normalize_batch(v: &[Self]) -> Vec<Self::Affine>
Normalizes a slice of projective elements so that conversion to affine is cheap.
In more detail, this method converts a curve point in Jacobian coordinates (x, y, z) into an equivalent representation (x/z^2, y/z^3, 1).
For N = v.len()
, this costs 1 inversion + 6N field multiplications + N
field squarings.
(Where batch inversion comprises 3N field multiplications + 1 inversion of these operations)
type Config = P
§type BaseField = <P as CurveConfig>::BaseField
type BaseField = <P as CurveConfig>::BaseField
§type FullGroup = Affine<P>
type FullGroup = Affine<P>
source§fn into_affine(self) -> Self::Affine
fn into_affine(self) -> Self::Affine
self
into the affine representation.source§impl<P: SWCurveConfig> Debug for Projective<P>
impl<P: SWCurveConfig> Debug for Projective<P>
source§impl<P: SWCurveConfig> Default for Projective<P>
impl<P: SWCurveConfig> Default for Projective<P>
source§impl<P: SWCurveConfig> Display for Projective<P>
impl<P: SWCurveConfig> Display for Projective<P>
source§impl<P: SWCurveConfig> Distribution<Projective<P>> for Standard
impl<P: SWCurveConfig> Distribution<Projective<P>> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Projective<P>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Projective<P>
Generates a uniformly random instance of the curve.
source§impl<'a, P: BW6Config> From<&'a Projective<<P as BW6Config>::G1Config>> for G1Prepared<P>
impl<'a, P: BW6Config> From<&'a Projective<<P as BW6Config>::G1Config>> for G1Prepared<P>
source§fn from(q: &'a G1Projective<P>) -> Self
fn from(q: &'a G1Projective<P>) -> Self
source§impl<'a, P: BW6Config> From<&'a Projective<<P as BW6Config>::G2Config>> for G2Prepared<P>
impl<'a, P: BW6Config> From<&'a Projective<<P as BW6Config>::G2Config>> for G2Prepared<P>
source§fn from(q: &'a G2Projective<P>) -> Self
fn from(q: &'a G2Projective<P>) -> Self
source§impl<'a, P: Bls12Config> From<&'a Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>
impl<'a, P: Bls12Config> From<&'a Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>
source§fn from(q: &'a G1Projective<P>) -> Self
fn from(q: &'a G1Projective<P>) -> Self
source§impl<'a, P: Bls12Config> From<&'a Projective<<P as Bls12Config>::G2Config>> for G2Prepared<P>
impl<'a, P: Bls12Config> From<&'a Projective<<P as Bls12Config>::G2Config>> for G2Prepared<P>
source§fn from(q: &'a G2Projective<P>) -> Self
fn from(q: &'a G2Projective<P>) -> Self
source§impl<'a, P: BnConfig> From<&'a Projective<<P as BnConfig>::G1Config>> for G1Prepared<P>
impl<'a, P: BnConfig> From<&'a Projective<<P as BnConfig>::G1Config>> for G1Prepared<P>
source§fn from(q: &'a G1Projective<P>) -> Self
fn from(q: &'a G1Projective<P>) -> Self
source§impl<'a, P: BnConfig> From<&'a Projective<<P as BnConfig>::G2Config>> for G2Prepared<P>
impl<'a, P: BnConfig> From<&'a Projective<<P as BnConfig>::G2Config>> for G2Prepared<P>
source§fn from(q: &'a G2Projective<P>) -> Self
fn from(q: &'a G2Projective<P>) -> Self
source§impl<'a, P: MNT4Config> From<&'a Projective<<P as MNT4Config>::G1Config>> for G1Prepared<P>
impl<'a, P: MNT4Config> From<&'a Projective<<P as MNT4Config>::G1Config>> for G1Prepared<P>
source§fn from(g1: &'a G1Projective<P>) -> Self
fn from(g1: &'a G1Projective<P>) -> Self
source§impl<'a, P: MNT4Config> From<&'a Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>
impl<'a, P: MNT4Config> From<&'a Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>
source§fn from(g2: &'a G2Projective<P>) -> Self
fn from(g2: &'a G2Projective<P>) -> Self
source§impl<'a, P: MNT6Config> From<&'a Projective<<P as MNT6Config>::G1Config>> for G1Prepared<P>
impl<'a, P: MNT6Config> From<&'a Projective<<P as MNT6Config>::G1Config>> for G1Prepared<P>
source§fn from(g1: &'a G1Projective<P>) -> Self
fn from(g1: &'a G1Projective<P>) -> Self
source§impl<'a, P: MNT6Config> From<&'a Projective<<P as MNT6Config>::G2Config>> for G2Prepared<P>
impl<'a, P: MNT6Config> From<&'a Projective<<P as MNT6Config>::G2Config>> for G2Prepared<P>
source§fn from(g2: &'a G2Projective<P>) -> Self
fn from(g2: &'a G2Projective<P>) -> Self
source§impl<P: SWCurveConfig> From<Affine<P>> for Projective<P>
impl<P: SWCurveConfig> From<Affine<P>> for Projective<P>
source§fn from(p: Affine<P>) -> Projective<P>
fn from(p: Affine<P>) -> Projective<P>
source§impl<P: BW6Config> From<Projective<<P as BW6Config>::G1Config>> for G1Prepared<P>
impl<P: BW6Config> From<Projective<<P as BW6Config>::G1Config>> for G1Prepared<P>
source§fn from(q: G1Projective<P>) -> Self
fn from(q: G1Projective<P>) -> Self
source§impl<P: BW6Config> From<Projective<<P as BW6Config>::G2Config>> for G2Prepared<P>
impl<P: BW6Config> From<Projective<<P as BW6Config>::G2Config>> for G2Prepared<P>
source§fn from(q: G2Projective<P>) -> Self
fn from(q: G2Projective<P>) -> Self
source§impl<P: Bls12Config> From<Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>
impl<P: Bls12Config> From<Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>
source§fn from(q: G1Projective<P>) -> Self
fn from(q: G1Projective<P>) -> Self
source§impl<P: Bls12Config> From<Projective<<P as Bls12Config>::G2Config>> for G2Prepared<P>
impl<P: Bls12Config> From<Projective<<P as Bls12Config>::G2Config>> for G2Prepared<P>
source§fn from(q: G2Projective<P>) -> Self
fn from(q: G2Projective<P>) -> Self
source§impl<P: BnConfig> From<Projective<<P as BnConfig>::G1Config>> for G1Prepared<P>
impl<P: BnConfig> From<Projective<<P as BnConfig>::G1Config>> for G1Prepared<P>
source§fn from(q: G1Projective<P>) -> Self
fn from(q: G1Projective<P>) -> Self
source§impl<P: BnConfig> From<Projective<<P as BnConfig>::G2Config>> for G2Prepared<P>
impl<P: BnConfig> From<Projective<<P as BnConfig>::G2Config>> for G2Prepared<P>
source§fn from(q: G2Projective<P>) -> Self
fn from(q: G2Projective<P>) -> Self
source§impl<P: MNT4Config> From<Projective<<P as MNT4Config>::G1Config>> for G1Prepared<P>
impl<P: MNT4Config> From<Projective<<P as MNT4Config>::G1Config>> for G1Prepared<P>
source§fn from(g1: G1Projective<P>) -> Self
fn from(g1: G1Projective<P>) -> Self
source§impl<P: MNT4Config> From<Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>
impl<P: MNT4Config> From<Projective<<P as MNT4Config>::G2Config>> for G2Prepared<P>
source§fn from(g2: G2Projective<P>) -> Self
fn from(g2: G2Projective<P>) -> Self
source§impl<P: MNT6Config> From<Projective<<P as MNT6Config>::G1Config>> for G1Prepared<P>
impl<P: MNT6Config> From<Projective<<P as MNT6Config>::G1Config>> for G1Prepared<P>
source§fn from(g1: G1Projective<P>) -> Self
fn from(g1: G1Projective<P>) -> Self
source§impl<P: MNT6Config> From<Projective<<P as MNT6Config>::G2Config>> for G2Prepared<P>
impl<P: MNT6Config> From<Projective<<P as MNT6Config>::G2Config>> for G2Prepared<P>
source§fn from(g2: G2Projective<P>) -> Self
fn from(g2: G2Projective<P>) -> Self
source§impl<P: SWCurveConfig> From<Projective<P>> for Affine<P>
impl<P: SWCurveConfig> From<Projective<P>> for Affine<P>
source§fn from(p: Projective<P>) -> Affine<P>
fn from(p: Projective<P>) -> Affine<P>
source§impl<P: SWCurveConfig> Group for Projective<P>
impl<P: SWCurveConfig> Group for Projective<P>
source§fn double_in_place(&mut self) -> &mut Self
fn double_in_place(&mut self) -> &mut Self
Sets self = 2 * self
. Note that Jacobian formulae are incomplete, and
so doubling cannot be computed as self + self
. Instead, this
implementation uses the following specialized doubling formulae:
§type ScalarField = <P as CurveConfig>::ScalarField
type ScalarField = <P as CurveConfig>::ScalarField
F_r
, where r
is the order of this group.source§fn mul_bigint(&self, other: impl AsRef<[u64]>) -> Self
fn mul_bigint(&self, other: impl AsRef<[u64]>) -> Self
source§fn mul_bits_be(&self, other: impl Iterator<Item = bool>) -> Self
fn mul_bits_be(&self, other: impl Iterator<Item = bool>) -> Self
other * self
, where other
is a big-endian
bit representation of some integer.source§impl<P: SWCurveConfig> Hash for Projective<P>
impl<P: SWCurveConfig> Hash for Projective<P>
source§impl<P: SWUConfig> MapToCurve<Projective<P>> for SWUMap<P>
impl<P: SWUConfig> MapToCurve<Projective<P>> for SWUMap<P>
source§fn new() -> Result<Self, HashToCurveError>
fn new() -> Result<Self, HashToCurveError>
Constructs a new map if P
represents a valid map.
source§fn map_to_curve(
&self,
point: P::BaseField
) -> Result<Affine<P>, HashToCurveError>
fn map_to_curve( &self, point: P::BaseField ) -> Result<Affine<P>, HashToCurveError>
Map an arbitrary base field element to a curve point. Based on https://github.com/zcash/pasta_curves/blob/main/src/hashtocurve.rs.
source§impl<P: WBConfig> MapToCurve<Projective<P>> for WBMap<P>
impl<P: WBConfig> MapToCurve<Projective<P>> for WBMap<P>
source§fn new() -> Result<Self, HashToCurveError>
fn new() -> Result<Self, HashToCurveError>
Constructs a new map if P
represents a valid map.
source§fn map_to_curve(
&self,
element: <Affine<P> as AffineRepr>::BaseField
) -> Result<Affine<P>, HashToCurveError>
fn map_to_curve( &self, element: <Affine<P> as AffineRepr>::BaseField ) -> Result<Affine<P>, HashToCurveError>
Map random field point to a random curve point inspired from https://github.com/zcash/pasta_curves/blob/main/src/hashtocurve.rs
source§impl<P: SWCurveConfig, T: Borrow<P::ScalarField>> Mul<T> for Projective<P>
impl<P: SWCurveConfig, T: Borrow<P::ScalarField>> Mul<T> for Projective<P>
source§impl<P: SWCurveConfig, T: Borrow<P::ScalarField>> MulAssign<T> for Projective<P>
impl<P: SWCurveConfig, T: Borrow<P::ScalarField>> MulAssign<T> for Projective<P>
source§fn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
*=
operation. Read moresource§impl<P: SWCurveConfig> Neg for Projective<P>
impl<P: SWCurveConfig> Neg for Projective<P>
source§impl<P: SWCurveConfig> PartialEq<Affine<P>> for Projective<P>
impl<P: SWCurveConfig> PartialEq<Affine<P>> for Projective<P>
source§impl<P: SWCurveConfig> PartialEq<Projective<P>> for Affine<P>
impl<P: SWCurveConfig> PartialEq<Projective<P>> for Affine<P>
source§fn eq(&self, other: &Projective<P>) -> bool
fn eq(&self, other: &Projective<P>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<P: SWCurveConfig> PartialEq<Projective<P>> for Projective<P>
impl<P: SWCurveConfig> PartialEq<Projective<P>> for Projective<P>
source§impl<P: SWCurveConfig> ScalarMul for Projective<P>
impl<P: SWCurveConfig> ScalarMul for Projective<P>
source§impl<'a, 'b, P: SWCurveConfig> Sub<&'a Projective<P>> for &'b Projective<P>
impl<'a, 'b, P: SWCurveConfig> Sub<&'a Projective<P>> for &'b Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
-
operator.source§fn sub(self, other: &'a Projective<P>) -> Projective<P>
fn sub(self, other: &'a Projective<P>) -> Projective<P>
-
operation. Read moresource§impl<'a, P: SWCurveConfig> Sub<&'a Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> Sub<&'a Projective<P>> for Projective<P>
source§impl<'a, 'b, P: SWCurveConfig> Sub<&'a mut Projective<P>> for &'b Projective<P>
impl<'a, 'b, P: SWCurveConfig> Sub<&'a mut Projective<P>> for &'b Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
-
operator.source§fn sub(self, other: &'a mut Projective<P>) -> Projective<P>
fn sub(self, other: &'a mut Projective<P>) -> Projective<P>
-
operation. Read moresource§impl<'a, P: SWCurveConfig> Sub<&'a mut Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> Sub<&'a mut Projective<P>> for Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
-
operator.source§fn sub(self, other: &'a mut Self) -> Self
fn sub(self, other: &'a mut Self) -> Self
-
operation. Read moresource§impl<'b, P: SWCurveConfig> Sub<Projective<P>> for &'b Projective<P>
impl<'b, P: SWCurveConfig> Sub<Projective<P>> for &'b Projective<P>
§type Output = Projective<P>
type Output = Projective<P>
-
operator.source§fn sub(self, other: Projective<P>) -> Projective<P>
fn sub(self, other: Projective<P>) -> Projective<P>
-
operation. Read moresource§impl<P: SWCurveConfig> Sub<Projective<P>> for Projective<P>
impl<P: SWCurveConfig> Sub<Projective<P>> for Projective<P>
source§impl<P: SWCurveConfig, T: Borrow<Affine<P>>> Sub<T> for Projective<P>
impl<P: SWCurveConfig, T: Borrow<Affine<P>>> Sub<T> for Projective<P>
source§impl<'a, P: SWCurveConfig> SubAssign<&'a Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> SubAssign<&'a Projective<P>> for Projective<P>
source§fn sub_assign(&mut self, other: &'a Self)
fn sub_assign(&mut self, other: &'a Self)
-=
operation. Read moresource§impl<'a, P: SWCurveConfig> SubAssign<&'a mut Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> SubAssign<&'a mut Projective<P>> for Projective<P>
source§fn sub_assign(&mut self, other: &'a mut Self)
fn sub_assign(&mut self, other: &'a mut Self)
-=
operation. Read moresource§impl<P: SWCurveConfig> SubAssign<Projective<P>> for Projective<P>
impl<P: SWCurveConfig> SubAssign<Projective<P>> for Projective<P>
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresource§impl<P: SWCurveConfig, T: Borrow<Affine<P>>> SubAssign<T> for Projective<P>
impl<P: SWCurveConfig, T: Borrow<Affine<P>>> SubAssign<T> for Projective<P>
source§fn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
-=
operation. Read moresource§impl<'a, P: SWCurveConfig> Sum<&'a Projective<P>> for Projective<P>
impl<'a, P: SWCurveConfig> Sum<&'a Projective<P>> for Projective<P>
source§impl<P: SWCurveConfig> Sum<Projective<P>> for Projective<P>
impl<P: SWCurveConfig> Sum<Projective<P>> for Projective<P>
source§impl<P: SWCurveConfig, T: Borrow<Affine<P>>> Sum<T> for Projective<P>
impl<P: SWCurveConfig, T: Borrow<Affine<P>>> Sum<T> for Projective<P>
source§impl<M: SWCurveConfig, ConstraintF: Field> ToConstraintField<ConstraintF> for Projective<M>where
M::BaseField: ToConstraintField<ConstraintF>,
impl<M: SWCurveConfig, ConstraintF: Field> ToConstraintField<ConstraintF> for Projective<M>where M::BaseField: ToConstraintField<ConstraintF>,
fn to_field_elements(&self) -> Option<Vec<ConstraintF>>
source§impl<P: SWCurveConfig> Valid for Projective<P>
impl<P: SWCurveConfig> Valid for Projective<P>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>where Self: 'a,
source§impl<P: SWCurveConfig> VariableBaseMSM for Projective<P>
impl<P: SWCurveConfig> VariableBaseMSM for Projective<P>
source§fn msm(
bases: &[Self::MulBase],
bigints: &[Self::ScalarField]
) -> Result<Self, usize>
fn msm( bases: &[Self::MulBase], bigints: &[Self::ScalarField] ) -> Result<Self, usize>
bases.len() == scalars.len()
. Read moresource§fn msm_unchecked(bases: &[Self::MulBase], scalars: &[Self::ScalarField]) -> Self
fn msm_unchecked(bases: &[Self::MulBase], scalars: &[Self::ScalarField]) -> Self
PrimeField
elements in scalars
and the corresponding group elements in bases
. Read more