agentbbs/internal/qryptinvite
Anthony Ettinger 169a73d180 Fix flaky TestTamperedTokenFails in qryptinvite
flipLastChar toggled only the last base64 char of the signature segment.
For a 64-byte Ed25519 signature that char carries unused trailing bits, so
the toggle could decode back to the same bytes and still verify — making the
"corrupted signature must fail" assertion flaky (it reddened main CI).

Corrupt a decoded signature byte (sig[0] ^= 0xFF) and re-encode instead, so
the signature always differs. Verified deterministic over 50 runs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 17:05:30 +00:00
..
config.go feat(qrypt): qrypt.chat anonymous-invite issuer 2026-06-14 11:35:05 +00:00
qryptinvite.go feat(qrypt): qrypt.chat anonymous-invite issuer 2026-06-14 11:35:05 +00:00
qryptinvite_test.go Fix flaky TestTamperedTokenFails in qryptinvite 2026-06-14 17:05:30 +00:00