Struct xxxdh::KeyPair[][src]

pub struct KeyPair<S, P> where
    S: SecretKey,
    P: PublicKey
{ /* fields omitted */ }

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Deserialize a IdentityKeyPair from bytes.

Inputs
  • bytes: an &[u8] consisting of byte representations of first a SecretKey and then the corresponding PublicKey.
Returns

A Result whose okay value is a Keypair or whose error value is an KeypairError describing the error that occurred.

X3DH Keypair.

Generate a KeyPair;

Get a PublicKey of KeyPair.

Sign a message.

Convert a key into a vec of bytes.

Verify a signature

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler. Read more

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.

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.