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
Required methods
fn to_pubkeyhash(&self) -> Self::Hash
fn to_pubkeyhash(&self) -> Self::Hash
Converts an object to PublicHash
Provided methods
fn is_uncompressed(&self) -> bool
fn is_uncompressed(&self) -> bool
Check if the publicKey is uncompressed. The default implementation returns false
fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
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.