Skip to content

feat(sha256): add output prefix adapter - #78

Open
brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/sha256-output-prefix
Open

brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/sha256-output-prefix

Conversation

@brenorb

@brenorb brenorb commented Sep 11, 2026

Copy link
Copy Markdown

Summary

  • add sha256_prefix for retaining a generation-time-selected digest prefix
  • validate reference outputs across padding boundaries and prefix limits
  • record the measured adapter cost in the README, catalog, and hash comparison

Validation

  • cargo test --locked hashes::sha256::sha2_u32::tests::hashes_output_prefixes -- --nocapture
  • cargo test --locked hashes::sha256::sha2_u32::tests::rejects_prefix_boundaries -- --nocapture
  • cargo test --locked --test primitive_metrics
  • python3 tools/kb.py validate
  • cargo fmt --check
  • git diff --check

The full repository test suite was intentionally not run; the focused primitive and metric checks pass.

@brenorb
brenorb force-pushed the feat/sha256-output-prefix branch from 4e615c1 to 700a531 Compare September 11, 2026 14:21
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