Functions§
- check_
commitment_ authority - Check whether the sender is authorized to commit per the policy’s
commitment.authorityrule. - decode_
commitment_ payload - decode_
mode_ state - encode_
mode_ state - Shared mode-state JSON codec (extracted from six per-mode copies). Encoding a mode-state struct cannot fail; if it ever does, panic loudly rather than silently persisting an empty state.
- enforce_
commitment_ policy - Shared commitment policy gate (extracted from five per-mode copies).
Fail closed: only an explicit
Allowproceeds —PolicyDecisionis#[non_exhaustive], and any unknown decision denies. - is_
declared_ participant - participants_
all_ accept - validate_
commitment_ payload_ for_ session