pub struct ContactPublicKey { /* private fields */ }Expand description
Public hybrid X25519 + ML-KEM-768 contact key.
This key can be shared with a lockbox creator. It can wrap a lockbox content
key for the holder of the matching ContactKeyPair, but it cannot open a
lockbox by itself.
Implementations§
Source§impl ContactPublicKey
impl ContactPublicKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<ContactPublicKey, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<ContactPublicKey, Error>
Decode a public contact key from its versioned Lockbox byte representation.
Returns Error::InvalidKeyMaterial if the bytes do not encode a
supported hybrid contact public key.
Trait Implementations§
Source§impl Clone for ContactPublicKey
impl Clone for ContactPublicKey
Source§fn clone(&self) -> ContactPublicKey
fn clone(&self) -> ContactPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContactPublicKey
impl Debug for ContactPublicKey
impl Eq for ContactPublicKey
Source§impl PartialEq for ContactPublicKey
impl PartialEq for ContactPublicKey
impl StructuralPartialEq for ContactPublicKey
Auto Trait Implementations§
impl Freeze for ContactPublicKey
impl RefUnwindSafe for ContactPublicKey
impl Send for ContactPublicKey
impl Sync for ContactPublicKey
impl Unpin for ContactPublicKey
impl UnsafeUnpin for ContactPublicKey
impl UnwindSafe for ContactPublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more