Skip to main content

Module stream_sequence

Module stream_sequence 

Source
Expand description

Stream sequence (SPEC-v2 §7.4). Mirrors Go stream_sequence_v2.go.

Every rejection has the class stream_sequence_mismatch; the message distinguishes gap, duplicate and reorder for diagnostics only. A presentation that carries stream_id and stream_seq advances the state of the key (verifier_namespace, agent_id, stream_id) in the same atomic transaction as the challenge claim.

Functions§

check_v2_stream_sequence
Go CheckV2StreamSequence: the normative stream-sequence rule. has_last reports whether the stream key already has accepted state. Ok means the store must record seq as the new last value in the claim transaction.