[]Enum bdk::keys::DescriptorPublicKey

[]
pub enum DescriptorPublicKey {
    SinglePub(DescriptorSinglePub),
    XPub(DescriptorXKey<ExtendedPubKey>),
}
[]

The MiniscriptKey corresponding to Descriptors. This can either be Single public key or a Xpub

Variants

SinglePub(DescriptorSinglePub)
[]

Single Public Key

XPub(DescriptorXKey<ExtendedPubKey>)
[]

Xpub

Implementations

impl DescriptorPublicKey[]

pub fn derive(self, child_number: ChildNumber) -> DescriptorPublicKey[]

Derives the specified child key if self is a wildcard xpub. Otherwise returns self.

Panics if given a hardened child number

Trait Implementations

impl Clone for DescriptorPublicKey[+]

impl Debug for DescriptorPublicKey[+]

impl Display for DescriptorPublicKey[+]

impl Eq for DescriptorPublicKey

impl FromStr for DescriptorPublicKey[+]

type Err = DescriptorKeyParseError

The associated error which can be returned from parsing.

impl Hash for DescriptorPublicKey[+]

impl MiniscriptKey for DescriptorPublicKey[+]

type Hash = DescriptorPublicKey

The associated Hash type with the publicKey

impl Ord for DescriptorPublicKey[+]

impl PartialEq<DescriptorPublicKey> for DescriptorPublicKey[+]

impl PartialOrd<DescriptorPublicKey> for DescriptorPublicKey[+]

impl StructuralEq for DescriptorPublicKey

impl StructuralPartialEq for DescriptorPublicKey

impl<Ctx: ScriptContext> ToDescriptorKey<Ctx> for DescriptorPublicKey[src][+]

impl<'secp, C> ToPublicKey<DescriptorPublicKeyCtx<'secp, C>> for DescriptorPublicKey where
    C: Verification, 
[+]

Auto Trait Implementations

impl RefUnwindSafe for DescriptorPublicKey[src]

impl Send for DescriptorPublicKey[src]

impl Sync for DescriptorPublicKey[src]

impl Unpin for DescriptorPublicKey[src]

impl UnwindSafe for DescriptorPublicKey[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T> Instrument for T[src][+]

impl<T> Instrument for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> Pointable for T[+]

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[+]