Struct cml_crypto_wasm::KESVkey
source · pub struct KESVkey(/* private fields */);Implementations§
source§impl KESVkey
impl KESVkey
pub fn to_raw_bytes(&self) -> Vec<u8>
pub fn to_bech32(&self, prefix: &str) -> Result<String, JsError>
pub fn to_hex(&self) -> String
pub fn from_bech32(bech32_str: &str) -> Result<KESVkey, JsError>
pub fn from_hex(input: &str) -> Result<KESVkey, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<KESVkey, JsError>
Trait Implementations§
source§impl FromWasmAbi for KESVkey
impl FromWasmAbi for KESVkey
source§impl IntoWasmAbi for KESVkey
impl IntoWasmAbi for KESVkey
source§impl OptionFromWasmAbi for KESVkey
impl OptionFromWasmAbi for KESVkey
source§impl OptionIntoWasmAbi for KESVkey
impl OptionIntoWasmAbi for KESVkey
source§impl RefFromWasmAbi for KESVkey
impl RefFromWasmAbi for KESVkey
source§impl RefMutFromWasmAbi for KESVkey
impl RefMutFromWasmAbi for KESVkey
Auto Trait Implementations§
impl Freeze for KESVkey
impl RefUnwindSafe for KESVkey
impl Send for KESVkey
impl Sync for KESVkey
impl Unpin for KESVkey
impl UnwindSafe for KESVkey
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,
§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.