Struct oasis_runtime_sdk::modules::rofl::state::KeyEndorsementInfo
source · pub struct KeyEndorsementInfo {
pub node_id: PublicKey,
pub rak: Option<PublicKey>,
}
Expand description
Information about an endorsed key.
Fields§
§node_id: PublicKey
Identifier of node that endorsed the enclave.
rak: Option<PublicKey>
RAK of the enclave that endorsed the key. This is only set for endorsements of extra keys.
Implementations§
source§impl KeyEndorsementInfo
impl KeyEndorsementInfo
sourcepub fn for_rak(node_id: CorePublicKey) -> Self
pub fn for_rak(node_id: CorePublicKey) -> Self
Create a new key endorsement information for RAK endorsed by given node directly.
sourcepub fn for_extra_key(node_id: CorePublicKey, rak: CorePublicKey) -> Self
pub fn for_extra_key(node_id: CorePublicKey, rak: CorePublicKey) -> Self
Create a new key endorsement information for extra key endorsed by RAK.
Trait Implementations§
source§impl Clone for KeyEndorsementInfo
impl Clone for KeyEndorsementInfo
source§fn clone(&self) -> KeyEndorsementInfo
fn clone(&self) -> KeyEndorsementInfo
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 KeyEndorsementInfo
impl Debug for KeyEndorsementInfo
source§impl Decode for KeyEndorsementInfo
impl Decode for KeyEndorsementInfo
source§fn try_default() -> Result<Self, DecodeError>
fn try_default() -> Result<Self, DecodeError>
Try to decode from a missing/null/undefined value.
source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a given CBOR value, calling
try_default
in case the value is null or
undefined.source§impl Default for KeyEndorsementInfo
impl Default for KeyEndorsementInfo
source§fn default() -> KeyEndorsementInfo
fn default() -> KeyEndorsementInfo
Returns the “default value” for a type. Read more
source§impl Encode for KeyEndorsementInfo
impl Encode for KeyEndorsementInfo
source§impl PartialEq for KeyEndorsementInfo
impl PartialEq for KeyEndorsementInfo
source§fn eq(&self, other: &KeyEndorsementInfo) -> bool
fn eq(&self, other: &KeyEndorsementInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyEndorsementInfo
impl StructuralPartialEq for KeyEndorsementInfo
Auto Trait Implementations§
impl Freeze for KeyEndorsementInfo
impl RefUnwindSafe for KeyEndorsementInfo
impl Send for KeyEndorsementInfo
impl Sync for KeyEndorsementInfo
impl Unpin for KeyEndorsementInfo
impl UnwindSafe for KeyEndorsementInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.