Struct miniscript::DummyKey
source · pub struct DummyKey;Expand description
Dummy key which de/serializes to the empty string; useful sometimes for testing
Trait Implementations§
source§impl MiniscriptKey for DummyKey
impl MiniscriptKey for DummyKey
§type Hash = DummyKeyHash
type Hash = DummyKeyHash
The associated Hash type with the publicKey
source§fn to_pubkeyhash(&self) -> Self::Hash
fn to_pubkeyhash(&self) -> Self::Hash
Converts an object to PublicHash
source§fn is_uncompressed(&self) -> bool
fn is_uncompressed(&self) -> bool
Check if the publicKey is uncompressed. The default
implementation returns false
source§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
source§impl Ord for DummyKey
impl Ord for DummyKey
source§impl PartialEq<DummyKey> for DummyKey
impl PartialEq<DummyKey> for DummyKey
source§impl PartialOrd<DummyKey> for DummyKey
impl PartialOrd<DummyKey> for DummyKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl ToPublicKey for DummyKey
impl ToPublicKey for DummyKey
source§fn to_public_key(&self) -> PublicKey
fn to_public_key(&self) -> PublicKey
Converts an object to a public key
source§fn hash_to_hash160(_: &DummyKeyHash) -> Hash
fn hash_to_hash160(_: &DummyKeyHash) -> Hash
Converts a hashed version of the public key to a
hash160 hash. Read moresource§fn to_x_only_pubkey(&self) -> XOnlyPublicKey
fn to_x_only_pubkey(&self) -> XOnlyPublicKey
Convert an object to x-only pubkey