[30.x] More Backports #36401

Manually merged
fanquake merged 3 commits from any_more_30_x_backports into 30.x 2026-10-22 07:40:45 +00:00 AGit
fanquake commented 2026-10-01 16:35:55 +00:00 (Migrated from github.com)

Backports:

Backports: * #36377 * #36441
DrahtBot commented 2026-10-01 16:36:04 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK willcl-ark

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36401 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36401.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36401#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [willcl-ark](https://github.com/bitcoin/bitcoin/pull/36401#pullrequestreview-5610485624) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

Base: 74664a44a350cd0aa167cd3beb3be3e7de9a997d
Head: fe4a98b8477ca4fcb49f6d5e92e0496ba64bc84d

Findings

Minor

Distinguish low-R grinding from full BIP 461 compliance (doc/bips.md:78, head)

This entry may imply that the full BIP 461 algorithm has matched since v0.17.0. Low-R grinding dates from v0.17.0, but Bitcoin Core used the unreduced hash for RFC6979 nonce derivation through v23.0 and added BIP 461’s bits2octets reduction in v24.0. For hashes at least as large as the curve order, this can produce a different deterministic nonce. Please distinguish those dates. The triggering case is exceptionally rare, about 1.27×2^-128. The current transaction-signing path passes SignatureHash results, but no current caller producing a hash at least as large as the curve order was identified, so practical impact is unconfirmed.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:0c398e5fd579cb8b00b6b62f2903ad741ac3f867996353a69082cd6ac57373b5:9d9e25a7349f2e108262b6ed44577d47304e975faf1917f1972defa0a828ae3d --> Base: `74664a44a350cd0aa167cd3beb3be3e7de9a997d` Head: `fe4a98b8477ca4fcb49f6d5e92e0496ba64bc84d` ##### Findings **Minor** **Distinguish low-R grinding from full BIP 461 compliance** (doc/bips.md:78, head) This entry may imply that the full BIP 461 algorithm has matched since v0.17.0. Low-R grinding dates from v0.17.0, but Bitcoin Core used the unreduced hash for RFC6979 nonce derivation through v23.0 and added BIP 461’s bits2octets reduction in v24.0. For hashes at least as large as the curve order, this can produce a different deterministic nonce. Please distinguish those dates. The triggering case is exceptionally rare, about 1.27×2^-128. The current transaction-signing path passes SignatureHash results, but no current caller producing a hash at least as large as the curve order was identified, so practical impact is unconfirmed. [Full review report](<https://review.fish.foo/traces/36401-fe4a98b8477ca4fcb49f6d5e92e0496ba64bc84d-997-3.html>)
willcl-ark (Migrated from github.com) approved these changes 2026-10-22 07:12:52 +00:00
willcl-ark (Migrated from github.com) left a comment

ACK fe4a98b847

backports look good.

ACK fe4a98b8477ca4fcb49f6d5e92e0496ba64bc84d backports look good.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36401
No description provided.