What changed, and why it matters
This commit only updates three generated API text snapshot files to reflect that a function now takes a mutable reference to its engine argument instead of taking ownership. There is no actual source code change in the commit, and nothing in the commit message or diff indicates a security issue.
No security action required; treat as a normal documentation/API-snapshot maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates hashes/api/all-features.txt, hashes/api/alloc-only.txt, and hashes/api/no-features.txt—which are public-API snapshot files used for tracking the crate’s exposed interface. The only change is the signature of bitcoin_hashes::encode_to_engine from engine: H -> H to engine: &mut H (no return). This is a routine API-snapshot update with no security relevance visible in the provided materials.
Changed components
hashes/api/all-features.txthashes/api/alloc-only.txthashes/api/no-features.txtInspect captured patch +3 / −3
diff --git a/hashes/api/all-features.txt b/hashes/api/all-features.txt
index 7df9bfc8..2a6468ef 100644
--- a/hashes/api/all-features.txt
+++ b/hashes/api/all-features.txt
@@ -3357,7 +3357,7 @@ pub trait bitcoin_hashes::IsByteArray: core::convert::AsRef<[u8]> + bitcoin_hash
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::encode_to_engine<T, H>(object: &T, engine: H) -> H where T: bitcoin_consensus_encoding::encode::Encodable + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::encode_to_engine<T, H>(object: &T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encodable + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
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 c483bb21..aae053ec 100644
--- a/hashes/api/alloc-only.txt
+++ b/hashes/api/alloc-only.txt
@@ -2891,7 +2891,7 @@ pub trait bitcoin_hashes::IsByteArray: core::convert::AsRef<[u8]> + bitcoin_hash
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::encode_to_engine<T, H>(object: &T, engine: H) -> H where T: bitcoin_consensus_encoding::encode::Encodable + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::encode_to_engine<T, H>(object: &T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encodable + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
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 aebcb336..a2b4613f 100644
--- a/hashes/api/no-features.txt
+++ b/hashes/api/no-features.txt
@@ -2697,7 +2697,7 @@ pub trait bitcoin_hashes::IsByteArray: core::convert::AsRef<[u8]> + bitcoin_hash
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::encode_to_engine<T, H>(object: &T, engine: H) -> H where T: bitcoin_consensus_encoding::encode::Encodable + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
+pub fn bitcoin_hashes::encode_to_engine<T, H>(object: &T, engine: &mut H) where T: bitcoin_consensus_encoding::encode::Encodable + ?core::marker::Sized, H: bitcoin_hashes::HashEngine
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.