pub struct Envelope {
pub car_enc: String,
pub nonce: String,
pub ct: String,
}Expand description
The ciphertext form of a payload — what the relay stores and sees. Cleartext
op_id/seq/hlc/scope/surface metadata lives outside this, on the
crate::oplog::OpRecord; the envelope hides only the payload body.
Fields§
§car_enc: StringAlgorithm tag (ALG_CHACHA20POLY1305).
nonce: StringThe 96-bit AEAD nonce, hex (24 chars). Random per encryption, so the same plaintext encrypts to distinct ciphertext each time.
ct: StringThe ciphertext ‖ Poly1305 tag, hex.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
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 Envelope
impl StructuralPartialEq for Envelope
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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