Repository navigation
feat(commitments): verify two distinct SHA-256 pool openings - #320
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3779a8ec6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "fips-180-4", | ||
| "binohash-paper", | ||
| "bitcoin-script-locked", | ||
| "bitcoin-scriptexec-locked" |
There was a problem hiding this comment.
Cite the interpreter revision used by these measurements
For readers reproducing this experiment, bitcoin-scriptexec-locked resolves to historical revision ba96bc2 (knowledge/references/sources.json:104-108), whereas the tests use a09e87af (Cargo.lock:312-314). The cited revision predates the stack-limit repairs documented in NR-043, so following the catalog's execution-tool provenance selects a different interpreter from the one used for the reported strict stack-boundary evidence. Reference the existing bitcoin-scriptexec-csv-20260920 source ID, which identifies the actual dependency revision.
AGENTS.md reference: AGENTS.md:L52-L52
Useful? React with 👍 / 👎.
Result
Adds
commitments::sha256_pool::verify_two_distinct_sha256_openings. It verifies two openings from a unique public list using native SHA-256. Each canonical rank removes its selected digest, so the second rank cannot select the same slot. The checked fixed-index baseline compares original indices explicitly. The zero-hint scan requires distinct hashes and exactly two total hits.The complete leaves include both checks, setup, cleanup and terminal true. Data witness serialization excludes the leaf, control block, annex and transaction. The 993-entry leaves are unoptimized under the central 32-KiB cutoff. Evidence is locally reproduced with unclassified execution.
The focused suite reproduces repeated-index acceptance by the existing HORS opening helper under its own contract, and rejection by the distinct-opening relation. The new fragment does not bind messages to indices or prevent replay of public openings.
Verification
python3 tools/kb.py validate,cargo fmt --all -- --check, andgit diff --checkcargo test --locked -- --skip fields::