logo
pub struct SigningKey { /* private fields */ }
Available on crate feature schnorr only.
Expand description

Taproot Schnorr signing key.

Implementations

Generate a cryptographically random SigningKey.

Parse signing key from big endian-encoded bytes.

Serialize as bytes.

Get the VerifyingKey that corresponds to this signing key.

Compute Schnorr signature.

⚠️ Warning

This is a low-level interface intended only for unusual use cases involving signing pre-hashed messages.

The preferred interfaces are the Signer or RandomizedSigner traits.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Attempt to sign the given prehashed message Digest, returning a digital signature on success, or an error if something went wrong. Read more

Sign the given prehashed message Digest, returning a signature. Read more

Attempt to sign the given prehashed message Digest, returning a digital signature on success, or an error if something went wrong. Read more

Sign the given prehashed message Digest, returning a signature. Read more

Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more

Sign the given message and return a digital signature

Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more

Sign the given message and return a digital signature

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Attempt to sign the given message, updating the state, and returning a digital signature on success, or an error if something went wrong. Read more

Sign the given message, update the state, and return a digital signature

The resulting type after obtaining ownership.

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

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.