Struct bitcoin::util::ecdsa::PrivateKey [−][src]
Expand description
A Bitcoin ECDSA private key
Fields
compressed: bool
Whether this private key should be serialized as compressed
network: Network
The network on which this key should be used
key: SecretKey
The actual ECDSA key
Implementations
Constructs compressed ECDSA private key from the provided generic Secp256k1 private key and the specified network
Constructs uncompressed (legacy) ECDSA private key from the provided generic Secp256k1 private key and the specified network
Creates a public key from this private key
Serialize the private key to bytes
Deserialize a private key from a slice
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations
Mutably borrows from an owned value. Read more