pub struct KkBoundPacket {
pub ciphertext: Vec<u8>,
pub entropy_snapshot: EntropySnapshot,
pub proof: TemporalProof,
}Expand description
A KK packet with a full temporal proof (challenge-response).
Unlike KkPacket, which carries a basic integrity MAC, this packet
carries a TemporalProof providing:
- Freshness: verifier-supplied nonce proves creation was after the challenge
- Recency: epoch check bounds when the encoding actually happened
- Ordering:
prev_macchains packets into a total order - Temporal MAC: the permutation structure itself varies with entropy
The receiver must supply the nonce they originally issued and the maximum acceptable clock drift.
Fields§
§ciphertext: Vec<u8>The encoded bytes
entropy_snapshot: EntropySnapshotThe entropy snapshot, the captured moment
proof: TemporalProofTemporal proof, freshness + recency + integrity + ordering
Implementations§
Trait Implementations§
Source§impl Clone for KkBoundPacket
impl Clone for KkBoundPacket
Source§fn clone(&self) -> KkBoundPacket
fn clone(&self) -> KkBoundPacket
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 moreAuto Trait Implementations§
impl Freeze for KkBoundPacket
impl RefUnwindSafe for KkBoundPacket
impl Send for KkBoundPacket
impl Sync for KkBoundPacket
impl Unpin for KkBoundPacket
impl UnsafeUnpin for KkBoundPacket
impl UnwindSafe for KkBoundPacket
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