What changed, and why it matters
This commit only updates generated API snapshot text files in the rust-bitcoin repository. These files list what functions and types are publicly exposed by the library, similar to a table of contents. No actual source code, logic, or behavior changed. The additions simply record two new helper functions that were already added elsewhere in the project. There is no security issue here.
No action required. This is a routine metadata update tracking public API surface.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies three API snapshot files under hashes/api/ (all-features.txt, alloc-only.txt, no-features.txt). These are generated public-API tracking files used by cargo-public-api or similar tooling to detect unintended API changes. The additions register pub fn bitcoin_hashes::drain_to_hash and pub fn bitcoin_hashes::encode_to_hash. The commit contains no implementation changes, no bug fixes, and no security-relevant modifications.
Changed components
hashes/api/all-features.txthashes/api/alloc-only.txthashes/api/no-features.txtInspect captured patch +6 / −0
diff --git a/hashes/api/all-features.txt b/hashes/api/all-features.txt
index e0e1fc3d..752d9abd 100644
--- a/hashes/api/all-features.txt
+++ b/hashes/api/all-features.txt
@@ -1907,7 +1907,9 @@ pub const bitcoin_hashes::IsByteArray::LEN: usize
impl<const N: usize> bitcoin_hashes::IsByteArray for [u8; N]
pub const [u8; N]::LEN: usize
pub fn bitcoin_hashes::drain_to_engine<T, H>(encoder: &mut T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encoder + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::drain_to_hash<T, H>(encoder: &mut T) -> <H as bitcoin_hashes::HashEngine>::Hash where T: bitcoin_consensus_encoding::encode::Encoder + ?core::marker::Sized, H: bitcoin_hashes::HashEngine + core::default::Default
pub fn bitcoin_hashes::encode_to_engine<T, H>(object: &T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encode + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::encode_to_hash<T, H>(obj: &T) -> <H as bitcoin_hashes::HashEngine>::Hash where T: bitcoin_consensus_encoding::encode::Encode + ?core::marker::Sized, H: bitcoin_hashes::HashEngine + core::default::Default
pub type bitcoin_hashes::HkdfSha256 = bitcoin_hashes::hkdf::Hkdf<bitcoin_hashes::sha256::Hash>
pub type bitcoin_hashes::HkdfSha512 = bitcoin_hashes::hkdf::Hkdf<bitcoin_hashes::sha512::Hash>
pub type bitcoin_hashes::HmacSha256 = bitcoin_hashes::hmac::Hmac<bitcoin_hashes::sha256::Hash>
diff --git a/hashes/api/alloc-only.txt b/hashes/api/alloc-only.txt
index 02457b7f..67e04f9c 100644
--- a/hashes/api/alloc-only.txt
+++ b/hashes/api/alloc-only.txt
@@ -1682,7 +1682,9 @@ pub const bitcoin_hashes::IsByteArray::LEN: usize
impl<const N: usize> bitcoin_hashes::IsByteArray for [u8; N]
pub const [u8; N]::LEN: usize
pub fn bitcoin_hashes::drain_to_engine<T, H>(encoder: &mut T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encoder + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::drain_to_hash<T, H>(encoder: &mut T) -> <H as bitcoin_hashes::HashEngine>::Hash where T: bitcoin_consensus_encoding::encode::Encoder + ?core::marker::Sized, H: bitcoin_hashes::HashEngine + core::default::Default
pub fn bitcoin_hashes::encode_to_engine<T, H>(object: &T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encode + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::encode_to_hash<T, H>(obj: &T) -> <H as bitcoin_hashes::HashEngine>::Hash where T: bitcoin_consensus_encoding::encode::Encode + ?core::marker::Sized, H: bitcoin_hashes::HashEngine + core::default::Default
pub type bitcoin_hashes::HkdfSha256 = bitcoin_hashes::hkdf::Hkdf<bitcoin_hashes::sha256::Hash>
pub type bitcoin_hashes::HkdfSha512 = bitcoin_hashes::hkdf::Hkdf<bitcoin_hashes::sha512::Hash>
pub type bitcoin_hashes::HmacSha256 = bitcoin_hashes::hmac::Hmac<bitcoin_hashes::sha256::Hash>
diff --git a/hashes/api/no-features.txt b/hashes/api/no-features.txt
index 581f0410..53e4ca01 100644
--- a/hashes/api/no-features.txt
+++ b/hashes/api/no-features.txt
@@ -1559,7 +1559,9 @@ pub const bitcoin_hashes::IsByteArray::LEN: usize
impl<const N: usize> bitcoin_hashes::IsByteArray for [u8; N]
pub const [u8; N]::LEN: usize
pub fn bitcoin_hashes::drain_to_engine<T, H>(encoder: &mut T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encoder + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::drain_to_hash<T, H>(encoder: &mut T) -> <H as bitcoin_hashes::HashEngine>::Hash where T: bitcoin_consensus_encoding::encode::Encoder + ?core::marker::Sized, H: bitcoin_hashes::HashEngine + core::default::Default
pub fn bitcoin_hashes::encode_to_engine<T, H>(object: &T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encode + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::encode_to_hash<T, H>(obj: &T) -> <H as bitcoin_hashes::HashEngine>::Hash where T: bitcoin_consensus_encoding::encode::Encode + ?core::marker::Sized, H: bitcoin_hashes::HashEngine + core::default::Default
pub type bitcoin_hashes::HkdfSha256 = bitcoin_hashes::hkdf::Hkdf<bitcoin_hashes::sha256::Hash>
pub type bitcoin_hashes::HkdfSha512 = bitcoin_hashes::hkdf::Hkdf<bitcoin_hashes::sha512::Hash>
pub type bitcoin_hashes::HmacSha256 = bitcoin_hashes::hmac::Hmac<bitcoin_hashes::sha256::Hash>
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.