[]Trait bdk::descriptor::MiniscriptKey

pub trait MiniscriptKey: Clone + Eq + Ord + Debug + Display + Hash + FromStr {
    type Hash: Clone + Eq + Ord + Debug + Display + Hash + FromStr;
    fn to_pubkeyhash(&self) -> Self::Hash;

    fn is_uncompressed(&self) -> bool { ... }
}

Public key trait which can be converted to Hash type

Associated Types

type Hash: Clone + Eq + Ord + Debug + Display + Hash + FromStr

The associated Hash type with the publicKey

Loading content...

Required methods

fn to_pubkeyhash(&self) -> Self::Hash

Converts an object to PublicHash

Loading content...

Provided methods

fn is_uncompressed(&self) -> bool

Check if the publicKey is uncompressed. The default implementation returns false

Loading content...

Implementations on Foreign Types

impl MiniscriptKey for PublicKey

fn is_uncompressed(&self) -> bool

is_uncompressed returns true only for bitcoin::Publickey type if the underlying key is uncompressed.

type Hash = Hash

impl MiniscriptKey for DummyKey

type Hash = DummyKeyHash

impl MiniscriptKey for DescriptorPublicKey

type Hash = Hash

impl MiniscriptKey for String

type Hash = String

Loading content...

Implementors

Loading content...