Struct bsv_wasm::keypair::ExtendedPrivateKey [−][src]
pub struct ExtendedPrivateKey { /* fields omitted */ }
Implementations
pub fn new(
private_key: &PrivateKey,
chain_code: &[u8],
depth: &u8,
index: &u32,
parent_fingerprint: Option<&[u8]>
) -> Self
pub fn from_mnemonic_and_passphrase_impl(
mnemonic: Vec<u8>,
passphrase: Option<Vec<u8>>
) -> Result<Self, ExtendedPrivateKeyErrors>
pub fn derive_from_path_impl(
&self,
path: &str
) -> Result<ExtendedPrivateKey, ExtendedPrivateKeyErrors>
pub fn derive_from_path(
&self,
path: &str
) -> Result<ExtendedPrivateKey, ExtendedPrivateKeyErrors>
pub fn from_mnemonic(
mnemonic: Vec<u8>,
passphrase: Option<Vec<u8>>
) -> Result<ExtendedPrivateKey, ExtendedPrivateKeyErrors>
Trait Implementations
Performs the conversion.
type Anchor = Ref<'static, ExtendedPrivateKey>
type Anchor = Ref<'static, ExtendedPrivateKey>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
Recover a Self::Anchor
from Self::Abi
. Read more
type Anchor = RefMut<'static, ExtendedPrivateKey>
type Anchor = RefMut<'static, ExtendedPrivateKey>
Same as RefFromWasmAbi::Anchor
Same as RefFromWasmAbi::ref_from_abi
Auto Trait Implementations
impl RefUnwindSafe for ExtendedPrivateKey
impl Send for ExtendedPrivateKey
impl Sync for ExtendedPrivateKey
impl Unpin for ExtendedPrivateKey
impl UnwindSafe for ExtendedPrivateKey