Skip to content

feat(u32): document seven-bit rotation - #47

Closed
brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/u32-rotation7-boundary
Closed

brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/u32-rotation7-boundary

Conversation

@brenorb

@brenorb brenorb commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • document the existing fixed u32_rrot7() SHA-256 rotation
  • add deterministic boundary vectors and short-word rejection coverage
  • add measured README and catalog records

Validation

  • cargo fmt --all -- --check
  • cargo test --locked arithmetic::u32::rotate::tests::fixed_rotation7
  • python3 tools/kb.py validate
  • cargo test --locked --test primitive_metrics
  • git diff --check

The full repository test suite was intentionally not run; validation is scoped to the changed primitive as requested.

Copy link
Copy Markdown
Contributor

Review recommendation: fix before merging.

The new short-input test expects an interpreter panic, but #1 fixes this class of stack-index failure to return InvalidStackOperation. Rebase onto current main and assert the defined error instead of expecting a panic, then integrate this with the rotation/stack documentation package.

September 11 local validation (unchanged PR head): python3 tools/kb.py validate passed; 2 selected library tests passed. These are targeted local checks, not a full-suite or complete-spend validation. Results using a stack-limit-disabled execution helper remain research-unlimited.

Integration: rebase on current main, resolve any catalog/NR/OP ID collisions, and run the affected correctness tests and focused metric checks.

Reviewed commit: 4e0cb16fe29a0174cced4296a575857296aeb59b.

@brenorb

brenorb commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #45, which now contains the seven-bit rotation implementation, tests, metrics, and documentation.

@brenorb brenorb closed this Sep 18, 2026
@brenorb
brenorb deleted the feat/u32-rotation7-boundary 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