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