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 { ... }
}
Expand description

Public key trait which can be converted to Hash type

Required Associated Types

The associated Hash type with the publicKey

Required Methods

Converts an object to PublicHash

Provided Methods

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

Implementations on Foreign Types

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

Implementors