Struct iop_keyvault_wasm::JsMorpheusPrivateKey
source · [−]pub struct JsMorpheusPrivateKey { /* private fields */ }
Expand description
The operations on an identifier that require the private key to be available in memory.
Implementations
sourceimpl JsMorpheusPrivateKey
impl JsMorpheusPrivateKey
sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the morpheus key.
sourcepub fn neuter(&self) -> JsMorpheusPublicKey
pub fn neuter(&self) -> JsMorpheusPublicKey
Creates the public interface of the node that does not need the private key in memory.
sourcepub fn private_key(&self) -> JsMPrivateKey
pub fn private_key(&self) -> JsMPrivateKey
Returns the multicipher {@link PrivateKey} that belongs to this key.
Trait Implementations
sourceimpl Clone for JsMorpheusPrivateKey
impl Clone for JsMorpheusPrivateKey
sourcefn clone(&self) -> JsMorpheusPrivateKey
fn clone(&self) -> JsMorpheusPrivateKey
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 JsMorpheusPrivateKey
impl Debug for JsMorpheusPrivateKey
sourceimpl From<JsMorpheusPrivateKey> for JsValue
impl From<JsMorpheusPrivateKey> for JsValue
sourcefn from(value: JsMorpheusPrivateKey) -> Self
fn from(value: JsMorpheusPrivateKey) -> Self
Converts to this type from the input type.
sourceimpl From<MorpheusPrivateKey> for JsMorpheusPrivateKey
impl From<MorpheusPrivateKey> for JsMorpheusPrivateKey
sourcefn from(inner: MorpheusPrivateKey) -> Self
fn from(inner: MorpheusPrivateKey) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsMorpheusPrivateKey
impl FromWasmAbi for JsMorpheusPrivateKey
sourceimpl IntoWasmAbi for JsMorpheusPrivateKey
impl IntoWasmAbi for JsMorpheusPrivateKey
sourceimpl RefFromWasmAbi for JsMorpheusPrivateKey
impl RefFromWasmAbi for JsMorpheusPrivateKey
type Anchor = Ref<'static, JsMorpheusPrivateKey>
type Anchor = Ref<'static, JsMorpheusPrivateKey>
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 JsMorpheusPrivateKey
impl RefMutFromWasmAbi for JsMorpheusPrivateKey
type Anchor = RefMut<'static, JsMorpheusPrivateKey>
type Anchor = RefMut<'static, JsMorpheusPrivateKey>
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 JsMorpheusPrivateKey
impl WasmDescribe for JsMorpheusPrivateKey
sourceimpl Wraps<MorpheusPrivateKey> for JsMorpheusPrivateKey
impl Wraps<MorpheusPrivateKey> for JsMorpheusPrivateKey
sourcefn inner(&self) -> &MorpheusPrivateKey
fn inner(&self) -> &MorpheusPrivateKey
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations
impl !RefUnwindSafe for JsMorpheusPrivateKey
impl !Send for JsMorpheusPrivateKey
impl !Sync for JsMorpheusPrivateKey
impl Unpin for JsMorpheusPrivateKey
impl !UnwindSafe for JsMorpheusPrivateKey
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