Struct bpstd::XpubDerivable
source · pub struct XpubDerivable { /* private fields */ }Implementations§
source§impl XpubDerivable
impl XpubDerivable
sourcepub fn spec(&self) -> &XpubSpec
pub fn spec(&self) -> &XpubSpec
Method borrowing XpubDerivable::spec field.
sourcepub fn variant(&self) -> &Option<NormalIndex>
pub fn variant(&self) -> &Option<NormalIndex>
Method borrowing 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 new_standard(xpub: Xpub, origin: XpubOrigin) -> XpubDerivable
pub fn new_custom( xpub: Xpub, origin: XpubOrigin, keychains: &'static [Keychain], ) -> XpubDerivable
pub fn try_custom( xpub: Xpub, origin: XpubOrigin, keychains: impl IntoIterator<Item = Keychain>, ) -> Result<XpubDerivable, Error>
pub fn xpub(&self) -> Xpub
pub fn origin(&self) -> &XpubOrigin
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>, ) -> CompressedPk
fn derive_batch( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, max_count: u8, ) -> Vec<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>, ) -> LegacyPk
fn derive_batch( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, max_count: u8, ) -> Vec<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>, ) -> XOnlyPk
fn derive_batch( &self, keychain: impl Into<Keychain>, from: impl Into<NormalIndex>, max_count: u8, ) -> Vec<D>
source§impl DeriveKey<CompressedPk> for XpubDerivable
impl DeriveKey<CompressedPk> for XpubDerivable
source§impl DeriveSet for XpubDerivable
impl DeriveSet for XpubDerivable
source§impl Display for XpubDerivable
impl Display for XpubDerivable
source§impl From<XpubSpec> for XpubDerivable
impl From<XpubSpec> for XpubDerivable
source§fn from(spec: XpubSpec) -> XpubDerivable
fn from(spec: XpubSpec) -> XpubDerivable
Converts to this type from the input type.
source§impl FromStr for XpubDerivable
impl FromStr for XpubDerivable
§type Err = XpubParseError
type Err = XpubParseError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<XpubDerivable, <XpubDerivable as FromStr>::Err>
fn from_str(s: &str) -> Result<XpubDerivable, <XpubDerivable as FromStr>::Err>
Parses a string
s to return a value of this type. Read moresource§impl Hash for XpubDerivable
impl Hash for XpubDerivable
source§impl PartialEq for XpubDerivable
impl PartialEq for XpubDerivable
source§fn eq(&self, other: &XpubDerivable) -> bool
fn eq(&self, other: &XpubDerivable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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<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.