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 29 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-priorityMerge rust-bitcoin/rust-bitcoin#6700: Automated nightly rustfmt (2026-08-09)by Andrew Poelstra · 9d0e608c · Aug 9, 2026 · 1 fileMessage 91 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6700: Automated nightly rustfmt (2026-08-09)

5ee2e346560238a53063ad05a0a7b34a9de349b6 2026-08-09 automated rustfmt nightly (Fmt Bot)

Pull request description:

Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action


ACKs for top commit:
apoelstra:
ACK 5ee2e346560238a53063ad05a0a7b34a9de349b6; successfully ran local tests


Tree-SHA512: b35be4bd3e6d1a5880889a61b209b852c848a339c1c0f74cd5f8c87d31c50ef2b736ba3518555436597a35e0662e87c62054e25b03e1c48420fc6c834f6efef3

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-priorityMerge rust-bitcoin/rust-bitcoin#6695: fuzz: fix cargo-fuzz install issue, add bip-434 message targets, clean up scriptsby Andrew Poelstra · 7b8f7065 · Aug 9, 2026 · 7 filesMessage 91 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6695: fuzz: fix cargo-fuzz install issue, add bip-434 message targets, clean up scripts

eb3ecb81e1163911f5436f59e31649a3048e16b0 fuzz: regenerate fuzz targets, capture new bip434 additions (Nick Johnson)
716f9259e714bd4dbd5bb14f5ae3c12566349454 fuzz: standardize conventions in the 3 fuzz scripts (Nick Johnson)
e665a52ad9bbfab435c1702a89b4f176b312766f fuzz: check for chrt requirement in fuzz.sh (Nick Johnson)
ce91119f8ff8fcfdf902e1fe5b39acde04f2f754 fuzz: use workspace nightly toolchain (Nick Johnson)
9e469e7c04de14c7fe374129a44c90721e93a6bb fuzz: upgrade to cargo-fuzz@0.13.2 (Nick Johnson)
87358ef62502fe96c69ab3a765052a3238fc5475 fuzz: depend on cargo-fuzz to be installed (Nick Johnson)
e438cbba2a4f7352e218363e1e982ce95576dfe4 fuzz: allow manual triggering of fuzz workflow for easier testing (Nick Johnson)

Pull request description:

Fix the cargo-fuzz install issue and standardize a few more things with the fuzz scripts. Also add the new BIP 434 messages while here.

Will be doing a run on my fork remote to verify: https://github.com/nyonson/rust-bitcoin/actions/runs/31201696138/job/92942971443

Closes #6693


ACKs for top commit:
apoelstra:
ACK eb3ecb81e1163911f5436f59e31649a3048e16b0; successfully ran local tests


Tree-SHA512: 933325ee351a796814c5e9cb805188e5c3228d36a080a104690a5ad6420141b06a698ec9a47a1e5782c7859e909f35080ca4ee93613239d0c813c5f0d2d3ef19

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
fuzzing or regression evidencemerge-commit duplicate discount
Lower-priority2026-08-09 automated rustfmt nightlyby Fmt Bot · 5ee2e346 · Aug 9, 2026 · 1 fileMessage 45 · ThinTriage 0Details
Commit message · Fmt Bot

2026-08-09 automated rustfmt nightly

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Lower-priorityMerge rust-bitcoin/rust-bitcoin#6698: bitcoin: fix changelog and forward port 0.32.xx and 0.32.xxx entriesby Andrew Poelstra · 1f0737db · Aug 8, 2026 · 1 fileMessage 91 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6698: bitcoin: fix changelog and forward port 0.32.xx and 0.32.xxx entries

d82888843c2b7af1ba72bc272cd35cef0b890fe1 bitcoin: forwardport 0.32.xx and 0.32.xxx changelog entries (Nick Johnson)
7cd67d0b151f04b30aeeea1e4ef8022394f58b06 bitcion: fix changelog entry order (Nick Johnson)

Pull request description:

Last time I forward port'd some entries, I somehow managed to splice them into the big 0.33.0-beta one, which leads to a very confusing read. First commit fixes that and the second forwardports a few more new releases (this time correctly hopefully).


