Struct miniscript::DummyKey
source · [−]pub struct DummyKey;
Expand description
Dummy key which de/serializes to the empty string; useful sometimes for testing
Trait Implementations
sourceimpl MiniscriptKey for DummyKey
impl MiniscriptKey for DummyKey
type Hash = DummyKeyHash
type Hash = DummyKeyHash
The associated Hash type with the publicKey
sourcefn to_pubkeyhash(&self) -> Self::Hash
fn to_pubkeyhash(&self) -> Self::Hash
Converts an object to PublicHash
sourcefn is_uncompressed(&self) -> bool
fn is_uncompressed(&self) -> bool
Check if the publicKey is uncompressed. The default implementation returns false Read more
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 Read more
sourceimpl Ord for DummyKey
impl Ord for DummyKey
sourceimpl PartialOrd<DummyKey> for DummyKey
impl PartialOrd<DummyKey> for DummyKey
sourcefn partial_cmp(&self, other: &DummyKey) -> Option<Ordering>
fn partial_cmp(&self, other: &DummyKey) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl ToPublicKey for DummyKey
impl ToPublicKey for DummyKey
sourcefn to_public_key(&self) -> PublicKey
fn to_public_key(&self) -> PublicKey
Converts an object to a public key
sourcefn hash_to_hash160(_: &DummyKeyHash) -> Hash
fn hash_to_hash160(_: &DummyKeyHash) -> Hash
Converts a hashed version of the public key to a hash160
hash. Read more
sourcefn to_x_only_pubkey(&self) -> XOnlyPublicKey
fn to_x_only_pubkey(&self) -> XOnlyPublicKey
Convert an object to x-only pubkey
impl Copy for DummyKey
impl Eq for DummyKey
impl StructuralEq for DummyKey
impl StructuralPartialEq for DummyKey
Auto Trait Implementations
impl RefUnwindSafe for DummyKey
impl Send for DummyKey
impl Sync for DummyKey
impl Unpin for DummyKey
impl UnwindSafe for DummyKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more