pub struct SecretKey(_);
Expand description

Ed25519 Secret Key

Mind it though, losing this key means losing control over your identity

Implementations

the size of the Secret key in bytes

generate a new SecretKey with the given random number generator

generate a shared secret between the owner of the given public key and ourselves.

get the PublicKey associated to this key

Unlike the SecretKey, the PublicKey can be safely publicly shared. The key can then be used to verify any Signature generated with this SecretKey and the original message.

create a Signature for the given message with this SecretKey.

The Signature can then be verified against the associated PublicKey and the original message.

get a reference to the inner Seed bytes

Security Consideration

be mindful that leaking the content of the internal signing key may result in losing the ultimate control of the signing key

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

conveniently provide an incomplete implementation of Debug for the SecretKey.

Formats the value using the given formatter. Read more

custom implementation of Drop so we can have more certainty that the secret key raw data will be scrubbed (zeroed) before releasing the memory

Executes the destructor for this type. Read more

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.