Struct bdk_wallet::keys::SinglePriv
pub struct SinglePriv {
pub origin: Option<(Fingerprint, DerivationPath)>,
pub key: PrivateKey,
}
Expand description
A descriptor [bitcoin::PrivateKey
] with optional origin information.
Fields§
§origin: Option<(Fingerprint, DerivationPath)>
Origin information (fingerprint and derivation path).
key: PrivateKey
The private key.
Trait Implementations§
§impl Clone for SinglePriv
impl Clone for SinglePriv
§fn clone(&self) -> SinglePriv
fn clone(&self) -> SinglePriv
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 SinglePriv
impl Debug for SinglePriv
§impl PartialEq for SinglePriv
impl PartialEq for SinglePriv
§fn eq(&self, other: &SinglePriv) -> bool
fn eq(&self, other: &SinglePriv) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SinglePriv
impl StructuralPartialEq for SinglePriv
Auto Trait Implementations§
impl Freeze for SinglePriv
impl RefUnwindSafe for SinglePriv
impl Send for SinglePriv
impl Sync for SinglePriv
impl Unpin for SinglePriv
impl UnwindSafe for SinglePriv
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