Struct threema_gateway::RecipientKey
[−]
[src]
pub struct RecipientKey(pub PublicKey);
The public key of a recipient.
Methods
impl RecipientKey
[src]
fn from_bytes(val: &[u8]) -> Result<Self, CryptoError>
Create a RecipientKey
from a byte slice. It must contain 32 bytes.
fn from_str(val: &str) -> Result<Self, CryptoError>
Create a RecipientKey
from a hex encoded string slice.
fn as_bytes(&self) -> &[u8]
Return a reference to the contained key bytes.