pub struct Keys { /* private fields */ }Expand description
Represents Kyber key pair.
Implementations§
Source§impl Keys
impl Keys
Sourcepub fn new() -> Result<Keys, JsError>
pub fn new() -> Result<Keys, JsError>
Create a new key pair.
This function generates a new Kyber key pair and returns it as a Keys struct.
§Errors
Returns a JsError if an error occurs during key pair generation.
Trait Implementations§
Source§impl FromWasmAbi for Keys
impl FromWasmAbi for Keys
Source§impl IntoWasmAbi for Keys
impl IntoWasmAbi for Keys
Source§impl LongRefFromWasmAbi for Keys
impl LongRefFromWasmAbi for Keys
Source§impl OptionFromWasmAbi for Keys
impl OptionFromWasmAbi for Keys
Source§impl OptionIntoWasmAbi for Keys
impl OptionIntoWasmAbi for Keys
Source§impl RefFromWasmAbi for Keys
impl RefFromWasmAbi for Keys
Source§type Abi = WasmPtr<WasmRefCell<Keys>>
type Abi = WasmPtr<WasmRefCell<Keys>>
The Wasm ABI type references to
Self are recovered from.Source§impl RefMutFromWasmAbi for Keys
impl RefMutFromWasmAbi for Keys
Source§impl TryFromJsValue for Keys
impl TryFromJsValue for Keys
Source§impl VectorFromWasmAbi for Keys
impl VectorFromWasmAbi for Keys
Source§impl VectorIntoWasmAbi for Keys
impl VectorIntoWasmAbi for Keys
impl SupportsConstructor for Keys
impl SupportsInstanceProperty for Keys
impl SupportsStaticProperty for Keys
Auto Trait Implementations§
impl Freeze for Keys
impl RefUnwindSafe for Keys
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnsafeUnpin for Keys
impl UnwindSafe for Keys
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.