pub enum ChildSpecifier {
Index4(u32),
ChangeAndIndex34(u32, u32),
Derivation(String),
}Expand description
Various ways to specify a child key, e.g. by index or derivation path.
Variants§
Index4(u32)
Specify by the 4th (last, ‘address_index’) index (non-hardened) of the BIP84 derivation path;
corresponds to “m/84’/
ChangeAndIndex34(u32, u32)
Specify by index, specifying the 3rd (‘change’) and 4th (‘address_index’) indices
(non-hardened) of the BIP84 derivation path;
corresponds to “m/84’/
Derivation(String)
Specify by full derivation path (as string), such as “m/84’/0’/0’/1/19”
Implementations§
Source§impl ChildSpecifier
impl ChildSpecifier
pub fn derivation_path( &self, network: Network, ) -> Result<DerivationPath, String>
Auto Trait Implementations§
impl Freeze for ChildSpecifier
impl RefUnwindSafe for ChildSpecifier
impl Send for ChildSpecifier
impl Sync for ChildSpecifier
impl Unpin for ChildSpecifier
impl UnwindSafe for ChildSpecifier
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