Enum bdk_chain::bitcoin::psbt::KeyRequest
#[non_exhaustive]pub enum KeyRequest {
Pubkey(PublicKey),
Bip32((Fingerprint, DerivationPath)),
}
Expand description
Data required to call GetKey
to get the private key to sign an input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pubkey(PublicKey)
Request a private key using the associated public key.
Bip32((Fingerprint, DerivationPath))
Request a private key using BIP-32 fingerprint and derivation path.
Trait Implementations§
§impl Clone for KeyRequest
impl Clone for KeyRequest
§fn clone(&self) -> KeyRequest
fn clone(&self) -> KeyRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for KeyRequest
impl Debug for KeyRequest
§impl PartialEq for KeyRequest
impl PartialEq for KeyRequest
§fn eq(&self, other: &KeyRequest) -> bool
fn eq(&self, other: &KeyRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyRequest
impl StructuralPartialEq for KeyRequest
Auto Trait Implementations§
impl Freeze for KeyRequest
impl RefUnwindSafe for KeyRequest
impl Send for KeyRequest
impl Sync for KeyRequest
impl Unpin for KeyRequest
impl UnwindSafe for KeyRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more