Struct iop_keyvault::Bip44PublicSubAccount [−][src]
A sub-account of a given account on a given coin that is either used for external keys (receiving addresses) or internal keys (change addresses). Some implementations do not distinguish these and just always use receiving addresses.
Implementations
impl<C: KeyDerivationCrypto + 'static> Bip44PublicSubAccount<C>
[src]
pub fn new(
path: Bip44SubAccountPath,
network: &'static dyn Network<Suite = C>,
node: Bip32PublicNode<C>
) -> Self
[src]
path: Bip44SubAccountPath,
network: &'static dyn Network<Suite = C>,
node: Bip32PublicNode<C>
) -> Self
Backdoor to mount a BIP44 sub-account at any place in the BIP32 tree. Use only for implementing advanced or fringe non-standard use-cases.
pub fn node(&self) -> &Bip32PublicNode<C>
[src]
Accessor for the underlying BIP32 node.
pub fn key(&self, key: i32) -> Result<Bip44PublicKey<C>>
[src]
Creates a key with a given index used on the chain for storing balance or authenticating actions.
pub fn bip44_path(&self) -> &Bip44SubAccountPath
[src]
Accessor for the BIP44 path of the sub-account.
pub fn bip32_path(&self) -> &Path
[src]
Accessor for the BIP32 path of the sub-account.
pub fn network(&self) -> &'static dyn Network<Suite = C>
[src]
Accessor for the underlying nwtwork.
impl Bip44PublicSubAccount<Secp256k1>
[src]
pub fn from_xpub(
account: i32,
chain: Chain,
xpub: impl AsRef<str>,
network: &'static dyn Network<Suite = Secp256k1>
) -> Result<Bip44PublicSubAccount<Secp256k1>>
[src]
account: i32,
chain: Chain,
xpub: impl AsRef<str>,
network: &'static dyn Network<Suite = Secp256k1>
) -> Result<Bip44PublicSubAccount<Secp256k1>>
Recreates the public API of a BIP44 sub-account from its parts
pub fn to_xpub(&self) -> String
[src]
Returns the extended public key in the BIP32 readable format with the version bytes of the network.
Trait Implementations
impl<C: Clone + KeyDerivationCrypto + 'static> Clone for Bip44PublicSubAccount<C>
[src]
fn clone(&self) -> Bip44PublicSubAccount<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug + KeyDerivationCrypto + 'static> Debug for Bip44PublicSubAccount<C>
[src]
Auto Trait Implementations
impl<C> !RefUnwindSafe for Bip44PublicSubAccount<C>
impl<C> !Send for Bip44PublicSubAccount<C>
impl<C> !Sync for Bip44PublicSubAccount<C>
impl<C> Unpin for Bip44PublicSubAccount<C> where
<C as KeyDerivationCrypto>::ExtendedPublicKey: Unpin,
<C as KeyDerivationCrypto>::ExtendedPublicKey: Unpin,
impl<C> !UnwindSafe for Bip44PublicSubAccount<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,