Struct coins_bip32::ecdsa::SigningKey[][src]

pub struct SigningKey { /* fields omitted */ }

ECDSA/secp256k1 signing key

Implementations

impl SigningKey[src]

Re-exported signer traits

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

Generate a cryptographically random SigningKey.

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

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

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

Get the VerifyingKey which corresponds to this SigningKey

pub fn to_bytes(&self) -> GenericArray<u8, <Secp256k1 as Curve>::FieldSize>[src]

Serialize this SigningKey as bytes

Trait Implementations

impl AsRef<SigningKey> for XPriv[src]

impl AsRef<SigningKey> for DerivedXPriv[src]

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

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

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

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

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

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

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

impl From<SigningKey> for VerifyingKey[src]

impl FromPrivateKey for SigningKey[src]

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

impl<D> RandomizedDigestSigner<D, Signature> for SigningKey where
    D: BlockInput + FixedOutput<OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> + Clone + Default + Reset + Update
[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.