Merge rust-bitcoin/rust-bitcoin#7103: Release tracking PR: ` crypto 0.4.0`
What changed, and why it matters
This is a routine release-preparation commit for the bitcoin-crypto 0.4.0 crate. It bumps version numbers, updates dependency version pins, refreshes lock files, fills in the release date in the changelog, and replaces placeholder deprecation strings with the actual release version. There are no code behavior changes and no security fixes or security-relevant claims in the commit message or diff.
No security action required. Treat as a normal release housekeeping commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The merge commit f0fdd87e68c5b778f1d698585862c742fbb74b71 merges PR #7103, a release tracking PR for bitcoin-crypto 0.4.0. The two constituent commits bump bitcoin-crypto from 0.3.0 to 0.4.0 across workspace Cargo.toml files and lock files, update the bitcoin_hashes dependency from 1.0.0 to 1.1.0 in crypto/Cargo.toml, add a 0.4.0 changelog entry dated 2026-11-03, and change #[deprecated(since = "TBD", ...)] attributes to #[deprecated(since = "0.4.0", ...)] in four locations. No functional code changes are present.
Changed components
bitcoin-crypto crate versioningworkspace Cargo.toml dependency pinsCargo.lock filescrypto/CHANGELOG.mdInspect captured patch +31 / −16
### Cargo-minimal.lock
@@ -155,7 +155,7 @@ dependencies = [
[[package]]
name = "bitcoin-crypto"
-version = "0.3.0"
+version = "0.4.0"
dependencies = [
"arbitrary",
"base58ck 0.5.0",
### Cargo-recent.lock
@@ -148,7 +148,7 @@ dependencies = [
[[package]]
name = "bitcoin-crypto"
-version = "0.3.0"
+version = "0.4.0"
dependencies = [
"arbitrary",
"base58ck 0.5.0",
### addresses/Cargo.toml
@@ -21,7 +21,7 @@ alloc = ["base58/alloc", "bech32/alloc", "crypto/alloc", "hashes/alloc", "intern
[dependencies]
base58 = { package = "base58ck", path = "../base58", version = "0.5.0", default-features = false, features = [] }
bech32 = { version = "0.11.0", default-features = false, features = [] }
-crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.3.0", default-features = false, features = ["hex"] }
+crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.4.0", default-features = false, features = ["hex"] }
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.0.0", default-features = false, features = ["hex"] }
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 = [] }
### benches/Cargo.lock
@@ -128,7 +128,7 @@ dependencies = [
[[package]]
name = "bitcoin-crypto"
-version = "0.3.0"
+version = "0.4.0"
dependencies = [
"base58ck",
"bitcoin-internals",
### bitcoin/Cargo.toml
@@ -28,7 +28,7 @@ arbitrary = ["crypto/arbitrary", "dep:arbitrary", "units/arbitrary", "primitives
addresses = { package = "bitcoin-addresses", path = "../addresses", version = "0.0.0", default-features = false, features = ["alloc"] }
base58 = { package = "base58ck", path = "../base58", version = "0.5.0", default-features = false, features = ["alloc"] }
bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] }
-crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.3.0", default-features = false, features = ["alloc", "hex"] }
+crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.4.0", default-features = false, features = ["alloc", "hex"] }
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.1.0", default-features = false, features = ["alloc", "hex"] }
key-expression = { package = "bitcoin-key-expression", path = "../key_expression", version = "0.1.0", default-features = false, features = ["alloc"] }
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.1.0", default-features = false, features = ["alloc", "hex"] }
### bitcoin/embedded/Cargo.lock
@@ -78,7 +78,7 @@ dependencies = [
[[package]]
name = "bitcoin-crypto"
-version = "0.3.0"
+version = "0.4.0"
dependencies = [
"base58ck",
"bitcoin-internals",
### crypto/CHANGELOG.md
@@ -2,6 +2,20 @@
## [Unreleased]
+## [0.4.0] - 2026-11-03
+
+- Remove uses of `Index` on `secp256k1::SecretKey` [#6871](https://github.com/rust-bitcoin/rust-bitcoin/pull/6871)
+- Add `x_only_serde` module for `XOnlyPublicKey` `serde` [#7096](https://github.com/rust-bitcoin/rust-bitcoin/pull/7096)
+- Add `Vec` support to `XOnlyPublicKey` `serde` impls [#7126](https://github.com/rust-bitcoin/rust-bitcoin/pull/7126)
+- Remove panics from `LegacyPublicKey::from_str` [#6819](https://github.com/rust-bitcoin/rust-bitcoin/pull/6819)
+- Add `NonStandardSighashType` wrapper [#6805](https://github.com/rust-bitcoin/rust-bitcoin/pull/6805)
+- Bump `secp256k1` to 0.33.0 [#6798](https://github.com/rust-bitcoin/rust-bitcoin/pull/6798)
+- Extend `EcdsaSighashType` to accept non-standard values and make the conversion to
+ `TapSighashType` fallible [#6755](https://github.com/rust-bitcoin/rust-bitcoin/pull/6755)
+- Remove `alloc` gating from `WifKey` methods and remove `FromWifError::InvalidBase58PayloadLength`
+ [#6688](https://github.com/rust-bitcoin/rust-bitcoin/pull/6688)
+- Make `Keypair::as_inner` private [#6346](https://github.com/rust-bitcoin/rust-bitcoin/pull/6346)
+
## [0.3.0] - 2026-07-30
- Remove `PrivateKeyExt` and make `PrivateKey::as_inner` private [#6345](https://github.com/rust-bitcoin/rust-bitcoin/pull/6345)
@@ -36,6 +50,7 @@
- Empty crate to reserve the name on crates.io
-[Unreleased]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-crypto-0.3.0...HEAD
+[Unreleased]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-crypto-0.4.0...HEAD
+[0.4.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-crypto-0.3.0...bitcoin-crypto-0.4.0
[0.3.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-crypto-0.2.0...bitcoin-crypto-0.3.0
[0.2.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-crypto-0.1.0...bitcoin-crypto-0.2.0
### crypto/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "bitcoin-crypto"
-version = "0.3.0"
+version = "0.4.0"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/rust-bitcoin"
@@ -24,7 +24,7 @@ hex = ["dep:hex", "hashes/hex", "primitives/hex"]
[dependencies]
base58 = { package = "base58ck", path = "../base58", version = "0.5.0", default-features = false }
-hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.0.0", default-features = false, features = ["hex"] }
+hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.1.0", default-features = false, features = ["hex"] }
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.
### crypto/src/ecdsa.rs
@@ -178,7 +178,7 @@ impl SerializedSignature {
/// Gets the hex representation of this type.
#[cfg(feature = "hex")]
#[cfg(feature = "alloc")]
- #[deprecated(since = "TBD", note = "use `format!(\"{var:x}\")` instead")]
+ #[deprecated(since = "0.4.0", note = "use `format!(\"{var:x}\")` instead")]
pub fn to_hex(&self) -> String { alloc::format!("{:x}", self) }
}
### crypto/src/key.rs
@@ -455,7 +455,7 @@ impl XOnlyPublicKey {
/// Gets the hex representation of this type.
#[cfg(feature = "alloc")]
- #[deprecated(since = "TBD", note = "use `format!(\"{var:x}\")` instead")]
+ #[deprecated(since = "0.4.0", note = "use `format!(\"{var:x}\")` instead")]
pub fn to_hex(&self) -> String { alloc::format!("{:x}", self) }
}
@@ -704,7 +704,7 @@ impl LegacyPublicKey {
/// Serializes the public key to bytes.
#[cfg(feature = "alloc")]
#[inline]
- #[deprecated(since = "TBD", note = "use to_vec or serialize instead")]
+ #[deprecated(since = "0.4.0", note = "use to_vec or serialize instead")]
pub fn to_bytes(self) -> Vec<u8> { self.to_vec() }
/// Serializes the public key into a `SortKey`.
@@ -1681,7 +1681,7 @@ impl TweakedPublicKey {
/// Gets the hex representation of this type.
#[cfg(feature = "alloc")]
- #[deprecated(since = "TBD", note = "use `format!(\"{var:x}\")` instead")]
+ #[deprecated(since = "0.4.0", note = "use `format!(\"{var:x}\")` instead")]
pub fn to_hex(&self) -> String { alloc::format!("{:x}", self) }
}
### crypto/src/taproot.rs
@@ -224,7 +224,7 @@ impl SerializedSignature {
/// Gets the hex representation of this type.
#[cfg(feature = "hex")]
#[cfg(feature = "alloc")]
- #[deprecated(since = "TBD", note = "use `format!(\"{var:x}\")` instead")]
+ #[deprecated(since = "0.4.0", note = "use `format!(\"{var:x}\")` instead")]
pub fn to_hex(&self) -> String { alloc::format!("{:x}", self) }
}
### key_expression/Cargo.toml
@@ -22,7 +22,7 @@ arbitrary = ["crypto/arbitrary", "dep:arbitrary", "hashes/arbitrary", "secp256k1
[dependencies]
base58 = { package = "base58ck", path = "../base58", version = "0.5.0", default-features = false }
-crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.3.0", default-features = false }
+crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.4.0", default-features = false }
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.0.0", default-features = false, features = ["hex"] }
hex = { package = "hex-conservative", version = "1.1.0", default-features = false, features = ["alloc"] }
internals = { package = "bitcoin-internals", path = "../internals", version = "0.8.2" }
### taproot_primitives/Cargo.toml
@@ -21,7 +21,7 @@ arbitrary = ["dep:arbitrary", "crypto/arbitrary", "secp256k1/arbitrary"]
hex = ["crypto/hex", "encoding/hex", "hashes/hex"]
[dependencies]
-crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.3.0", default-features = false }
+crypto = { package = "bitcoin-crypto", path = "../crypto", version = "0.4.0", default-features = false }
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.1.0", default-features = false, features = [] }
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.0.0", default-features = false }
internals = { package = "bitcoin-internals", path = "../internals", version = "0.8.2" }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.