Trait miniscript::TranslatePk
source · pub trait TranslatePk<P, Q>where
P: MiniscriptKey,
Q: MiniscriptKey,{
type Output;
// Required method
fn translate_pk<T, E>(
&self,
translator: &mut T
) -> Result<Self::Output, TranslateErr<E>>
where T: Translator<P, Q, E>;
}
Expand description
Converts a descriptor using abstract keys to one using specific keys. Uses translator t
to do
the actual translation function calls.
Required Associated Types§
Required Methods§
sourcefn translate_pk<T, E>(
&self,
translator: &mut T
) -> Result<Self::Output, TranslateErr<E>>where
T: Translator<P, Q, E>,
fn translate_pk<T, E>( &self, translator: &mut T ) -> Result<Self::Output, TranslateErr<E>>where T: Translator<P, Q, E>,
Translates a struct from one generic to another where the translations
for Pk are provided by the given Translator
.