ACKs for top commit:
apoelstra:
ACK d82888843c2b7af1ba72bc272cd35cef0b890fe1; successfully ran local tests
satsfy:
ACK d82888843c2b7af1ba72bc272cd35cef0b890fe1
tcharding:
ACK d82888843c2b7af1ba72bc272cd35cef0b890fe1


Tree-SHA512: 37eb4338425536b73f25b84ba615c9332b0d576fe9c81ef10a4e707a373906edc7221151e34b5a09edf6fd2a8d3d1f46081cb9af3e33c36987f4181681dbdf78

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
documentation-only discountmerge-commit duplicate discount
AI review queuedMerge rust-bitcoin/rust-bitcoin#6694: units: Flatten Error Constructorsby Andrew Poelstra · 622ab209 · Aug 8, 2026 · 6 filesMessage 91 · StrongInformational 15Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6694: units: Flatten Error Constructors

9c43790cc9628606c25eb6cc4bce1b587b699512 units: Flatten nested error constructors (Abeeujah)
51ced9efd4ea23d265d2141565db1cc406dfc180 Allow unnecessary_map_on_constructor lint rule (Abeeujah)

Pull request description:

Refactor nested error constructors with chained `map_err` transformation,
This improves readability by making each error conversion step explicit
and easy to reason about.
- Patch 1: Allows the `unnecessary_map_on_constructor` lint rule.
- Patch 2: Flattens double nested `Err` constructors.


ACKs for top commit:
apoelstra:
ACK 9c43790cc9628606c25eb6cc4bce1b587b699512; successfully ran local tests; kinda code-churny but definitely an improvement


Tree-SHA512: 7102f91027511de2404850f65ef7c6a81aaeafc57db334c7d75293796ae9712691bb4a4951d7e84f212eb23e41c69b3df7fe1821f474d7cc420abf0a1aefbc21

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathmerge-commit duplicate discountsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit is a code cleanup that rewrites how error values are constructed in the Rust Bitcoin library. It changes nested constructor calls like Err(OuterError(InnerError { ... })) into a flatter style using map_err. There is no functional change to how amounts, locktimes, or hex parsing behave, and no security bug is introduced or fixed.

Lower-priorityMerge rust-bitcoin/rust-bitcoin#6687: base58: Remove pub use of `std` typesby Andrew Poelstra · 236f1da9 · Aug 8, 2026 · 1 fileMessage 91 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6687: base58: Remove pub use of `std` types

7e86f6809031ed6d10fd848ece2cebaa3c7f02a3 base58: Remove pub use of std types (Mitchell Bagot)

Pull request description:

The String type is no longer used anywhere in the public API of base58, as the Base58CkString directly constructs &str types. The Vec type, being from std/alloc, shouldn't be pub re-exported.

Remove String re-export and replace Vec re-export with a use import.


ACKs for top commit:
apoelstra:
ACK 7e86f6809031ed6d10fd848ece2cebaa3c7f02a3; successfully ran local tests


Tree-SHA512: 4fa811dadb6308fef95c8edd6fcaf0eb151e4c4a26c92e3d3bcd9c18bd614e88e9345a9974f23e826a9dc55eb6a23b0db1ee8e41f4aa8348a297a08c7d35b0b1

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-priorityMerge rust-bitcoin/rust-bitcoin#6446: base58: Add examples and adjust docsby Andrew Poelstra · d8b4c865 · Aug 8, 2026 · 2 filesMessage 91 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6446: base58: Add examples and adjust docs

703021ac862dec7587050b99574c6acb89702143 Add doctest examples for decoding (Mitchell Bagot)
7aa7d4c06bd28274424ff0a44fc86f9609a5866b base58: Update crate docs to suit new API (Mitchell Bagot)
9296dba011dd6916e7dc86c376aa3f6b54cee4c8 Add doctest examples for Base58CkString (Mitchell Bagot)
3c266fef445136506d8a2d5b987c273b0e9c2dd9 Adjust wording for error module docs (Mitchell Bagot)

Pull request description:

The base58 crate docs currently lack any examples. While the API is fairly self-explanatory, examples are typically recommended and can be useful to illustrate use and specifics of the functionality. Further, some other docs are sub-optimal for a 1.0 release.

