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
184commits · 30 days
409commits · 60 days
1296commits · 180 days
2065commits · 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 56 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.

Security candidatebenches: fix hash benches to measure full hashby jrakibi · 2e12407c · Feb 11, 2026 · 10 filesMessage 76 · AdequateInformational 15Details
Commit message · jrakibi

benches: fix hash benches to measure full hash

The current hash benchmarks create the engine once and then repeatedly call
`engine.input()` on the same engine. This does not measure a full hash
operation per iteration (create engine -> `input()` -> `finalize()`).

The previous benchmark numbers are optimistic, especially for small
inputs, and does not reflect real cost of hashing.

I ran a before/after comparison for sha256:
On master:
- 10 bytes: 9.5514 ns
- 1024 bytes: 532.90 ns
- 65536 bytes: 34.533 us
This PR:
- 10 bytes: 51.360 ns
- 1024 bytes: 553.34 ns
- 65536 bytes: 33.796 us

On small inputs the old benchmark was around 5x too optimistic.
(for larger inputs the difference is small)

Discussed in https://github.com/rust-bitcoin/rust-bitcoin/pull/5604#issuecomment-3866577775

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
cryptography-sensitive path
AI analysis · Informational 15/100

This change only fixes how hash performance is measured in benchmark tests. It does not change any real hashing code that users or applications rely on, so it has no security impact on the library itself.

Lower-priorityp2p: Re-export hash typesby Mitchell Bagot · ed19c454 · Feb 10, 2026 · 1 fileMessage 68 · AdequateInformational 20Details
Commit message · Mitchell Bagot

p2p: Re-export hash types

In bitcoin 0.32.8, the FilterHash and FilterHeader hash types were
exported from the top level of the crate. Following the split of p2p,
these types now need to be accessed inside of the module in p2p. To
match the previous interface (albeit in the new crate), these should be
re-exported from the top level of the p2p crate.

Re-export FilterHash and FilterHeader from the top level of the p2p
crate.

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

This commit simply makes two existing data types (FilterHash and FilterHeader) easier to import from the top level of the new 'p2p' crate. It is a straightforward API-compatibility cleanup after a crate split and does not change any behavior, logic, or security-sensitive code.

Lower-priorityAdd next target calculationby Mitchell Bagot · 5d2d1163 · Feb 10, 2026 · 6 filesMessage 58 · ThinInformational 20Details
Commit message · Mitchell Bagot

Add next target calculation

Since the earlier from_next_work_required implementation, it has been
a desired feature to allow calculating the target for subsequent
blocks without having the user manually calculate the block offsets
themselves.

Add next_target_after function to calculate the compact target for a
subsequent block by header. Introduce logic to handle BIP-94
(testnet 4) to from_header_difficulty_adjustment.

Original work by Tobin C. Harding <me@tobin.cc>

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
AI analysis · Informational 20/100

This commit adds a new public function for calculating Bitcoin's next mining difficulty target and updates the library to support a recent test network rule (BIP-94). It is a feature addition that mirrors Bitcoin Core's consensus logic. There is no direct evidence in the commit that it fixes an active security bug, but any mistake in difficulty-target arithmetic could, in principle, cause a node or wallet built on this library to disagree with the rest of the Bitcoin network about which chain is valid. The change is well-documented, heavily tested, and appears to be a straightforward port of existing reference code.

Lower-priorityunits: Use lazy && operatorby Tobin C. Harding · cbda447d · Feb 10, 2026 · 1 fileMessage 78 · AdequateInformational 15Details
Commit message · Tobin C. Harding

units: Use lazy && operator

> Why is this bad?
> The bitwise operators do not support short-circuiting, so it may
> hinder code performance. Additionally, boolean logic “masked” as
> bitwise logic is not caught by lints like unnecessary_fold

ref: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bitwise_bool

As suggested, use `&&`.

No logic change.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 15/100

This commit is a harmless code-quality cleanup. It swaps two bitwise AND operators (`&`) for logical AND operators (`&&`) in functions that check Bitcoin transaction sequence numbers. The author explicitly states there is no logic change. Because both operands are already boolean expressions, the result is identical; the only difference is that `&&` skips evaluating the second expression when the first is false, which is slightly more efficient.

