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