- Patch 1 adjusts the wording for the error module docs.
- Patch 2 adds examples to the Base58CkString encoding methods.
- Patch 3 updates the crate-level docs.
- Patch 4 adds examples to the decode_check* functions.


ACKs for top commit:
apoelstra:
ACK 703021ac862dec7587050b99574c6acb89702143; successfully ran local tests


Tree-SHA512: d794df45ad9b72f70362b121291021c574e70e8396fec212eec5a0ac8a0407e49e97a06c7ead893a3b1509d64de7f82139729dd188286b754f71045be16da75b

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-priorityci: setup debug level based on runner debug settingby Nick Johnson · fb887b19 · Aug 7, 2026 · 2 filesMessage 100 · StrongTriage 0Details
Commit message · Nick Johnson

ci: setup debug level based on runner debug setting

Don't use the "progress" log level because the ascii end line symbols
are leaking through.

Also removing the "test-ci/*" trigger. We have been testing
workflow changes on fork'd remotes which is more flexible and doesn't
clutter the config here.

100/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
Why it was queued
documentation-only discount
Lower-priorityMerge rust-bitcoin/rust-bitcoin#6683: units: Add `CompactTarget::to_consensus_u32`by Andrew Poelstra · f552ea88 · Aug 7, 2026 · 5 filesMessage 100 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6683: units: Add `CompactTarget::to_consensus_u32`

a75c53c86266e6c7f7f181d6e03896f7b7b9da91 Update API files (Mitchell Bagot)
270a2267af049d127719452fe814648db528493f Replace uses of deprecated CompactTarget::to_consensus (Mitchell Bagot)
446771dfb510080accd7da1c538f6b18e93619b6 Add CompactTarget::to_consensus_u32 (Mitchell Bagot)

Pull request description:

Currently, of all of the types that have from_consensus and to_consensus* functions, only CompactTarget excludes the _u32 suffix on the to_consensus function. In order to have LockTime, Sequence and CompactTarget all use a consistent naming scheme, a to_consensus_u32 function should be used for CompactTarget.

Add CompactTarget::to_consensus_u32 and deprecate CompactTarget::to_consensus.


ACKs for top commit:
apoelstra:
ACK a75c53c86266e6c7f7f181d6e03896f7b7b9da91; successfully ran local tests


Tree-SHA512: d12f973d9fab5eb5fc8a3dea7dc700c5d26abe8abf2b510ff398b1b89bc7778aa4e581e061df3d52941c98ba79b809a5f2bd9f8fad898c9b7d45e409eadfa2f8

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
merge-commit duplicate discount
AI review queuedMerge rust-bitcoin/rust-bitcoin#6678: units: Add `Weight::to_vb_*` functions, deprecating `to_vbytes_*`by Andrew Poelstra · 7f614781 · Aug 7, 2026 · 6 filesMessage 91 · StrongInformational 20Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6678: units: Add `Weight::to_vb_*` functions, deprecating `to_vbytes_*`

c4a5a5e64de86f100008972389a76c3eae2faeae Update API files (Mitchell Bagot)
4af70a4eb6a18f4f6ca27c4ea0898f5c9e4bc363 Replace uses of deprecated methods with Weight::to_vb_* (Mitchell Bagot)
519ba8c8a113e679f00a9669ccec51e5c5ef7b54 units: Add Weight::to_vb_* functions, deprecating to_vbytes_* (Mitchell Bagot)

Pull request description:

The Weight type uses from_vb* as the pattern for constructors, but to_vbytes_* for conversion. FeeRate is consistent with to/from_vb*. Before we go to 1.0, Weight's conversion functions should be renamed to keep everything consistent.

Add Weight::to_vb_{floor,ceil} and deprecate Weight::to_vbytes_{floor,ceil}.


ACKs for top commit:
apoelstra:
ACK c4a5a5e64de86f100008972389a76c3eae2faeae; successfully ran local tests


Tree-SHA512: ae4c7781511bf8f654633c2d2b4f7e8ae99ba7385a0f5c2641a01045f14c888554d85080c31c0b56bf99f8b481fc88231cc687066d270995bf18617e3232b6f3

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathmerge-commit duplicate discountsecond-pass: security-sensitive path
AI analysis · Informational 20/100

