Struct lambdaworks_math::elliptic_curve::edwards::curves::bandersnatch::curve::BandersnatchCurve
source · pub struct BandersnatchCurve;
Trait Implementations§
source§impl Clone for BandersnatchCurve
impl Clone for BandersnatchCurve
source§fn clone(&self) -> BandersnatchCurve
fn clone(&self) -> BandersnatchCurve
Returns a copy 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 Debug for BandersnatchCurve
impl Debug for BandersnatchCurve
source§impl IsEdwards for BandersnatchCurve
impl IsEdwards for BandersnatchCurve
fn a() -> FieldElement<Self::BaseField>
fn d() -> FieldElement<Self::BaseField>
fn defining_equation( x: &FieldElement<Self::BaseField>, y: &FieldElement<Self::BaseField>, ) -> FieldElement<Self::BaseField>
source§impl IsEllipticCurve for BandersnatchCurve
impl IsEllipticCurve for BandersnatchCurve
source§type BaseField = MontgomeryBackendPrimeField<FqConfig, 4>
type BaseField = MontgomeryBackendPrimeField<FqConfig, 4>
BaseField is the field used for each of the coordinates of a point p
belonging to the curve.
source§type PointRepresentation = EdwardsProjectivePoint<BandersnatchCurve>
type PointRepresentation = EdwardsProjectivePoint<BandersnatchCurve>
The representation of the point. For example it can be projective
coordinates, affine coordinates, XYZZ, depending on the curve and its
possible optimizations.
source§fn generator() -> Self::PointRepresentation
fn generator() -> Self::PointRepresentation
Returns the generator of the main subgroup.
source§fn create_point_from_affine(
x: FieldElement<Self::BaseField>,
y: FieldElement<Self::BaseField>,
) -> Result<Self::PointRepresentation, EllipticCurveError>
fn create_point_from_affine( x: FieldElement<Self::BaseField>, y: FieldElement<Self::BaseField>, ) -> Result<Self::PointRepresentation, EllipticCurveError>
Returns an affine point.
Auto Trait Implementations§
impl Freeze for BandersnatchCurve
impl RefUnwindSafe for BandersnatchCurve
impl Send for BandersnatchCurve
impl Sync for BandersnatchCurve
impl Unpin for BandersnatchCurve
impl UnwindSafe for BandersnatchCurve
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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