[][src]Trait bdk::descriptor::MiniscriptKey

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

    pub 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[src]

The associated Hash type with the publicKey

Loading content...

Required methods

pub fn to_pubkeyhash(&self) -> Self::Hash[src]

Converts an object to PublicHash

Loading content...

Provided methods

pub fn is_uncompressed(&self) -> bool[src]

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

Loading content...

Implementations on Foreign Types

impl MiniscriptKey for String[src]

type Hash = String

impl MiniscriptKey for PublicKey[src]

pub fn is_uncompressed(&self) -> bool[src]

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

type Hash = Hash

impl MiniscriptKey for DummyKey[src]

Loading content...

Implementors

Loading content...