pub struct TransparentKeyScope(/* private fields */);
Expand description
The scope of a transparent key.
This type can represent [zip32
] internal and external scopes, as well as custom scopes that
may be used in non-hardened derivation at the change
level of the BIP 44 key path.
Implementations§
Source§impl TransparentKeyScope
impl TransparentKeyScope
Sourcepub const EXTERNAL: Self
pub const EXTERNAL: Self
The scope used to derive keys for external transparent addresses, intended to be used to send funds to this wallet.
Sourcepub const INTERNAL: Self
pub const INTERNAL: Self
The scope used to derive keys for internal wallet operations, e.g. change or UTXO management.
Sourcepub const fn custom(i: u32) -> Option<Self>
pub const fn custom(i: u32) -> Option<Self>
Returns an arbitrary custom TransparentKeyScope
.
This should be used with care: funds associated with keys derived under a custom scope may not be recoverable if the wallet seed is restored in another wallet. It is usually preferable to use standardized key scopes.
Trait Implementations§
Source§impl Clone for TransparentKeyScope
impl Clone for TransparentKeyScope
Source§fn clone(&self) -> TransparentKeyScope
fn clone(&self) -> TransparentKeyScope
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 TransparentKeyScope
impl Debug for TransparentKeyScope
Source§impl From<Scope> for TransparentKeyScope
impl From<Scope> for TransparentKeyScope
Source§impl From<TransparentKeyScope> for ChildNumber
impl From<TransparentKeyScope> for ChildNumber
Source§fn from(value: TransparentKeyScope) -> Self
fn from(value: TransparentKeyScope) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransparentKeyScope
impl PartialEq for TransparentKeyScope
impl Copy for TransparentKeyScope
impl Eq for TransparentKeyScope
impl StructuralPartialEq for TransparentKeyScope
Auto Trait Implementations§
impl Freeze for TransparentKeyScope
impl RefUnwindSafe for TransparentKeyScope
impl Send for TransparentKeyScope
impl Sync for TransparentKeyScope
impl Unpin for TransparentKeyScope
impl UnwindSafe for TransparentKeyScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more