This is a routine API cleanup in a Rust Bitcoin library. It adds new method names (to_vb_floor, to_vb_ceil) for converting transaction 'weight' to 'virtual bytes' and marks the old names (to_vbytes_floor, to_vbytes_ceil) as deprecated. The actual math is unchanged, and existing callers are updated to use the new names. There is no security bug or fix here.

Lower-priorityMerge rust-bitcoin/rust-bitcoin#6677: primitives: Add track_callerby Andrew Poelstra · 10c2e41e · Aug 6, 2026 · 1 fileMessage 91 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6677: primitives: Add track_caller

789315db4ce5c981c9fada78ac85895601bfb38e primitives: Add track_caller (Tobin C. Harding)

Pull request description:

Audit `primitives` with Claude for missing instances of `track_caller`. Just one found.

Add `track_caller` to the macro defined `index` function.


ACKs for top commit:
apoelstra:
ACK 789315db4ce5c981c9fada78ac85895601bfb38e; successfully ran local tests


Tree-SHA512: c7a56164058937ddc516c9991ea772ca3f35f31015f9ab80562538a6e3511c638bb27c153ecfdf9c403e3ccf8b24267c7cab24459f2b9c38b31e0cdd6f201028

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Security candidateMerge rust-bitcoin/rust-bitcoin#6597: Release tracking PR: `crypto 0.3.0`by Andrew Poelstra · 1fddd49e · Aug 6, 2026 · 10 filesMessage 91 · StrongInformational 15Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6597: Release tracking PR: `crypto 0.3.0`

1c118339ac3d0d4445d2062d9b54e3dbc482b9af crypto: Bump version to 0.3.0 (Tobin C. Harding)
b6d44ee8af9f388fc25989c2e9da73bdcf66fd1d primitives: Bump version to 0.103.1 (Tobin C. Harding)
9516435c7371c22e7a6f02b93f65a7231f41e123 primitives: Depend on encoding 1.1.0 (Tobin C. Harding)

Pull request description:

In preparation for release add a changelog entry, bump the version number, and update the lock files.


ACKs for top commit:
apoelstra:
ACK 1c118339ac3d0d4445d2062d9b54e3dbc482b9af; successfully ran local tests


Tree-SHA512: cd126fc4e345e15bfb0383a2138763f8a68f7d0d77a88df9f1893143ec283c8c7e5f8c4eed51cfc615e66eb22d68ab741670e1d3bcb96d988ff13f5fc473f591

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
cryptography-sensitive pathmerge-commit duplicate discount
AI analysis · Informational 15/100

This commit is a routine release-tracking merge. It only bumps version numbers (bitcoin-crypto to 0.3.0 and bitcoin-primitives to 0.103.1), updates dependency version requirements, refreshes lock files, and adds changelog entries. There are no code changes that fix or introduce security behavior.

Lower-priorityMerge rust-bitcoin/rust-bitcoin#6669: units: Add `RemAssign` to `NumOpResult<Amount/SignedAmount>`by Andrew Poelstra · a150957b · Aug 6, 2026 · 5 filesMessage 100 · StrongTriage 0Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6669: units: Add `RemAssign` to `NumOpResult<Amount/SignedAmount>`

90d5f7448aa09a77f1795f0aca4d22a9e4c38d7e Update API files (Mitchell Bagot)
6b5902163e094b2dc59e1c43294207171785568e Add test case to cover RemAssign on NumOpResult (Mitchell Bagot)
e772a74a57e55d18b394ca35098bd6ab88005af9 Add RemAssign to NumOpResult<Amount/SignedAmount> (Mitchell Bagot)

Pull request description:

Currently, the Amount and SignedAmount types implement Rem<i64/u64>. So that operations can be chained on the NumOpResult types, RemAssign should also be introduced on them with the same semantics, i.e. impl RemAssign<i64/u64> for NumOpResult<Amount/SignedAmount>.

Add RemAssign impls for NumOpResult<Amount/SignedAmount> by i64/u64.

Closes #4031


ACKs for top commit:
apoelstra:
ACK 90d5f7448aa09a77f1795f0aca4d22a9e4c38d7e; successfully ran local tests
tcharding:
ACK 90d5f7448aa09a77f1795f0aca4d22a9e4c38d7e


