pub struct XpubDerivable { /* private fields */ }
Implementations§
Source§impl XpubDerivable
impl XpubDerivable
Sourcepub fn spec(&self) -> &XpubAccount
pub fn spec(&self) -> &XpubAccount
Method borrowing XpubDerivable::spec
field.
Sourcepub fn variant(&self) -> Option<NormalIndex>
pub fn variant(&self) -> Option<NormalIndex>
Method returning copy of XpubDerivable::variant
field.
Sourcepub fn keychains(&self) -> &DerivationSeg<Keychain>
pub fn keychains(&self) -> &DerivationSeg<Keychain>
Method borrowing XpubDerivable::keychains
field.
Source§impl XpubDerivable
impl XpubDerivable
pub fn with(spec: XpubAccount, keychains: &'static [Keychain]) -> Self
pub fn try_standard( xpub: Xpub, origin: XkeyOrigin, ) -> Result<Self, XkeyAccountError>
pub fn try_custom( xpub: Xpub, origin: XkeyOrigin, keychains: impl IntoIterator<Item = Keychain>, ) -> Result<Self, XkeyAccountError>
pub fn xpub(&self) -> Xpub
pub fn origin(&self) -> &XkeyOrigin
Trait Implementations§
Source§impl Clone for XpubDerivable
impl Clone for XpubDerivable
Source§fn clone(&self) -> XpubDerivable
fn clone(&self) -> XpubDerivable
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for XpubDerivable
impl Debug for XpubDerivable
Source§impl Derive<CompressedPk> for XpubDerivable
impl Derive<CompressedPk> for XpubDerivable
fn default_keychain(&self) -> Keychain
fn keychains(&self) -> BTreeSet<Keychain>
fn derive( &self, keychain: impl Into<Keychain>, index: impl Into<NormalIndex>, ) -> impl Iterator<Item = CompressedPk>
fn derive_range( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, to: impl Into<NormalIndex>, ) -> impl Iterator<Item = D>
Source§impl Derive<LegacyPk> for XpubDerivable
impl Derive<LegacyPk> for XpubDerivable
fn default_keychain(&self) -> Keychain
fn keychains(&self) -> BTreeSet<Keychain>
fn derive( &self, keychain: impl Into<Keychain>, index: impl Into<NormalIndex>, ) -> impl Iterator<Item = LegacyPk>
fn derive_range( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, to: impl Into<NormalIndex>, ) -> impl Iterator<Item = D>
Source§impl Derive<XOnlyPk> for XpubDerivable
impl Derive<XOnlyPk> for XpubDerivable
fn default_keychain(&self) -> Keychain
fn keychains(&self) -> BTreeSet<Keychain>
fn derive( &self, keychain: impl Into<Keychain>, index: impl Into<NormalIndex>, ) -> impl Iterator<Item = XOnlyPk>
fn derive_range( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, to: impl Into<NormalIndex>, ) -> impl Iterator<Item = D>
Source§impl DeriveKey<CompressedPk> for XpubDerivable
impl DeriveKey<CompressedPk> for XpubDerivable
fn xpub_spec(&self) -> &XpubAccount
Source§impl DeriveKey<LegacyPk> for XpubDerivable
impl DeriveKey<LegacyPk> for XpubDerivable
fn xpub_spec(&self) -> &XpubAccount
Source§impl DeriveKey<XOnlyPk> for XpubDerivable
impl DeriveKey<XOnlyPk> for XpubDerivable
fn xpub_spec(&self) -> &XpubAccount
Source§impl DeriveSet for XpubDerivable
impl DeriveSet for XpubDerivable
type Legacy = XpubDerivable
type Compr = XpubDerivable
type XOnly = XpubDerivable
Source§impl Display for XpubDerivable
impl Display for XpubDerivable
Source§impl From<XpubAccount> for XpubDerivable
impl From<XpubAccount> for XpubDerivable
Source§fn from(spec: XpubAccount) -> Self
fn from(spec: XpubAccount) -> Self
Converts to this type from the input type.
Source§impl FromStr for XpubDerivable
impl FromStr for XpubDerivable
Source§impl Hash for XpubDerivable
impl Hash for XpubDerivable
Source§impl PartialEq for XpubDerivable
impl PartialEq for XpubDerivable
impl Eq for XpubDerivable
impl StructuralPartialEq for XpubDerivable
Auto Trait Implementations§
impl Freeze for XpubDerivable
impl RefUnwindSafe for XpubDerivable
impl Send for XpubDerivable
impl Sync for XpubDerivable
impl Unpin for XpubDerivable
impl UnwindSafe for XpubDerivable
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<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.