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 26 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.

Lower-prioritytest(p2p): Update serialize for `AddrV2`by rustaceanrob · 9f627963 · Jan 31, 2026 · 1 fileMessage 67 · AdequateInformational 15Details
Commit message · rustaceanrob

test(p2p): Update serialize for `AddrV2`

67/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only updates a test file. It refactors an existing unit test for the `AddrV2` network address type so that expected byte sequences are stored in variables and also compared against a second serialization helper (`encoding::encode_to_vec`). There is no change to production code, no bug fix, and no security-related behavior change.

Lower-priorityp2p: Implement `Encodable` for `AddrV2`by rustaceanrob · 38a88463 · Jan 31, 2026 · 1 fileMessage 76 · AdequateInformational 18Details
Commit message · rustaceanrob

p2p: Implement `Encodable` for `AddrV2`

Adds the state-machine style encoding suggested in linked comment.

ref: https://github.com/rust-bitcoin/rust-bitcoin/pull/5505#issuecomment-3791508214

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 18/100

This commit adds a new way to serialize Bitcoin peer-to-peer address objects (AddrV2) using a state-machine style encoder. It is a feature/refactoring change that introduces a new code path for encoding addresses, but does not by itself fix a known security bug or introduce an obvious vulnerability. The new encoder mirrors the existing consensus_encode logic, so the main risk is a subtle implementation bug in the new encoder that could cause incorrect serialization or a panic.

Lower-priorityhashes: Update API filesby Mitchell Bagot · 21253c8b · Jan 31, 2026 · 3 filesMessage 51 · ThinInformational 15Details
Commit message · Mitchell Bagot

hashes: Update API files

Following the introduction of the MuHash type, the public api of
hashes has changed, meaning the api files must be updated. Since
the changes to the API files are extensive relative to the actual
code change, they are in a separate patch.

Update the hashes 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 updates automatically-generated API snapshot files to reflect a new MuHash type that was added in a previous code change. No actual source code is modified, and there is no security fix or vulnerability here.

Lower-priorityhashes: Introduce MuHash wrapper typeby Mitchell Bagot · e41dea05 · Jan 31, 2026 · 3 filesMessage 68 · AdequateInformational 17Details
Commit message · Mitchell Bagot

hashes: Introduce MuHash wrapper type

In corepc-types, we are getting a hash digest from Core from the
muhash3072 algorith. For semantic reasons, we should provide a concrete
type from rust-bitcoin for this.

Introduce a newtype MuHash in hashes to represent hash outputs of the
muhash3072 algorithm.

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

This commit adds a new public type called MuHash to the rust-bitcoin hashes library. It is purely a wrapper around a 384-byte byte array so that downstream projects can label muhash3072 digests with a meaningful Rust type. The commit does not implement the hash algorithm itself, change any existing behavior, or fix any bug. There is no security-relevant change.

Lower-priorityAutomated update to Github CI to cargo-semver-checks version-0.46.0by Update cargo-semver-checks Bot · b302ac09 · Jan 31, 2026 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · Update cargo-semver-checks Bot

Automated update to Github CI to cargo-semver-checks version-0.46.0

50/100 · ThinMessage clarity
✓ Specific, 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 simply bumps the version number of a third-party CI linting tool (cargo-semver-checks) used in GitHub Actions from 0.45.0 to 0.46.0. It changes one line in a workflow configuration file and has no effect on the actual Bitcoin library code, its APIs, or its runtime security.

Security candidateFix bug in `Psbt::spend_utxo` when missing outputby Shing Him Ng · 164a9a5a · Jan 30, 2026 · 1 fileMessage 45 · ThinLow 45Details
Commit message · Shing Him Ng

Fix bug in `Psbt::spend_utxo` when missing output

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing boundarysigning or wallet path
AI analysis · Low 45/100

This commit fixes a panic (sudden crash) in a Bitcoin transaction-signing helper. The function `spend_utxo` previously assumed that a referenced transaction output always existed, and used unchecked array indexing. If the output was missing, the program would crash instead of returning a proper error. The fix replaces the unchecked lookup with a bounds-checked one that returns a clean error.

Lower-priorityAdd test of error display and sourceby Jamil Lambert, PhD · 24b85157 · Jan 30, 2026 · 1 fileMessage 82 · StrongInformational 15Details
Commit message · Jamil Lambert, PhD

Add test of error display and source

Kept as a separate commit due to the discussion on whether it is a
useful test or not.

82/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only adds a new unit test that checks whether an error message is non-empty and, when the standard library is available, whether the error has an underlying cause. It does not change any production code, fix a bug, or alter behavior. There is no security relevance.

Lower-priorityImprove test coverage of ScriptBufby Jamil Lambert, PhD · 36d98720 · Jan 30, 2026 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · Jamil Lambert, PhD

Improve test coverage of ScriptBuf

55/100 · ThinMessage clarity
✓ 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 for the ScriptBuf type. It does not change any production code, fix bugs, or alter behavior. There is no security relevance.

Lower-priorityAdd test of error display and sourceby Jamil Lambert, PhD · 5a834e20 · Jan 30, 2026 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · Jamil Lambert, PhD

