pub struct KkPacket {
pub ciphertext: Vec<u8>,
pub entropy_snapshot: EntropySnapshot,
pub commitment: TemporalCommitment,
}Expand description
A KK-encoded packet: everything the receiver needs to decode.
Contains:
- The ciphertext (XOR of plaintext with per-symbol key stream)
- The entropy snapshot ε (the unrepeatable moment)
- Temporal commitment (proves integrity of ε + ciphertext binding)
Fields§
§ciphertext: Vec<u8>The encoded bytes, symbol values transmuted by entropy
entropy_snapshot: EntropySnapshotThe entropy snapshot, the captured moment
commitment: TemporalCommitmentTemporal commitment, binds ciphertext to its entropic moment
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KkPacket
impl RefUnwindSafe for KkPacket
impl Send for KkPacket
impl Sync for KkPacket
impl Unpin for KkPacket
impl UnsafeUnpin for KkPacket
impl UnwindSafe for KkPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more