What changed, and why it matters
This commit only updates generated text files that list the public API of the crate. The change records that the Opcode type now implements the Hash trait, which is a normal, additive feature addition. There is no code change, no bug fix, and no security relevance visible in the diff.
No action required. This is a routine API-snapshot maintenance commit with no security implications.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates three API snapshot files (all-features.txt, alloc-only.txt, no-features.txt) under primitives/api/ to include the newly generated lines for impl core::hash::Hash for bitcoin_primitives::opcodes::Opcode and its associated hash method. These files are produced by cargo-public-api or a similar tool and are used to track API surface changes. The commit contains no source-code modifications, no logic changes, and no security-related content.
Changed components
primitives/api/all-features.txtprimitives/api/alloc-only.txtprimitives/api/no-features.txtInspect captured patch +6 / −0
diff --git a/primitives/api/all-features.txt b/primitives/api/all-features.txt
index be681f45..90ed7e9c 100644
--- a/primitives/api/all-features.txt
+++ b/primitives/api/all-features.txt
@@ -1788,6 +1788,8 @@ impl core::convert::TryFrom<bitcoin_primitives::opcodes::Opcode> for bitcoin_pri
pub fn bitcoin_primitives::witness_version::WitnessVersion::try_from(opcode: bitcoin_primitives::opcodes::Opcode) -> core::result::Result<Self, Self::Error> [impl: impl core::convert::TryFrom<bitcoin_primitives::opcodes::Opcode> for bitcoin_primitives::witness_version::WitnessVersion]
impl core::fmt::Debug for bitcoin_primitives::opcodes::Opcode
pub fn bitcoin_primitives::opcodes::Opcode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result [impl: impl core::fmt::Debug for bitcoin_primitives::opcodes::Opcode]
+impl core::hash::Hash for bitcoin_primitives::opcodes::Opcode
+ pub fn bitcoin_primitives::opcodes::Opcode::hash<__H: core::hash::Hasher>(&self, state: &mut __H) [impl: impl core::hash::Hash for bitcoin_primitives::opcodes::Opcode]
impl core::marker::Copy for bitcoin_primitives::opcodes::Opcode
impl core::marker::StructuralPartialEq for bitcoin_primitives::opcodes::Opcode
impl core::marker::Freeze for bitcoin_primitives::opcodes::Opcode
diff --git a/primitives/api/alloc-only.txt b/primitives/api/alloc-only.txt
index e4b4269e..1850d3ce 100644
--- a/primitives/api/alloc-only.txt
+++ b/primitives/api/alloc-only.txt
@@ -1656,6 +1656,8 @@ impl core::convert::TryFrom<bitcoin_primitives::opcodes::Opcode> for bitcoin_pri
pub fn bitcoin_primitives::witness_version::WitnessVersion::try_from(opcode: bitcoin_primitives::opcodes::Opcode) -> core::result::Result<Self, Self::Error> [impl: impl core::convert::TryFrom<bitcoin_primitives::opcodes::Opcode> for bitcoin_primitives::witness_version::WitnessVersion]
impl core::fmt::Debug for bitcoin_primitives::opcodes::Opcode
pub fn bitcoin_primitives::opcodes::Opcode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result [impl: impl core::fmt::Debug for bitcoin_primitives::opcodes::Opcode]
+impl core::hash::Hash for bitcoin_primitives::opcodes::Opcode
+ pub fn bitcoin_primitives::opcodes::Opcode::hash<__H: core::hash::Hasher>(&self, state: &mut __H) [impl: impl core::hash::Hash for bitcoin_primitives::opcodes::Opcode]
impl core::marker::Copy for bitcoin_primitives::opcodes::Opcode
impl core::marker::StructuralPartialEq for bitcoin_primitives::opcodes::Opcode
impl core::marker::Freeze for bitcoin_primitives::opcodes::Opcode
diff --git a/primitives/api/no-features.txt b/primitives/api/no-features.txt
index 9af75617..63873d46 100644
--- a/primitives/api/no-features.txt
+++ b/primitives/api/no-features.txt
@@ -1119,6 +1119,8 @@ impl core::convert::TryFrom<bitcoin_primitives::opcodes::Opcode> for bitcoin_pri
pub fn bitcoin_primitives::witness_version::WitnessVersion::try_from(opcode: bitcoin_primitives::opcodes::Opcode) -> core::result::Result<Self, Self::Error> [impl: impl core::convert::TryFrom<bitcoin_primitives::opcodes::Opcode> for bitcoin_primitives::witness_version::WitnessVersion]
impl core::fmt::Debug for bitcoin_primitives::opcodes::Opcode
pub fn bitcoin_primitives::opcodes::Opcode::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result [impl: impl core::fmt::Debug for bitcoin_primitives::opcodes::Opcode]
+impl core::hash::Hash for bitcoin_primitives::opcodes::Opcode
+ pub fn bitcoin_primitives::opcodes::Opcode::hash<__H: core::hash::Hasher>(&self, state: &mut __H) [impl: impl core::hash::Hash for bitcoin_primitives::opcodes::Opcode]
impl core::marker::Copy for bitcoin_primitives::opcodes::Opcode
impl core::marker::StructuralPartialEq for bitcoin_primitives::opcodes::Opcode
impl core::marker::Freeze for bitcoin_primitives::opcodes::Opcode
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.