pub struct IdentityEncryptionPublicKey(/* private fields */);Expand description
X25519 public keys are used outside of identity work as well. This newtype is used as a brand to avoid accidental crossing.
Implementations§
Source§impl IdentityEncryptionPublicKey
impl IdentityEncryptionPublicKey
pub const fn new(key: X25519PublicKey) -> IdentityEncryptionPublicKey
pub const fn as_x25519(&self) -> &X25519PublicKey
pub const fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl Clone for IdentityEncryptionPublicKey
impl Clone for IdentityEncryptionPublicKey
Source§fn clone(&self) -> IdentityEncryptionPublicKey
fn clone(&self) -> IdentityEncryptionPublicKey
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 moreimpl Copy for IdentityEncryptionPublicKey
Source§impl Debug for IdentityEncryptionPublicKey
impl Debug for IdentityEncryptionPublicKey
impl Eq for IdentityEncryptionPublicKey
impl StructuralPartialEq for IdentityEncryptionPublicKey
Auto Trait Implementations§
impl Freeze for IdentityEncryptionPublicKey
impl RefUnwindSafe for IdentityEncryptionPublicKey
impl Send for IdentityEncryptionPublicKey
impl Sync for IdentityEncryptionPublicKey
impl Unpin for IdentityEncryptionPublicKey
impl UnsafeUnpin for IdentityEncryptionPublicKey
impl UnwindSafe for IdentityEncryptionPublicKey
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