pub struct CurveParams {
pub a: Vec<u8>,
pub b: Vec<u8>,
pub p: Vec<u8>,
pub order: Vec<u8>,
pub cofactor: Vec<u8>,
pub generator: Point,
}
Expand description
Elliptic curve parameters in short Weierstrass form: y^2 = x^3 + ax + b
Fields§
§a: Vec<u8>
The ‘a’ coefficient
b: Vec<u8>
The ‘b’ coefficient
p: Vec<u8>
The prime field modulus
order: Vec<u8>
The order of the curve (number of points)
cofactor: Vec<u8>
The cofactor
generator: Point
Generator point
Trait Implementations§
Source§impl Clone for CurveParams
impl Clone for CurveParams
Source§fn clone(&self) -> CurveParams
fn clone(&self) -> CurveParams
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 moreAuto Trait Implementations§
impl Freeze for CurveParams
impl RefUnwindSafe for CurveParams
impl Send for CurveParams
impl Sync for CurveParams
impl Unpin for CurveParams
impl UnwindSafe for CurveParams
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