RB
← All projectsRust Bitcoin

rust-bitcoin

Rust library for Bitcoin data structures, serialization, consensus encoding, and scripts.

BitcoinCryptographic librariesNormal
Repository coverage

2084 commits in the local evidence base

Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.

461security candidates452second-pass queue2076AI analyses
181commits · 30 days
387commits · 60 days
1289commits · 180 days
2054commits · 365 days
Backfill bands
Aug 5 → Feb 6787 seen32 candidatesComplete
Feb 6 → Jun 6878 seen53 candidatesComplete
Jun 6 → Jul 6211 seen15 candidatesComplete
Jul 6 → Aug 5184 seen2 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

64/100 average clarity
318Strong · 80–100
1058Adequate · 60–79
557Thin · 40–59
151Opaque · 0–39
20security candidates with opaque commit messaging
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
Mitchell Bagot643192641068
Tobin C. Harding41366410063
jrakibi944994068
Andrew Poelstra582155077
Nick Johnson18920189059
Jamil Lambert, PhD11418114061
Fmt Bot311431045
Trevor Arjeski111111069
Shing Him Ng31731056
Ismail Daif22622050
satsfy (Renato Britto)17617066
Martin Habovstiak27527069
Analysis record

Published AI watches

Last scanned 37 minutes ago

Informational 20 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6678: units: Add `Weight::to_vb_*` functions, deprecating `to_vbytes_*`

This is a routine API cleanup in a Rust Bitcoin library. It adds new method names (to_vb_floor, to_vb_ceil) for converting transaction 'weight' to 'virtual bytes' and marks the old names (to_vbytes_floor, to_vbytes_ceil) as deprecated. The…

7f614781by Andrew Poelstra+30−86 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6597: Release tracking PR: `crypto 0.3.0`

This commit is a routine release-tracking merge. It only bumps version numbers (bitcoin-crypto to 0.3.0 and bitcoin-primitives to 0.103.1), updates dependency version requirements, refreshes lock files, and adds changelog entries. There ar…

1fddd49eby Andrew Poelstra+34−1210 files
No security note in commit
Informational 15 AI analysisMessage 28 · Opaque
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Update API files

This commit only updates generated API listing files (text snapshots of public functions) to reflect a newly added public function, `to_consensus_u32`, on the `CompactTarget` type. It does not change any source code, logic, or behavior, an…

a75c53c8by Mitchell Bagot+6−03 files
No security note in commit
Informational 15 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6675: units: Remove unnecessary track_caller

This commit removes two Rust compiler hints (`#[track_caller]`) from helper functions that simply return a value or call a user-provided fallback. These functions never panic, so the hints were unnecessary and had no security effect. The c…

ce894f36by Andrew Poelstra+0−21 file
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6644: primitives: Add serde impls for `WitnessVersion`

This commit adds standard serialization/deserialization support for the WitnessVersion type when the optional serde feature is enabled. It is a routine feature addition with no security relevance visible in the code or commit message.

4981faa7by Andrew Poelstra+50−02 files
No security note in commit
Informational 15 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6671: units: reword docs from height to count in relative locktime

This commit only changes documentation comments and variable names in the rust-bitcoin library. It rewords references to 'block height' as 'block count' for relative locktime, because a relative locktime measures elapsed blocks since a coi…

6ea4ff92by Andrew Poelstra+20−172 files
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6670: ci: fix labeller permissions

This is a routine GitHub Actions workflow fix. The change gives the automated PR labeler workflow permission to download artifacts and explicitly tells the GitHub CLI which repository to act on. It does not change the Bitcoin library code,…

CI workflow permission fixNo source code changesNo cryptographic or consensus changes
276e0a61by Andrew Poelstra+5−01 file
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6657: Release tracking PR: `base58ck 0.5.0`

This commit is a routine version bump for the base58ck crate from 0.4.0 to 0.5.0. It only updates version numbers in package manifests, lock files, and adds a changelog entry. There are no code changes and no security relevance.

9deb5de1by Andrew Poelstra+22−168 files
No security note in commit
Informational 21 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6440: base58: Introduce `decode_check_to_array` for alloc-less decoding

This commit is a routine feature addition to the rust-bitcoin base58 crate. It adds a new no-allocator function to decode short base58-check strings into fixed-size byte arrays, and renames the existing error type while keeping a deprecate…

