Struct iop_keyvault_wasm::JsSecpKeyId
source · [−]pub struct JsSecpKeyId { /* private fields */ }
Expand description
Secp256k1 key id (fingerprint/digest/hash of a public key)
Implementations
sourceimpl JsSecpKeyId
impl JsSecpKeyId
sourcepub fn from_p2pkh_addr(
address: &str,
network: &str
) -> Result<JsSecpKeyId, JsValue>
pub fn from_p2pkh_addr(
address: &str,
network: &str
) -> Result<JsSecpKeyId, JsValue>
Deserializes the key identifier from a p2pkh
bitcoin address
Trait Implementations
sourceimpl Clone for JsSecpKeyId
impl Clone for JsSecpKeyId
sourcefn clone(&self) -> JsSecpKeyId
fn clone(&self) -> JsSecpKeyId
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 JsSecpKeyId
impl Debug for JsSecpKeyId
sourceimpl From<JsSecpKeyId> for JsValue
impl From<JsSecpKeyId> for JsValue
sourcefn from(value: JsSecpKeyId) -> Self
fn from(value: JsSecpKeyId) -> Self
Converts to this type from the input type.
sourceimpl From<SecpKeyId> for JsSecpKeyId
impl From<SecpKeyId> for JsSecpKeyId
sourceimpl FromWasmAbi for JsSecpKeyId
impl FromWasmAbi for JsSecpKeyId
sourceimpl IntoWasmAbi for JsSecpKeyId
impl IntoWasmAbi for JsSecpKeyId
sourceimpl OptionFromWasmAbi for JsSecpKeyId
impl OptionFromWasmAbi for JsSecpKeyId
sourceimpl OptionIntoWasmAbi for JsSecpKeyId
impl OptionIntoWasmAbi for JsSecpKeyId
sourceimpl RefFromWasmAbi for JsSecpKeyId
impl RefFromWasmAbi for JsSecpKeyId
type Anchor = Ref<'static, JsSecpKeyId>
type Anchor = Ref<'static, JsSecpKeyId>
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 JsSecpKeyId
impl RefMutFromWasmAbi for JsSecpKeyId
type Anchor = RefMut<'static, JsSecpKeyId>
type Anchor = RefMut<'static, JsSecpKeyId>
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 JsSecpKeyId
impl WasmDescribe for JsSecpKeyId
Auto Trait Implementations
impl RefUnwindSafe for JsSecpKeyId
impl Send for JsSecpKeyId
impl Sync for JsSecpKeyId
impl Unpin for JsSecpKeyId
impl UnwindSafe for JsSecpKeyId
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