pub struct TrKey<K = XpubDerivable>(/* private fields */)
where
K: DeriveXOnly;
Implementations§
Source§impl<K> TrKey<K>where
K: DeriveXOnly,
impl<K> TrKey<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 TrKey<K>where
K: DeriveXOnly,
impl<K> Derive<DerivedScript> for TrKey<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 TrKey<K>where
K: DeriveXOnly,
impl<K> Descriptor<K> for TrKey<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 TrKey<K>where
K: DeriveXOnly,
impl<K> Display for TrKey<K>where
K: DeriveXOnly,
Source§impl<K> From<K> for TrKey<K>where
K: DeriveXOnly,
impl<K> From<K> for TrKey<K>where
K: DeriveXOnly,
impl<K> Eq for TrKey<K>where
K: Eq + DeriveXOnly,
impl<K> StructuralPartialEq for TrKey<K>where
K: DeriveXOnly,
Auto Trait Implementations§
impl<K> Freeze for TrKey<K>where
K: Freeze,
impl<K> RefUnwindSafe for TrKey<K>where
K: RefUnwindSafe,
impl<K> Send for TrKey<K>where
K: Send,
impl<K> Sync for TrKey<K>where
K: Sync,
impl<K> Unpin for TrKey<K>where
K: Unpin,
impl<K> UnwindSafe for TrKey<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.