Struct ethers::core::k256::ecdsa::SigningKey [−][src]
pub struct SigningKey { /* fields omitted */ }
Expand description
ECDSA/secp256k1 signing key
Implementations
Generate a cryptographically random SigningKey
.
Initialize SigningKey
from a raw scalar value (big endian).
Get the VerifyingKey
which corresponds to this SigningKey
.
👎 Deprecated since 0.9.3: use verifying_key()
instead
use verifying_key()
instead
Legacy alias for SigningKey::verifying_key
.
pub fn to_bytes(
&self
) -> GenericArray<u8, <<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>
pub fn to_bytes(
&self
) -> GenericArray<u8, <<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>
Serialize this SigningKey
as bytes
Trait Implementations
Determine if two items are equal. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
pub fn from_pkcs8_private_key_info(
private_key_info: PrivateKeyInfo<'_>
) -> Result<SigningKey, Error>
pub fn from_pkcs8_private_key_info(
private_key_info: PrivateKeyInfo<'_>
) -> Result<SigningKey, Error>
Parse the PrivateKeyInfo
from a PKCS#8-encoded document.
impl<S> RandomizedSigner<S> for SigningKey where
S: PrehashSignature,
SigningKey: RandomizedDigestSigner<<S as PrehashSignature>::Digest, S>,
impl<S> RandomizedSigner<S> for SigningKey where
S: PrehashSignature,
SigningKey: RandomizedDigestSigner<<S as PrehashSignature>::Digest, S>,
Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more
impl<S> Signer<S> for SigningKey where
S: PrehashSignature,
SigningKey: DigestSigner<<S as PrehashSignature>::Digest, S>,
impl<S> Signer<S> for SigningKey where
S: PrehashSignature,
SigningKey: DigestSigner<<S as PrehashSignature>::Digest, S>,
Auto Trait Implementations
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnwindSafe for SigningKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more