RB
← All projectsRust Bitcoin

rust-bitcoin

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

BitcoinCryptographic librariesNormal
Repository coverage

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

532security candidates511second-pass queue2206AI analyses
130commits · 30 days
248commits · 60 days
1102commits · 180 days
2011commits · 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.

66/100 average clarity
510Strong · 80–100
1085Adequate · 60–79
567Thin · 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.
Andrew Poelstra23179157290
Mitchell Bagot649193645068
Tobin C. Harding41566410063
jrakibi944994068
Nick Johnson19121190060
Jamil Lambert, PhD11919116061
satsfy (Renato Britto)381527066
Fmt Bot331431045
Trevor Arjeski111111069
Shing Him Ng31731056
Martin Habovstiak30628068
Ismail Daif22622050
Analysis record

Published AI watches

Last scanned 56 minutes ago

Moderate 62 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6954: units: serialize unsigned amounts as u64

This commit fixes a mismatch in how unsigned Bitcoin amounts were serialized versus deserialized when using certain compact binary formats. Previously, an unsigned amount (like 100 satoshis) was written as a signed number, which caused for…

Data integrity bug: serialized values decode to different numeric values in varint binary formatsRange-check failure: Amount::MAX and large values near the cap fail deserialization after round-tripSerde serialize/deserialize hint mismatch for unsigned amount types
295c9d8aby Andrew Poelstra+66−112 files
No security note in commit
Low 25 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6955: key_expression: preserve master-key invariants in Xpub Arbitrary

This change fixes a bug in test-only code that generates random fake Bitcoin extended public keys (xpubs). Previously, when generating a master xpub (depth 0), the code could pick random values for the parent fingerprint and child number, …

BIP32 master-key invariant violation in generated test dataEncode/decode round-trip failure for generated master xpubsFix aligns Xpub::arbitrary with existing Xpriv::arbitrary behavior
4116ecc6by Andrew Poelstra+35−31 file
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6947: build(deps): bump cargo-bins/cargo-binstall from 1.21.0 to 1.21.1

This commit updates the version of a helper tool (cargo-binstall) used only inside GitHub Actions automation. It is a routine dependency bump by Dependabot and does not change any code that ships to users. There is no indication of a secur…

c1be49cbby Andrew Poelstra+2−22 files
No security note in commit
High 70 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6919: Sanitize serde size hints before allocating

This commit fixes a denial-of-service weakness in how the library deserializes lists of Bitcoin data (witnesses, amounts, fee rates) from untrusted input. Before the fix, a few bytes of attacker-controlled data could claim a list would con…

Untrusted serde size hint fed directly into Vec::with_capacityPotential memory exhaustion / OOM kill from small malicious inputDenial-of-service vector in deserialization paths
55ddbc0cby Andrew Poelstra+88−105 files
Vendor flagged security relevance
Moderate 60 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6945: bitcoin: handle OP_CODESEPARATOR in legacy

This commit fixes how the Rust Bitcoin library calculates old-style (legacy) transaction signatures when the spending script contains a special opcode called OP_CODESEPARATOR. Previously the library did not handle this opcode at all, which…

Protocol correctness fix for legacy sighash serializationOP_CODESEPARATOR handling added to match Bitcoin Core consensus behaviorPreviously omitted test vectors restored, indicating prior non-compliance
5b815281by Andrew Poelstra+600−3093 files
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6948: build(deps): bump taiki-e/install-action from 2.83.2 to 2.85.4

This is a routine update by Dependabot to the version of a third-party GitHub Action used in the project's automated testing workflows. The change only affects internal continuous integration (CI) scripts, not the actual Bitcoin library co…

d1431904by Andrew Poelstra+2−22 files
No security note in commit
Low 33 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6946: Fix integer overflow in `get_array`

This commit fixes a small but real bug in a Rust helper that reads fixed-size chunks from a data slice. The helper was supposed to safely return 'nothing' when asked to read past the end of the data, but it accidentally added two numbers t…