Tree-SHA512: dc074993c9091089622cccfebcfb46263e3f212e8b1fe4c034973380e3ba5149916d0b2ffeca86f54fa3d28cdc0aad4427f6579e75237773c47594cdc8bcd4a9

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
merge-commit duplicate discount
AI review queuedUpdate API filesby Mitchell Bagot · a75c53c8 · Aug 6, 2026 · 3 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) to reflect a newly added public function, `to_consensus_u32`, on the `CompactTarget` type. It does not change any source code, logic, or behavior, and therefore has no security relevance on its own.

Lower-priorityReplace uses of deprecated CompactTarget::to_consensusby Mitchell Bagot · 270a2267 · Aug 6, 2026 · 2 filesMessage 50 · ThinTriage 0Details
Commit message · Mitchell Bagot

Replace uses of deprecated CompactTarget::to_consensus

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Lower-priorityAdd CompactTarget::to_consensus_u32by Mitchell Bagot · 446771df · Aug 6, 2026 · 1 fileMessage 70 · AdequateTriage 0Details
Commit message · Mitchell Bagot

Add CompactTarget::to_consensus_u32

Currently, of all of the types that have from_consensus and
to_consensus* functions, only CompactTarget excludes the _u32 suffix on
the to_consensus function. In order to have LockTime, Sequence and
CompactTarget all use a consistent naming scheme, a to_consensus_u32
function should be used for CompactTarget.

Add CompactTarget::to_consensus_u32 and deprecate
CompactTarget::to_consensus.

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Lower-priorityprimitives: Bump version to 0.103.1by Tobin C. Harding · b6d44ee8 · Aug 6, 2026 · 4 filesMessage 60 · AdequateTriage 0Details
Commit message · Tobin C. Harding

primitives: Bump version to 0.103.1

In preparation for release add a changelog entry, bump the version,
and update the lock files.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Lower-priorityprimitives: Depend on encoding 1.1.0by Tobin C. Harding · 9516435c · Aug 6, 2026 · 1 fileMessage 68 · AdequateTriage 0Details
Commit message · Tobin C. Harding

primitives: Depend on encoding 1.1.0

We use a few types from the `consensus-encoding 1.1.0` release so
`primitives` needs to explicitly depend on that version.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI review queuedMerge rust-bitcoin/rust-bitcoin#6675: units: Remove unnecessary track_callerby Andrew Poelstra · ce894f36 · Aug 6, 2026 · 1 fileMessage 100 · StrongInformational 15Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6675: units: Remove unnecessary track_caller

a1942b52f5efd29a7ed52fd2e77490c24c1809f2 units: Remove unnecessary track_caller (Tobin C. Harding)

Pull request description:

I audited `units` with Claude to check for missing usage of `track_caller`. None found but bot did uncover two usages that are unnecessary because the functions don't panic.

Remove unnecessary `track_caller` attributes on functions that do not panic.

Part of #5518


ACKs for top commit:
apoelstra:
ACK a1942b52f5efd29a7ed52fd2e77490c24c1809f2; successfully ran local tests


Tree-SHA512: a6ef2104165d3e708b699796c2416175f0c941a71b6220d19de07a574c9401c63e567004e629269c99ba3aa67ace2568316304e8090a1b796992e2bfd50aeeb1

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
merge-commit duplicate discountsecond-pass: broader security terminology
AI analysis · Informational 15/100

This commit removes two Rust compiler hints (`#[track_caller]`) from helper functions that simply return a value or call a user-provided fallback. These functions never panic, so the hints were unnecessary and had no security effect. The change is a minor code cleanup with no functional or security impact.

AI review queuedMerge rust-bitcoin/rust-bitcoin#6644: primitives: Add serde impls for `WitnessVersion`by Andrew Poelstra · 4981faa7 · Aug 5, 2026 · 2 filesMessage 91 · StrongInformational 15Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6644: primitives: Add serde impls for `WitnessVersion`

