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
133commits · 30 days
267commits · 60 days
1103commits · 180 days
2024commits · 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 35 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.

AI review queuedapi: update for CompactSizeU64Decoderby Nick Johnson · 85a6da3a · Mar 18, 2026 · 5 filesMessage 35 · OpaqueInformational 15Details
Commit message · Nick Johnson

api: update for CompactSizeU64Decoder

35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
documentation-only discountsecond-pass: opaque commit message
AI analysis · Informational 15/100

This commit only updates generated API snapshot files (text listings of public types and functions) to reflect a new CompactSizeU64Decoder type and a moved CompactSizeEncoder module path. No actual source code, logic, or behavior changes are present in the diff, so it has no security relevance on its own.

Lower-priorityconsensus_encoding: add a u64 constructor to compact size encoderby Nick Johnson · 773b4a35 · Mar 18, 2026 · 4 filesMessage 50 · ThinInformational 18Details
Commit message · Nick Johnson

consensus_encoding: add a u64 constructor to compact size encoder

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

This commit adds a new way to create a compact-size encoder using a u64 value, and slightly tightens the existing usize constructor. It is a routine API improvement, not a security fix. There is no evidence in the commit or supplied references that this resolves any vulnerability.

Lower-priorityconsensus_encoding: add round trip test for compact size codecsby Nick Johnson · 46145158 · Mar 18, 2026 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Nick Johnson

consensus_encoding: add round trip test for compact size codecs

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 test code for the CompactSize encoding/decoding logic. It does not change any production code, so it cannot introduce a security vulnerability on its own. The tests verify that valid compact-size values encode and decode correctly, and that non-minimal encodings are rejected as errors.

Lower-priorityconsensus_encoding: const the compact size prefix valuesby Nick Johnson · bb7bf48d · Mar 18, 2026 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · Nick Johnson

consensus_encoding: const the compact size prefix values

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

This commit is a simple code cleanup: it replaces hardcoded numbers (0xFD, 0xFE, 0xFF) with named constants (PREFIX_U16, PREFIX_U32, PREFIX_U64) in the compact-size integer encoder/decoder. The behavior of the code is unchanged. There is no security fix or vulnerability here.

AI review queuedconsensus_encoding: move compact size into its own moduleby Nick Johnson · a06bf033 · Mar 18, 2026 · 4 filesMessage 65 · AdequateInformational 15Details
Commit message · Nick Johnson

consensus_encoding: move compact size into its own module

Public API is unchanged; lib.rs re-exports all the same types.

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
parser or protocol pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit is a pure code reorganization: it moves the compact-size integer encoder and decoder into a new dedicated file/module. The public API is unchanged, the logic is unchanged, and no security-relevant behavior is modified.

Lower-priorityconsensus_encoding: add a u64 decoder for compact sizeby Nick Johnson · 77a60aea · Mar 18, 2026 · 2 filesMessage 50 · ThinModerate 50Details
Commit message · Nick Johnson

consensus_encoding: add a u64 decoder for compact size

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

