pub struct RecipientKey(pub PublicKey);
Expand description

The public key of a recipient.

Tuple Fields

0: PublicKey

Implementations

Create a RecipientKey from a byte slice. It must contain 32 bytes.

Create a RecipientKey from a hex encoded string slice.

Return a reference to the contained key bytes.

Trait Implementations

Create a RecipientKey from a byte array

Create a RecipientKey from a PublicKey instance.

Encode the key bytes as lowercase hex string.

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.

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.