No security-relevant bug fix is described in the commit message or diff.New decoding path uses a fixed 128-byte scratch buffer (`ArrayVec`) and rejects oversized inputs.Checksum verification and invalid-character handling are preserved from the existing alloc implementation.
c5fd1832by Andrew Poelstra+330−775 files
No security note in commit
Informational 15 AI analysisMessage 93 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6646: hashes: add several methods to `Midstate` and release 1.2.0

This commit is a routine feature release for the bitcoin_hashes crate. It adds new public methods and a constant to the SHA-256 Midstate type so developers can compute SHA-256 midstates in const contexts. There is no indication of a securi…

0f68fcb3by Andrew Poelstra+157−4210 files
No security note in commit
Informational 15 AI analysisMessage 73 · Adequate
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

units: reword docs to block count in relative locktime

This commit only rewords documentation comments and variable names in the codebase. It changes references from 'block height' to 'block count' for relative lock times, which is a terminology correction with no functional code changes. Ther…

8867fe2eby satsfy (Renato Britto)+20−172 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6667: Make the `WitnessesEncoder` private

This commit makes a small internal helper type called WitnessesEncoder private. It was previously exported as public API but is only used inside the transaction encoder. The change removes it from the public API surface and moves the code …

07d91f7fby Andrew Poelstra+54−1324 files
No security note in commit
Informational 12 AI analysisMessage 75 · Adequate
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

ci: fix labeller permissions

This commit adjusts a GitHub Actions workflow that automatically labels pull requests based on CI results. It adds a built-in repository token, tells the artifact download step to merge single-file artifacts, and explicitly sets the reposi…

Workflow-only change with no library code modificationsUses the default GITHUB_TOKEN rather than a custom secretRuns in workflow_run context, which already has elevated repository access by design
715f2bd6by Nick Johnson+5−01 file
No security note in commit
Informational 19 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6661: units: Remove `From<u16>` from `NumberOfBlocks`

This is a routine API cleanup, not a security fix. The developers removed a shortcut that let programmers create a 'number of blocks' value directly from any u16 number, replacing it with an existing named constructor called from_height. T…

ed5f1b68by Andrew Poelstra+18−358 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6668: Scrub the transaction encoding logic

This commit is a pure code reorganization (refactor) in the rust-bitcoin library. It moves transaction encoding and decoding definitions around within a single file so the code follows the project's preferred layout. No logic, behavior, or…

c5588ba5by Andrew Poelstra+57−571 file
No security note in commit
Informational 18 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6662: build(deps): bump actions/checkout from 6.0.2 to 6.0.3

This commit is a routine update to the GitHub Actions checkout tool used by the project's automated workflows. It changes the pinned version from 6.0.2 to 6.0.3 across many workflow files. The newer version fixes minor bugs related to SHA-…

Dependency bump of actions/checkout to a patch releaseUpstream fixes for SHA-256 repository checkout and merge commit regexAll affected workflows already disable persisted credentials
f7d364cdby Andrew Poelstra+29−2915 files
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6663: build(deps): bump taiki-e/install-action from 2.79.12 to 2.81.4

This is a routine Dependabot update that bumps the version of a third-party GitHub Action used only in automated testing workflows. The change does not touch the project's actual Bitcoin library code, and there is no indication it fixes or…

5c92c0b0by Andrew Poelstra+2−22 files
No security note in commit
Informational 15 AI analysisMessage 45 · Thin
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Update the API text files

This commit only updates two generated API text files that list the public surface of the Rust crate. It removes entries for a `WitnessesEncoder` type, reflecting that the type is no longer part of the public API. There is no source code c…

9c391145by Tobin C. Harding+0−782 files
No security note in commit
Informational 15 AI analysisMessage 68 · Adequate
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Scrub the transaction encoding logic

This commit is a pure code reorganization: it moves existing transaction encoding and decoding definitions around within a single file so they follow the project's preferred layout. No logic was changed, no security bug was fixed, and no n…

80dcef15by Tobin C. Harding+57−571 file
No security note in commit
Informational 15 AI analysisMessage 58 · Thin
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Make the WitnessesEncoder private

