Trait sapio_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 { ... } }

Public key trait which can be converted to Hash type

Associated Types

type Hash: Clone + Eq + Ord + Display + Debug + Hash[src]

The associated Hash type with the publicKey

Loading content...

Required methods

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

Converts an object to PublicHash

Loading content...

Provided methods

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

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

fn serialized_len(&self) -> usize[src]

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

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

Loading content...