BIP374: clarify why G is an input and fix wording nits by ViniciusCestarii · Pull Request #2334 · bitcoin/bips · GitHub
Skip to content

BIP374: clarify why G is an input and fix wording nits - #2334

Merged
jonatack merged 2 commits into
bitcoin:masterfrom
ViniciusCestarii:bip-0374-wording-nits
Oct 22, 2026
Merged

jonatack merged 2 commits into
bitcoin:masterfrom
ViniciusCestarii:bip-0374-wording-nits

Conversation

@ViniciusCestarii

Copy link
Copy Markdown
Contributor

While reading BIP 374 I doubted the footnote for why include G ("While all other BIPs have used the generator point from secp256k1, passing it as an input here lets this algorithm be used for other curves") because for it to be able to support other curves it would need more parameters such as the group order.

Looking at the original comment that suggested it, it was about supporting other bases in secp256k1 and not other curves.

This clarifies the footnote and also fix some other small nits.

cc @andrewtoth @RubenSomsen @theStack

@fametrano fametrano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Concept ACK on the footnote fix. "Other curves" was wrong: BIP374 takes its notation from BIP327, which fixes secp256k1 and its order n, and n is not an input, so G is the only curve parameter that can change. The rewritten verification sentence, with A = a⋅G and C = a⋅B, is also clearer.

Comment thread bip-0374.mediawiki Outdated

@fametrano fametrano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK af1e6e2. The force-push since my Concept ACK only restores "iff" at line 110, so that review holds at this head.

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK af1e6e2

Thanks!

@jonatack jonatack added the Proposed BIP modification PR by non-owner to update BIP content label Oct 22, 2026
@jonatack
jonatack merged commit c0c5aea into bitcoin:master Oct 22, 2026
4 checks passed
fametrano added a commit to btclib-org/ecc that referenced this pull request Oct 22, 2026
…oses #332)

The module docstring said BIP374 passes G in so that the algorithm
serves another curve. The curve is not an argument: the 33-byte points,
32-byte scalars and tags fix secp256k1. G serves another generator on
secp256k1. bitcoin/bips#2334 corrects the BIP's footnote the same way.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Ferdinando Ametrano <ferdinando@ametrano.net>
fametrano added a commit to btclib-org/ecc that referenced this pull request Oct 23, 2026
…oses #332) (#340)

The module docstring said BIP374 passes G in so that the algorithm
serves another curve. The curve is not an argument: the 33-byte points,
32-byte scalars and tags fix secp256k1. G serves another generator on
secp256k1. bitcoin/bips#2334 corrects the BIP's footnote the same way.

Signed-off-by: Ferdinando Ametrano <ferdinando@ametrano.net>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Proposed BIP modification PR by non-owner to update BIP content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants