Struct flow_sdk::algorithms::secp256k1::key::SecretKey [−][src]
pub struct SecretKey(_);
Expand description
Secret 256-bit key used as x
in an ECDSA signature
Implementations
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.
Converts the object to a mutable raw pointer for FFI interfacing
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
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
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