Struct descriptors::TrKey
source · pub struct TrKey<K: DeriveXOnly = XpubDerivable>(/* private fields */);
Implementations§
source§impl<K: DeriveXOnly> TrKey<K>
impl<K: DeriveXOnly> TrKey<K>
pub fn as_internal_key(&self) -> &K
pub fn into_internal_key(self) -> K
Trait Implementations§
source§impl<K: DeriveXOnly> Derive<DerivedScript> for TrKey<K>
impl<K: DeriveXOnly> Derive<DerivedScript> for TrKey<K>
fn default_keychain(&self) -> Keychain
fn keychains(&self) -> BTreeSet<Keychain>
fn derive( &self, keychain: impl Into<Keychain>, index: impl Into<NormalIndex> ) -> DerivedScript
fn derive_batch( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, max_count: u8 ) -> Vec<D>
source§impl<K: DeriveXOnly> Descriptor<K> for TrKey<K>
impl<K: DeriveXOnly> Descriptor<K> for TrKey<K>
type KeyIter<'k> = Once<&'k K> where Self: 'k, K: 'k
type VarIter<'v> = Empty<&'v ()> where Self: 'v, (): 'v
type XpubIter<'x> = Once<&'x XpubSpec> where Self: 'x
fn class(&self) -> SpkClass
fn keys(&self) -> Self::KeyIter<'_>
fn vars(&self) -> Self::VarIter<'_>
fn xpubs(&self) -> Self::XpubIter<'_>
fn compr_keyset(&self, _terminal: Terminal) -> IndexMap<CompressedPk, KeyOrigin>
fn xonly_keyset(&self, terminal: Terminal) -> IndexMap<XOnlyPk, TapDerivation>
source§impl<K: DeriveXOnly> From<K> for TrKey<K>
impl<K: DeriveXOnly> From<K> for TrKey<K>
source§impl<K: PartialEq + DeriveXOnly> PartialEq for TrKey<K>
impl<K: PartialEq + DeriveXOnly> PartialEq for TrKey<K>
impl<K: Eq + DeriveXOnly> Eq for TrKey<K>
impl<K: DeriveXOnly> StructuralPartialEq for TrKey<K>
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> DeriveScripts for Twhere
T: Derive<DerivedScript>,
impl<T> DeriveScripts for Twhere
T: Derive<DerivedScript>,
fn derive_address( &self, network: AddressNetwork, keychain: impl Into<Keychain>, index: impl Into<NormalIndex> ) -> Result<Address, AddressError>
fn derive_address_batch( &self, network: AddressNetwork, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, max_count: u8 ) -> Result<Vec<Address>, AddressError>
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.