[][src]Trait miniscript::MiniscriptKey

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