Repository navigation
Select a SHA-256 commitment by preimage length - #331
Merged
RobinLinus merged 1 commit intoNov 9, 2026
Merged
Conversation
brenorb
marked this pull request as ready for review
November 6, 2026 12:19
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verify one opaque SHA-256 opening against the digest assigned to the preimage's exact byte length. The public map covers a contiguous range, and the preimage supplies its own selector through OP_SIZE. Binary dispatch selects one block, then materializes just the selected block's digest constants.
The existing preimage-length primitive checks one fixed digest and returns a length-derived integer. #320 checks two distinct digest openings using witness-selected indices or a scan. This primitive verifies one length-selected digest with one ordinary witness item and zero hints.
Every row checks the same length and SHA-256 predicate and ends with true. Serialized data witness includes the count and item length, excluding the leaf, control block, annex and transaction. Executed non-push operations include processed control delimiters, including in inactive branches.
At 521 digests, eight-entry blocks add 599 bytes to the full table and reduce peak from 523 to 10 on the 519-byte fixture. The full table accepts at exactly 1,000 combined items with 477 caller items and fails at 478. The blocked schedule accepts the latter case. The 519- and 520-byte fixtures are rejected by the local Policy profile's entry-item cap.
Evidence is locally reproduced and execution is unclassified. Focused tests, metric snapshots, knowledge validation, formatting, and diff checks passed. The required full non-field suite passed on this exact published commit.