Trait sapio_miniscript::MiniscriptKey [−][src]
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
Required methods
fn to_pubkeyhash(&self) -> Self::Hash
[src]
Converts an object to PublicHash
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
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.