pub struct StarkCurve;
Expand description
Stark curve
Trait Implementations§
Source§impl Clone for StarkCurve
impl Clone for StarkCurve
Source§fn clone(&self) -> StarkCurve
fn clone(&self) -> StarkCurve
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 Curve for StarkCurve
impl Curve for StarkCurve
Source§impl CurveArithmetic for StarkCurve
impl CurveArithmetic for StarkCurve
Source§type AffinePoint = AffinePoint<StarkCurve>
type AffinePoint = AffinePoint<StarkCurve>
Elliptic curve point in affine coordinates.
Source§type ProjectivePoint = ProjectivePoint<StarkCurve>
type ProjectivePoint = ProjectivePoint<StarkCurve>
Elliptic curve point in projective coordinates. Read more
Source§impl Debug for StarkCurve
impl Debug for StarkCurve
Source§impl Default for StarkCurve
impl Default for StarkCurve
Source§fn default() -> StarkCurve
fn default() -> StarkCurve
Returns the “default value” for a type. Read more
Source§impl FieldBytesEncoding<StarkCurve> for U256
impl FieldBytesEncoding<StarkCurve> for U256
Source§fn decode_field_bytes(
field_bytes: &GenericArray<u8, <C as Curve>::FieldBytesSize>,
) -> Self
fn decode_field_bytes( field_bytes: &GenericArray<u8, <C as Curve>::FieldBytesSize>, ) -> Self
Decode unsigned integer from serialized field element. Read more
Source§fn encode_field_bytes(&self) -> GenericArray<u8, <C as Curve>::FieldBytesSize>
fn encode_field_bytes(&self) -> GenericArray<u8, <C as Curve>::FieldBytesSize>
Encode unsigned integer into serialized field element. Read more
Source§impl Ord for StarkCurve
impl Ord for StarkCurve
Source§fn cmp(&self, other: &StarkCurve) -> Ordering
fn cmp(&self, other: &StarkCurve) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StarkCurve
impl PartialEq for StarkCurve
Source§impl PartialOrd for StarkCurve
impl PartialOrd for StarkCurve
Source§impl PrimeCurveParams for StarkCurve
impl PrimeCurveParams for StarkCurve
Source§const EQUATION_A: Self::FieldElement = constants::EQUATION_A
const EQUATION_A: Self::FieldElement = constants::EQUATION_A
Coefficient
a
in the curve equation.Source§const EQUATION_B: Self::FieldElement = constants::EQUATION_B
const EQUATION_B: Self::FieldElement = constants::EQUATION_B
Coefficient
b
in the curve equation.Source§const GENERATOR: (Self::FieldElement, Self::FieldElement) = constants::GENERATOR
const GENERATOR: (Self::FieldElement, Self::FieldElement) = constants::GENERATOR
Generator point’s affine coordinates: (x, y).
Source§type FieldElement = W<FieldElementCore>
type FieldElement = W<FieldElementCore>
Base field element type.
Source§type PointArithmetic = EquationAIsGeneric
type PointArithmetic = EquationAIsGeneric
Point arithmetic implementation, might be optimized for this specific curve
impl Copy for StarkCurve
impl Eq for StarkCurve
impl PrimeCurve for StarkCurve
impl StructuralPartialEq for StarkCurve
Auto Trait Implementations§
impl Freeze for StarkCurve
impl RefUnwindSafe for StarkCurve
impl Send for StarkCurve
impl Sync for StarkCurve
impl Unpin for StarkCurve
impl UnwindSafe for StarkCurve
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<C> ValidatePublicKey for Cwhere
C: CurveArithmetic,
<C as CurveArithmetic>::AffinePoint: FromEncodedPoint<C> + ToEncodedPoint<C>,
<C as Curve>::FieldBytesSize: ModulusSize,
impl<C> ValidatePublicKey for Cwhere
C: CurveArithmetic,
<C as CurveArithmetic>::AffinePoint: FromEncodedPoint<C> + ToEncodedPoint<C>,
<C as Curve>::FieldBytesSize: ModulusSize,
Source§fn validate_public_key(
secret_key: &SecretKey<C>,
public_key: &EncodedPoint<<C as Curve>::FieldBytesSize>,
) -> Result<(), Error>
fn validate_public_key( secret_key: &SecretKey<C>, public_key: &EncodedPoint<<C as Curve>::FieldBytesSize>, ) -> Result<(), Error>
Validate that the given
EncodedPoint
is a valid public key for the
provided secret value.