Merge rust-bitcoin/rust-bitcoin#6717: Release tracking PR: `primitives 0.104.0`
What changed, and why it matters
This is a routine release-management commit. It bumps the version of the `bitcoin-primitives` crate from 0.103.x to 0.104.0, updates dependency version numbers in other crates, refreshes lock files, and adds a changelog. There are no code logic changes in the diff itself.
No security action needed. Treat as a normal release version bump.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit is a merge of release tracking PR #6717. The actual code changes are limited to version bumps in Cargo.toml files and Cargo.lock files, plus a new CHANGELOG.md entry for 0.104.0. The changelog lists many prior bug fixes and features, but those changes were merged in earlier commits/PRs and are not part of this diff. This commit does not modify any source code, algorithms, or security-sensitive behavior.
Changed components
primitives/Cargo.tomladdresses/Cargo.tomlbip158/Cargo.tomlbitcoin/Cargo.tomlcrypto/Cargo.tomlp2p/Cargo.tomlCargo-minimal.lockCargo-recent.lockbenches/Cargo.lockbitcoin/embedded/Cargo.lockprimitives/CHANGELOG.mdInspect captured patch +40 / −13
### Cargo-minimal.lock
@@ -266,7 +266,7 @@ dependencies = [
[[package]]
name = "bitcoin-primitives"
-version = "0.103.1"
+version = "0.104.0"
dependencies = [
"arbitrary",
"bincode",
### Cargo-recent.lock
@@ -259,7 +259,7 @@ dependencies = [
[[package]]
name = "bitcoin-primitives"
-version = "0.103.1"
+version = "0.104.0"
dependencies = [
"arbitrary",
"bincode",
### addresses/Cargo.toml
@@ -26,7 +26,7 @@ hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.0.0", de
internals = { package = "bitcoin-internals", path = "../internals", version = "0.8.2" }
taproot_primitives = { package = "bitcoin-taproot-primitives", path = "../taproot_primitives", version = "0.1.0", default-features = false, features = [] }
network = { package = "bitcoin-network-kind", path = "../network", version = "1.0.0", default-features = false, features = []}
-primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.103.0", default-features = false, features = ["hex"] }
+primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.104.0", default-features = false, features = ["hex"] }
serde = { version = "1.0.195", default-features = false, features = [ "derive" ], optional = true }
### benches/Cargo.lock
@@ -177,7 +177,7 @@ dependencies = [
[[package]]
name = "bitcoin-primitives"
-version = "0.103.1"
+version = "0.104.0"
dependencies = [
"bitcoin-consensus-encoding",
"bitcoin-internals",
### bip158/Cargo.toml
@@ -24,7 +24,7 @@ hex = ["hashes/hex", "primitives/hex"]
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.2.0", default-features = false }
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.2.0", default-features = false }
internals = { package = "bitcoin-internals", path = "../internals", version = "0.8.2" }
-primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.103.0", default-features = false }
+primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.104.0", default-features = false }
[dev-dependencies]
hex = { package = "hex-conservative", version = "1.1.0", default-features = false, features = ["alloc"] }
### bitcoin/Cargo.toml
@@ -36,7 +36,7 @@ hex = { package = "hex-conservative", version = "1.1.0", default-features = fals
internals = { package = "bitcoin-internals", path = "../internals", version = "0.8.2", features = ["alloc"] }
io = { package = "bitcoin-io", path = "../io", version = "0.6.0", default-features = false, features = ["alloc", "hashes"] }
network = { package = "bitcoin-network-kind", path = "../network", version = "1.0.0", default-features = false, features = ["alloc"]}
-primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.103.0", default-features = false, features = ["alloc", "hex"] }
+primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.104.0", default-features = false, features = ["alloc", "hex"] }
secp256k1 = { version = "0.33.0", default-features = false, features = ["alloc"] }
taproot-primitives = { package = "bitcoin-taproot-primitives", path = "../taproot_primitives", version = "0.1.0", default-features = false, features = ["alloc", "hex"] }
units = { package = "bitcoin-units", path = "../units", version = "0.7.0", default-features = false, features = ["alloc"] }
### bitcoin/embedded/Cargo.lock
@@ -127,7 +127,7 @@ dependencies = [
[[package]]
name = "bitcoin-primitives"
-version = "0.103.1"
+version = "0.104.0"
dependencies = [
"bitcoin-consensus-encoding",
"bitcoin-internals",
### crypto/Cargo.toml
@@ -28,7 +28,7 @@ hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.0.0", de
internals = { package = "bitcoin-internals", path = "../internals", version = "0.8.2" }
network = { package = "bitcoin-network-kind", path = "../network", version = "1.0.0", default-features = false }
# This is a temporary dep for the sake of PushBytes impls. This should not be retained for crypto 1.0.
-primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.103.0", default-features = false, features = [] }
+primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.104.0", default-features = false, features = [] }
secp256k1 = { version = "0.33.0", default-features = false }
arbitrary = { version = "1.4.1", optional = true }
### p2p/Cargo.toml
@@ -23,7 +23,7 @@ serde = ["dep:serde", "hashes/serde"]
encoding = { package = "bitcoin-consensus-encoding", version = "1.0.0", path = "../consensus_encoding", features = ["alloc"], default-features = false }
hashes = { package = "bitcoin_hashes", version = "1.0.0", path = "../hashes", default-features = false }
network = { package = "bitcoin-network-kind", path = "../network", version = "1.0.0", default-features = false }
-primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.103.0", features = ["hex", "alloc"], default-features = false }
+primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.104.0", features = ["hex", "alloc"], default-features = false }
hex = { package = "hex-conservative", version = "1.1.0", default-features = false, features = ["alloc"] }
internals = { package = "bitcoin-internals", path = "../internals", default-features = false }
units = { package = "bitcoin-units", path = "../units", version = "0.7.0", default-features = false }
### primitives/CHANGELOG.md
@@ -2,11 +2,37 @@
## [Unreleased]
-- `TransactionEncoder` and `BlockEncoder` now implement `ExactSizeEncoder`, enabling callers to
- obtain the exact encoded size of transactions and blocks before serialization.
+# [0.104.0] - 2026-10-30
+
+- Move `OP_CODESEPARATOR` docs to `ScriptCode` [#6986](https://github.com/rust-bitcoin/rust-bitcoin/pull/6986)
+- Implement `ExactSizeEncoder` for `TransactionEncoder` and `BlockEncoder` [#6906](https://github.com/rust-bitcoin/rust-bitcoin/pull/6906)
+- Export `WitnessMerkleNode` encoder, decoder, and decoder error types [#6995](https://github.com/rust-bitcoin/rust-bitcoin/pull/6995)
+- Remove derived `PartialOrd`/`Ord` from `block::Header`; implement lexicographic `Ord` [#6989](https://github.com/rust-bitcoin/rust-bitcoin/pull/6989)
+- Reject P2SH-wrapped SegWit v1+ programs in `ScriptHash::from_script` and related APIs [#6957](https://github.com/rust-bitcoin/rust-bitcoin/pull/6957)
+- Fix coinbase `ntxid` to use `txid` instead of zeroed-`script_sig` hash [#6958](https://github.com/rust-bitcoin/rust-bitcoin/pull/6958)
+- Fix aggregate size/weight bounds during decoding to prevent memory exhaustion [#6920](https://github.com/rust-bitcoin/rust-bitcoin/pull/6920)
+- Fix serde `size_hint` sanitization to prevent OOM from untrusted input [#6919](https://github.com/rust-bitcoin/rust-bitcoin/pull/6919)
+- Fix `Witness::get` index overflow [#6879](https://github.com/rust-bitcoin/rust-bitcoin/pull/6879)
+- Fix `Witness` inconsistencies when stack contains an oversized item [#6915](https://github.com/rust-bitcoin/rust-bitcoin/pull/6915)
+- Fix `OutPoint` serde vout endianness in sequence visitor [#6880](https://github.com/rust-bitcoin/rust-bitcoin/pull/6880)
+- Fix hash serde error message to include the expected byte count [#7009](https://github.com/rust-bitcoin/rust-bitcoin/pull/7009)
+- Make `ScriptHash` and `WScriptHash` `no-alloc` [#6711](https://github.com/rust-bitcoin/rust-bitcoin/pull/6711)
+- Fix witness commitment check (BIP-141) [#6250](https://github.com/rust-bitcoin/rust-bitcoin/pull/6250)
+- Add serde impls for `WitnessVersion` [#6644](https://github.com/rust-bitcoin/rust-bitcoin/pull/6644)
+- Replace Block `PartialEq`/`Eq` derive with manual impl [#6623](https://github.com/rust-bitcoin/rust-bitcoin/pull/6623)
+- Add `fmt` traits for `WitnessVersion` [#6621](https://github.com/rust-bitcoin/rust-bitcoin/pull/6621)
+- Add `Hash` derive to `Opcode` [#6622](https://github.com/rust-bitcoin/rust-bitcoin/pull/6622)
+- Make `Witness` `FromIterator` infallible [#6554](https://github.com/rust-bitcoin/rust-bitcoin/pull/6554)
+- Add `Extend` impl to `Witness` [#6561](https://github.com/rust-bitcoin/rust-bitcoin/pull/6561)
+- Drop `WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH` [#6584](https://github.com/rust-bitcoin/rust-bitcoin/pull/6584)
+- Add `Debug` impl to `witness::Iter` [#6562](https://github.com/rust-bitcoin/rust-bitcoin/pull/6562)
+- Depend on `units 0.7.0`
+- Depend on `consensus-encoding 1.3.0`
# 0.103.1 - 2026-08-06
+**YANKED**
+
- Explicitly depend on `consensus-encoding 1.1.0`
# [0.103.0] - 2026-07-14
@@ -163,7 +189,8 @@ Enjoy!
* Initial release of the `github.com/rust-bitcoin/rust-bitcoin/primitives` crate as
`bitcoin-primitives`. The name on crates.io was generously transferred to us.
-[Unreleased]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-primitives-0.103.0...HEAD
+[Unreleased]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-primitives-0.104.0...HEAD
+[0.104.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/primitives-0.103.0...bitcoin-primitives-0.104.0
[0.103.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/primitives-0.102.0...bitcoin-primitives-0.103.0
[0.102.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/primitives-0.101.0...bitcoin-primitives-0.102.0
[0.101.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/primitives-0.100.0...primitives-0.101.0
### primitives/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "bitcoin-primitives"
-version = "0.103.1"
+version = "0.104.0"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>", "Tobin C. Harding <me@tobin.cc>"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/rust-bitcoin"Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.