Lower-prioritytest(p2p): Migrate `Magic` deser tests to `encoding`by rustaceanrob · e48e6aaf · Feb 9, 2026 · 1 fileMessage 87 · StrongInformational 15Details
Commit message · rustaceanrob

test(p2p): Migrate `Magic` deser tests to `encoding`

Use the traits in the previous commit and pass all of the existing unit
tests.

87/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only changes test code. It swaps one set of internal helper functions for another inside unit tests for the Bitcoin network 'magic' bytes. No production code is altered, so it cannot affect security.

Lower-priorityp2p: Implement `encoding` traits for `Magic`by rustaceanrob · d76ecba5 · Feb 9, 2026 · 1 fileMessage 45 · ThinInformational 18Details
Commit message · rustaceanrob

p2p: Implement `encoding` traits for `Magic`

Usual encoding business here.

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 18/100

This commit adds new serialization/deserialization code for the Bitcoin network 'magic' bytes (the 4-byte identifier at the start of P2P messages). It is a routine feature addition that mirrors existing consensus encoding support. There is no indication of a security bug, fix, or vulnerability in the change itself.

Lower-priorityUpdate API filesby Mitchell Bagot · 42d9d43d · Feb 9, 2026 · 3 filesMessage 51 · ThinInformational 15Details
Commit message · Mitchell Bagot

Update API files

Following the introduction of the macros, the ordering for the generics
in the api files has changed. While there are no true changes to the
api, the CI will complain about the file changes.

Update consensus encoding API files.

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

This commit only reorders the text in automatically generated API snapshot files so they match the new output from a macro change. No actual code or library behavior changed, and there is no security relevance.

AI review queuedReplace DecoderNError implementations with macroby Mitchell Bagot · 6bec9c13 · Feb 9, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Replace DecoderNError implementations with macro

As with the EncoderN composite encoders, the DecoderNError types
can be trivially replaced with a macro to significantly reduce the
quantity of repeated boilerplate code for each of them.

Introduce define_decoder_n_error macro to define DecoderNError types
for any N.

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

This commit is a routine code cleanup. It replaces several nearly identical error-type definitions with a single Rust macro, reducing duplicated boilerplate. There is no change to how the library behaves, what data it accepts, or how it handles errors.

Lower-priorityReplace EncoderN implementations with macroby Mitchell Bagot · 07409b27 · Feb 9, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Replace EncoderN implementations with macro

The EncoderN composite encoders currently rely on composition of
Encoder2 instances to achieve N > 2. Since the basic structure lends
itself to unrolling, we can introduce a macro to produce encoders for
any N.

Introduce define_encoder_n macro to define EncoderN types for any N.

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

This commit is a straightforward internal code cleanup: it replaces several hand-written composite encoder types with a Rust macro that generates equivalent types. There is no change to public behavior, no bug fix, and no security relevance visible in the diff or commit message.

Security candidateFix PSBT key deserialisation byte sizeby Mitchell Bagot · 65229278 · Feb 9, 2026 · 1 fileMessage 68 · AdequateModerate 50Details
Commit message · Mitchell Bagot

Fix PSBT key deserialisation byte size

The PSBT Key decoding makes an assumption that the key type will always
encoding in a single byte in it's compact form. While this is often
correct, this is not correct according to the spec and may fail in
cases where key type values are large.

Fix the encode and decode implementations on Key to correctly calculate
the type value size to add to the key length size.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing boundarysigning or wallet path
AI analysis · Moderate 50/100

This commit fixes a bug in how Partially Signed Bitcoin Transactions (PSBTs) read and write their internal 'key' fields. The old code assumed the key's type number always fits in one byte when encoded as a compact size. That assumption is wrong for large type numbers, so the code could misread the key's length and either reject valid PSBTs or, in the worst case, allocate too much memory. The fix makes the encoder and decoder correctly account for the actual number of bytes the type number occupies.

Lower-priorityUpdate dep-tree in docsby Mitchell Bagot · fe3e26f2 · Feb 9, 2026 · 1 fileMessage 61 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Update dep-tree in docs

