Trait miniscript::MiniscriptKey[][src]

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

    fn is_uncompressed(&self) -> bool { ... }
fn serialized_len(&self) -> usize { ... } }
Expand description

Public key trait which can be converted to Hash type

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

Computes the size of a public key when serialized in a script, including the length bytes

Implementations on Foreign Types

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

Implementors