pub struct SigKeyPairWasm { /* private fields */ }
Expand description
WASM-compatible key pair for signature operations
Implementations§
Source§impl SigKeyPairWasm
impl SigKeyPairWasm
pub fn new(public_key: Uint8Array, secret_key: Uint8Array) -> Self
pub fn public_key(&self) -> Uint8Array
pub fn secret_key(&self) -> Uint8Array
Trait Implementations§
Source§impl From<SigKeyPairWasm> for JsValue
impl From<SigKeyPairWasm> for JsValue
Source§fn from(value: SigKeyPairWasm) -> Self
fn from(value: SigKeyPairWasm) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SigKeyPairWasm
impl FromWasmAbi for SigKeyPairWasm
Source§impl IntoWasmAbi for SigKeyPairWasm
impl IntoWasmAbi for SigKeyPairWasm
Source§impl LongRefFromWasmAbi for SigKeyPairWasm
impl LongRefFromWasmAbi for SigKeyPairWasm
Source§impl OptionFromWasmAbi for SigKeyPairWasm
impl OptionFromWasmAbi for SigKeyPairWasm
Source§impl OptionIntoWasmAbi for SigKeyPairWasm
impl OptionIntoWasmAbi for SigKeyPairWasm
Source§impl RefFromWasmAbi for SigKeyPairWasm
impl RefFromWasmAbi for SigKeyPairWasm
Source§type Anchor = RcRef<SigKeyPairWasm>
type Anchor = RcRef<SigKeyPairWasm>
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 SigKeyPairWasm
impl RefMutFromWasmAbi for SigKeyPairWasm
Source§impl TryFromJsValue for SigKeyPairWasm
impl TryFromJsValue for SigKeyPairWasm
Source§impl VectorFromWasmAbi for SigKeyPairWasm
impl VectorFromWasmAbi for SigKeyPairWasm
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SigKeyPairWasm]>
Source§impl VectorIntoJsValue for SigKeyPairWasm
impl VectorIntoJsValue for SigKeyPairWasm
fn vector_into_jsvalue(vector: Box<[SigKeyPairWasm]>) -> JsValue
Source§impl VectorIntoWasmAbi for SigKeyPairWasm
impl VectorIntoWasmAbi for SigKeyPairWasm
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SigKeyPairWasm]>) -> Self::Abi
Source§impl WasmDescribeVector for SigKeyPairWasm
impl WasmDescribeVector for SigKeyPairWasm
impl SupportsConstructor for SigKeyPairWasm
impl SupportsInstanceProperty for SigKeyPairWasm
impl SupportsStaticProperty for SigKeyPairWasm
Auto Trait Implementations§
impl Freeze for SigKeyPairWasm
impl RefUnwindSafe for SigKeyPairWasm
impl !Send for SigKeyPairWasm
impl !Sync for SigKeyPairWasm
impl Unpin for SigKeyPairWasm
impl UnwindSafe for SigKeyPairWasm
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::Abi
Source§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
.