The dep-tree file provides an outline of all of the crate dependencies
in the repository. Since it was initially generated, a few crates have
been split out, while others have been modified and their dependencies
changed. To provide a better reference for the current crate state, it
should be updated.

Re-run just gen-dep-tree to update doc/dep-tree file.

61/100 · AdequateMessage clarity
✓ Subject identifies a change✓ 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 a documentation file (docs/dep-tree) that shows the dependency tree of the project's Rust crates. No source code, build scripts, or configuration files were changed. It is a routine documentation refresh with no security relevance.

Lower-priorityapi: Update sha3_256 hashing apiby Liam Aharon · 077c6bb3 · Feb 8, 2026 · 3 filesMessage 68 · AdequateInformational 15Details
Commit message · Liam Aharon

api: Update sha3_256 hashing api

a983c10 introduced changes to the sha3-256 hashing api.

Applies the diff generated by './contrib/check-for-api-changes.sh' to
keep 'api/hashes/..' consistent with the aforementioned code change.

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 generated API snapshot text files to match a recent code change. It renames a function parameter from 'data' to 'inp' and changes a return type description from the full type name to 'Self'. These are documentation-like API snapshots, not actual source code changes, and they have no effect on program behavior or security.

Lower-priorityhashes: Fix sha3_256 incremental hashingby Liam Aharon · 1a15728b · Feb 8, 2026 · 1 fileMessage 78 · AdequateModerate 62Details
Commit message · Liam Aharon

hashes: Fix sha3_256 incremental hashing

The previous implementation incorrectly applies padding at the end of
every `input()` call, treating each data chunk as a standalone message.
This resulted in hashing `Pad(a) || Pad(b)` instead of `Pad(a || b)`.

Refactor `HashEngine`'s `input()` to buffer partial blocks instead of
padding and absorbing them immediately.

Move padding logic into `finalize()` so it is applied exactly once at
the end of the stream.

Add a regression test for incremental input.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidence
AI analysis · Moderate 62/100

This commit fixes a bug in the SHA3-256 hashing code in rust-bitcoin. Previously, when data was fed in chunks (rather than all at once), the code incorrectly added end-of-message padding after every chunk. That produced the wrong hash for any multi-chunk input. The fix buffers partial blocks and only applies padding once at the end. The commit adds a regression test that hashes byte-by-byte and compares the result to the known correct output.

Lower-priorityMove `MerkleBlock` to `p2p`by rustaceanrob · 64697b1d · Feb 8, 2026 · 7 filesMessage 68 · AdequateInformational 19Details
Commit message · rustaceanrob

Move `MerkleBlock` to `p2p`

Moves the module into a duplicate named `merkle_tree` module, fixes all
of the new lints, moves the test vectors to a new folder that mirrors
that of `bitcoin`, and updates all available `primitives` imports.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidence
AI analysis · Informational 19/100

This commit is a straightforward code reorganization: it moves the MerkleBlock and PartialMerkleTree implementation from the main `bitcoin` crate into the `p2p` crate, where it is more logically grouped with peer-to-peer message types. The actual logic, tests, and test data files are copied almost unchanged. There is no indication this fixes or introduces a security vulnerability.

Lower-priorityFix justfile with cargo-rbmtby Mitchell Bagot · e251673f · Feb 6, 2026 · 2 filesMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Fix justfile with cargo-rbmt

The new cargo-rbmt tool supplants the prior maintainer tools. For
contributors using the just ci commands (like just ci-stable), the move
to cargo-rbmt broke their workflow.

Fix justfile and ensure-maintainer-tools.sh to work with new cargo-rbmt
tools.

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

This commit is a routine build-tooling update. It replaces an older set of maintainer helper scripts with a new Rust-based tool called cargo-rbmt, and updates the project's justfile (a command runner) accordingly. There is no indication this change fixes or introduces a security problem.

Security candidatehashes: Test hmac incremental inputby Liam Aharon · 5b713745 · Feb 6, 2026 · 1 fileMessage 86 · StrongInformational 15Details
Commit message · Liam Aharon

