[][src]Trait miniscript::MiniscriptKey

pub trait MiniscriptKey: Clone + Eq + Ord + FromStr + Debug + Display + Hash {
    type Hash: Clone + Eq + Ord + FromStr + Display + Debug + Hash;
    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 + FromStr + Display + Debug + Hash

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

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

type Hash = String

Loading content...

Implementors

impl MiniscriptKey for DescriptorPublicKey[src]

type Hash = Self

impl MiniscriptKey for DummyKey[src]

type Hash = DummyKeyHash

Loading content...