Skip to content

generation: Require explicit entropy source - #200

Open
BenWestgate wants to merge 4 commits into
reviewability-v1from
codex/entropy-source-api
Open

BenWestgate wants to merge 4 commits into
reviewability-v1from
codex/entropy-source-api

Conversation

@BenWestgate

Copy link
Copy Markdown
Owner

Make every generation draw come from a caller-supplied entropy(length) source and validate the returned byte count. The CLI passes the OS CSPRNG in this prerequisite, preserving existing behavior; #145 replaces that source with Bitcoin Core.

Validation: 298 generation/public-API/CLI tests pass; git diff --check passes. Changes to generation still require security review.

Route every random draw through a caller-provided entropy function and validate its byte count. Keep current CLI behavior by passing the OS CSPRNG explicitly, so the Core-backed source can be reviewed separately. Update generation tests, the installed-wheel smoke test, and API documentation for the new boundary.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-26T09:09:33.308551Z 4be4063 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted current-head static review.

ACK 63c50a6: every new draw requires a caller-supplied entropy source; returned byte count/type is checked. Five-bit symbol generation remains uniform, and index selection rejects modulo bias. The confirmation gate is unchanged. Exact-head Python CI passed. Review the stacked Core integration separately.

@BenWestgate
BenWestgate added this pull request to stack #206 October 24, 2026 14:27

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63c50a6e1e

ℹ️ 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".

Comment thread docs/developer/api.md

This branch has not been deployed

No deployments
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