pub enum EcPrivateKey {
NistP256(NonZeroScalar),
}Expand description
An elliptic curve private key.
Variants§
NistP256(NonZeroScalar)
Implementations§
Source§impl EcPrivateKey
impl EcPrivateKey
pub fn public_key(&self) -> EcPublicKey
pub fn d_bytes(&self) -> Vec<u8> ⓘ
Source§impl EcPrivateKey
impl EcPrivateKey
Sourcepub fn new(
curve: EllipticCurveType,
d: &[u8],
) -> Result<EcPrivateKey, TinkError>
pub fn new( curve: EllipticCurveType, d: &[u8], ) -> Result<EcPrivateKey, TinkError>
Convert a stored private key to an EcPrivateKey.
Trait Implementations§
Source§impl Clone for EcPrivateKey
impl Clone for EcPrivateKey
Source§fn clone(&self) -> EcPrivateKey
fn clone(&self) -> EcPrivateKey
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 EcPrivateKey
impl RefUnwindSafe for EcPrivateKey
impl Send for EcPrivateKey
impl Sync for EcPrivateKey
impl Unpin for EcPrivateKey
impl UnwindSafe for EcPrivateKey
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