3f4adcb9c64a0165b270d7636d9469c0894a6157 Update API files (Mitchell Bagot)
394a351c38dc0b05ad2cd3a8b23fa8f96a30e65f Add tests to cover new serde traits (Mitchell Bagot)
ffbdf5729dc87587782883d1895cb5de4d292240 Add serde impls for WitnessVersion (Mitchell Bagot)

Pull request description:

The WitnessVersion type in primitives should have serde trait impls, per the C-SERDE guideline.

Add serde Serialize and Deserialize impls for WitnessVersion.

Contributes to #6630


ACKs for top commit:
tcharding:
ACK 3f4adcb9c64a0165b270d7636d9469c0894a6157
apoelstra:
ACK 3f4adcb9c64a0165b270d7636d9469c0894a6157; successfully ran local tests


Tree-SHA512: d75d41780db615205464d638fb7640842957f240e919364d821d032ed07afec63fdaec44f99e75d8c8368888348e4efa72246dfe97574462e51b6ab877cd78d1

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discountsecond-pass: broader security terminology
AI analysis · Informational 15/100

This commit adds standard serialization/deserialization support for the WitnessVersion type when the optional serde feature is enabled. It is a routine feature addition with no security relevance visible in the code or commit message.

Lower-priorityMerge rust-bitcoin/rust-bitcoin#6671: units: reword docs from height to count in relative locktimeby Andrew Poelstra · 6ea4ff92 · Aug 5, 2026 · 2 filesMessage 100 · StrongInformational 15Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6671: units: reword docs from height to count in relative locktime

8867fe2e37f3fcd9e60a763c5e6911445ccdd13e units: reword docs to block count in relative locktime (satsfy (Renato Britto))

Pull request description:

