Struct secp256k1::key::SecretKey [−][src]
pub struct SecretKey(_);
Expand description
Secret 256-bit key used as x
in an ECDSA signature
Implementations
Converts the object to a mutable raw pointer for FFI interfacing
Creates a new random secret key. Requires compilation with the “rand” feature.
Converts a SECRET_KEY_SIZE
-byte slice to a secret key
Negates one secret key.
Adds one secret key to another, modulo the curve order. WIll return an error if the resulting key would be invalid or if the tweak was not a 32-byte length slice.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
Mutably borrows from an owned value. Read more