RB
← All projectsRust Bitcoin

rust-bitcoin

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

BitcoinCryptographic librariesNormal
Repository coverage

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

612security candidates555second-pass queue2330AI analyses
151commits · 30 days
273commits · 60 days
960commits · 180 days
2043commits · 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.

68/100 average clarity
702Strong · 80–100
1135Adequate · 60–79
582Thin · 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 Poelstra407139251391
Mitchell Bagot659200654068
Tobin C. Harding42167411063
jrakibi1015096069
satsfy (Renato Britto)652235065
Nick Johnson19621190060
Jamil Lambert, PhD12619117062
Fmt Bot351532045
Trevor Arjeski111111069
Shing Him Ng31731056
Martin Habovstiak31629069
Ismail Daif22622050
Analysis record

Published AI watches

Last scanned 21 minutes ago

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

Merge rust-bitcoin/rust-bitcoin#7220: refactor(bip32)!: replace KeySource with KeyOrigin

This is a routine code cleanup in a Bitcoin library. It renames a simple data container from KeySource to KeyOrigin and gives it named fields (fingerprint and path) instead of numbered tuple slots (.0 and .1). The serialized format is inte…

6bb507b2by Andrew Poelstra+84−33 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7204: key-expression: Get secp256k1 from the crypto dep

This change is a routine internal cleanup: the key_expression crate stops depending directly on the secp256k1 cryptography library and instead uses a re-export provided by another internal crate called crypto. No user-facing behavior, type…

d193efc5by Andrew Poelstra+7−107 files
No security note in commit
Informational 17 AI analysisMessage 68 · Adequate
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

key_expression: Forward serde feature to network

This is a small Cargo.toml fix in a Rust Bitcoin subcrate. When the optional 'serde' feature was enabled on the key_expression crate alone, it did not also enable serde on the network crate. That meant a type called NetworkKind could not b…

806f1e1fby bytescape30+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#7223: build(deps): bump taiki-e/install-action from 2.87.9 to 2.87.13

This is a routine update to a GitHub Actions helper used in automated testing workflows. It bumps the version of taiki-e/install-action, which downloads and installs Rust developer tools during CI runs. There is no change to the actual Bit…

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

Merge rust-bitcoin/rust-bitcoin#7224: build(deps): bump astral-sh/setup-uv from 10.0.1 to 10.1.0

This is a routine update to a GitHub Actions helper used only in automated security-scanning workflows. The new version adds minor improvements, including respecting proxy settings and verifying downloaded files with checksums. It does not…

Dependency bump of a third-party GitHub Action used in CI onlyUpstream release notes mention generic security improvements (checksum verification, npm install defaults, NO_PROXY)No CVE, advisory, or vendor security disclosure is present in the commit or supplied references
7bc9d696by Andrew Poelstra+2−22 files
No security note in commit
Informational 19 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7105: Remove derived serde impls for types in stabilising crates

This commit removes automatic serde (serialization/deserialization) code generation from several Rust Bitcoin library crates and replaces it with hand-written implementations. The stated goal is to reduce dependencies and make the code eas…

Manual serde implementations replace derived ones, increasing the surface area for serialization-format bugsNo validation logic changes are visible in the diffNo mention of security fixes, CVEs, or vulnerability reports in commit message or PR description
9eeb7774by Andrew Poelstra+219−4110 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7205: Manual update to rustc stable (to 1.100.0)

This commit updates the project's automated Rust compiler version from 1.99.1 to 1.100.0 and adjusts a CI cache cleanup script to match a new directory layout used by Cargo 1.100. It is purely an infrastructure/maintenance change to keep a…

44e6f0caby Andrew Poelstra+8−22 files
No security note in commit
Informational 18 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7197: ci: bump rbmt to 0.5.5 and fail API job on private dep leak

This is a build-system improvement, not a code change. It updates a CI helper tool and makes the automated API-checking job fail if a private internal crate accidentally becomes part of the public API. That prevents future leaks of interna…

CI guardrail added to prevent private dependency leaks into stable crate public APIsTool bump enables detection of re-exported private dependenciesNo source-code vulnerability is patched
be14c72eby Andrew Poelstra+7−12 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7185: Refactor/bip32 flatten error constructors

This is a minor internal code cleanup in the Rust Bitcoin library. It changes how two functions (Xpriv::decode and Xpub::decode) build their error messages when an input is the wrong length. The behavior is the same before and after; only …

