Skip to main content

Module replay

Module replay 

Source
Expand description

Replay protection and rate limiting (spec §24).

ReplayGuard: rejects duplicate msg_ids within a window (§10 replay protection, applied outside sealed envelopes too). RateLimiter: token bucket per source, for network transports.

Structs§

RateLimiter
Token bucket: capacity tokens, refilled at refill_per_ms.
ReplayGuard