Enum bitcoin::psbt::KeyRequest
source · #[non_exhaustive]pub enum KeyRequest {
Pubkey(PublicKey),
Bip32(KeySource),
}
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(KeySource)
Request a private key using BIP-32 fingerprint and derivation path.
Trait Implementations§
source§impl Clone for KeyRequest
impl Clone for KeyRequest
source§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 moresource§impl Debug for KeyRequest
impl Debug for KeyRequest
source§impl PartialEq<KeyRequest> for KeyRequest
impl PartialEq<KeyRequest> for KeyRequest
source§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 StructuralEq for KeyRequest
impl StructuralPartialEq for KeyRequest
Auto Trait Implementations§
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