271f662aby Andrew Poelstra+8−61 file
No security note in commit
Informational 24 AI analysisMessage 93 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7167: units: remove `Denomination::MicroBitcoin`

This is a routine API cleanup, not a security fix. The change removes one way of naming a Bitcoin unit ('MicroBitcoin' / 'uBTC') and keeps the equivalent 'bits' form. Any code that previously used the old name will fail to compile or fail …

No security signal: public API deprecation and enum variant removalNo memory safety, cryptographic, or consensus code modifiedError message change is informational only
d0602195by Andrew Poelstra+53−403 files
No security note in commit
Informational 19 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7127: key_expression: Reduce `alloc` gating to minimal types

This commit is a code cleanup and feature-gating refactor for the rust-bitcoin library's key_expression crate. It makes more BIP32 (Bitcoin wallet key derivation) types available when the 'alloc' memory allocator feature is disabled, and s…

Refactor of error types and parsing paths for Xpriv/Xpub base58 decodingSwitch from unbounded base58 decode to fixed-size array decode (78 bytes)Removal of explicit length-check error path in favor of decoder-reported length error
c3d27d5dby Andrew Poelstra+60−823 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7039: primitives: Fix daily Miri cron failures with measured test gating

This change only adds `#[cfg_attr(miri, ignore)]` annotations to a handful of slow unit tests so they are skipped when run under Miri, a Rust interpreter used for detecting undefined behavior. It does not change any production code, consen…

1dc09077by Andrew Poelstra+6−03 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7182: Update local dependencies

This commit only updates version numbers in package configuration files (Cargo.toml) for internal dependencies so that all crates in the project require the same minimum versions of shared libraries. There are no code changes, no bug fixes…

06f41225by Andrew Poelstra+7−75 files
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7179: build(deps): bump taiki-e/install-action from 2.87.4 to 2.87.9

This is a routine update to a GitHub Actions helper used in automated testing workflows. It changes which version of a third-party tool-installer action is used, but only for installing the cargo-mutants testing tool. There is no indicatio…

4fda66b5by 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#7180: build(deps): bump cargo-bins/cargo-binstall from 1.22.0 to 1.23.0

This commit updates the version of a helper tool called cargo-binstall used in two automated GitHub workflows. The change only affects internal build/CI tooling and does not alter the rust-bitcoin library code that users install or run. Th…

53eae24dby 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#7181: build(deps): bump github/codeql-action/upload-sarif from 4.37.9 to 4.38.0

This is a routine update by Dependabot to the GitHub CodeQL upload-sarif action used in a scheduled security scanning workflow. It changes one pinned commit hash to a newer version of the same action. There is no indication this introduces…

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

key_expression: Flatten BIP32 decode error construction

This commit is a minor code cleanup in the Rust Bitcoin library. It changes how an error message is built when decoding BIP32 extended keys, switching from one nested construction style to two chained calls. The actual behavior and returne…

c31c11e0by Adewale Ijalana+8−61 file
No security note in commit
Low 36 AI analysisMessage 100 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

Merge rust-bitcoin/rust-bitcoin#7168: units: add `visit_units` in optional serde visitors

This commit fixes a bug in how optional Bitcoin amount and fee-rate values are read from JSON when those fields are inside a flattened struct and the value is null. Previously, the code would error out because it did not handle a special s…

Deserialization failure in optional numeric types under serde flattenMissing serde visitor method (visit_unit) causing runtime errorsRegression test added for null handling in flattened structs
47340d2fby Andrew Poelstra+79−03 files
No security note in commit
Informational 15 AI analysisMessage 93 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

build(deps): bump github/codeql-action/upload-sarif

This is a routine dependency update by Dependabot, bumping the version of a GitHub-provided action used to upload security scan results. There is no indication of a security vulnerability in the project itself or in this change.

fe755619by dependabot[bot]+1−11 file
No security note in commit
Informational 15 AI analysisMessage 93 · Strong
RB Rust Bitcoinrust-bitcoin BitcoinCryptographic libraries

build(deps): bump cargo-bins/cargo-binstall from 1.22.0 to 1.23.0

This is a routine automated update by Dependabot that changes the version of a GitHub Action used to install Rust tools in two CI workflows. There is no indication of a security issue in the commit itself, and no verified security referenc…

