fix(protocol): domain-separate loc/prf/inv/rcp signatures #20

Merged
sirius merged 1 commit from wt/t_ce5649ac into main 2026-09-12 03:53:43 +00:00

2026-09-11

Sirius DevOps
fix(protocol): domain-separate loc/prf/inv/rcp signatures
All checks were successful
ci / test (pull_request) Successful in 2m30s
Sign application frames as tag || 0x00 || fields (onionwire-loc-v1,
onionwire-prf-v1, onionwire-inv-v1, onionwire-rcp-v1). Verify accepts
that form first, then the legacy untagged LF-joined layout. Encode still
emits only the tagged signature; wire prefixes and field layout are
unchanged.

Older builds verify untagged bytes only, so they reject new tagged
signatures (fail closed). Mixed-version fleets break outbound app frames
from a new sender to an old receiver until both sides are updated.
2026-09-11 23:42:41 -04:00