pub struct IdentityPublic {
pub agreement: [u8; 32],
pub signing: [u8; 32],
}Expand description
The public half of an Identity: an X25519 agreement key (ik) and an Ed25519 signing
key (sik), exactly as they travel inside PreKeyBundle and HandshakeResponse.
Fields§
§agreement: [u8; 32]The X25519 identity agreement key, ik.
signing: [u8; 32]The Ed25519 signing key, sik. Every signature in this protocol verifies against this
key, and Fingerprint is derived from it, never from agreement.
Trait Implementations§
Source§impl Clone for IdentityPublic
impl Clone for IdentityPublic
Source§fn clone(&self) -> IdentityPublic
fn clone(&self) -> IdentityPublic
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 IdentityPublic
Source§impl Debug for IdentityPublic
impl Debug for IdentityPublic
Source§impl<'de> Deserialize<'de> for IdentityPublic
impl<'de> Deserialize<'de> for IdentityPublic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IdentityPublic
Source§impl PartialEq for IdentityPublic
impl PartialEq for IdentityPublic
Source§fn eq(&self, other: &IdentityPublic) -> bool
fn eq(&self, other: &IdentityPublic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IdentityPublic
impl Serialize for IdentityPublic
impl StructuralPartialEq for IdentityPublic
Auto Trait Implementations§
impl Freeze for IdentityPublic
impl RefUnwindSafe for IdentityPublic
impl Send for IdentityPublic
impl Sync for IdentityPublic
impl Unpin for IdentityPublic
impl UnsafeUnpin for IdentityPublic
impl UnwindSafe for IdentityPublic
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