pub struct Signature;
Expand description

structure contains serveral methods to handle signing of chunked data.

Implementations

generates a new, random keypair.

returns a keypair, parsed from the input data (formatted as base64).
Input data can be a secret key (32 bytes) or a secret/public keypair (64 bytes).

sign the data with the given keypair bytes.

verify the data with the given public key bytes.

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

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.