Integer overflow in bounds-checking helperContract violation: method documented to return None on out-of-bounds access could panic insteadDebug-build panic (denial of service) possible
c6e80843by Andrew Poelstra+2−11 file
Vendor flagged security relevance
Moderate 62 AI analysisMessage 73 · Adequate
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Fix integer overflow in `get_array`

This commit fixes a bug in a Rust helper method called `get_array`, which is meant to safely read a fixed-size chunk from a slice and return nothing if the requested range is out of bounds. The bug was that the code added the caller's offs…

Integer overflow in bounds calculationPotential panic due to violated internal length expectationCaller-controlled arithmetic used for memory access bounds
56fb1287by Martin Habovstiak+2−11 file
Vendor flagged security relevance
High 71 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6915: primitives: Fix `Witness` handling of oversized items

This commit fixes a bug in how the Rust Bitcoin library counts and compares transaction witness data when a witness contains an oversized item. Previously, several functions relied on an iterator that silently skips oversized items, causin…

Inconsistent serialization/iterator behavior for oversized witness itemswtxid collision risk between transactions differing only in oversized witness bytesIncorrect witness equality for oversized single-item stacks
e1ed5884by Andrew Poelstra+106−273 files
Vendor flagged security relevance
Informational 19 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6922: Use `try_fold` instead of `fold` in `Sum` impl

This is a code-quality and performance improvement, not a security fix. It changes how the library adds up lists of Bitcoin amounts so that it stops early once an overflow is detected, rather than continuing to process the rest of the list…

No security-relevant signal in commit message or diffRefactor preserves overflow-checking behavior (short-circuits instead of continuing)New API method `NumOpResult::from_result` is a pure inverse of existing `into_result`
86e4d5daby Andrew Poelstra+60−562 files
No security note in commit
Moderate 52 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6893: units: Reject malformed amount strings

This update fixes a bug in how the library reads Bitcoin amount strings like '1.5 BTC'. Previously, certain malformed inputs such as '.', '._', '1_', '1_.0', and '1._0' were incorrectly accepted and treated as valid amounts (often zero), i…

Input validation bypass in amount parserMalformed strings silently parsed as zero or ordinary amountsUnderscore separator placement not enforced
fcb14622by Andrew Poelstra+88−343 files
Vendor flagged security relevance
Low 48 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6921: units: fix div_by_fee_rate_ceil precision

This commit fixes a rounding bug in how the rust-bitcoin library calculates the minimum transaction weight needed to pay a given fee at a given fee rate. The old code rounded the fee rate up too early, which could produce a weight slightly…

Incorrect fee-weight calculation due to premature integer roundingPotential transaction fee shortfall when using div_by_fee_rate_ceilOverflow protection added for Amount::MAX * 4_000_000 intermediate value
b31212e0by Andrew Poelstra+38−82 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6898: Release tracking PR: `consensus-encoding 1.3.0`

This is a routine release-management commit that bumps the version number of the `bitcoin-consensus-encoding` crate from 1.2.0 to 1.3.0 and updates lock files accordingly. It contains no code changes that fix or introduce a security issue.…

0cfc7908by Andrew Poelstra+37−349 files
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6909: build(deps): bump actions/labeler from 6.2.0 to 7.0.0

This commit updates a GitHub Actions automation tool (actions/labeler) used to automatically tag pull requests with labels. It is a routine dependency version bump from 6.2.0 to 7.0.0, with no indication of a security fix or vulnerability.…

4ed7c068by Andrew Poelstra+1−11 file
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6910: build(deps): bump actions/checkout from 7.0.0 to 7.0.1

This commit is a routine update to the GitHub Actions checkout tool used by the project's automated workflows. It only changes version numbers in configuration files and does not alter the actual Bitcoin library code that users run. There …

328c4ae9by Andrew Poelstra+37−3717 files
No security note in commit
Informational 15 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6911: build(deps): bump astral-sh/setup-uv from 8.3.2 to 9.0.0

This commit updates a GitHub Actions helper used to install a Python tool called uv, which runs the zizmor security scanner. The change only bumps the pinned version of the helper from 8.3.2 to 9.0.0. The new version's release notes mentio…

