Struct descriptors::Wpkh
source · pub struct Wpkh<K: DeriveCompr = XpubDerivable>(/* private fields */);
Implementations§
Trait Implementations§
source§impl<K: DeriveCompr> Derive<DerivedScript> for Wpkh<K>
impl<K: DeriveCompr> Derive<DerivedScript> for Wpkh<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: DeriveCompr> Descriptor<K> for Wpkh<K>
impl<K: DeriveCompr> Descriptor<K> for Wpkh<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: DeriveCompr> From<K> for Wpkh<K>
impl<K: DeriveCompr> From<K> for Wpkh<K>
source§impl<K: PartialEq + DeriveCompr> PartialEq for Wpkh<K>
impl<K: PartialEq + DeriveCompr> PartialEq for Wpkh<K>
impl<K: Eq + DeriveCompr> Eq for Wpkh<K>
impl<K: DeriveCompr> StructuralPartialEq for Wpkh<K>
Auto Trait Implementations§
impl<K> Freeze for Wpkh<K>where
K: Freeze,
impl<K> RefUnwindSafe for Wpkh<K>where
K: RefUnwindSafe,
impl<K> Send for Wpkh<K>where
K: Send,
impl<K> Sync for Wpkh<K>where
K: Sync,
impl<K> Unpin for Wpkh<K>where
K: Unpin,
impl<K> UnwindSafe for Wpkh<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.