This commit simply hides an internal helper type called WitnessesEncoder from public view. It is a routine API-cleanup change with no security relevance visible in the code or commit message.

b37accc3by Tobin C. Harding+54−542 files
No security note in commit
Repository ledger

Explore captured commits

Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.

AI review queuedchore: fix typosby Galoretka · 94498e07 · Oct 14, 2025 · 3 filesMessage 40 · ThinInformational 15Details
Commit message · Galoretka

chore: fix typos

40/100 · ThinMessage clarity
✓ Subject identifies a change✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit only fixes spelling mistakes in comments and documentation strings. No code behavior was changed, so it has no security impact.

Lower-prioritychore: add the missing spaces in the commentsby letreturn · 9eb9ade5 · Oct 14, 2025 · 11 filesMessage 72 · AdequateInformational 15Details
Commit message · letreturn

chore: add the missing spaces in the comments

Signed-off-by: letreturn <letreturn@outlook.com>

72/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit only fixes typos in code comments by adding a missing space inside 11 files. No program logic, security settings, or behavior changed.

Lower-priorityfix(docs): correct fee_rate, fee_wu and fee_vb descriptionsby Forostovec · 65f9916f · Oct 13, 2025 · 1 fileMessage 62 · AdequateInformational 15Details
Commit message · Forostovec

fix(docs): correct fee_rate, fee_wu and fee_vb descriptions

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only fixes documentation comments for two deprecated Rust functions. It does not change any executable code, so it cannot affect program behavior or security.

AI review queuedconsensus_encoding: remove Transitioning stateby Nick Johnson · 144adfce · Oct 13, 2025 · 1 fileMessage 58 · ThinInformational 11Details
Commit message · Nick Johnson

consensus_encoding: remove Transitioning state

Simplify the Decoder2State by dropping the unnecessary Transitioning
variant. We can just use the Errored variant and not change the state
of the Decoder2 if the first decoder fails while transitioning to the
second.

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
Why it was queued
parser or protocol pathsecond-pass: security-sensitive path
AI analysis · Informational 11/100

This is a small internal code cleanup in a Rust Bitcoin library. It removes an unused 'Transitioning' state from a two-stage data decoder and simplifies how the decoder switches from its first stage to its second stage. There is no indication this fixes a security vulnerability or changes observable behavior for users.

AI review queuedprimitives: renamed TransactionDecoderError::Transitioning to Erroredby Andrew Poelstra · e86a56c6 · Oct 13, 2025 · 1 fileMessage 73 · AdequateInformational 15Details
Commit message · Andrew Poelstra

primitives: renamed TransactionDecoderError::Transitioning to Errored

Search-and-replace the error variant name, and update all the panic
conditions that are triggered by it. From a user point of view this
state does not represent "transitioning". It represents that we
called end() on a sub-decoder and that call yielded an error,
leaving us with no meaningful state.

The docs for Decoder::end and Decoder::current_chunk say that after
returning the initial error we are allowed to panic; update the panic
message to say that this is what we're doing. (We also have a panic
in read_limit, which we are not allowed to do, so replace that with
a dummy value return.)

No observable behavior changes except that some panic messages change.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: broader security terminologysecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit is a simple internal rename and documentation cleanup. It renames a temporary error state inside a Bitcoin transaction decoder from 'Transitioning' to 'Errored' and updates the panic messages to be clearer. It also removes one panic that shouldn't have been there and replaces it with a safe dummy value. There are no observable behavior changes for users.

AI review queuedprimitives: fix TransactionDecoder::end to not panic on early calls to endby Andrew Poelstra · 93db1e0d · Oct 13, 2025 · 1 fileMessage 83 · StrongLow 47Details
Commit message · Andrew Poelstra

primitives: fix TransactionDecoder::end to not panic on early calls to end

If the data stream ends early we shouldn't panic. This is not a programmer
error. It indicates that we ran out of data.

This one has observable changes. Unit test in next commit.

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
signing or wallet pathsecond-pass: broader security terminologysecond-pass: security-sensitive path
AI analysis · Low 47/100

This commit fixes a panic (sudden crash) in the Rust Bitcoin library's transaction decoder. Previously, if a caller tried to finish decoding a Bitcoin transaction before all its data had been received, the program would crash with a panic. Now it returns a normal error instead, which is safer and easier for applications to handle gracefully.

