Skip to content

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

Closed
brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/blake3-short-prefix-next
Closed

brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/blake3-short-prefix-next

Conversation

@brenorb

@brenorb brenorb commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add blake3_short_compute_script_truncated_128() for the first 128 unkeyed BLAKE3 output bits
  • add the matching prefix verifier while preserving the full 256-bit profile
  • reuse the existing checked direct-u4 schedule and reject malformed/extra input
  • add all-length deterministic native-BLAKE3 vectors, hostile-input tests, metrics, and documentation

Measurements

  • 59,105-byte compute fragment for a 32-byte input, 429 bytes below the full-output profile
  • 111-byte representative canonical witness, 129-byte valid maximum
  • 527-item strict composition peak with zero auxiliary hints
  • 40,816 static non-push opcodes

Verification

  • cargo fmt --all -- --check
  • python3 tools/kb.py validate
  • git diff --check
  • focused Rust execution was not run locally because the host is out of disk space; CI is authoritative

This is a differentially validated hash-output profile, but deployment remains unclassified. It makes no consensus, policy, or general cryptographic-security claim beyond the underlying BLAKE3 construction.

Copy link
Copy Markdown
Contributor

Review: consolidate with #95; no separate merge recommended.

The changed Rust implementation files are identical to #95. Comparing each PR against its own merge base also gives the same added/removed lines for the affected documentation, catalog, and metric files. Branch-tip differences come from the base revisions, not an additional implementation improvement.

Keep one canonical implementation and its tests/metrics in #95; carry future fixes there. This is a duplication finding, not a claim that the shared implementation has passed all integration checks. Evidence: inspected.

Reviewed commit: f02e677e6ca6be2588f0d5fc7f1f25588cf14189.

@brenorb

brenorb commented Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

Closing as a duplicate of merged PR #95. The reviewer confirmed the implementation, documentation, catalog, and metric changes are identical relative to their merge bases; #95 remains the canonical contribution.

@brenorb brenorb closed this Sep 19, 2026
@brenorb
brenorb deleted the feat/blake3-short-prefix-next 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