pub struct OperationalCert(/* private fields */);Implementations§
Source§impl OperationalCert
impl OperationalCert
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 to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes using canonical CBOR encodings
Sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<OperationalCert, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<OperationalCert, 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 to_canonical_cbor_hex(&self) -> String
pub fn to_canonical_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<OperationalCert, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<OperationalCert, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Source§impl OperationalCert
impl OperationalCert
pub fn hot_vkey(&self) -> KESVkey
pub fn sequence_number(&self) -> u64
pub fn kes_period(&self) -> u64
pub fn sigma(&self) -> Ed25519Signature
pub fn new( hot_vkey: &KESVkey, sequence_number: u64, kes_period: u64, sigma: &Ed25519Signature, ) -> Self
Trait Implementations§
Source§impl AsRef<OperationalCert> for OperationalCert
impl AsRef<OperationalCert> for OperationalCert
Source§fn as_ref(&self) -> &OperationalCert
fn as_ref(&self) -> &OperationalCert
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for OperationalCert
impl Clone for OperationalCert
Source§fn clone(&self) -> OperationalCert
fn clone(&self) -> OperationalCert
Returns a duplicate 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 OperationalCert
impl Debug for OperationalCert
Source§impl From<OperationalCert> for JsValue
impl From<OperationalCert> for JsValue
Source§fn from(value: OperationalCert) -> Self
fn from(value: OperationalCert) -> Self
Converts to this type from the input type.
Source§impl From<OperationalCert> for OperationalCert
impl From<OperationalCert> for OperationalCert
Source§fn from(native: OperationalCert) -> Self
fn from(native: OperationalCert) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for OperationalCert
impl FromWasmAbi for OperationalCert
Source§impl Into<OperationalCert> for OperationalCert
impl Into<OperationalCert> for OperationalCert
Source§fn into(self) -> OperationalCert
fn into(self) -> OperationalCert
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for OperationalCert
impl IntoWasmAbi for OperationalCert
Source§impl LongRefFromWasmAbi for OperationalCert
impl LongRefFromWasmAbi for OperationalCert
Source§impl OptionFromWasmAbi for OperationalCert
impl OptionFromWasmAbi for OperationalCert
Source§impl OptionIntoWasmAbi for OperationalCert
impl OptionIntoWasmAbi for OperationalCert
Source§impl RefFromWasmAbi for OperationalCert
impl RefFromWasmAbi for OperationalCert
Source§type Anchor = RcRef<OperationalCert>
type Anchor = RcRef<OperationalCert>
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 OperationalCert
impl RefMutFromWasmAbi for OperationalCert
Source§impl TryFromJsValue for OperationalCert
impl TryFromJsValue for OperationalCert
Source§impl VectorFromWasmAbi for OperationalCert
impl VectorFromWasmAbi for OperationalCert
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OperationalCert]>
Source§impl VectorIntoWasmAbi for OperationalCert
impl VectorIntoWasmAbi for OperationalCert
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OperationalCert]>) -> Self::Abi
Source§impl WasmDescribeVector for OperationalCert
impl WasmDescribeVector for OperationalCert
impl SupportsConstructor for OperationalCert
impl SupportsInstanceProperty for OperationalCert
impl SupportsStaticProperty for OperationalCert
Auto Trait Implementations§
impl Freeze for OperationalCert
impl RefUnwindSafe for OperationalCert
impl Send for OperationalCert
impl Sync for OperationalCert
impl Unpin for OperationalCert
impl UnsafeUnpin for OperationalCert
impl UnwindSafe for OperationalCert
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.