pub trait MiniscriptKey:
Clone
+ Eq
+ Ord
+ Debug
+ Display
+ Hash {
type Hash: Clone + Eq + Ord + Display + Debug + Hash;
// Required method
fn to_pubkeyhash(&self) -> Self::Hash;
// Provided methods
fn is_uncompressed(&self) -> bool { ... }
fn is_x_only_key(&self) -> bool { ... }
}
Expand description
Public key trait which can be converted to Hash type
Required Associated Types§
Required Methods§
Sourcefn to_pubkeyhash(&self) -> Self::Hash
fn to_pubkeyhash(&self) -> Self::Hash
Converts an object to PublicHash
Provided Methods§
Sourcefn is_uncompressed(&self) -> bool
fn is_uncompressed(&self) -> bool
Check if the publicKey is uncompressed. The default implementation returns false
Sourcefn 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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.