AI review queuedprimitives: add unit test for incomplete transaction decodingby Andrew Poelstra · 27fbdf9b · Oct 13, 2025 · 1 fileMessage 60 · AdequateInformational 12Details
Commit message · Andrew Poelstra

primitives: add unit test for incomplete transaction decoding

60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 12/100

This commit only adds a new unit test that checks how the library handles incomplete Bitcoin transaction data. It does not change any production code, fix a bug, or introduce a security feature. The test verifies that decoding truncated transaction bytes correctly produces an error rather than a valid transaction.

AI review queuedprimitives: remove a bunch of panics from Transaction::decoderby Andrew Poelstra · 681af667 · Oct 13, 2025 · 1 fileMessage 85 · StrongInformational 13Details
Commit message · Andrew Poelstra

primitives: remove a bunch of panics from Transaction::decoder

The state machine logic in TransactionDecoder is a bit frustrating. We
need to obtain a mutable reference to the current sub-decoder to attempt
to feed data to it. If this fails, we then need to move the sub-decoder,
attempt to end() it, then replace it if this succeeds. (And the replacement
uses the return value from end() so we can't reorder this.)

Having the end() between the move and replacement means we need a dummy
Transitioning state, and having a mutable borrow before the move means
we need some borrowck trickery.

This commit separates the mutable-borrow logic from the move logic to
avoid the trickery. It retains the Transitioning dummy state which I can't
find a way to avoid.

Refactor only; no observable behavior changes.

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 13/100

This commit is a code cleanup inside the Bitcoin transaction decoder. It removes helper functions that could panic if called in the wrong state and rewrites the decoder's main loop to avoid needing those helpers. The author explicitly states this is a refactor with no observable behavior changes, and the diff supports that reading: the same state machine, transitions, and error paths remain, just reorganized.

Lower-priorityAdd extra_lints.sh to all cratesby Jamil Lambert, PhD · 92e9ff9a · Oct 13, 2025 · 11 filesMessage 68 · AdequateInformational 15Details
Commit message · Jamil Lambert, PhD

Add extra_lints.sh to all crates

rust-bitcoin-maintainer-tools has been updated and all the clippy
errors with no-default-features have been fixed.

Add extra_lints.sh to all crates with a command that runs clippy with
no-default-features. Running no-default-features on the workspace did
not give all of the clippy errors.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit only adds new helper scripts that run an automated code-quality tool (Clippy) on each crate with default features disabled. It does not change any library code, fix a bug, or alter behavior. There is no security issue here.

Lower-priorityFix unused import clippy lintby Jamil Lambert, PhD · 5466cb2b · Oct 13, 2025 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Jamil Lambert, PhD

Fix unused import clippy lint

One import is unused with no-default-features.

Feature gate it.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This is a minor code cleanup commit. It moves one import statement behind a feature gate so that the Rust compiler's clippy lint tool no longer warns about an unused import when the library is built with no default features. There is no functional or security change.

Lower-priorityUpdate to latest maintainer tools versionby Jamil Lambert, PhD · 11d79ed0 · Oct 13, 2025 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Jamil Lambert, PhD

Update to latest maintainer tools version

Update the commit hash to the latest version of
rust-bitcoin-maintainer-tools.

This new version supports running crate specific
`contrib/extra_lints.sh`

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit only updates the version (commit hash) of an internal maintainer-tools repository used by the project's GitHub Actions CI workflow. It does not change any application code, cryptographic logic, network handling, or user-facing behavior. There is no indication of a security fix or vulnerability.

AI review queuedprimitives: fix doc comment for OutPointEncoderby sashass1315 · 46b4c7f3 · Oct 13, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · sashass1315

primitives: fix doc comment for OutPointEncoder

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit fixes a single incorrect word in a documentation comment. The comment previously said the encoder was for one type (TxOut) when it actually encodes a different type (OutPoint). No code behavior changed, and there is no security impact.

Lower-priorityUpdate mutant exclude for lifetime syntax changeby Jamil Lambert, PhD · 80f95b2c · Oct 13, 2025 · 1 fileMessage 78 · AdequateInformational 15Details
Commit message · Jamil Lambert, PhD

Update mutant exclude for lifetime syntax change

Two mutant excludes stopped working and caused a timeout in the weekly
mutation testing. The lifetimes are now elided to fix a clippy error.

Change the excludes to match the new syntax and kill the mutants.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only updates two text patterns in a mutation-testing configuration file. The patterns tell the mutation-testing tool which functions to skip. The function names changed slightly because of a Rust syntax cleanup (lifetime elision), so the skip patterns had to be updated to keep working. No program code, cryptography, network handling, or user-facing behavior was changed.

Lower-priorityReword mutant exclude commentby Jamil Lambert, PhD · 6133e109 · Oct 13, 2025 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · Jamil Lambert, PhD

Reword mutant exclude comment

Fix the comment for an mutant exclude as a follow up to the PR where it
was added.

50/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit only rewords a comment in a configuration file used for mutation testing. No code behavior was changed, so there is no security impact.

Security candidate2025-10-12 automated rustfmt nightlyby Fmt Bot · 77fd3644 · Oct 12, 2025 · 8 filesMessage 45 · ThinInformational 15Details
Commit message · Fmt Bot

2025-10-12 automated rustfmt nightly

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
cryptography-sensitive pathsigning or wallet path
AI analysis · Informational 15/100

This is an automated code-formatting commit from rustfmt. It only changes whitespace, line breaks, import order, and other stylistic details. There are no functional changes and no security implications.

AI review queuedprimitives: Implement decodersby Tobin C. Harding · 39bf86be · Oct 11, 2025 · 14 filesMessage 35 · OpaqueLow 28Details
Commit message · Tobin C. Harding

primitives: Implement decoders

35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: opaque commit messagesecond-pass: security-sensitive path
AI analysis · Low 28/100

This commit adds new code to read (decode) Bitcoin data formats such as block headers, transactions, transaction inputs/outputs, and witness data in the rust-bitcoin library. It is a large feature addition rather than a clear security fix. The new decoders include length-limit checks and reject obviously invalid formats, but because this is brand-new parsing code, any mistakes could become memory-safety or denial-of-service issues in downstream Bitcoin software. There is no evidence in the commit message or diff that the authors are fixing a known vulnerability.

Lower-priorityUse scriptPubkey instead of script public keyby Tobin C. Harding · 63af0083 · Oct 11, 2025 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Tobin C. Harding

Use scriptPubkey instead of script public key

This terminology is not that widely used, lets use `scriptPubkey`
instead as is more common.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit only rewords two documentation comments in the source code. It changes the phrase 'script public key (scriptPubKey)' to '`scriptPubKey` (locking script)' to match more common Bitcoin terminology. No code behavior changes, no API changes, and no security implications.

Lower-priorityRename min_bytes_needed cargo mutants excludeby Tobin C. Harding · 364c2d6d · Oct 11, 2025 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Tobin C. Harding

Rename min_bytes_needed cargo mutants exclude

Got missed during rebase, merge, rename, I'd guess.

Use the new name when excluding.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit is a trivial configuration-only rename. It updates a single line in the project's mutation-testing exclusion file so that the correct function name ('read_limit') is skipped by the cargo-mutants tool, replacing the old name ('min_bytes_needed'). It does not change any production code, cryptographic logic, network handling, or user-facing behavior.

Security candidatedocs: fix grammatical issues in code commentsby radik878 · 865417d6 · Oct 11, 2025 · 3 filesMessage 57 · ThinInformational 15Details
Commit message · radik878

docs: fix grammatical issues in code comments

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
cryptography-sensitive path
AI analysis · Informational 15/100

This commit only fixes grammar in code comments and renames a test function that had a typo in its name. There are no code behavior changes, no security fixes, and no functional patches.

Lower-priorityRun just check-apiby jrakibi · a98abc50 · Oct 11, 2025 · 1 fileMessage 43 · ThinInformational 15Details
Commit message · jrakibi

Run just check-api

Run the script to update API text files after for the
recent change

43/100 · ThinMessage clarity
✓ Subject identifies a change✓ Provides an explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit only updates an automatically generated API text file. It renames recorded trait implementations from `consensus_encoding` to `bitcoin_consensus_encoding` to match a recent code change. No actual source code, logic, or security behavior was changed.

AI review queuedconsensus_encoding: fix `consensus-encoding` package nameby jrakibi · da603646 · Oct 11, 2025 · 10 filesMessage 81 · StrongInformational 15Details
Commit message · jrakibi

consensus_encoding: fix `consensus-encoding` package name

Updated the package name to match the correct crate name:
https://crates.io/crates/bitcoin-consensus-encoding

Closes #5069

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
parser or protocol pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit simply renames an internal Rust package from `consensus-encoding` to `bitcoin-consensus-encoding` so the crate name matches the one published on crates.io. It updates lock files, package manifests, and internal `use` statements accordingly. There is no change to program logic, no bug fix, and no security relevance.

Lower-prioritybitcoin: reject ambiguous merkle trees in MerkleNode::calculate_rootby Andrew Poelstra · 59877957 · Oct 11, 2025 · 2 filesMessage 86 · StrongModerate 62Details
Commit message · Andrew Poelstra

bitcoin: reject ambiguous merkle trees in MerkleNode::calculate_root

CVE 2012-2459 is about an ambiguity in Bitcoin's merkle root calculation
used to embed transactions in blocks. It is possible to take a valid
block, duplicate some sets of transactions, and obtain an invalid block
with the same hash. This can confuse nodes into incorrectly rejecting
the valid block.

Instead, following Core, when we detect duplicated transactions that
would cause this bug, we just refuse to return the Merkle root. Then
there is nothing that the node can get confused by; it will reject the
bad block (which is definitely bad, since it has duplicate transactions)
and move on with its life.

This patch is really just three lines (well, one line in an if guard)
plus a bunch of comments.

Fixes #5023

Thanks to Github user tm0, who responsibly disclosed this issue (though
I decided it was outside of our security boundary and requested that
they open a public issue).

86/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
AI analysis · Moderate 62/100

This commit fixes a bug in how the library calculates the Merkle root, a fingerprint used to summarize all transactions in a Bitcoin block. An old Bitcoin vulnerability (CVE 2012-2459) lets someone craft a block with duplicate transactions that produces the same fingerprint as a valid block, potentially tricking software into rejecting the real block. The patch makes the library refuse to compute the root whenever it sees the duplicate pattern, so the invalid block is simply rejected and no confusion can occur.

Lower-prioritychore: fix typos in code commentsby MozirDmitriy · f3d05f4b · Oct 10, 2025 · 3 filesMessage 57 · ThinInformational 15Details
Commit message · MozirDmitriy

chore: fix typos in code comments

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only corrects spelling mistakes in code comments and documentation strings. No program logic, function behavior, or security-relevant code was changed.

AI review queuedRemove length prefix from SliceEncoderby Tobin C. Harding · 63bbe12d · Oct 10, 2025 · 5 filesMessage 68 · AdequateInformational 17Details
Commit message · Tobin C. Harding

Remove length prefix from SliceEncoder

Currently we hide the length prefix inside the `SliceEncoder`. While
technically correct the usage of the `SliceEncoder` can be made more
clear by forcing users to combine a compact size encoder and a slice
encoder using an `Encoder2` instead of the current abstraction.

Co-developed-by: jrakabi <j.errakibi@gmail.com>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 17/100

This commit is a straightforward internal code cleanup in the rust-bitcoin library's encoding machinery. It removes the automatic length-prefix behavior from a helper called SliceEncoder and instead makes callers explicitly combine a compact-size length encoder with the slice encoder. The actual serialized Bitcoin bytes produced for blocks and transactions remain the same; only the way the code is structured changes. There is no indication this fixes a security bug.

Lower-prioritybitcoin: add unit test for block that triggers CVE 2012-2459by Andrew Poelstra · 869067da · Oct 10, 2025 · 1 fileMessage 83 · StrongInformational 15Details
Commit message · Andrew Poelstra

bitcoin: add unit test for block that triggers CVE 2012-2459

See commit message and block comments in next commit for details.
Unit test taken from #5023.

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 15/100

This commit only adds a new unit test that demonstrates an old Bitcoin bug (CVE 2012-2459). The test deliberately duplicates the last transaction in a real historical block and checks that the forged block still passes validation. The commit message and an inline comment ('FIXME fixed in next commit') make clear the test is documenting a bug that will be patched later. No actual fix is included here, so this commit by itself does not change any production behavior or introduce a vulnerability.