pub struct EdwardsConfig;Trait Implementations§
Source§impl Clone for EdwardsConfig
impl Clone for EdwardsConfig
Source§fn clone(&self) -> EdwardsConfig
fn clone(&self) -> EdwardsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CurveConfig for EdwardsConfig
impl CurveConfig for EdwardsConfig
Source§const COFACTOR_INV: Fr
const COFACTOR_INV: Fr
COFACTOR_INV (mod r) = 2713877091499598330239944961141122840321418634767465352250731601857045344121
Source§type ScalarField = Fp<MontBackend<FrConfig, 4>, 4>
type ScalarField = Fp<MontBackend<FrConfig, 4>, 4>
Finite prime field corresponding to an appropriate prime-order subgroup
of the curve group.
fn cofactor_is_one() -> bool
Source§impl Default for EdwardsConfig
impl Default for EdwardsConfig
Source§fn default() -> EdwardsConfig
fn default() -> EdwardsConfig
Returns the “default value” for a type. Read more
Source§impl MontCurveConfig for EdwardsConfig
impl MontCurveConfig for EdwardsConfig
Source§const COEFF_B: Fq
const COEFF_B: Fq
COEFF_B = 57896044618658097711785492504343953926634992332820282019728792003956564333285 This is not one, because ed25519 != curve25519
Source§type TECurveConfig = EdwardsConfig
type TECurveConfig = EdwardsConfig
Model parameters for the Twisted Edwards curve that is birationally
equivalent to this curve.
Source§impl PartialEq for EdwardsConfig
impl PartialEq for EdwardsConfig
Source§impl TECurveConfig for EdwardsConfig
impl TECurveConfig for EdwardsConfig
Source§const GENERATOR: EdwardsAffine
const GENERATOR: EdwardsAffine
Standard generators from https://neuromancer.sk/std/other/Ed25519.
Source§type MontCurveConfig = EdwardsConfig
type MontCurveConfig = EdwardsConfig
Model parameters for the Montgomery curve that is birationally
equivalent to this curve.
Source§fn is_in_correct_subgroup_assuming_on_curve(item: &Affine<Self>) -> bool
fn is_in_correct_subgroup_assuming_on_curve(item: &Affine<Self>) -> bool
Checks that the current point is in the prime order subgroup given
the point on the curve.
Source§fn clear_cofactor(item: &Affine<Self>) -> Affine<Self>
fn clear_cofactor(item: &Affine<Self>) -> Affine<Self>
Performs cofactor clearing.
The default method is simply to multiply by the cofactor.
For some curve families though, it is sufficient to multiply
by a smaller scalar.
Source§fn mul_projective(base: &Projective<Self>, scalar: &[u64]) -> Projective<Self>
fn mul_projective(base: &Projective<Self>, scalar: &[u64]) -> Projective<Self>
Default implementation of group multiplication for projective
coordinates
Source§fn mul_affine(base: &Affine<Self>, scalar: &[u64]) -> Projective<Self>
fn mul_affine(base: &Affine<Self>, scalar: &[u64]) -> Projective<Self>
Default implementation of group multiplication for affine
coordinates
Source§fn msm(
bases: &[Affine<Self>],
scalars: &[Self::ScalarField],
) -> Result<Projective<Self>, usize>
fn msm( bases: &[Affine<Self>], scalars: &[Self::ScalarField], ) -> Result<Projective<Self>, usize>
Default implementation for multi scalar multiplication
Source§fn serialize_with_mode<W>(
item: &Affine<Self>,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>where
W: Write,
fn serialize_with_mode<W>(
item: &Affine<Self>,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>where
W: Write,
If uncompressed, serializes both x and y coordinates.
If compressed, serializes y coordinate with a bit to encode whether x is positive.
Source§fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Affine<Self>, SerializationError>where
R: Read,
fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Affine<Self>, SerializationError>where
R: Read,
fn serialized_size(compress: Compress) -> usize
impl Eq for EdwardsConfig
impl StructuralPartialEq for EdwardsConfig
Auto Trait Implementations§
impl Freeze for EdwardsConfig
impl RefUnwindSafe for EdwardsConfig
impl Send for EdwardsConfig
impl Sync for EdwardsConfig
impl Unpin for EdwardsConfig
impl UnwindSafe for EdwardsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more