pub struct X3dhCiphertext {
pub identity_key: PublicKey,
pub onetime_prekey_id: Option<OneTimePreKeyId>,
pub prekey_id: PreKeyId,
pub ciphertext: Vec<u8>,
pub ephemeral_key: PublicKey,
}Expand description
Message containing encrypted payload and X3DH session-data to be delivered from sender to receiver.
Fields§
§identity_key: PublicKeyIdentity of the sender.
onetime_prekey_id: Option<OneTimePreKeyId>Identifier of the used one-time pre-key. Is none when no one-time key was used (for example in long-term key bundles).
prekey_id: PreKeyIdIdentifier of the used long-term pre-key.
ciphertext: Vec<u8>Encrypted payload for the receiver.
ephemeral_key: PublicKeyEphemeral public key used for this session.
Trait Implementations§
Source§impl Clone for X3dhCiphertext
impl Clone for X3dhCiphertext
Source§fn clone(&self) -> X3dhCiphertext
fn clone(&self) -> X3dhCiphertext
Returns a duplicate of the value. Read more
1.0.0 · 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 X3dhCiphertext
impl Debug for X3dhCiphertext
Source§impl<'de> Deserialize<'de> for X3dhCiphertext
impl<'de> Deserialize<'de> for X3dhCiphertext
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
Source§impl PartialEq for X3dhCiphertext
impl PartialEq for X3dhCiphertext
Source§impl Serialize for X3dhCiphertext
impl Serialize for X3dhCiphertext
impl Eq for X3dhCiphertext
impl StructuralPartialEq for X3dhCiphertext
Auto Trait Implementations§
impl Freeze for X3dhCiphertext
impl RefUnwindSafe for X3dhCiphertext
impl Send for X3dhCiphertext
impl Sync for X3dhCiphertext
impl Unpin for X3dhCiphertext
impl UnwindSafe for X3dhCiphertext
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