Struct threema_gateway::RecipientKey [] [src]

pub struct RecipientKey(pub PublicKey);

The public key of a recipient.

Methods

impl RecipientKey
[src]

[src]

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

[src]

Create a RecipientKey from a hex encoded string slice.

[src]

Return a reference to the contained key bytes.

Trait Implementations

impl From<PublicKey> for RecipientKey
[src]

[src]

Create a RecipientKey from a PublicKey instance.

impl From<[u8; 32]> for RecipientKey
[src]

[src]

Create a RecipientKey from a byte array

impl Into<String> for RecipientKey
[src]

[src]

Encode the key bytes as lowercase hex string.

Auto Trait Implementations

impl Send for RecipientKey

impl Sync for RecipientKey