2ccb0029by dependabot[bot]+2−22 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 new prefixed encoders for BytesEncoder and SliceEncoderby Mitchell Bagot · 8cf6b291 · Jul 10, 2026 · 2 filesMessage 73 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Add new prefixed encoders for BytesEncoder and SliceEncoder

The SliceEncoder and BytesEncoder types both encode variable length
slices of data without a length prefix. Currently, the code suggests
using Encoder2 for length prefixes, but this bloats types and encoder
initialisation for a common use-case. Instead, we should provide
encoders that automatically calculate and encode the length prefix as
a compact size.

Introduce PrefixedBytesEncoder and PrefixedSliceEncoder types that
mirror BytesEncoder and SliceEncoder but include length prefixes.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit adds two new helper types, PrefixedBytesEncoder and PrefixedSliceEncoder, to make it easier to encode byte slices and lists of items with a length prefix. It is a straightforward feature/refactoring change with no security relevance visible in the code or commit message.

Lower-priorityunits: Remove incorrect code commentby Tobin C. Harding · 980ccfd5 · Jul 10, 2026 · 1 fileMessage 88 · StrongInformational 15Details
Commit message · Tobin C. Harding

units: Remove incorrect code comment

In #6384 we change `<=` to `<`. While reviewing I thought this change
was incorrect at the time. After deeper consideration I see my confusion.

However the code comment added in the linked PR is definitely
incorrect and contradicts the rustdoc comments on the function.

`time` is the MTP of the chain tip. This is what the rustdocs say and
it is also what is stated in `validation.cpp` in Core:

// BIP113 requires that time-locked transactions have nLockTime set to
// less than the median time of the previous block they're contained in.
// When the next block is created its previous block will be the current
// chain tip, so we use that to calculate the median time passed to
// IsFinalTx().
const int64_t nBlockTime{active_chain_tip.GetMedianTimePast()};

return IsFinalTx(tx, nBlockHeight, nBlockTime);

`IsFinalTx` contains the equivalent lock time check that
`is_satisfied_by` calculates. This is exactly why we changed to use
`<` to match that function:

```
bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime)
{
if (tx.nLockTime == 0)
return true;
if ((int64_t)tx.nLockTime < ((int64_t)tx.nLockTime < LOCKTIME_THRESHOLD ? (int64_t)nBlockHeight : nBlockTime))
return true;
```

Remove the code comment.

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

This commit only deletes an incorrect explanatory comment. The actual code behavior does not change at all. It is a documentation cleanup, not a security fix.

Lower-priorityunits: Fix changelog 0.5.0 linkby Tobin C. Harding · da7ae89d · Jul 9, 2026 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · Tobin C. Harding

units: Fix changelog 0.5.0 link

Fix typo in link.

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

This commit fixes a typo in a changelog hyperlink. It changes one version number in a Markdown reference link so the comparison URL points to the correct previous release. There is no code change and no security relevance.

Security candidateRemove hex dep from internalsby Tobin C. Harding · bd0d4bc0 · Jul 9, 2026 · 8 filesMessage 68 · AdequateInformational 15Details
Commit message · Tobin C. Harding

Remove hex dep from internals