Add test of error display and source

55/100 · ThinMessage clarity
✓ 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 error messages and error chaining for a Bitcoin transaction witness decoder. It does not change any production code, fix a bug, or alter behavior. There is no security issue here.

Lower-prioritySplit out error test into its own testby Jamil Lambert, PhD · f408b240 · Jan 30, 2026 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · Jamil Lambert, PhD

Split out error test into its own test

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit simply reorganizes existing test code. It takes a portion of one unit test and moves it into a separate, standalone test function. There are no changes to production code, no bug fixes, and no security-relevant behavior changes.

Lower-priorityImprove test coverage of witnessby Jamil Lambert, PhD · 834e832e · Jan 30, 2026 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · Jamil Lambert, PhD

Improve test coverage of witness

55/100 · ThinMessage clarity
✓ 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 for the Witness type in the rust-bitcoin library. It does not change any production code, so it cannot introduce or fix a security vulnerability on its own.

Lower-priorityAutomated update to Github CI to rustc stable-1.93.0by Update Stable Rustc Bot · 0af8ae88 · Jan 30, 2026 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · Update Stable Rustc Bot

Automated update to Github CI to rustc stable-1.93.0

50/100 · ThinMessage clarity
✓ Specific, 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 simply updates a GitHub Actions configuration file to use a newer stable version of the Rust compiler (1.93.0 instead of 1.92.0). It does not change any application code, cryptographic logic, network handling, or user-facing behavior. There is no security issue here.

Lower-priorityUnify decoder error names to DecoderErrorby Mitchell Bagot · 664718df · Jan 29, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Unify decoder error names to DecoderError

At the moment, some consensus encoding decoders use a naming convention
like *DecodeError for their error types. The overwhelming majority use
*DecoderError, and this was the initial decision early in the process
of introducing consensus_encoding.

Replace *DecodeError error types with *DecoderError types.

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 simple renaming of error types from names ending in 'DecodeError' to 'DecoderError' to match the project's existing naming convention. It does not change any behavior, logic, or security properties of the code.

Security candidateprimitives: use saturating add in WitnessDecoderby jrakibi · 48e04c74 · Jan 27, 2026 · 1 fileMessage 93 · StrongLow 32Details
Commit message · jrakibi

primitives: use saturating add in WitnessDecoder

The required_len calculations before calling `reserve_batch()` could
overflow on 16-bit machines. In order to avoid overflow when
calculating required buffer size, replace addition with
saturating_add().

Addresses https://github.com/rust-bitcoin/rust-bitcoin/issues/5258#issuecomment-3797481037

93/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
Why it was queued
memory safety
AI analysis · Low 32/100

This commit fixes a potential integer overflow when calculating how much memory to reserve while decoding Bitcoin transaction witness data. The overflow could only happen on 16-bit machines, which are extremely uncommon today. The fix replaces regular addition with saturating addition, so the value stops growing at the maximum instead of wrapping around. This is a defensive hardening change rather than a confirmed exploitable vulnerability on typical hardware.

Lower-priorityUpdate API filesby jrakibi · 1b9c5c0b · Jan 27, 2026 · 3 filesMessage 43 · ThinInformational 15Details
Commit message · jrakibi

Update API files

Add MidstateError::midstate() and MidstateError::unprocessed_bytes()
to API tracking files

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 generated API tracking text files. It records two newly added public functions on an error type in the SHA-256 module so the project's automated API-surface checks stay in sync. There is no code change, no bug fix, and no security relevance.

Lower-priorityp2p: Implement `encoding` traits for `InventoryPayload`by rustaceanrob · b85c5ae9 · Jan 27, 2026 · 1 fileMessage 73 · AdequateInformational 12Details
Commit message · rustaceanrob

p2p: Implement `encoding` traits for `InventoryPayload`

Follows #5466 with the vector counterpart.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 12/100

This commit adds standard encoding and decoding support for the InventoryPayload type in the peer-to-peer message module. It is a routine implementation of serialization traits and does not, on its own, change any security-sensitive behavior such as validation limits or memory allocation rules. There is no indication in the commit that this fixes a vulnerability.

Lower-priorityIntroduce FromStr for Target and Workby Mitchell Bagot · 273d31db · Jan 27, 2026 · 1 fileMessage 68 · AdequateInformational 17Details
Commit message · Mitchell Bagot

Introduce FromStr for Target and Work

The Target and Work types both include Display and Upper/LowerHex.
Generally, types that can be stringified should also be parseable from
strings.

Introduce FromStr on Target and Work. Introduce ParseTargetError and
ParseWorkError to encapsulate possible errors during parsing.

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

This commit adds the ability to convert strings into two internal numeric types, Target and Work, used in Bitcoin's proof-of-work calculations. It is a routine feature addition with no security-relevant behavior change; it only provides parsing where only display existed before.

Lower-priorityAdd FromStr functionality to U256by Mitchell Bagot · b3c569eb · Jan 27, 2026 · 1 fileMessage 80 · StrongInformational 15Details
Commit message · Mitchell Bagot

Add FromStr functionality to U256

