What changed, and why it matters
This commit only updates generated API tracking text files. It records two newly added public functions on an error type in the SHA-256 module so the project's automated API-surface checks stay in sync. There is no code change, no bug fix, and no security relevance.
No action needed. This is a routine API-snapshot maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds lines to api/hashes/all-features.txt, api/hashes/alloc-only.txt, and api/hashes/no-features.txt listing impl bitcoin_hashes::sha256::MidstateError and two new public methods: MidstateError::midstate() and MidstateError::unprocessed_bytes(). These files are generated API snapshots used to detect unintended public API changes. The commit does not modify any source code, behavior, or fix any vulnerability.
Changed components
api/hashes/all-features.txtapi/hashes/alloc-only.txtapi/hashes/no-features.txtInspect captured patch +9 / −0
diff --git a/api/hashes/all-features.txt b/api/hashes/all-features.txt
index b231619b..a7a322ff 100644
--- a/api/hashes/all-features.txt
+++ b/api/hashes/all-features.txt
@@ -50,6 +50,7 @@ impl bitcoin_hashes::sha1::HashEngine
impl bitcoin_hashes::sha256::Hash
impl bitcoin_hashes::sha256::HashEngine
impl bitcoin_hashes::sha256::Midstate
+impl bitcoin_hashes::sha256::MidstateError
impl bitcoin_hashes::sha256d::Hash
impl bitcoin_hashes::sha256d::HashEngine
impl bitcoin_hashes::sha384::Hash
@@ -616,6 +617,7 @@ pub const fn bitcoin_hashes::sha256::Midstate::as_parts(&self) -> (&[u8; 32], u6
pub const fn bitcoin_hashes::sha256::Midstate::hash_tag(tag: &[u8]) -> Self
pub const fn bitcoin_hashes::sha256::Midstate::new(state: [u8; 32], bytes_hashed: u64) -> Self
pub const fn bitcoin_hashes::sha256::Midstate::to_parts(self) -> ([u8; 32], u64)
+pub const fn bitcoin_hashes::sha256::MidstateError::midstate(&self) -> &bitcoin_hashes::sha256::Midstate
pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_hashes::sha256d::Hash::from_bytes_ref(bytes: &[u8; 32]) -> &Self
@@ -834,6 +836,7 @@ pub fn bitcoin_hashes::sha256::Midstate::partial_cmp(&self, other: &bitcoin_hash
pub fn bitcoin_hashes::sha256::MidstateError::clone(&self) -> bitcoin_hashes::sha256::MidstateError
pub fn bitcoin_hashes::sha256::MidstateError::eq(&self, other: &bitcoin_hashes::sha256::MidstateError) -> bool
pub fn bitcoin_hashes::sha256::MidstateError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
+pub fn bitcoin_hashes::sha256::MidstateError::unprocessed_bytes(&self) -> &[u8]
pub fn bitcoin_hashes::sha256::hash(data: &[u8]) -> bitcoin_hashes::sha256::Hash
pub fn bitcoin_hashes::sha256::hash_byte_chunks<B, I>(byte_slices: I) -> bitcoin_hashes::sha256::Hash where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator<Item = B>
pub fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &Self::Bytes
diff --git a/api/hashes/alloc-only.txt b/api/hashes/alloc-only.txt
index b187154a..49404962 100644
--- a/api/hashes/alloc-only.txt
+++ b/api/hashes/alloc-only.txt
@@ -50,6 +50,7 @@ impl bitcoin_hashes::sha1::HashEngine
impl bitcoin_hashes::sha256::Hash
impl bitcoin_hashes::sha256::HashEngine
impl bitcoin_hashes::sha256::Midstate
+impl bitcoin_hashes::sha256::MidstateError
impl bitcoin_hashes::sha256d::Hash
impl bitcoin_hashes::sha256d::HashEngine
impl bitcoin_hashes::sha384::Hash
@@ -518,6 +519,7 @@ pub const fn bitcoin_hashes::sha256::Midstate::as_parts(&self) -> (&[u8; 32], u6
pub const fn bitcoin_hashes::sha256::Midstate::hash_tag(tag: &[u8]) -> Self
pub const fn bitcoin_hashes::sha256::Midstate::new(state: [u8; 32], bytes_hashed: u64) -> Self
pub const fn bitcoin_hashes::sha256::Midstate::to_parts(self) -> ([u8; 32], u64)
+pub const fn bitcoin_hashes::sha256::MidstateError::midstate(&self) -> &bitcoin_hashes::sha256::Midstate
pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_hashes::sha256d::Hash::from_bytes_ref(bytes: &[u8; 32]) -> &Self
@@ -703,6 +705,7 @@ pub fn bitcoin_hashes::sha256::Midstate::partial_cmp(&self, other: &bitcoin_hash
pub fn bitcoin_hashes::sha256::MidstateError::clone(&self) -> bitcoin_hashes::sha256::MidstateError
pub fn bitcoin_hashes::sha256::MidstateError::eq(&self, other: &bitcoin_hashes::sha256::MidstateError) -> bool
pub fn bitcoin_hashes::sha256::MidstateError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
+pub fn bitcoin_hashes::sha256::MidstateError::unprocessed_bytes(&self) -> &[u8]
pub fn bitcoin_hashes::sha256::hash(data: &[u8]) -> bitcoin_hashes::sha256::Hash
pub fn bitcoin_hashes::sha256::hash_byte_chunks<B, I>(byte_slices: I) -> bitcoin_hashes::sha256::Hash where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator<Item = B>
pub fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &Self::Bytes
diff --git a/api/hashes/no-features.txt b/api/hashes/no-features.txt
index ad8375ec..58fc0ca4 100644
--- a/api/hashes/no-features.txt
+++ b/api/hashes/no-features.txt
@@ -50,6 +50,7 @@ impl bitcoin_hashes::sha1::HashEngine
impl bitcoin_hashes::sha256::Hash
impl bitcoin_hashes::sha256::HashEngine
impl bitcoin_hashes::sha256::Midstate
+impl bitcoin_hashes::sha256::MidstateError
impl bitcoin_hashes::sha256d::Hash
impl bitcoin_hashes::sha256d::HashEngine
impl bitcoin_hashes::sha384::Hash
@@ -518,6 +519,7 @@ pub const fn bitcoin_hashes::sha256::Midstate::as_parts(&self) -> (&[u8; 32], u6
pub const fn bitcoin_hashes::sha256::Midstate::hash_tag(tag: &[u8]) -> Self
pub const fn bitcoin_hashes::sha256::Midstate::new(state: [u8; 32], bytes_hashed: u64) -> Self
pub const fn bitcoin_hashes::sha256::Midstate::to_parts(self) -> ([u8; 32], u64)
+pub const fn bitcoin_hashes::sha256::MidstateError::midstate(&self) -> &bitcoin_hashes::sha256::Midstate
pub const fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_hashes::sha256d::Hash::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_hashes::sha256d::Hash::from_bytes_ref(bytes: &[u8; 32]) -> &Self
@@ -702,6 +704,7 @@ pub fn bitcoin_hashes::sha256::Midstate::partial_cmp(&self, other: &bitcoin_hash
pub fn bitcoin_hashes::sha256::MidstateError::clone(&self) -> bitcoin_hashes::sha256::MidstateError
pub fn bitcoin_hashes::sha256::MidstateError::eq(&self, other: &bitcoin_hashes::sha256::MidstateError) -> bool
pub fn bitcoin_hashes::sha256::MidstateError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
+pub fn bitcoin_hashes::sha256::MidstateError::unprocessed_bytes(&self) -> &[u8]
pub fn bitcoin_hashes::sha256::hash(data: &[u8]) -> bitcoin_hashes::sha256::Hash
pub fn bitcoin_hashes::sha256::hash_byte_chunks<B, I>(byte_slices: I) -> bitcoin_hashes::sha256::Hash where B: core::convert::AsRef<[u8]>, I: core::iter::traits::collect::IntoIterator<Item = B>
pub fn bitcoin_hashes::sha256d::Hash::as_byte_array(&self) -> &Self::Bytes
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.