What changed, and why it matters
This commit is a straightforward API cleanup: it adds missing re-exports of existing extension traits to a central 'ext' module so users can import them from one place. No code behavior changes, no bug fixes, and no security relevance.
No security action needed. Treat as a normal API ergonomics improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change only modifies bitcoin/src/lib.rs, adding pub use re-exports for NetworkExt, TargetExt, WorkExt, TapLeafHashExt, TapNodeHashExt, and PrivateKeyExt inside the ext module. These traits already existed elsewhere in the crate; the commit merely exposes them through the ext facade. It is purely additive and conditional (PrivateKeyExt only with the secp-recovery feature).
Changed components
bitcoin/src/lib.rspub mod extInspect captured patch +5 / −1
diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs
index 83afa6c6..aa786963 100644
--- a/bitcoin/src/lib.rs
+++ b/bitcoin/src/lib.rs
@@ -102,13 +102,17 @@ pub mod ext {
pub use crate::{
block::{BlockCheckedExt as _, HeaderExt as _},
key::{FullPublicKeyExt as _, LegacyPublicKeyExt as _},
- pow::CompactTargetExt as _,
+ network::NetworkExt as _,
+ pow::{CompactTargetExt as _, TargetExt as _, WorkExt as _},
script::{ScriptExt as _, ScriptBufExt as _, TapScriptExt as _, ScriptPubKeyExt as _, ScriptPubKeyBufExt as _, WitnessScriptExt as _, ScriptSigExt as _},
+ taproot::{TapLeafHashExt as _, TapNodeHashExt as _},
transaction::{TxidExt as _, WtxidExt as _, OutPointExt as _, TxInExt as _, TxOutExt as _, TransactionExt as _},
witness::WitnessExt as _,
};
#[cfg(feature = "bitcoinconsensus")]
pub use crate::consensus_validation::{ScriptPubKeyExt as _, TransactionExt as _};
+ #[cfg(feature = "secp-recovery")]
+ pub use crate::key::PrivateKeyExt as _;
}
pub mod address;
pub mod bip158;
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.