pub struct Keypair {
pub secret_scalar: Scalar,
pub public_key: AffinePoint,
}Expand description
A P-256 keypair.
Fields§
§secret_scalar: ScalarSecret scalar.
public_key: AffinePointPublic key (affine point).
Implementations§
Source§impl Keypair
impl Keypair
Sourcepub fn to_signing_key(&self) -> SigningKey
pub fn to_signing_key(&self) -> SigningKey
Convert to p256::ecdsa::SigningKey.
Sourcepub fn to_verifying_key(&self) -> VerifyingKey
pub fn to_verifying_key(&self) -> VerifyingKey
Convert to p256::ecdsa::VerifyingKey.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keypair
impl RefUnwindSafe for Keypair
impl Send for Keypair
impl Sync for Keypair
impl Unpin for Keypair
impl UnsafeUnpin for Keypair
impl UnwindSafe for Keypair
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