mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 22:37:28 +00:00
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> |
||
|---|---|---|
| .. | ||
| config.go | ||
| qryptinvite.go | ||
| qryptinvite_test.go | ||