[][src]Struct k256::ecdsa::SigningKey

pub struct SigningKey { /* fields omitted */ }
This is supported on crate features ecdsa-core and ecdsa only.

ECDSA/secp256k1 signing key

Implementations

impl SigningKey[src]

pub fn random(rng: impl CryptoRng + RngCore) -> Self[src]

Generate a cryptographically random SigningKey.

pub fn new(bytes: &[u8]) -> Result<Self, Error>[src]

Initialize SigningKey from a raw scalar value (big endian).

pub fn verify_key(&self) -> VerifyKey[src]

Get the VerifyKey which corresponds to this SigningKey

pub fn to_bytes(&self) -> FieldBytes[src]

Serialize this SigningKey as bytes

Trait Implementations

impl<D> DigestSigner<D, Signature<Secp256k1>> for SigningKey where
    D: BlockInput + FixedOutput<OutputSize = U32> + Clone + Default + Reset + Update, 
[src]

impl<D> DigestSigner<D, Signature> for SigningKey where
    D: BlockInput + FixedOutput<OutputSize = U32> + Clone + Default + Reset + Update, 
[src]

impl<'_> From<&'_ SecretKey<Secp256k1>> for SigningKey[src]

impl<'_> From<&'_ SigningKey> for SecretKey[src]

impl<'_> From<&'_ SigningKey> for VerifyKey[src]

impl From<NonZeroScalar<Secp256k1>> for SigningKey[src]

impl<D> RandomizedDigestSigner<D, Signature<Secp256k1>> for SigningKey where
    D: BlockInput + FixedOutput<OutputSize = U32> + Clone + Default + Reset + Update, 
[src]

impl<D> RandomizedDigestSigner<D, Signature> for SigningKey where
    D: BlockInput + FixedOutput<OutputSize = U32> + Clone + Default + Reset + Update, 
[src]

impl<S> RandomizedSigner<S> for SigningKey where
    S: PrehashSignature,
    Self: RandomizedDigestSigner<S::Digest, S>, 
[src]

impl<S> Signer<S> for SigningKey where
    S: PrehashSignature,
    Self: DigestSigner<S::Digest, S>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.