The `hex` dep is no longer used in `internals` (since #6339).

Remove it.

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

This commit simply removes an unused software dependency (the hex-conservative crate) from the internals sub-package and updates related package configuration files. It is a routine cleanup change with no security relevance.

Security candidatedocs: root readme cleanupby Nick Johnson · efeab943 · Jul 8, 2026 · 1 fileMessage 70 · AdequateInformational 15Details
Commit message · Nick Johnson

docs: root readme cleanup

* PSBT has moved to the rust-psbt crate.
* The CI badges are not helpful when viewed from things like crates.io,
we have detection jobs now for maintainers for stuff like kani.
* Update deprecated library json rpc library.
* Update changelog links to work from anywhere. Also add missing crates.

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
signing boundarydocumentation-only discount
AI analysis · Informational 15/100

This commit only edits the project's README.md file. It removes outdated CI badges, updates the recommended JSON-RPC client library, fixes changelog links, and adds missing crates to the changelog list. No code, build scripts, or cryptographic logic was changed, so it has no direct security impact on users of the library.

Lower-prioritydocs: update LTS versions and expand on policyby Nick Johnson · d704b494 · Jul 8, 2026 · 1 fileMessage 57 · ThinInformational 15Details
Commit message · Nick Johnson

docs: update LTS versions and expand on policy

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 only edits a documentation file describing which versions of the rust-bitcoin project are supported long-term. It removes detailed dependency tables and updates the list of maintained LTS branches. There is no code change and no security fix or vulnerability introduced.

Security candidateReplace external uses of base58 encoding with Base58CkStringby Mitchell Bagot · 7f5fbd13 · Jul 8, 2026 · 3 filesMessage 73 · AdequateInformational 17Details
Commit message · Mitchell Bagot

Replace external uses of base58 encoding with Base58CkString

Before the old encoding functions can be removed, all uses from outside
the crate need to be replaced with the equivalent calls from the new
Base58CkString type.

Replace all uses of encode_check and encode_check_to_fmt with equivalent
Base58CkString uses.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
cryptography-sensitive path
AI analysis · Informational 17/100

This commit is a routine internal code cleanup in the rust-bitcoin project. It swaps old base58 encoding helper functions for a new equivalent type, Base58CkString, in three source files. There is no indication from the commit itself that this fixes a security bug; it appears to be part of a refactoring to remove deprecated functions.

Lower-priorityRemove unused old encoding functionsby Mitchell Bagot · de3554c5 · Jul 8, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Remove unused old encoding functions

With the introduction of the Base58CkString type, the old encoding
functions can now be completely removed.

Remove encode, encode_check and encode_check_to_fmt, alongside the
accompanying private functions.

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

This commit simply deletes unused base58 encoding helper functions from the rust-bitcoin library. There is no security issue: the removed code is not called anywhere, and the public API is being cleaned up after a newer replacement type was introduced.

AI review queuedAdjust crate level docsby Mitchell Bagot · 30a6f1c5 · Jul 8, 2026 · 1 fileMessage 28 · OpaqueInformational 15Details
Commit message · Mitchell Bagot

Adjust crate level docs

28/100 · OpaqueMessage clarity
✓ Subject identifies a change! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100

This commit changes a single sentence in the crate's documentation. It clarifies that the base58 crate requires an allocator specifically for decoding, not for all operations. There is no code change and no security impact.

Lower-priorityReplace encode with checksum encoding in testsby Mitchell Bagot · 903b5bef · Jul 8, 2026 · 1 fileMessage 90 · StrongInformational 15Details
Commit message · Mitchell Bagot

Replace encode with checksum encoding in tests

The new Base58CkString type only performs base58check encoding, not the
non-checksum type encoding. As such, it has no replacement for the old
encode function. In order to confirm the same functionality (leading
zeros, >128 chars, etc), the uses of encode can be replaced by
equivalent base58check strings in the tests.

Replace encode usage in test cases with equivalent base58check encoded
strings and encoding calls.

90/100 · StrongMessage clarity
✓ 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 changes test code in the rust-bitcoin base58 module. It replaces calls to an old plain base58 encoder with equivalent base58check-encoded strings and a new checksum-based encoder. There is no change to production code, no security fix, and no vulnerability.

Lower-priorityGate alloc-only decoding errorsby Mitchell Bagot · 67925869 · Jul 8, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Gate alloc-only decoding errors

The errors used for decoding are currently alloc-only, but are exported
even for no-alloc builds. These should be gated the same as the
functionality that uses them.

Gate Error, IncorrectChecksumError, TooShortError and
InvalidCharacterError behind alloc.

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 build-system cleanup, not a security fix. It hides certain error types from builds that do not enable the 'alloc' feature, because those error types are only used by decoding functions that already require 'alloc'. There is no change to how data is decoded, checked, or handled at runtime.

Lower-priorityReplace encode_check with Base58CkString in tests and benchmarksby Mitchell Bagot · 44fe1c1c · Jul 8, 2026 · 1 fileMessage 83 · StrongInformational 15Details
Commit message · Mitchell Bagot

Replace encode_check with Base58CkString in tests and benchmarks

The encode_check function is used for base58check encoding under the
old function API. With the introduction of the Base58CkString type,
base58check encoding is now done through Base58CkString::encode or
encode_unbounded.

Replace encode_check uses in tests and benchmarks with
Base58CkString::encode_unbounded.

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only updates internal tests and benchmarks to use a newer API for base58check encoding. It does not change any production code or fix a security problem.

Security candidateAdd try_push to Buffer traitby Mitchell Bagot · aafb6065 · Jul 8, 2026 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Add try_push to Buffer trait

As part of the introduction of no-alloc encoding, the Buffer trait will
need a push function that can fail gracefully when it overflows. The
simplest solution is to introduce a try_push function that is infallible
for Vec and calls through to try_push on ArrayVec.

Add try_push function to Buffer trait.

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

This commit adds a new `try_push` method to an internal `Buffer` trait used during Base58 encoding. It is a straightforward, additive change that lets encoding code gracefully handle a full fixed-size buffer in no-allocation builds. There is no bug fix, no behavior change to existing code paths, and no security issue visible in the diff.

Lower-prioritySplit format_iter into encode_to_bufferby Mitchell Bagot · f85780de · Jul 8, 2026 · 1 fileMessage 58 · ThinInformational 18Details
Commit message · Mitchell Bagot

Split format_iter into encode_to_buffer

As part of the no-alloc encoding, a fallible method for encoding data
to an ArrayVec will be needed. Rather than duplicate the logic, the
existing format_iter can be split into an encode_to_buffer that writes
to a backing Buffer (Vec or ArrayVec) and then re-written to dump that
local backing buffer to the fmt::Write instance.

Introduce encode_to_buffer fallible function for encoding a u8 iter to
a Buffer instance and rewrite format_iter to use it.

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

This commit refactors base58 encoding so the same encoding logic can be reused with a fixed-size, no-allocation buffer (ArrayVec) as well as the existing heap buffer (Vec). It removes several `#[cfg(feature = "alloc")]` guards from shared constants and traits, and introduces a fallible `encode_to_buffer` helper. The change is a code-cleanup/refactoring step toward supporting no-alloc environments; it does not by itself fix a reported security bug.

Lower-priorityAdd Base58CkString typeby Mitchell Bagot · 5adcab52 · Jul 8, 2026 · 2 filesMessage 51 · ThinInformational 15Details
Commit message · Mitchell Bagot

Add Base58CkString type

With the previous changes to the Buffer and new encode_to_buffer
function, a stack-based type Base58CkString for encoding can now be
trivially defined. As with the existing logic, this type encodes in
either an ArrayVec, or a Vec depending on the feature gating and
provides simple conversions to strings and ascii byte buffers.

Introduce Base58CkString type that provides alloc/no-alloc base58check
encoding.

51/100 · ThinMessage clarity
✓ Subject identifies a change✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit adds a new type, Base58CkString, for encoding Bitcoin-style base58check strings. It is a routine feature addition that makes encoding work both with and without memory allocation. There is no indication of a security bug or fix.

Lower-priorityRemove push from Bufferby Mitchell Bagot · c768df58 · Jul 8, 2026 · 1 fileMessage 51 · ThinInformational 15Details
Commit message · Mitchell Bagot

Remove push from Buffer

With the change to encode_to_buffer/format_iter to use the fallible
try_push, the infallible push is no longer needed on the Buffer trait.

Remove push function from Buffer trait.

51/100 · ThinMessage clarity
✓ Subject identifies a change✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit is a routine internal cleanup in the rust-bitcoin library's base58 module. It removes an unused 'push' method from a private helper trait called Buffer, because the code now uses a fallible 'try_push' method instead. There is no security-relevant change: no behavior is altered, no bug is fixed, and no vulnerability is introduced or removed.

AI review queuedUpdate API filesby Mitchell Bagot · 77cf6dc5 · Jul 8, 2026 · 2 filesMessage 28 · OpaqueInformational 15Details
Commit message · Mitchell Bagot

Update API files

28/100 · OpaqueMessage clarity
✓ Subject identifies a change! 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 listing files (text snapshots of public functions/types). It adds lines describing two new public methods on script types. There is no source code change, no bug fix, and no security relevance visible in the diff.

Lower-priorityMove script_hash and wscript_hash to primitivesby Mitchell Bagot · 9c15fd0c · Jul 8, 2026 · 4 filesMessage 68 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Move script_hash and wscript_hash to primitives

The script_hash and wscript_hash functions in Script extension traits
currently function the same as the W/ScriptHash::from_script
constructors. Until recently, these could not be moved as the
prerequisite functionality and types had yet to be moved. With the
recent moves of functionality to primitives, these can now be moved.

Move script_hash and wscript_hash to primitives on the base 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 routine internal code reorganization. It moves two helper methods, `script_hash` and `wscript_hash`, from one Rust module to another within the same project. The methods still do exactly the same thing—compute the same Bitcoin script hashes—and are still called the same way. There is no change to security behavior, no bug fix, and no vulnerability.

Lower-priorityAdd default_rpc_port method to NetworkExt traitby jaoleal · dd81148a · Jul 7, 2026 · 1 fileMessage 78 · AdequateInformational 15Details
Commit message · jaoleal

Add default_rpc_port method to NetworkExt trait

Add a `default_rpc_port` method to `NetworkExt`, mirroring the existing
`default_p2p_port` method but for the JSON-RPC interface values.

Includes unit tests following the same pattern as `default_p2p_port`.

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

This commit adds a simple helper function that returns the default Bitcoin JSON-RPC port number for each supported network (Bitcoin mainnet, Signet, Testnet versions, and Regtest). It is purely additive: it exposes no new network service, changes no existing behavior, and contains no input parsing, cryptography, or memory-unsafe code. There is no security issue here.

Lower-priorityAdd newline after heading on new_witness_program_uncheckedby Mitchell Bagot · 682f1989 · Jul 7, 2026 · 3 filesMessage 73 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Add newline after heading on new_witness_program_unchecked

Function doccomments should always have a blank line between the first
heading line and any subsequent comment content. While the
new_witness_program_unchecked functions are not public, they might as
well be adjusted to suit this standard.

Add newline under the heading lines of each instance of
new_witness_program_unchecked.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit only adds blank lines inside documentation comments for three internal helper functions. It changes no executable code, no APIs, and no behavior, so it has no security relevance.

Lower-priorityAdd comments to new_witness_program_unchecked about duplicatesby Mitchell Bagot · fd8b0879 · Jul 7, 2026 · 3 filesMessage 73 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Add comments to new_witness_program_unchecked about duplicates

The new_witness_program_unchecked is currently duplicated three times
in addresses, bitcoin and primitives. Since there may be changes needed
to any of the three, comments should be added to remind future devs of
the need to keep the three in sync.

Add comment to each new_witness_program_unchecked instance to keep them
in sync.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit only adds plain-text comments to three copies of the same internal helper function, reminding future developers that the copies should be kept in sync. No code behavior was changed, so it has no security effect on its own.

Lower-priorityRemove doccomments from ScriptPubKeyBufExt fn implsby Mitchell Bagot · 1b5efc4d · Jul 7, 2026 · 1 fileMessage 73 · AdequateInformational 15Details
Commit message · Mitchell Bagot

Remove doccomments from ScriptPubKeyBufExt fn impls

The doccomments on the function implementations of ScriptPubKeyBufExt
do not do anything. The docs are rendered from the doccomments on the
trait definition itself. Those on the impl should be removed.

Remove doccomments from ScriptPubKeyBufExt functions in the impl block.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit only removes five documentation comments from the implementation of a Rust trait. The actual code behavior does not change; only the source-code comments are deleted because the documentation is already rendered from the trait definition. There is no security relevance.

Lower-priorityscript: make new_p2wsh available on hashable scriptsby weifanglab · 57e55036 · Jul 7, 2026 · 2 filesMessage 65 · AdequateInformational 15Details
Commit message · weifanglab

script: make new_p2wsh available on hashable scripts

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

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit only updates two public API listing files (text snapshots of the crate's public interface). It widens which script types can call a helper that builds a Pay-to-Witness-Script-Hash output. There is no code change, no bug fix, and no security behavior change visible in the diff.

Lower-priorityscript: make new_p2wsh available on hashable scriptsby weifanglab · 5d339e84 · Jul 7, 2026 · 2 filesMessage 65 · AdequateInformational 15Details
Commit message · weifanglab

script: make new_p2wsh available on hashable scripts

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

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This is a small API change in a Bitcoin library written in Rust. It moves a helper function that creates P2WSH (pay-to-witness-script-hash) output scripts so it can be used on more script types. There is no indication this fixes a security bug or introduces a vulnerability; it appears to be a routine feature/cleanup change.

Lower-priorityconsensus_encoding: Add crate level doc for decode_from_hexby Tobin C. Harding · a29f4adb · Jul 7, 2026 · 1 fileMessage 65 · AdequateInformational 15Details
Commit message · Tobin C. Harding

consensus_encoding: Add crate level doc for decode_from_hex

Missing from the list of crate level docs - add it.

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit is a pure documentation update. It adds one missing bullet point to the crate-level documentation list, describing a function that already existed. No code behavior changed.