Struct iop_keyvault_wasm::JsBip32Node
source · [−]pub struct JsBip32Node { /* private fields */ }
Expand description
In BIP-0032 each extended private key has the same operations, independently from the actual path. This struct represents such an extended private key in a given subtree.
Implementations
sourceimpl JsBip32Node
impl JsBip32Node
sourcepub fn derive_normal(&self, idx: i32) -> Result<JsBip32Node, JsValue>
pub fn derive_normal(&self, idx: i32) -> Result<JsBip32Node, JsValue>
Create a new node with normal (public) derivation with the given index.
sourcepub fn derive_hardened(&self, idx: i32) -> Result<JsBip32Node, JsValue>
pub fn derive_hardened(&self, idx: i32) -> Result<JsBip32Node, JsValue>
Create a new node with hardened (private) derivation with the given index.
sourcepub fn to_private_key(&self) -> JsSecpPrivateKey
pub fn to_private_key(&self) -> JsSecpPrivateKey
Creates the {@SecpPrivateKey} that belongs to this node for authenticating actions.
sourcepub fn neuter(&self) -> JsBip32PublicNode
pub fn neuter(&self) -> JsBip32PublicNode
Removes the ability to sign and derive hardened keys. The public node it returns is still able to provide normal derivation and signature verifications.
Trait Implementations
sourceimpl Clone for JsBip32Node
impl Clone for JsBip32Node
sourcefn clone(&self) -> JsBip32Node
fn clone(&self) -> JsBip32Node
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JsBip32Node
impl Debug for JsBip32Node
sourceimpl From<Bip32Node<Secp256k1>> for JsBip32Node
impl From<Bip32Node<Secp256k1>> for JsBip32Node
sourceimpl From<JsBip32Node> for JsValue
impl From<JsBip32Node> for JsValue
sourcefn from(value: JsBip32Node) -> Self
fn from(value: JsBip32Node) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsBip32Node
impl FromWasmAbi for JsBip32Node
sourceimpl IntoWasmAbi for JsBip32Node
impl IntoWasmAbi for JsBip32Node
sourceimpl OptionFromWasmAbi for JsBip32Node
impl OptionFromWasmAbi for JsBip32Node
sourceimpl OptionIntoWasmAbi for JsBip32Node
impl OptionIntoWasmAbi for JsBip32Node
sourceimpl RefFromWasmAbi for JsBip32Node
impl RefFromWasmAbi for JsBip32Node
type Anchor = Ref<'static, JsBip32Node>
type Anchor = Ref<'static, JsBip32Node>
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
sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
sourceimpl RefMutFromWasmAbi for JsBip32Node
impl RefMutFromWasmAbi for JsBip32Node
type Anchor = RefMut<'static, JsBip32Node>
type Anchor = RefMut<'static, JsBip32Node>
Same as RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for JsBip32Node
impl WasmDescribe for JsBip32Node
Auto Trait Implementations
impl !RefUnwindSafe for JsBip32Node
impl !Send for JsBip32Node
impl !Sync for JsBip32Node
impl Unpin for JsBip32Node
impl !UnwindSafe for JsBip32Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more