pub struct PreKeyBundle {
pub ik: [u8; 32],
pub sik: [u8; 32],
pub spk: [u8; 32],
pub sig: Vec<u8>,
pub opk: [u8; 32],
}Expand description
A responder-published prekey bundle, decoded from the wire’s base64 JSON blob that init
carries as bundle. Field names match the wire exactly.
Fields§
§ik: [u8; 32]The sender’s identity agreement key.
sik: [u8; 32]The sender’s identity signing key.
spk: [u8; 32]A freshly generated signed-prekey.
sig: Vec<u8>Ed25519(ik ‖ spk ‖ opk), signed with sik.
opk: [u8; 32]A freshly generated one-time prekey.
Trait Implementations§
Source§impl Clone for PreKeyBundle
impl Clone for PreKeyBundle
Source§fn clone(&self) -> PreKeyBundle
fn clone(&self) -> PreKeyBundle
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 PreKeyBundle
impl Debug for PreKeyBundle
Source§impl<'de> Deserialize<'de> for PreKeyBundle
impl<'de> Deserialize<'de> for PreKeyBundle
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 PreKeyBundle
Source§impl PartialEq for PreKeyBundle
impl PartialEq for PreKeyBundle
Source§fn eq(&self, other: &PreKeyBundle) -> bool
fn eq(&self, other: &PreKeyBundle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PreKeyBundle
impl Serialize for PreKeyBundle
impl StructuralPartialEq for PreKeyBundle
Auto Trait Implementations§
impl Freeze for PreKeyBundle
impl RefUnwindSafe for PreKeyBundle
impl Send for PreKeyBundle
impl Sync for PreKeyBundle
impl Unpin for PreKeyBundle
impl UnsafeUnpin for PreKeyBundle
impl UnwindSafe for PreKeyBundle
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