Trait miniscript::MiniscriptKey
source · [−]pub trait MiniscriptKey: Clone + Eq + Ord + Debug + Display + Hash {
type Sha256: Clone + Eq + Ord + Display + Debug + Hash;
type Hash256: Clone + Eq + Ord + Display + Debug + Hash;
type Ripemd160: Clone + Eq + Ord + Display + Debug + Hash;
type Hash160: Clone + Eq + Ord + Display + Debug + 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
Required Associated Types
sourcetype Sha256: Clone + Eq + Ord + Display + Debug + Hash
type Sha256: Clone + Eq + Ord + Display + Debug + Hash
The associated [sha256::Hash
] for this MiniscriptKey
,
used in the hash256 fragment.
sourcetype Hash256: Clone + Eq + Ord + Display + Debug + Hash
type Hash256: Clone + Eq + Ord + Display + Debug + Hash
The associated hash256::Hash
for this MiniscriptKey
,
used in the hash256 fragment.
Provided Methods
sourcefn is_uncompressed(&self) -> bool
fn is_uncompressed(&self) -> bool
Returns true if the pubkey is uncompressed. Defaults to false
.
sourcefn is_x_only_key(&self) -> bool
fn is_x_only_key(&self) -> bool
Returns true if the pubkey is an x-only pubkey. Defaults to false
.