What changed, and why it matters
This commit only updates three text files that list the public API surface of the `bitcoin_hashes` crate. It records two newly added methods (`hash` and `with_input`) on the `HashEngine` trait. There are no code changes, no bug fixes, and no security-sensitive behavior introduced by this commit itself.
No action required. Review the separate commit that actually added these methods to `HashEngine` if assessing security relevance of the API expansion.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates API snapshot files (hashes/api/*.txt) to reflect newly exposed trait methods: HashEngine::hash(data: &[u8]) -> Self::Hash where Self: Default and HashEngine::with_input(self, data: &[u8]) -> Self. These are generated/tracked public-API manifests, not source code. The commit does not implement, modify, or patch any hashing logic.
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 6cb2ea95..e0e1fc3d 100644
--- a/hashes/api/all-features.txt
+++ b/hashes/api/all-features.txt
@@ -1898,8 +1898,10 @@ pub trait bitcoin_hashes::HashEngine: core::clone::Clone
pub type bitcoin_hashes::HashEngine::Hash: bitcoin_hashes::Hash
pub const bitcoin_hashes::HashEngine::BLOCK_SIZE: usize
pub fn bitcoin_hashes::HashEngine::finalize(self) -> Self::Hash
+pub fn bitcoin_hashes::HashEngine::hash(data: &[u8]) -> Self::Hash where Self: core::default::Default
pub fn bitcoin_hashes::HashEngine::input(&mut self, data: &[u8])
pub fn bitcoin_hashes::HashEngine::n_bytes_hashed(&self) -> u64
+pub fn bitcoin_hashes::HashEngine::with_input(self, data: &[u8]) -> Self
pub trait bitcoin_hashes::IsByteArray: core::convert::AsRef<[u8]> + bitcoin_hashes::sealed::IsByteArray
pub const bitcoin_hashes::IsByteArray::LEN: usize
impl<const N: usize> bitcoin_hashes::IsByteArray for [u8; N]
diff --git a/hashes/api/alloc-only.txt b/hashes/api/alloc-only.txt
index 29fdb345..02457b7f 100644
--- a/hashes/api/alloc-only.txt
+++ b/hashes/api/alloc-only.txt
@@ -1673,8 +1673,10 @@ pub trait bitcoin_hashes::HashEngine: core::clone::Clone
pub type bitcoin_hashes::HashEngine::Hash: bitcoin_hashes::Hash
pub const bitcoin_hashes::HashEngine::BLOCK_SIZE: usize
pub fn bitcoin_hashes::HashEngine::finalize(self) -> Self::Hash
+pub fn bitcoin_hashes::HashEngine::hash(data: &[u8]) -> Self::Hash where Self: core::default::Default
pub fn bitcoin_hashes::HashEngine::input(&mut self, data: &[u8])
pub fn bitcoin_hashes::HashEngine::n_bytes_hashed(&self) -> u64
+pub fn bitcoin_hashes::HashEngine::with_input(self, data: &[u8]) -> Self
pub trait bitcoin_hashes::IsByteArray: core::convert::AsRef<[u8]> + bitcoin_hashes::sealed::IsByteArray
pub const bitcoin_hashes::IsByteArray::LEN: usize
impl<const N: usize> bitcoin_hashes::IsByteArray for [u8; N]
diff --git a/hashes/api/no-features.txt b/hashes/api/no-features.txt
index 31ea8329..581f0410 100644
--- a/hashes/api/no-features.txt
+++ b/hashes/api/no-features.txt
@@ -1550,8 +1550,10 @@ pub trait bitcoin_hashes::HashEngine: core::clone::Clone
pub type bitcoin_hashes::HashEngine::Hash: bitcoin_hashes::Hash
pub const bitcoin_hashes::HashEngine::BLOCK_SIZE: usize
pub fn bitcoin_hashes::HashEngine::finalize(self) -> Self::Hash
+pub fn bitcoin_hashes::HashEngine::hash(data: &[u8]) -> Self::Hash where Self: core::default::Default
pub fn bitcoin_hashes::HashEngine::input(&mut self, data: &[u8])
pub fn bitcoin_hashes::HashEngine::n_bytes_hashed(&self) -> u64
+pub fn bitcoin_hashes::HashEngine::with_input(self, data: &[u8]) -> Self
pub trait bitcoin_hashes::IsByteArray: core::convert::AsRef<[u8]> + bitcoin_hashes::sealed::IsByteArray
pub const bitcoin_hashes::IsByteArray::LEN: usize
impl<const N: usize> bitcoin_hashes::IsByteArray for [u8; N]
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.