pub struct HandshakeResponse {
pub ik: [u8; 32],
pub sik: [u8; 32],
pub ek: [u8; 32],
pub sig: Vec<u8>,
pub boot: RatchetMessage,
}Expand description
The responder’s answer, decoded from the wire’s base64 JSON blob that accept carries as
response.
Fields§
§ik: [u8; 32]The responder’s identity agreement key.
sik: [u8; 32]The responder’s identity signing key.
ek: [u8; 32]A freshly generated ephemeral key, doubling as the responder’s first ratchet keypair.
sig: Vec<u8>Ed25519(ik ‖ ek), signed with sik.
boot: RatchetMessageThe first ratchet message, carrying empty plaintext, proving the responder derived the same X3DH secret the initiator will.
Trait Implementations§
Source§impl Clone for HandshakeResponse
impl Clone for HandshakeResponse
Source§fn clone(&self) -> HandshakeResponse
fn clone(&self) -> HandshakeResponse
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 HandshakeResponse
impl Debug for HandshakeResponse
Source§impl<'de> Deserialize<'de> for HandshakeResponse
impl<'de> Deserialize<'de> for HandshakeResponse
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 HandshakeResponse
Source§impl PartialEq for HandshakeResponse
impl PartialEq for HandshakeResponse
Source§fn eq(&self, other: &HandshakeResponse) -> bool
fn eq(&self, other: &HandshakeResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HandshakeResponse
impl Serialize for HandshakeResponse
impl StructuralPartialEq for HandshakeResponse
Auto Trait Implementations§
impl Freeze for HandshakeResponse
impl RefUnwindSafe for HandshakeResponse
impl Send for HandshakeResponse
impl Sync for HandshakeResponse
impl Unpin for HandshakeResponse
impl UnsafeUnpin for HandshakeResponse
impl UnwindSafe for HandshakeResponse
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