From 6171fc9abf0e1c81fb6c5bd2692de969ba962bdc Mon Sep 17 00:00:00 2001 From: w0xlt <94266259+w0xlt@users.noreply.github.com> Date: Sun, 9 Jan 2022 17:34:25 -0300 Subject: [PATCH] Change the visibility of derived module Currently this module is visible only in the crate, so it can't be accessed externally. --- src/descriptor/derived.rs | 2 +- src/descriptor/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/descriptor/derived.rs b/src/descriptor/derived.rs index d503b66fc..981d6fdc0 100644 --- a/src/descriptor/derived.rs +++ b/src/descriptor/derived.rs @@ -119,7 +119,7 @@ impl<'s> ToPublicKey for DerivedDescriptorKey<'s> { } } -pub(crate) trait AsDerived { +pub trait AsDerived { // Derive a descriptor and transform all of its keys to `DerivedDescriptorKey` fn as_derived<'s>(&self, index: u32, secp: &'s SecpCtx) -> Descriptor>; diff --git a/src/descriptor/mod.rs b/src/descriptor/mod.rs index bb6b619c6..083d201d1 100644 --- a/src/descriptor/mod.rs +++ b/src/descriptor/mod.rs @@ -30,7 +30,7 @@ use miniscript::{DescriptorTrait, ForEachKey, TranslatePk}; use crate::descriptor::policy::BuildSatisfaction; pub mod checksum; -pub(crate) mod derived; +pub mod derived; #[doc(hidden)] pub mod dsl; pub mod error;