pub struct DescriptorMultiXKey<K: InnerXKey> {
pub origin: Option<(Fingerprint, DerivationPath)>,
pub xkey: K,
pub derivation_paths: DerivPaths,
pub wildcard: Wildcard,
}Expand description
Instance of one or more extended keys, as specified in BIP 389.
Fields§
§origin: Option<(Fingerprint, DerivationPath)>Origin information
xkey: KThe extended key
derivation_paths: DerivPathsThe derivation paths. Never empty.
wildcard: WildcardWhether the descriptor is wildcard
Trait Implementations§
Source§impl<K: InnerXKey> Display for DescriptorMultiXKey<K>
impl<K: InnerXKey> Display for DescriptorMultiXKey<K>
impl<K: Eq + InnerXKey> Eq for DescriptorMultiXKey<K>
Source§impl<K> MiniscriptKey for DescriptorMultiXKey<K>
impl<K> MiniscriptKey for DescriptorMultiXKey<K>
Source§type Sha256 = Hash
type Sha256 = Hash
The associated
bitcoin::hashes::sha256::Hash for this MiniscriptKey, used in the
sha256 fragment.Source§type Hash256 = Hash
type Hash256 = Hash
The associated
miniscript::hash256::Hash for this MiniscriptKey, used in the
hash256 fragment.Source§type Ripemd160 = Hash
type Ripemd160 = Hash
The associated
bitcoin::hashes::ripemd160::Hash for this MiniscriptKey type, used
in the ripemd160 fragment.Source§type Hash160 = Hash
type Hash160 = Hash
The associated
bitcoin::hashes::hash160::Hash for this MiniscriptKey type, used in
the hash160 fragment.Source§fn is_x_only_key(&self) -> bool
fn is_x_only_key(&self) -> bool
Returns true if the pubkey is an x-only pubkey. Defaults to
false.Source§fn num_der_paths(&self) -> usize
fn num_der_paths(&self) -> usize
Returns the number of different derivation paths in this key. Only >1 for keys
in BIP389 multipath descriptors.
Source§fn is_uncompressed(&self) -> bool
fn is_uncompressed(&self) -> bool
Returns true if the pubkey is uncompressed. Defaults to
false.Source§impl<K: Ord + InnerXKey> Ord for DescriptorMultiXKey<K>
impl<K: Ord + InnerXKey> Ord for DescriptorMultiXKey<K>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<K: PartialOrd + InnerXKey> PartialOrd for DescriptorMultiXKey<K>
impl<K: PartialOrd + InnerXKey> PartialOrd for DescriptorMultiXKey<K>
impl<K: PartialEq + InnerXKey> StructuralPartialEq for DescriptorMultiXKey<K>
Auto Trait Implementations§
impl<K> Freeze for DescriptorMultiXKey<K>where
K: Freeze,
impl<K> RefUnwindSafe for DescriptorMultiXKey<K>where
K: RefUnwindSafe,
impl<K> Send for DescriptorMultiXKey<K>where
K: Send,
impl<K> Sync for DescriptorMultiXKey<K>where
K: Sync,
impl<K> Unpin for DescriptorMultiXKey<K>where
K: Unpin,
impl<K> UnsafeUnpin for DescriptorMultiXKey<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for DescriptorMultiXKey<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