hashes: Test hmac incremental input

Issue https://github.com/rust-bitcoin/rust-bitcoin/issues/5601 flagged
sha3-256 did not test or handle incremental input correctly.

While correcting sha3-256 behavior in PR #5604, an audit of all hashing
algorithms was undertaken to check they handle and test incremental
input correctly.

All algorithms passed, except hmac which handled incremental input
correctly but did not test it.

Extends the hmac hashing test suite with incremental input cases.

86/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
cryptography-sensitive path
AI analysis · Informational 15/100

This commit only adds a new test to verify that HMAC hashing still produces the correct result when data is fed in one byte at a time. It does not change any production code, fix a bug, or alter behavior. The existing code already handled incremental input correctly; the change simply adds missing test coverage.

Lower-prioritytests: verify all max attainable target constants against explicit hexby Alkamal01 · d4e6456f · Feb 5, 2026 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Alkamal01

tests: verify all max attainable target constants against explicit hex

60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only adds new unit tests that check the hexadecimal string representation of existing maximum mining target constants for Bitcoin's mainnet, testnet, regtest, and signet networks. It does not change any production code, library behavior, or security-sensitive logic. It is purely a regression test addition.

AI review queueddev: implement standard traits for ChaCha20-Poly1305 data typesby Abeeujah · 0df18257 · Feb 5, 2026 · 3 filesMessage 90 · StrongInformational 17Details
Commit message · Abeeujah

dev: implement standard traits for ChaCha20-Poly1305 data types

Implement a comprehensive suite of common traits (Copy, Clone, Eq, Ord, Hash)
across chacha20_poly1305 cryptographic structures to improve API usability and integration with
standard library collections.

Changes
- Added Copy, Clone, PartialEq, Eq, PartialOrd, Ord, and Hash to:
- Poly1305
- Key
- Nonce
- U32x4
- State
- ChaCha20
- ChaCha20Poly1305
- Added Debug only to non-sensitive internal types (U32x4, State).

Security Note
The Debug trait was intentionally omitted for types holding sensitive data
(Key, Nonce, ChaCha20, etc.) to prevent accidental leakage of secret
keying values or internal cipher states through logging or unwraps.

90/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Names security-relevant behavior explicitly
Why it was queued
second-pass: broader security terminology
AI analysis · Informational 17/100

This commit adds common Rust traits like Copy, Clone, Eq, Ord, and Hash to ChaCha20-Poly1305 cryptographic types. It is a routine developer-facing API improvement. The commit deliberately avoids adding Debug to types that hold secret keys or nonces to prevent accidental leakage in logs. There is no direct security vulnerability in the diff itself.

Security candidatepsbt: Add bounds check for non-witness UTXO output indexby Erick Cestari · 9cfc3f09 · Feb 4, 2026 · 6 filesMessage 85 · StrongModerate 60Details
Commit message · Erick Cestari

psbt: Add bounds check for non-witness UTXO output index

Add validation to ensure the vout specified in a transaction input
does not exceed the number of outputs in the non-witness UTXO.
This aligns with Bitcoin Core's PSBT deserialization behavior, which
rejects PSBTs where the input references a non-existent output index.

The new NonWitnessUtxoOutOfBounds error provides detailed context
including the input index, the referenced vout, and the actual
number of outputs available in the non-witness UTXO.

Found by differential fuzzing using bitcoinfuzz.

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 boundaryfuzzing or regression evidencesigning or wallet path
AI analysis · Moderate 60/100

This commit fixes a validation gap in how the library handles Partially Signed Bitcoin Transactions (PSBTs). A PSBT can include a reference to a previous transaction output (the 'non-witness UTXO') that doesn't actually exist. Before this fix, the library would not reject this, which could allow malformed or malicious PSBTs to be processed. The fix adds a bounds check so that if a PSBT input claims an output index that is too high, deserialization returns a clear error instead of silently continuing. The issue was found by differential fuzzing against Bitcoin Core.

Lower-priorityapi: update api for ArrayRefEncoderby Nick Johnson · ec1c1999 · Feb 4, 2026 · 6 filesMessage 45 · ThinInformational 15Details
Commit message · Nick Johnson

