Skip to content

feat(blake3): add truncated short-output profile - #95

Merged
RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/blake3-shared-tables
Sep 18, 2026
Merged

RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/blake3-shared-tables

Conversation

@brenorb

@brenorb brenorb commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a checked direct-u4 BLAKE3 profile that materializes only the low 128-bit prefix
  • preserve the full short-output profile and add a matching prefix verifier
  • document deterministic metrics and reject invalid nibbles, extra input, and malformed empty-message usage

For the representative 32-byte input, the truncated compute fragment is 59,105 bytes versus 59,534 for the full output, saving 429 bytes with the same 111/129-byte witness profile, zero hint items, and 527-item strict peak.

Validation

  • cargo fmt --all -- --check
  • cargo test --locked 'hashes::blake3::tests::test_short_truncated_128' --lib\n- cargo test --locked --test primitive_metrics blake3_short_truncated_128_metrics_are_current\n- python3 tools/kb.py validate\n- git diff --check

@RobinLinus
RobinLinus merged commit d79f485 into solving-bitcoin:main Sep 18, 2026
3 checks passed
@brenorb
brenorb deleted the feat/blake3-shared-tables 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