In order to allow decimal parsing for Target and Work, adding it first
to U256 eliminates code duplication.

Add FromStr to U256 and introduce a ParseU256Error type to encapsulate
possible errors from the parsing.

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 15/100

This commit adds a new feature: the ability to parse a 256-bit unsigned integer (U256) from a decimal string, similar to how you might type a large number into a program. It is a straightforward feature addition with no obvious security bug. The code carefully checks for empty input, invalid digits, non-ASCII characters, and overflow beyond the maximum U256 value.

Security candidatehashes: add test for MidstateErrorby jrakibi · 3ef054fa · Jan 26, 2026 · 1 fileMessage 78 · AdequateInformational 12Details
Commit message · jrakibi

hashes: add test for MidstateError

verify that when midstate() returns an error, the included midstate
and unprocessed bytes in error can be used to reconstruct an equivalent engine
that produces the same final hash

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
cryptography-sensitive path
AI analysis · Informational 12/100

This commit only adds a new unit test. It checks that when a SHA-256 hashing engine is paused mid-way through data (at a non-block-aligned point), the error object contains enough information to build a second engine that finishes hashing and produces the same final result. There is no code fix, behavior change, or security patch here.

Security candidatehashes: include midstate and buffer in MidstateErrorby jrakibi · 9e1b0902 · Jan 26, 2026 · 1 fileMessage 100 · StrongInformational 19Details
Commit message · jrakibi

hashes: include midstate and buffer in MidstateError

when HashEngine::midstate() fails due to non-block-aligned data, the
error now includes the closest block-aligned `Midstate` and the
unprocessed partial-block bytes.

This would allow the caller to recover and resume hashing (the next patch
explains how in a test case)

Closes https://github.com/rust-bitcoin/rust-bitcoin/issues/5483

100/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
cryptography-sensitive path
AI analysis · Informational 19/100

This change enriches an error type in the SHA-256 hashing code. When a caller asks for the internal 'midstate' snapshot at a non-aligned point, the error now also returns the nearest aligned snapshot and any leftover bytes, so the caller can resume hashing later. It is a feature/API improvement, not a fix for an active security flaw.

Lower-priorityImprove test coverage of ParsePrimitiveErrorby Jamil Lambert, PhD · 8d233ff8 · Jan 26, 2026 · 1 fileMessage 70 · AdequateInformational 15Details
Commit message · Jamil Lambert, PhD

Improve test coverage of ParsePrimitiveError

Add tests for Display and Error implementations of ParsePrimitiveError
to increase the test coverage of lib.rs to 100%.

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

This commit only adds new unit tests to verify how an existing error type is displayed and how it reports its underlying cause. It does not change any production code, fix a bug, or alter behavior that could affect security.

Lower-priorityImprove test coverage of CompactTargetby Jamil Lambert, PhD · 899846ca · Jan 26, 2026 · 1 fileMessage 70 · AdequateInformational 15Details
Commit message · Jamil Lambert, PhD

Improve test coverage of CompactTarget

Add tests to increase the test coverage of pow.rs to 100%

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

This commit only adds new unit tests for the CompactTarget type. It does not change any production code, fix bugs, or alter behavior. There is no security relevance.

AI review queuedprimitives: fix tests that created txs with no outputsby jrakibi · 32fefd70 · Jan 25, 2026 · 2 filesMessage 83 · StrongInformational 15Details
Commit message · jrakibi

primitives: fix tests that created txs with no outputs

Update `decode_zero_inputs` and `block_decode` tests to include a
valid output, as transactions with no outputs are now rejected

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: security-sensitive path
AI analysis · Informational 15/100

This commit only updates two internal unit tests so they create transactions that have at least one output. The change is a test-only follow-up after the library started rejecting transactions with no outputs. There is no change to production code, no security fix, and no vulnerability being patched.

AI review queuedprimitives: reject transactions with 0 outputsby jrakibi · 15a947be · Jan 25, 2026 · 2 filesMessage 86 · StrongLow 47Details
Commit message · jrakibi

primitives: reject transactions with 0 outputs

Transactions must have at least one output.

This is another syntactic check that doesn't depend on any context,
and the last one on this list https://github.com/rust-bitcoin/rust-bitcoin/issues/5383#issuecomment-3646014920.
We add validation to reject transactions with empty outputs during decoding.

Two existing tests that created transactions with no outputs are ignored
and will be fixed in the next commit.

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
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 47/100

This commit adds a rule to reject Bitcoin transactions that have no outputs when they are decoded. In Bitcoin, every valid transaction must send bitcoin somewhere, so a transaction with zero outputs is invalid. The change prevents the library from accepting or processing such malformed transactions, which could otherwise lead to inconsistent behavior compared to Bitcoin Core and other nodes.

Lower-priority2026-01-25 automated rustfmt nightlyby Fmt Bot · 4b2cdaa1 · Jan 25, 2026 · 12 filesMessage 45 · ThinInformational 15Details
Commit message · Fmt Bot

2026-01-25 automated rustfmt nightly

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

This is a routine automated code-formatting commit. It only changes whitespace, line breaks, import order, and other stylistic details across a dozen files. No program logic, security checks, or behavior were altered.