api: update api for ArrayRefEncoder

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit only updates generated API snapshot files (text listings of public types and functions) to reflect a new ArrayRefEncoder type and a change in BlockHashEncoder's constructor. No actual source code implementing behavior is modified, and nothing in the commit suggests a security fix or vulnerability.

Lower-priorityprimitives: switch BlockHash to array ref encodingby Nick Johnson · 6ad8028a · Feb 4, 2026 · 1 fileMessage 50 · ThinInformational 16Details
Commit message · Nick Johnson

primitives: switch BlockHash to array ref encoding

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 16/100

This tiny change switches how a 32-byte Bitcoin block hash is encoded internally. Instead of copying the hash bytes into a new owned array before encoding, it now encodes directly from a borrowed reference to the existing bytes. This is a routine performance and memory-efficiency cleanup. There is no direct evidence in the commit that it fixes a security bug.

Lower-priorityconsensus_encoding: add ArrayRefEncoderby Nick Johnson · 76b5004a · Feb 4, 2026 · 2 filesMessage 50 · ThinInformational 15Details
Commit message · Nick Johnson

consensus_encoding: add ArrayRefEncoder

Allow an array to be encoded without taking a copy. This also exposes
the length of the array for encoders.

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

This commit adds a new helper type that lets the library encode a borrowed fixed-size byte array without copying it. It is a straightforward performance and API improvement with no security-relevant behavior change.

Lower-priorityprimitives: Use hashes format implementationsby Mitchell Bagot · 294e343f · Feb 4, 2026 · 5 filesMessage 68 · AdequateInformational 18Details
Commit message · Mitchell Bagot

primitives: Use hashes format implementations

The hash_types in primitives are simple wrappers around the hash
types defined in hashes. Since hashes already implements the correct
formatting (including reversal, upper/lower, etc), we can simplify
hash_types by simply calling through to the fmt implementations in
hashes.

Replace format traits in primitives hash_types with call-through
impls to the implementations in hashes.

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

This is a small internal code cleanup in the rust-bitcoin library. It changes how Bitcoin hash types (like transaction IDs) are printed as text, making them reuse formatting code from a lower-level module instead of defining it separately. There is no indication this fixes a security bug or introduces a vulnerability.

Lower-priorityprimitives: Fix hash debug reversal for no-hexby Mitchell Bagot · 3535bfad · Feb 4, 2026 · 2 filesMessage 68 · AdequateInformational 20Details
Commit message · Mitchell Bagot

primitives: Fix hash debug reversal for no-hex

The hash_types in primitives can have a reversal flag as defined in
the hashes impl of the wrapped hash type. For non-hex builds, the
debug implementation doesn't currently handle reversing correctly.

Fix Debug impl for reversed hash types in primitives

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

This commit fixes a formatting bug in how Bitcoin transaction and block hashes are displayed when the library is built without the optional 'hex' feature. Some hash types in Bitcoin are conventionally shown in reverse byte order. The old no-hex debug code ignored that convention and always printed bytes forward, so a developer could see a hash string that looks wrong compared to the rest of the ecosystem. It is a display bug, not a cryptographic or consensus bug, and it does not directly let an attacker steal funds or corrupt data.

AI review queuedrefactor: remove From<UnexpectedEof> impls for decoder errorsby Abeeujah · 73ee530d · Feb 3, 2026 · 9 filesMessage 93 · StrongInformational 17Details
Commit message · Abeeujah

refactor: remove From<UnexpectedEof> impls for decoder errors

Replace From UnexpectedEOF implementations with .map_err() calls
across various primitive decoder types.

Modified types:
- VersionDecoderError
- BlockHashDecoderError
- TxMerkleNodeDecoderError
- WitnessMerkleNodeDecoderError
- CompactTargetDecoderError

Fixes: #5562

93/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 17/100

This is a code cleanup change in the rust-bitcoin library. It removes automatic error conversions (From trait implementations) for certain decoder errors and replaces them with explicit .map_err() calls. The behavior of the code appears functionally identical—errors are still propagated the same way. There is no indication this fixes a security vulnerability.