primitives: Re-export block encoder/decoder
What changed, and why it matters
This commit simply makes two existing types (BlockHeightDecoder and BlockHeightDecoderError) publicly visible from a different module. It is a routine API visibility fix with no security relevance.
No security action required; treat as normal maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds BlockHeightEncoder, BlockHeightDecoder, and BlockHeightDecoderError to the public re-exports in primitives::block from units::block. It is a two-line re-export adjustment; no logic, parsing, serialization, or cryptographic code is modified.
Changed components
primitives/src/block.rsInspect captured patch +2 / −2
diff --git a/primitives/src/block.rs b/primitives/src/block.rs
index d306dc8e..1f7290df 100644
--- a/primitives/src/block.rs
+++ b/primitives/src/block.rs
@@ -32,10 +32,10 @@ use crate::{BlockTimeDecoder, BlockTimeDecoderError, Transaction, WitnessMerkleN
#[rustfmt::skip] // Keep public re-exports separate.
#[doc(inline)]
-pub use units::block::{BlockHeight, BlockHeightInterval, BlockMtp, BlockMtpInterval};
+pub use units::block::{BlockHeight, BlockHeightDecoder, BlockHeightEncoder, BlockHeightInterval, BlockMtp, BlockMtpInterval};
// Re-export errors that appear directly in the API - but no doc inline.
#[doc(no_inline)]
-pub use units::block::TooBigForRelativeHeightError;
+pub use units::block::{BlockHeightDecoderError, TooBigForRelativeHeightError};
#[doc(inline)]
pub use crate::hash_types::{
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.