consensus_encoding: Export `CompactSizeEncoder`
What changed, and why it matters
This commit simply makes a previously internal helper type called CompactSizeEncoder available for public use. It is a one-line export change with no functional code modifications, no bug fixes, and no security implications visible in the diff.
No security action needed. Treat as a routine API-visibility change during normal review.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds CompactSizeEncoder to the public re-export list in consensus_encoding/src/lib.rs. The type already existed in the encoders module; this commit only exposes it in the crate’s public API. There are no logic changes, no unsafe code, no input handling changes, and no patch of a vulnerability.
Changed components
consensus_encoding/src/lib.rs public API exportsInspect captured patch +2 / −1
diff --git a/consensus_encoding/src/lib.rs b/consensus_encoding/src/lib.rs
index 7fdbefb7..0ebee30d 100644
--- a/consensus_encoding/src/lib.rs
+++ b/consensus_encoding/src/lib.rs
@@ -41,6 +41,7 @@ pub use self::encode::encode_to_vec;
#[cfg(feature = "std")]
pub use self::encode::encode_to_writer;
pub use self::encode::encoders::{
- ArrayEncoder, BytesEncoder, Encoder2, Encoder3, Encoder4, Encoder6, SliceEncoder,
+ ArrayEncoder, BytesEncoder, CompactSizeEncoder, Encoder2, Encoder3, Encoder4, Encoder6,
+ SliceEncoder,
};
pub use self::encode::{encode_to_hash_engine, Encodable, Encoder};
Why this scored 17/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.