Skip to main content

MAX_ENVELOPE_VALIDITY

Constant MAX_ENVELOPE_VALIDITY 

Source
pub const MAX_ENVELOPE_VALIDITY: Duration;
Expand description

Longest validity window an agent accepts, measured from the signing time to expires_at.

Matches the seven-day retention of the command stream: nothing legitimately needs to be deliverable for longer, and the agent enforces it itself so a signer that picks a larger expiry cannot widen the replay window. A consequence worth knowing: an agent that was offline for more than this refuses the stale replay of a command it missed, which is intended.