pub enum Tr<K = XpubDerivable>where
K: DeriveXOnly,{
KeyOnly(TrKey<K>),
}
Variants§
Implementations§
Source§impl<K> Tr<K>where
K: DeriveXOnly,
impl<K> Tr<K>where
K: DeriveXOnly,
pub fn as_internal_key(&self) -> &K
pub fn into_internal_key(self) -> K
Trait Implementations§
Source§impl<K> Derive<DerivedScript> for Tr<K>where
K: DeriveXOnly,
impl<K> Derive<DerivedScript> for Tr<K>where
K: DeriveXOnly,
fn default_keychain(&self) -> Keychain
fn keychains(&self) -> BTreeSet<Keychain>
fn derive( &self, keychain: impl Into<Keychain>, index: impl Into<NormalIndex>, ) -> impl Iterator<Item = DerivedScript>
fn derive_range( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, to: impl Into<NormalIndex>, ) -> impl Iterator<Item = D>
Source§impl<K> Descriptor<K> for Tr<K>where
K: DeriveXOnly,
impl<K> Descriptor<K> for Tr<K>where
K: DeriveXOnly,
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 ()>where
(): 'a,
fn xpubs(&self) -> impl Iterator<Item = &XpubAccount>
fn legacy_keyset(&self, terminal: Terminal) -> IndexMap<LegacyPk, KeyOrigin>
fn xonly_keyset(&self, terminal: Terminal) -> IndexMap<XOnlyPk, TapDerivation>
fn legacy_witness( &self, keysigs: HashMap<&KeyOrigin, LegacyKeySig>, ) -> Option<(SigScript, Witness)>
fn taproot_witness( &self, keysigs: HashMap<&KeyOrigin, TaprootKeySig>, ) -> Option<Witness>
fn is_taproot(&self) -> bool
Source§impl<K> Display for Tr<K>where
K: DeriveXOnly,
impl<K> Display for Tr<K>where
K: DeriveXOnly,
impl<K> Eq for Tr<K>where
K: Eq + DeriveXOnly,
impl<K> StructuralPartialEq for Tr<K>where
K: DeriveXOnly,
Auto Trait Implementations§
impl<K> Freeze for Tr<K>where
K: Freeze,
impl<K> RefUnwindSafe for Tr<K>where
K: RefUnwindSafe,
impl<K> Send for Tr<K>where
K: Send,
impl<K> Sync for Tr<K>where
K: Sync,
impl<K> Unpin for Tr<K>where
K: Unpin,
impl<K> UnwindSafe for Tr<K>where
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DeriveScripts for Twhere
T: Derive<DerivedScript>,
impl<T> DeriveScripts for Twhere
T: Derive<DerivedScript>,
Source§fn derive_address(
&self,
network: AddressNetwork,
keychain: impl Into<Keychain>,
index: impl Into<NormalIndex>,
) -> impl Iterator<Item = Address>
fn derive_address( &self, network: AddressNetwork, keychain: impl Into<Keychain>, index: impl Into<NormalIndex>, ) -> impl Iterator<Item = Address>
Derives addresses for a given index. Read more
Source§fn derive_address_range(
&self,
network: AddressNetwork,
keychain: impl Into<Keychain>,
from: impl Into<NormalIndex>,
to: impl Into<NormalIndex>,
) -> impl Iterator<Item = Address>
fn derive_address_range( &self, network: AddressNetwork, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, to: impl Into<NormalIndex>, ) -> impl Iterator<Item = Address>
Derives addresses for a range of indexes. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.