Skip to content

Reject scalar reserved-bit aliases across the stack#497

Merged
KillariDev merged 2 commits into
mainfrom
t3code/canonical-scalar-encoding
Jul 10, 2026
Merged

Reject scalar reserved-bit aliases across the stack#497
KillariDev merged 2 commits into
mainfrom
t3code/canonical-scalar-encoding

Conversation

@KillariDev

Copy link
Copy Markdown
Collaborator

Summary

  • Reject scalar outcome aliases that set reserved high bits, so malformed encodings no longer pass through UI, Solidity, or shared parity helpers.
  • Update question-data and UI scalar decoding to classify reserved-bit aliases as Malformed while leaving canonical encodings unchanged.
  • Adjust simulation bootstrap and coverage/tests to match the new REP mint and scalar validation behavior.
  • Refresh mainnet deployment addresses for the redeployed contracts.

Testing

  • bun run tsc — not run
  • bun run test — not run
  • bun run format — not run
  • bun run check — not run
  • bun run knip — not run

- Treat non-zero reserved scalar bits as malformed in contract and UI
- Add parity tests for aliased scalar answers and child deployment guards
- Update mainnet deployment addresses
@KillariDev KillariDev merged commit 96efb2d into main Jul 10, 2026
1 check passed
@KillariDev KillariDev deleted the t3code/canonical-scalar-encoding branch July 10, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant