What changed, and why it matters
This commit only updates generated API snapshot text files to remove a constant named GENESIS_PREVIOUS_BLOCK_HASH from the public API listing. It does not change any actual Rust source code, so it cannot introduce or fix a security vulnerability on its own.
No security action needed. Treat as routine generated-file maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies three primitives/api/*.txt files, which are generated public-API snapshots used by cargo-public-api or similar tooling. Each file loses two lines: a pub const bitcoin_primitives::WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH: Self entry and a duplicate impl bitcoin_primitives::WitnessCommitment line. No .rs source files are touched, no logic is altered, and no runtime behavior changes. The commit is purely a metadata update reflecting an API change that happened elsewhere.
Changed components
primitives/api/all-features.txtprimitives/api/alloc-only.txtprimitives/api/no-features.txtInspect captured patch +0 / −12
diff --git a/primitives/api/all-features.txt b/primitives/api/all-features.txt
index c67314cd..63ddce05 100644
--- a/primitives/api/all-features.txt
+++ b/primitives/api/all-features.txt
@@ -1263,8 +1263,6 @@ impl<T> core::convert::From<T> for bitcoin_primitives::block::VersionEncoder<'e>
pub fn bitcoin_primitives::block::VersionEncoder<'e>::from(t: T) -> T [impl: impl<T> core::convert::From<T> for bitcoin_primitives::block::VersionEncoder<'e>]
pub struct bitcoin_primitives::block::WitnessCommitment(_)
impl bitcoin_primitives::WitnessCommitment
-pub const bitcoin_primitives::WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH: Self
-impl bitcoin_primitives::WitnessCommitment
pub const fn bitcoin_primitives::WitnessCommitment::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_primitives::WitnessCommitment::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_primitives::WitnessCommitment::to_byte_array(self) -> [u8; 32]
@@ -7613,8 +7611,6 @@ impl<T> core::convert::From<T> for bitcoin_primitives::witness::Witness
impl<T> serde::de::DeserializeOwned for bitcoin_primitives::witness::Witness where T: for<'de> serde::de::Deserialize<'de>
pub struct bitcoin_primitives::WitnessCommitment(_)
impl bitcoin_primitives::WitnessCommitment
-pub const bitcoin_primitives::WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH: Self
-impl bitcoin_primitives::WitnessCommitment
pub const fn bitcoin_primitives::WitnessCommitment::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_primitives::WitnessCommitment::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_primitives::WitnessCommitment::to_byte_array(self) -> [u8; 32]
diff --git a/primitives/api/alloc-only.txt b/primitives/api/alloc-only.txt
index a664e915..a0823e46 100644
--- a/primitives/api/alloc-only.txt
+++ b/primitives/api/alloc-only.txt
@@ -1189,8 +1189,6 @@ impl<T> core::convert::From<T> for bitcoin_primitives::block::VersionEncoder<'e>
pub fn bitcoin_primitives::block::VersionEncoder<'e>::from(t: T) -> T [impl: impl<T> core::convert::From<T> for bitcoin_primitives::block::VersionEncoder<'e>]
pub struct bitcoin_primitives::block::WitnessCommitment(_)
impl bitcoin_primitives::WitnessCommitment
-pub const bitcoin_primitives::WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH: Self
-impl bitcoin_primitives::WitnessCommitment
pub const fn bitcoin_primitives::WitnessCommitment::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_primitives::WitnessCommitment::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_primitives::WitnessCommitment::to_byte_array(self) -> [u8; 32]
@@ -7039,8 +7037,6 @@ impl<T> core::convert::From<T> for bitcoin_primitives::witness::Witness
pub fn bitcoin_primitives::witness::Witness::from(t: T) -> T [impl: impl<T> core::convert::From<T> for bitcoin_primitives::witness::Witness]
pub struct bitcoin_primitives::WitnessCommitment(_)
impl bitcoin_primitives::WitnessCommitment
-pub const bitcoin_primitives::WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH: Self
-impl bitcoin_primitives::WitnessCommitment
pub const fn bitcoin_primitives::WitnessCommitment::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_primitives::WitnessCommitment::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_primitives::WitnessCommitment::to_byte_array(self) -> [u8; 32]
diff --git a/primitives/api/no-features.txt b/primitives/api/no-features.txt
index 327ca67f..1927962e 100644
--- a/primitives/api/no-features.txt
+++ b/primitives/api/no-features.txt
@@ -692,8 +692,6 @@ impl<T> core::convert::From<T> for bitcoin_primitives::block::VersionEncoder<'e>
pub fn bitcoin_primitives::block::VersionEncoder<'e>::from(t: T) -> T [impl: impl<T> core::convert::From<T> for bitcoin_primitives::block::VersionEncoder<'e>]
pub struct bitcoin_primitives::block::WitnessCommitment(_)
impl bitcoin_primitives::WitnessCommitment
-pub const bitcoin_primitives::WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH: Self
-impl bitcoin_primitives::WitnessCommitment
pub const fn bitcoin_primitives::WitnessCommitment::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_primitives::WitnessCommitment::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_primitives::WitnessCommitment::to_byte_array(self) -> [u8; 32]
@@ -2401,8 +2399,6 @@ impl<T> core::convert::From<T> for bitcoin_primitives::Txid
pub fn bitcoin_primitives::Txid::from(t: T) -> T [impl: impl<T> core::convert::From<T> for bitcoin_primitives::Txid]
pub struct bitcoin_primitives::WitnessCommitment(_)
impl bitcoin_primitives::WitnessCommitment
-pub const bitcoin_primitives::WitnessCommitment::GENESIS_PREVIOUS_BLOCK_HASH: Self
-impl bitcoin_primitives::WitnessCommitment
pub const fn bitcoin_primitives::WitnessCommitment::as_byte_array(&self) -> &[u8; 32]
pub const fn bitcoin_primitives::WitnessCommitment::from_byte_array(bytes: [u8; 32]) -> Self
pub const fn bitcoin_primitives::WitnessCommitment::to_byte_array(self) -> [u8; 32]
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.