No security-relevant signals in commit or upstream release notesDependency bump in CI only, not in library codeNo CVE or advisory referenced
67600795by Andrew Poelstra+2−22 files
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6912: build(deps): bump github/codeql-action/upload-sarif from 4.37.0 to 4.37.3

This is a routine Dependabot update that changes the pinned version of GitHub's official CodeQL upload-sarif action from 4.37.0 to 4.37.3 in a single CI workflow. The action only uploads static analysis results to GitHub; it does not touch…

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

Merge rust-bitcoin/rust-bitcoin#6913: build(deps): bump dtolnay/rust-toolchain from 6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 to 02cb101ec7c40f2c49e1d9714d64511d8e1b74de

This is a routine update to a GitHub Actions helper used to install Rust during automated testing. It only changes the pinned version of the dtolnay/rust-toolchain action in workflow files. There is no change to the actual rust-bitcoin lib…

90330d15by Andrew Poelstra+8−84 files
No security note in commit
Informational 20 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#6906: consensus_encoding, primitives: expose exact encoding size for block and transaction

This commit adds a way to ask, in advance, exactly how many bytes a Bitcoin block or transaction will take when serialized. It is a feature addition for the library's encoding system, not a fix for a vulnerability. There is no indication i…

No security-relevant signals in commit message or diffFeature addition: expose exact encoded sizeNo mention of vulnerability, CVE, bug bounty, or security report
1a365d53by Andrew Poelstra+129−1068 files
No security note in commit
Informational 15 AI analysisMessage 88 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

build(deps): bump dtolnay/rust-toolchain

This is a routine update by Dependabot that changes which version of a popular GitHub Action (dtolnay/rust-toolchain) is used to install Rust in automated CI workflows. The commit only updates pinned commit hashes in workflow files; it doe…

a31e0b0eby dependabot[bot]+8−84 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-priorityAdd Kani proof for VarInt round-tripby Alkamal01 · 6e5c108f · Feb 1, 2026 · 2 filesMessage 45 · ThinInformational 15Details
Commit message · Alkamal01

Add Kani proof for VarInt round-trip

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

This commit only adds two automated formal-verification test cases (Kani proofs) that check Bitcoin's variable-length integer encoding round-trips correctly. It does not change any production code, fix a bug, or introduce a security-relevant behavior change. There is no indication of a vulnerability or security patch.

Security candidate2026-02-01 automated rustfmt nightlyby Fmt Bot · 1681e7b5 · Feb 1, 2026 · 18 filesMessage 45 · ThinInformational 15Details
Commit message · Fmt Bot

2026-02-01 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 commit is an automated code-formatting run by rustfmt. It only changes whitespace, line breaks, import order, and other stylistic details across 18 files. No program logic, security behavior, or functionality was altered.

AI review queuedtest(p2p): Update deserialize for `AddrV2`by rustaceanrob · 1d587674 · Jan 31, 2026 · 1 fileMessage 67 · AdequateInformational 15Details
Commit message · rustaceanrob

test(p2p): Update deserialize 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
Why it was queued
second-pass: broader security terminology
AI analysis · Informational 15/100

This commit only changes test code. It expands existing unit tests for the AddrV2 network address type so that deserialization is checked with both the old `deserialize` helper and a newer `encoding::decode_from_slice` function. No production code was modified, so it cannot directly introduce a runtime security vulnerability.

Lower-priorityp2p: Implement `Decodable` for `AddrV2`by rustaceanrob · 3601fa8f · Jan 31, 2026 · 1 fileMessage 68 · AdequateLow 35Details
Commit message · rustaceanrob

p2p: Implement `Decodable` for `AddrV2`

Usual EOF error cases as well as if the buffer does not fit into the
expected size of the network address. Other networking related errors
are preserved as well.

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

This commit adds the ability to decode (read/parse) a newer Bitcoin peer-address format called AddrV2. Before this change, the code could encode (write) these addresses but apparently could not decode them. The new decoder checks that address lengths match what each network type expects, rejects some invalid address encodings (like wrapping an old Tor or IPv4 address inside IPv6), and reports errors cleanly. It is a normal feature-completion patch, but because it handles untrusted network input, any mistakes here could create parsing bugs.

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.