pub trait CurveGroup:
PrimeGroup<Output = Self, Output = Self>
+ Add<Self::Affine>
+ AddAssign<Self::Affine>
+ Sub<Self::Affine>
+ SubAssign<Self::Affine>
+ VariableBaseMSM<MulBase = Self::Affine>
+ ScalarMul
+ From<Self::Affine>
+ Into<Self::Affine>
+ Sum<Self::Affine>
+ for<'a> Sum<&'a Self::Affine> {
type Config: CurveConfig<ScalarField = Self::ScalarField, BaseField = Self::BaseField>;
type BaseField: Field;
type Affine: AffineRepr<Config = Self::Config, Group = Self, ScalarField = Self::ScalarField, BaseField = Self::BaseField> + From<Self> + Into<Self>;
type FullGroup;
// Required method
fn normalize_batch(v: &[Self]) -> Vec<Self::Affine>;
// Provided method
fn into_affine(self) -> Self::Affine { ... }
}
Expand description
An opaque representation of an elliptic curve group element that is suitable for efficient group arithmetic.
The point is guaranteed to be in the correct prime order subgroup.
Required Associated Types§
type Config: CurveConfig<ScalarField = Self::ScalarField, BaseField = Self::BaseField>
Sourcetype Affine: AffineRepr<Config = Self::Config, Group = Self, ScalarField = Self::ScalarField, BaseField = Self::BaseField> + From<Self> + Into<Self>
type Affine: AffineRepr<Config = Self::Config, Group = Self, ScalarField = Self::ScalarField, BaseField = Self::BaseField> + From<Self> + Into<Self>
The affine representation of this element.
Required Methods§
Sourcefn normalize_batch(v: &[Self]) -> Vec<Self::Affine>
fn normalize_batch(v: &[Self]) -> Vec<Self::Affine>
Normalizes a slice of group elements into affine.
Provided Methods§
Sourcefn into_affine(self) -> Self::Affine
fn into_affine(self) -> Self::Affine
Converts self
into the affine representation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.