Trait bpstd::Descriptor
source · pub trait Descriptor<K = XpubDerivable, V = ()>: DeriveScripts {
// Required methods
fn class(&self) -> SpkClass;
fn keys<'a>(&'a self) -> impl Iterator<Item = &'a K>
where K: 'a;
fn vars<'a>(&'a self) -> impl Iterator<Item = &'a V>
where V: 'a;
fn xpubs(&self) -> impl Iterator<Item = &XpubSpec>;
fn compr_keyset(
&self,
terminal: Terminal,
) -> IndexMap<CompressedPk, KeyOrigin>;
fn xonly_keyset(
&self,
terminal: Terminal,
) -> IndexMap<XOnlyPk, TapDerivation>;
}Required Methods§
fn class(&self) -> SpkClass
fn keys<'a>(&'a self) -> impl Iterator<Item = &'a K>where
K: 'a,
fn vars<'a>(&'a self) -> impl Iterator<Item = &'a V>where
V: 'a,
fn xpubs(&self) -> impl Iterator<Item = &XpubSpec>
fn compr_keyset(&self, terminal: Terminal) -> IndexMap<CompressedPk, KeyOrigin>
fn xonly_keyset(&self, terminal: Terminal) -> IndexMap<XOnlyPk, TapDerivation>
Object Safety§
This trait is not object safe.