What changed, and why it matters
This commit only updates a public API listing file (all-features.txt) to reflect that several decoder types now expose a new public method called min_bytes_needed(). It is a documentation/tracking change with no actual code modifications, no security fixes, and no behavior changes.
No action required; this is a non-security API tracking update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds five lines to api/units/all-features.txt, recording newly public methods: AmountDecoder::min_bytes_needed, BlockHeightDecoder::min_bytes_needed, LockTimeDecoder::min_bytes_needed, SequenceDecoder::min_bytes_needed, and BlockTimeDecoder::min_bytes_needed. These are API surface declarations only; no implementation, logic, or security-sensitive change is present in the commit.
Changed components
api/units/all-features.txtInspect captured patch +5 / −0
diff --git a/api/units/all-features.txt b/api/units/all-features.txt
index f3f54317..056f244a 100644
--- a/api/units/all-features.txt
+++ b/api/units/all-features.txt
@@ -1893,6 +1893,7 @@ pub fn bitcoin_units::Weight::try_from(s: alloc::boxed::Box<str>) -> core::resul
pub fn bitcoin_units::Weight::try_from(s: alloc::string::String) -> core::result::Result<Self, Self::Error>
pub fn bitcoin_units::amount::AmountDecoder::default() -> Self
pub fn bitcoin_units::amount::AmountDecoder::end(self) -> core::result::Result<Self::Output, Self::Error>
+pub fn bitcoin_units::amount::AmountDecoder::min_bytes_needed(&self) -> usize
pub fn bitcoin_units::amount::AmountDecoder::new() -> Self
pub fn bitcoin_units::amount::AmountDecoder::push_bytes(&mut self, bytes: &mut &[u8]) -> core::result::Result<bool, Self::Error>
pub fn bitcoin_units::amount::Denomination::arbitrary(u: &mut arbitrary::unstructured::Unstructured<'a>) -> arbitrary::error::Result<Self>
@@ -2004,6 +2005,7 @@ pub fn bitcoin_units::block::BlockHeight::try_from(s: alloc::boxed::Box<str>) ->
pub fn bitcoin_units::block::BlockHeight::try_from(s: alloc::string::String) -> core::result::Result<Self, Self::Error>
pub fn bitcoin_units::block::BlockHeightDecoder::default() -> Self
pub fn bitcoin_units::block::BlockHeightDecoder::end(self) -> core::result::Result<Self::Output, Self::Error>
+pub fn bitcoin_units::block::BlockHeightDecoder::min_bytes_needed(&self) -> usize
pub fn bitcoin_units::block::BlockHeightDecoder::new() -> Self
pub fn bitcoin_units::block::BlockHeightDecoder::push_bytes(&mut self, bytes: &mut &[u8]) -> core::result::Result<bool, Self::Error>
pub fn bitcoin_units::block::BlockHeightDecoderError::clone(&self) -> bitcoin_units::block::BlockHeightDecoderError
@@ -2153,6 +2155,7 @@ pub fn bitcoin_units::locktime::absolute::LockTime::try_from(s: alloc::boxed::Bo
pub fn bitcoin_units::locktime::absolute::LockTime::try_from(s: alloc::string::String) -> core::result::Result<Self, Self::Error>
pub fn bitcoin_units::locktime::absolute::LockTimeDecoder::default() -> Self
pub fn bitcoin_units::locktime::absolute::LockTimeDecoder::end(self) -> core::result::Result<Self::Output, Self::Error>
+pub fn bitcoin_units::locktime::absolute::LockTimeDecoder::min_bytes_needed(&self) -> usize
pub fn bitcoin_units::locktime::absolute::LockTimeDecoder::new() -> Self
pub fn bitcoin_units::locktime::absolute::LockTimeDecoder::push_bytes(&mut self, bytes: &mut &[u8]) -> core::result::Result<bool, Self::Error>
pub fn bitcoin_units::locktime::absolute::LockTimeEncoder::advance(&mut self) -> bool
@@ -2418,6 +2421,7 @@ pub fn bitcoin_units::sequence::Sequence::try_from(s: alloc::boxed::Box<str>) ->
pub fn bitcoin_units::sequence::Sequence::try_from(s: alloc::string::String) -> core::result::Result<Self, Self::Error>
pub fn bitcoin_units::sequence::SequenceDecoder::default() -> Self
pub fn bitcoin_units::sequence::SequenceDecoder::end(self) -> core::result::Result<Self::Output, Self::Error>
+pub fn bitcoin_units::sequence::SequenceDecoder::min_bytes_needed(&self) -> usize
pub fn bitcoin_units::sequence::SequenceDecoder::new() -> Self
pub fn bitcoin_units::sequence::SequenceDecoder::push_bytes(&mut self, bytes: &mut &[u8]) -> core::result::Result<bool, Self::Error>
pub fn bitcoin_units::sequence::SequenceDecoderError::clone(&self) -> bitcoin_units::sequence::SequenceDecoderError
@@ -2429,6 +2433,7 @@ pub fn bitcoin_units::sequence::SequenceEncoder::advance(&mut self) -> bool
pub fn bitcoin_units::sequence::SequenceEncoder::current_chunk(&self) -> core::option::Option<&[u8]>
pub fn bitcoin_units::time::BlockTimeDecoder::default() -> Self
pub fn bitcoin_units::time::BlockTimeDecoder::end(self) -> core::result::Result<Self::Output, Self::Error>
+pub fn bitcoin_units::time::BlockTimeDecoder::min_bytes_needed(&self) -> usize
pub fn bitcoin_units::time::BlockTimeDecoder::new() -> Self
pub fn bitcoin_units::time::BlockTimeDecoder::push_bytes(&mut self, bytes: &mut &[u8]) -> core::result::Result<bool, Self::Error>
pub fn bitcoin_units::time::BlockTimeDecoderError::clone(&self) -> bitcoin_units::time::BlockTimeDecoderError
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.