Skip to content

test(scriptint): cover encoding boundaries - #60

Merged
RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/scriptnum-encoding-boundaries
Sep 18, 2026
Merged

RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/scriptnum-encoding-boundaries

Conversation

@brenorb

@brenorb brenorb commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • exercise Euclidean division across ScriptNum minimal-encoding transitions at 127/128, 255/256, and -128/-129
  • document that sign-byte serialization changes do not change the arithmetic contract
  • record the boundary in the primitive knowledge page

Validation

  • cargo test --locked arithmetic::scriptint::tests
  • python3 tools/kb.py validate
  • git diff --check

The full repository test suite was intentionally not run; validation is scoped to the changed primitive and knowledge base.

@RobinLinus
RobinLinus merged commit 9336e5c into solving-bitcoin:main Sep 18, 2026
@brenorb
brenorb deleted the feat/scriptnum-encoding-boundaries branch October 28, 2026 02:57
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.

2 participants