Struct cml_chain_wasm::crypto::VRFVkey
source · pub struct VRFVkey(/* private fields */);Implementations§
source§impl VRFVkey
impl VRFVkey
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<VRFVkey, JsError>
pub fn from_hex(input: &str) -> Result<VRFVkey, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<VRFVkey, JsError>
Trait Implementations§
source§impl FromWasmAbi for VRFVkey
impl FromWasmAbi for VRFVkey
source§impl IntoWasmAbi for VRFVkey
impl IntoWasmAbi for VRFVkey
source§impl OptionFromWasmAbi for VRFVkey
impl OptionFromWasmAbi for VRFVkey
source§impl OptionIntoWasmAbi for VRFVkey
impl OptionIntoWasmAbi for VRFVkey
source§impl RefFromWasmAbi for VRFVkey
impl RefFromWasmAbi for VRFVkey
§type Anchor = Ref<'static, VRFVkey>
type Anchor = Ref<'static, VRFVkey>
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§unsafe fn ref_from_abi(
js: <VRFVkey as RefFromWasmAbi>::Abi
) -> <VRFVkey as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <VRFVkey as RefFromWasmAbi>::Abi ) -> <VRFVkey as RefFromWasmAbi>::Anchor
source§impl RefMutFromWasmAbi for VRFVkey
impl RefMutFromWasmAbi for VRFVkey
source§unsafe fn ref_mut_from_abi(
js: <VRFVkey as RefMutFromWasmAbi>::Abi
) -> <VRFVkey as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <VRFVkey as RefMutFromWasmAbi>::Abi ) -> <VRFVkey as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiAuto Trait Implementations§
impl Freeze for VRFVkey
impl RefUnwindSafe for VRFVkey
impl Send for VRFVkey
impl Sync for VRFVkey
impl Unpin for VRFVkey
impl UnwindSafe for VRFVkey
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.