This commit adds a new decoder for reading very large Bitcoin-style numbers (up to 64 bits) and refactors the existing length decoder to share the same parsing logic. The change itself is defensive: it separates 'length' decoding (which has a safety cap to prevent memory exhaustion) from 'raw number' decoding (which has no cap because it's not used for allocation). The commit does not fix a known exploit, but it strengthens the library's design so future callers are less likely to accidentally use an uncapped decoder for lengths.

Lower-priorityp2p: add V1MessageHeader encoding traitsby yancy · f62f81ed · Mar 18, 2026 · 1 fileMessage 76 · AdequateInformational 15Details
Commit message · yancy

p2p: add V1MessageHeader encoding traits

`V1MessageHeader` has traits for decoding a message header, however the
traits to encode a header are missing.

The four fields that are encoded are as follows:
* magic.encoder()
* command.encoder()
* length is cast using to_le_bytes per protocol docs
* no casting is needed for checksum since it's already a u8[]

ref: https://en.bitcoin.it/wiki/Protocol_documentation

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 15/100

This commit adds the missing ability to encode (serialize) Bitcoin P2P v1 message headers, matching the existing decoding support. It is a straightforward feature addition with no security-relevant behavior change.

Security candidateImplement `Arbitrary` for psbt typesby Shing Him Ng · 37c9fce2 · Mar 18, 2026 · 17 filesMessage 45 · ThinInformational 19Details
Commit message · Shing Him Ng

Implement `Arbitrary` for psbt types

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

This commit adds optional support for the `arbitrary` crate, a Rust fuzz-testing helper, across several data types in the rust-bitcoin library. It does not change normal runtime behavior; the new code is only compiled when the optional `arbitrary` feature is enabled. There is no direct security vulnerability in the diff, but it slightly expands the library's dependency tree and public API surface for users who opt into the feature.

Security candidatepsbt: Add unit test case for key byte size handlingby Mitchell Bagot · 3c05450d · Mar 18, 2026 · 1 fileMessage 95 · StrongLow 35Details
Commit message · Mitchell Bagot

psbt: Add unit test case for key byte size handling

Recently, a change ws introduced in psbt to fix key parsing when the
key has a total byte size value that is so small as to fail to cover
the type compact size. In this case, a panic/underflow could occur.
This has been fixed, but a test case should be included to prevent
regressions.

Introduce unit test to verify that small key bytes throw errors instead
of panicing due to underflow.

95/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
Why it was queued
signing boundarysigning or wallet path
AI analysis · Low 35/100

This commit only adds a new unit test; it does not change production code. The test checks that parsing a malformed PSBT key with an impossibly small byte-size field returns a proper error instead of crashing. The underlying panic/underflow bug was already fixed in an earlier change, so this patch is a regression test rather than a fix.

Lower-priorityunits: Add test file for string parsing of integer typesby Mitchell Bagot · 4429fb88 · Mar 18, 2026 · 1 fileMessage 95 · StrongInformational 15Details
Commit message · Mitchell Bagot

units: Add test file for string parsing of integer types

With the integer wrapper types all not implementing hex parsing,
they should be tested to ensure correct function and prevent
regressions.

Add test file for testing string parsing for integer types.

95/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
AI analysis · Informational 15/100

This commit only adds a new test file that checks how integer wrapper types parse hexadecimal strings. It does not change any production code, so it cannot introduce a security vulnerability on its own. It is a routine quality-assurance addition.

Lower-priorityunits: Update API filesby Mitchell Bagot · aec52a08 · Mar 18, 2026 · 3 filesMessage 51 · ThinInformational 15Details
Commit message · Mitchell Bagot

units: Update API files

The previous patches have introduced new functions on various types in
the public API.

Run just check-api to update units 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 listing files (text files that record what functions exist in the public interface). No actual source code was changed, and nothing was fixed or removed. It is purely a documentation/tracking update for newly added public functions introduced by earlier commits.

Lower-priorityunits: Add hex parsing for numeric wrapper typesby Mitchell Bagot · fe483ad9 · Mar 18, 2026 · 4 filesMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

units: Add hex parsing for numeric wrapper types

units contains various other numeric wrapper types that can be
formatted as numeric data. To complement this, they should also be able
to be parsed from data like hex with the same units.

Introduce from_hex and from_hex_unprefixed to all remaining numeric
wrapper types aside from FeeRate.

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

This commit adds new public helper functions that let several numeric wrapper types in the rust-bitcoin 'units' crate be created from hexadecimal strings (with or without a '0x' prefix). It is a straightforward feature addition with no security-relevant behavior change; the underlying hex parsing already existed in the crate.

Lower-priorityunits: Change hex parsing on Height and MedianTimePastby Mitchell Bagot · 64988240 · Mar 18, 2026 · 2 filesMessage 85 · StrongInformational 18Details
Commit message · Mitchell Bagot

units: Change hex parsing on Height and MedianTimePast

Height and MedianTimePast both have an existing from_hex function that
parses from an optionally prefixed hex string. In order to match the
other integer wrapper types in units, this should be split to from_hex
and from_unprefixed_hex.

Change from_hex to only parse prefixed hex in Height and
MedianTimePast. Introduce from_unprefixed_hex in Height and
MedianTimePast to parse unprefixed hex. Adjust ParseTimeError and
ParseHeightError accordingly.

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 18/100

This commit changes how two Bitcoin locktime types (block height and median-time-past) parse hexadecimal strings. Previously, a single function accepted hex with or without a '0x' prefix. Now there are two separate functions: one that requires the '0x' prefix and one that rejects it. This is an API-consistency cleanup, not a fix for an exploitable vulnerability. Existing callers that relied on the old flexible behavior could break at compile time or runtime if they still pass unprefixed hex to from_hex, but the change is intentional and documented.

AI review queuedunits: Add hex parsing for Amount and SignedAmountby Mitchell Bagot · 7abbd16f · Mar 18, 2026 · 3 filesMessage 73 · AdequateInformational 12Details
Commit message · Mitchell Bagot

units: Add hex parsing for Amount and SignedAmount

The Amount and SignedAmount types are numeric wrapper types that should
include functionality for parsing from hex. Since the types can error
during construction for non-hex reasons, the existing ParseAmountError
needs to be extended

Add additional variants to ParseAmountErrorInner to handle hex parsing.
Introduce from_hex and from_hex_unprefixed to Amount and SignedAmount.

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

This commit adds new public functions that let users create Bitcoin amount values from hexadecimal strings. It is a feature addition, not a fix for a known bug or vulnerability. There is no evidence in the commit or supplied references that this change addresses a security issue.

Lower-priorityp2p: add pong message typeby yancy · 87c691a7 · Mar 17, 2026 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · yancy

p2p: add pong message type

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

This commit adds support for the Bitcoin network's 'pong' message type to the library. A pong is the standard reply to a ping, used to check that a peer is still alive. The change only adds new code for encoding, decoding, and testing this message type; it does not alter existing behavior or fix any vulnerability.

Lower-priorityp2p: add ping message typeby yancy · 9fb559d5 · Mar 17, 2026 · 1 fileMessage 70 · AdequateInformational 15Details
Commit message · yancy

p2p: add ping message type

Remove tests for previous serialize implementation of ping since this
encoder/decoder replaces it.

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 adds a new way to encode and decode Bitcoin 'ping' network messages in the rust-bitcoin library. It is a routine feature addition: it introduces a dedicated Ping message type with proper serialization/deserialization and replaces older serialization tests with a round-trip test. There is no indication of a security bug being fixed.

Lower-priorityAdd fuzzing support for chacha20_poly1305 via cfg flagby Abeeujah · fdf898d8 · Mar 17, 2026 · 4 filesMessage 85 · StrongInformational 24Details
Commit message · Abeeujah

Add fuzzing support for chacha20_poly1305 via cfg flag

Introduce `chacha20_poly1305_fuzz` cfg to replace ChaCha20 and Poly1305
primitives with deterministic no-op implementations for fuzzing.

- ChaCha20: keystream returns zeroed 64-byte blocks; apply_keystream
is a no-op.
- Poly1305: stores first 16 bytes of key directly as the tag (trivial
construction avoiding crypto bottlenecks).
- AEAD: derives poly_key directly from raw key bytes, bypassing
ChaCha20 keystream entirely.
- Key: change visibility to pub(super).

Register cfg in workspace lints to prevent unexpected_cfg violations.

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
fuzzing or regression evidence
AI analysis · Informational 24/100

This commit adds a special build-time flag named `chacha20_poly1305_fuzz` that swaps out real ChaCha20/Poly1305 cryptography with fake, deterministic no-op versions intended only for fuzz testing. The fake versions do not encrypt data and do not authenticate it; they are meant to be used only when explicitly compiling with the fuzz flag. The change itself is a test/infrastructure addition, not a normal production code path. The main risk is accidental misuse: if someone builds or ships production code with `chacha20_poly1305_fuzz` enabled, encryption and authentication would be silently disabled. The commit does not claim to fix a vulnerability and does not appear to introduce one in normal builds.

Lower-priorityjustfile: simplify with new cargo-rbmt featuresby Nick Johnson · 74902e1a · Mar 17, 2026 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · Nick Johnson

justfile: simplify with new cargo-rbmt features

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

This commit only edits the project's justfile, a developer convenience script. It removes explicit Rust toolchain arguments because a newer version of the cargo-rbmt tool now handles toolchains internally. There is no change to the actual Bitcoin library code, no user-facing behavior change, and no security relevance.

Lower-priorityci: drop legacy release script in favor of cargo-rbmtby Nick Johnson · 41cdcb77 · Mar 17, 2026 · 9 filesMessage 62 · AdequateInformational 15Details
Commit message · Nick Johnson

ci: drop legacy release script in favor of cargo-rbmt

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

This commit is a routine update to the project's release automation. It removes an old shell script used for release checks and replaces it with a new tool called cargo-rbmt. There are no changes to the actual Bitcoin library code, no bug fixes, and no security-related changes.

Lower-priorityci: combine cargo-rbmt job definitionsby Nick Johnson · 31358d06 · Mar 17, 2026 · 1 fileMessage 57 · ThinInformational 15Details
Commit message · Nick Johnson

ci: combine cargo-rbmt job definitions

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

This commit is a routine cleanup of the project's automated testing configuration file. It merges several nearly identical test job definitions into two simpler, matrix-based job definitions. There is no change to the actual Bitcoin library code, no change to permissions or secrets, and no security relevance.

Lower-priorityci: bump cargo-rbmt and switch to upstream setup-rbmt actionby Nick Johnson · ca9550ca · Mar 17, 2026 · 3 filesMessage 62 · AdequateInformational 15Details
Commit message · Nick Johnson

ci: bump cargo-rbmt and switch to upstream setup-rbmt action

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

This is a routine maintenance change to the project's automated testing setup. It replaces a custom GitHub Actions helper with an equivalent upstream action and updates the version of an internal tool (cargo-rbmt). There is no change to the actual Bitcoin library code that users run, and nothing in the commit suggests a security problem or fix.

Security candidateci: move stable-version to repo root (required for cargo-rbmt)by Nick Johnson · 750ed320 · Mar 17, 2026 · 3 filesMessage 62 · AdequateInformational 15Details
Commit message · Nick Johnson

ci: move stable-version to repo root (required for cargo-rbmt)

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

This commit simply moves a file called 'stable-version' from one folder to another within the project's CI configuration. The file contains a Rust compiler version number used by automated checks. There is no change to the project's actual Bitcoin code, no security fix, and no vulnerability introduced.

Security candidateci: pin zizmor version to avoid random breaksby Nick Johnson · e67e4b92 · Mar 17, 2026 · 1 fileMessage 74 · AdequateInformational 15Details
Commit message · Nick Johnson

ci: pin zizmor version to avoid random breaks

74/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Explains rationale or failure mode✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
access controldocumentation-only discount
AI analysis · Informational 15/100

This commit changes a GitHub Actions workflow so that a security linting tool called zizmor is installed at a fixed version (1.22.0) instead of the latest release. It is a routine CI maintenance change to prevent unexpected breakages when zizmor releases new versions. There is no indication it fixes or introduces a security vulnerability.

Lower-priorityconsensus: add clippy allow to macroby yancy · 06ff2056 · Mar 17, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · yancy

consensus: add clippy allow to macro

The VersionMessage Encoder requires 9 fields, although no such
`Encoder9` exists. Therefore, using a nested encoder to combine
`Encoder6` and and `Encoder3` is needed. However, the nested encoder
causes clippy to fail without this lint.

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

This commit adds a single Rust lint suppression to a macro that generates encoder helper types. It tells the Clippy static-analysis tool to stop complaining about overly complex types when nested encoders are combined. There is no functional code change, no bug fix, and no security relevance.

AI review queuedp2p: add version message encoder/decoderby yancy · 0a183542 · Mar 17, 2026 · 1 fileMessage 78 · AdequateInformational 15Details
Commit message · yancy

p2p: add version message encoder/decoder

* `VersionMessage` is a composition of 9 decoders, however, there is no
such `Decoder9`. Instead of creating a `Decoder9`, combine the first 3
decoders using a `Decoder3` and then the last 6 using a `Decoder6`.

* Replace `deserialize` in test with `decode_from_slice` since push based
encoding is planned to replace the current serialization provided by
`bitcoin::consensus::encode`.

* In the test cases, replace `serialize` with `encoding::encode_to_vec`
since the push encoding here is planned to replace the existing
`serialize` implementation.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
second-pass: broader security terminology
AI analysis · Informational 15/100

This commit adds a new way to encode and decode Bitcoin peer-to-peer 'version' messages in the rust-bitcoin library. It is a routine refactoring and feature addition: it introduces a new encoder/decoder implementation and updates one test to use the new code. There is no indication of a security bug being fixed.