Struct cml_chain_wasm::crypto::KESSignature
source · pub struct KESSignature(/* private fields */);Implementations§
source§impl KESSignature
impl KESSignature
sourcepub fn to_cbor_bytes(&self) -> Vec<u8>
pub fn to_cbor_bytes(&self) -> Vec<u8>
- Serialize this type to CBOR bytes
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<KESSignature, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<KESSignature, JsError>
- Create this type from CBOR bytes
sourcepub fn to_cbor_hex(&self) -> String
pub fn to_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<KESSignature, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<KESSignature, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
source§impl KESSignature
impl KESSignature
Trait Implementations§
source§impl AsRef<KESSignature> for KESSignature
impl AsRef<KESSignature> for KESSignature
source§fn as_ref(&self) -> &KESSignature
fn as_ref(&self) -> &KESSignature
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for KESSignature
impl Clone for KESSignature
source§fn clone(&self) -> KESSignature
fn clone(&self) -> KESSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for KESSignature
impl Debug for KESSignature
source§impl From<KESSignature> for JsValue
impl From<KESSignature> for JsValue
source§fn from(value: KESSignature) -> Self
fn from(value: KESSignature) -> Self
Converts to this type from the input type.
source§impl From<KESSignature> for KESSignature
impl From<KESSignature> for KESSignature
source§fn from(native: KESSignature) -> Self
fn from(native: KESSignature) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for KESSignature
impl FromWasmAbi for KESSignature
source§impl Into<KESSignature> for KESSignature
impl Into<KESSignature> for KESSignature
source§fn into(self) -> KESSignature
fn into(self) -> KESSignature
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for KESSignature
impl IntoWasmAbi for KESSignature
source§impl OptionFromWasmAbi for KESSignature
impl OptionFromWasmAbi for KESSignature
source§impl OptionIntoWasmAbi for KESSignature
impl OptionIntoWasmAbi for KESSignature
source§impl RefFromWasmAbi for KESSignature
impl RefFromWasmAbi for KESSignature
§type Anchor = Ref<'static, KESSignature>
type Anchor = Ref<'static, KESSignature>
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 KESSignature
impl RefMutFromWasmAbi for KESSignature
Auto Trait Implementations§
impl Freeze for KESSignature
impl RefUnwindSafe for KESSignature
impl Send for KESSignature
impl Sync for KESSignature
impl Unpin for KESSignature
impl UnwindSafe for KESSignature
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.