Trait sapio_miniscript::MiniscriptKey
source · [−]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 is_x_only_key(&self) -> bool { ... }
}
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 is_x_only_key(&self) -> bool
fn is_x_only_key(&self) -> bool
Check if the publicKey is x-only. The default implementation returns false
Implementations on Foreign Types
sourceimpl MiniscriptKey for PublicKey
impl MiniscriptKey for PublicKey
sourcefn is_uncompressed(&self) -> bool
fn is_uncompressed(&self) -> bool
is_uncompressed
returns true only for
bitcoin::Publickey type if the underlying key is uncompressed.