pub struct WasmKeyPairImpl { /* private fields */ }Expand description
Generic WASM key pair implementation
Implementations§
Source§impl WasmKeyPairImpl
impl WasmKeyPairImpl
pub fn new(public_key: Uint8Array, secret_key: Uint8Array) -> WasmKeyPairImpl
pub fn public_key(&self) -> Uint8Array
pub fn secret_key(&self) -> Uint8Array
Trait Implementations§
Source§impl From<WasmKeyPairImpl> for JsValue
impl From<WasmKeyPairImpl> for JsValue
Source§fn from(value: WasmKeyPairImpl) -> Self
fn from(value: WasmKeyPairImpl) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmKeyPairImpl
impl FromWasmAbi for WasmKeyPairImpl
Source§impl IntoWasmAbi for WasmKeyPairImpl
impl IntoWasmAbi for WasmKeyPairImpl
Source§impl LongRefFromWasmAbi for WasmKeyPairImpl
impl LongRefFromWasmAbi for WasmKeyPairImpl
Source§type Abi = WasmPtr<WasmRefCell<WasmKeyPairImpl>>
type Abi = WasmPtr<WasmRefCell<WasmKeyPairImpl>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmKeyPairImpl>
type Anchor = RcRef<WasmKeyPairImpl>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for WasmKeyPairImpl
impl OptionFromWasmAbi for WasmKeyPairImpl
Source§impl OptionIntoWasmAbi for WasmKeyPairImpl
impl OptionIntoWasmAbi for WasmKeyPairImpl
Source§impl RefFromWasmAbi for WasmKeyPairImpl
impl RefFromWasmAbi for WasmKeyPairImpl
Source§type Abi = WasmPtr<WasmRefCell<WasmKeyPairImpl>>
type Abi = WasmPtr<WasmRefCell<WasmKeyPairImpl>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmKeyPairImpl>
type Anchor = RcRef<WasmKeyPairImpl>
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.Source§impl RefMutFromWasmAbi for WasmKeyPairImpl
impl RefMutFromWasmAbi for WasmKeyPairImpl
Source§type Abi = WasmPtr<WasmRefCell<WasmKeyPairImpl>>
type Abi = WasmPtr<WasmRefCell<WasmKeyPairImpl>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmKeyPairImpl>
type Anchor = RcRefMut<WasmKeyPairImpl>
Same as
RefFromWasmAbi::AnchorSource§unsafe 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_abiSource§impl TryFromJsValue for WasmKeyPairImpl
impl TryFromJsValue for WasmKeyPairImpl
Source§impl VectorFromWasmAbi for WasmKeyPairImpl
impl VectorFromWasmAbi for WasmKeyPairImpl
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmKeyPairImpl]>
Source§impl VectorIntoWasmAbi for WasmKeyPairImpl
impl VectorIntoWasmAbi for WasmKeyPairImpl
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmKeyPairImpl]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmKeyPairImpl
impl WasmDescribeVector for WasmKeyPairImpl
Source§impl WasmKeyPair for WasmKeyPairImpl
Available on crate feature wasm only.
impl WasmKeyPair for WasmKeyPairImpl
Available on crate feature
wasm only.fn public_key(&self) -> Uint8Array
fn secret_key(&self) -> Uint8Array
impl SupportsConstructor for WasmKeyPairImpl
impl SupportsInstanceProperty for WasmKeyPairImpl
impl SupportsStaticProperty for WasmKeyPairImpl
Auto Trait Implementations§
impl Freeze for WasmKeyPairImpl
impl RefUnwindSafe for WasmKeyPairImpl
impl Send for WasmKeyPairImpl
impl Sync for WasmKeyPairImpl
impl Unpin for WasmKeyPairImpl
impl UnsafeUnpin for WasmKeyPairImpl
impl UnwindSafe for WasmKeyPairImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn 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.