This is a philosophical PR based on [this comment](https://github.com/rust-bitcoin/rust-bitcoin/issues/3632#issuecomment-5160990873). It rewrites the remaining spots that mention relative locktime docs to say block count instead of block height, because a relative lock counts blocks elapsed since the UTXO was confirmed, it is not a chain height.

The goal is to make locktime usage crystal clear to the user. The wording choice regarding lock times is unfortunate.


ACKs for top commit:
apoelstra:
ACK 8867fe2e37f3fcd9e60a763c5e6911445ccdd13e; successfully ran local tests
tcharding:
ACK 8867fe2e37f3fcd9e60a763c5e6911445ccdd13e


Tree-SHA512: 8df559cedbf1ace4a368dd2631361d899294ca77d111dcf348d70e266617744ee370c41381a8120682144bd603d1c6da4acd17b27788cffd3d04d31a8ae91ef6

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
merge-commit duplicate discount
AI analysis · Informational 15/100

This commit only changes documentation comments and variable names in the rust-bitcoin library. It rewords references to 'block height' as 'block count' for relative locktime, because a relative locktime measures elapsed blocks since a coin was created, not an absolute position in the blockchain. No code behavior changed, so there is no security impact.

Security candidateMerge rust-bitcoin/rust-bitcoin#6670: ci: fix labeller permissionsby Andrew Poelstra · 276e0a61 · Aug 5, 2026 · 1 fileMessage 96 · StrongInformational 15Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6670: ci: fix labeller permissions

715f2bd62fe093c5a01a28b84cf60a6ada9e9756 ci: fix labeller permissions (Nick Johnson)

Pull request description:

The labeller runs in a separate workflow for security reasons, but this forces the `download-artifact` action to need an explicit token.

Here is a test end to end run on my remote: https://github.com/nyonson/rust-bitcoin/pull/5


ACKs for top commit:
apoelstra:
ACK 715f2bd62fe093c5a01a28b84cf60a6ada9e9756; successfully ran local tests; sure, whatever
satsfy:
ACK 715f2bd62fe093c5a01a28b84cf60a6ada9e9756
tcharding:
ACK 715f2bd62fe093c5a01a28b84cf60a6ada9e9756


Tree-SHA512: 3572cf7f92a1869192cbb3300b72bc2922e56e4529482d5baaddc66a47d46e42929e04ec9f0dd5b74a9f20fd72088e2f4b27a0f462ad9579016392027bf5c1e2

96/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
Why it was queued
credential or privilege statedocumentation-only discountmerge-commit duplicate discount
AI analysis · Informational 15/100

This is a routine GitHub Actions workflow fix. The change gives the automated PR labeler workflow permission to download artifacts and explicitly tells the GitHub CLI which repository to act on. It does not change the Bitcoin library code, user-facing behavior, or introduce a security vulnerability.

Security candidateMerge rust-bitcoin/rust-bitcoin#6657: Release tracking PR: `base58ck 0.5.0`by Andrew Poelstra · 9deb5de1 · Aug 5, 2026 · 8 filesMessage 91 · StrongInformational 15Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6657: Release tracking PR: `base58ck 0.5.0`

8479b56e9a33e203aac4ff6d59db435b7eedc5b4 base58ck: Bump version to 0.5.0 (Tobin C. Harding)

Pull request description:

In preparation for release add a changelog entry, bump the version, and update the lock files.


ACKs for top commit:
apoelstra:
ACK 8479b56e9a33e203aac4ff6d59db435b7eedc5b4; successfully ran local tests


Tree-SHA512: 2ae59a797a808979409caada39d0c58e32364601d59ad258cd8dfba1f128b567afd6d5e5ab95ab10b6baf76dba38614da96d78bea54c5824d148db535bcaac6c

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
cryptography-sensitive pathmerge-commit duplicate discount
AI analysis · Informational 15/100

This commit is a routine version bump for the base58ck crate from 0.4.0 to 0.5.0. It only updates version numbers in package manifests, lock files, and adds a changelog entry. There are no code changes and no security relevance.

Lower-priorityprimitives: Add track_callerby Tobin C. Harding · 789315db · Aug 5, 2026 · 1 fileMessage 58 · ThinTriage 0Details
Commit message · Tobin C. Harding

primitives: Add track_caller

Audit `primitives` with Claude for missing instances of
`track_caller`. Just one found.

Add `track_caller` to the macro defined `index` function.

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
Security candidateMerge rust-bitcoin/rust-bitcoin#6440: base58: Introduce `decode_check_to_array` for alloc-less decodingby Andrew Poelstra · c5fd1832 · Aug 5, 2026 · 5 filesMessage 100 · StrongInformational 21Details
Commit message · Andrew Poelstra

Merge rust-bitcoin/rust-bitcoin#6440: base58: Introduce `decode_check_to_array` for alloc-less decoding

b0eba4c097ca68da53abbbaf8603a5facd7c82bd Rename Error to DecodeCheckError (Mitchell Bagot)
7e6ab80baf795c9985d63c35d54b622ec59daa0a Add tests for decode_check_to_array (Mitchell Bagot)
ae6ea3616fd6de3fb8cd976346d0b5d9a537abc7 base58: Add decode_check_to_array (Mitchell Bagot)
0a70c578514c3ecfedac508045397b627071e265 Split decode into build_base256 (Mitchell Bagot)

Pull request description:

At present, base58 has only encoding functionality in no-alloc builds. In order to allow decoding of known size data from base58 without an allocator, the base58 crate needs a decoder function like hex's decode_to_array. Such a function has more failure modes than the alloc decode_check function, so new error types are required also.

- Patch 1 splits the existing decode function into a private build_base256 function that writes to a provided scratch buffer.
- Patch 1 introduces decode_check_to_array function for decoding short (<128 char) base58 strings to byte arrays, and associated error types.
- Patch 2 adds tests to cover the new function.
- Patch 3 renames Error to DecodeCheckError, retaining a deprecated type alias.


ACKs for top commit:
tcharding:
ACK b0eba4c097ca68da53abbbaf8603a5facd7c82bd
apoelstra:
ACK b0eba4c097ca68da53abbbaf8603a5facd7c82bd; successfully ran local tests


Tree-SHA512: b6066d2713dfd59e8e17a678e657eef84786955b594236295cd464817181a65416fb0db55f9579053dcca21e7f157a9294e399737d5349f6e3798be6535438e3

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 pathmerge-commit duplicate discount
AI analysis · Informational 21/100

This commit is a routine feature addition to the rust-bitcoin base58 crate. It adds a new no-allocator function to decode short base58-check strings into fixed-size byte arrays, and renames the existing error type while keeping a deprecated alias for backward compatibility. The changes are mostly refactoring and API expansion; there is no direct evidence of a security vulnerability being fixed.