pub struct PairwiseEncryptedPayload {
pub nonce: [u8; 24],
pub ciphertext: Vec<u8>,
}Expand description
Recipient-bound encrypted payload for DKG round two exchange.
Fields§
§nonce: [u8; 24]XChaCha20-Poly1305 nonce.
ciphertext: Vec<u8>Ciphertext and tag.
Trait Implementations§
Source§impl Clone for PairwiseEncryptedPayload
impl Clone for PairwiseEncryptedPayload
Source§fn clone(&self) -> PairwiseEncryptedPayload
fn clone(&self) -> PairwiseEncryptedPayload
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 PairwiseEncryptedPayload
impl Debug for PairwiseEncryptedPayload
Source§impl<'de> Deserialize<'de> for PairwiseEncryptedPayload
impl<'de> Deserialize<'de> for PairwiseEncryptedPayload
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 PairwiseEncryptedPayload
Source§impl PartialEq for PairwiseEncryptedPayload
impl PartialEq for PairwiseEncryptedPayload
Source§fn eq(&self, other: &PairwiseEncryptedPayload) -> bool
fn eq(&self, other: &PairwiseEncryptedPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PairwiseEncryptedPayload
impl Serialize for PairwiseEncryptedPayload
impl StructuralPartialEq for PairwiseEncryptedPayload
Auto Trait Implementations§
impl Freeze for PairwiseEncryptedPayload
impl RefUnwindSafe for PairwiseEncryptedPayload
impl Send for PairwiseEncryptedPayload
impl Sync for PairwiseEncryptedPayload
impl Unpin for PairwiseEncryptedPayload
impl UnsafeUnpin for PairwiseEncryptedPayload
impl UnwindSafe for PairwiseEncryptedPayload
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