What changed, and why it matters
This commit only updates generated API listing files (text snapshots of public functions) to reflect a newly added public function, `to_consensus_u32`, on the `CompactTarget` type. It does not change any source code, logic, or behavior, and therefore has no security relevance on its own.
No action required; this is a routine API-snapshot maintenance commit. Review the companion source-code commit that introduced `to_consensus_u32` if security assessment of that API change is needed.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds lines to three units/api/*.txt files, which are rustdoc/public-API snapshot files tracking the crate’s exposed API surface. Each addition records pub const fn bitcoin_units::pow::CompactTarget::to_consensus_u32(self) -> u32 alongside the existing to_consensus. These files are generated/updated to match source changes made elsewhere; the commit itself contains no implementation, no unsafe code, no cryptographic changes, and no bug fixes.
Changed components
units/api/all-features.txtunits/api/alloc-only.txtunits/api/no-features.txtInspect captured patch +6 / −0
### units/api/all-features.txt
@@ -6550,6 +6550,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub const fn bitcoin_units::pow::CompactTarget::to_consensus_u32(self) -> u32
pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget
pub type bitcoin_units::pow::CompactTarget::Decoder = bitcoin_units::pow::CompactTargetDecoder [impl: impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget]
@@ -11021,6 +11022,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub const fn bitcoin_units::pow::CompactTarget::to_consensus_u32(self) -> u32
pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget
pub type bitcoin_units::pow::CompactTarget::Decoder = bitcoin_units::pow::CompactTargetDecoder [impl: impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget]
### units/api/alloc-only.txt
@@ -5389,6 +5389,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub const fn bitcoin_units::pow::CompactTarget::to_consensus_u32(self) -> u32
pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]
@@ -9205,6 +9206,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub const fn bitcoin_units::pow::CompactTarget::to_consensus_u32(self) -> u32
pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]
### units/api/no-features.txt
@@ -4765,6 +4765,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub const fn bitcoin_units::pow::CompactTarget::to_consensus_u32(self) -> u32
pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]
@@ -8273,6 +8274,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub const fn bitcoin_units::pow::CompactTarget::to_consensus_u32(self) -> u32
pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]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.