pub struct TrustedPolicySigners {
pub signers: HashSet<PublicKey>,
pub threshold: u64,
}
Expand description
Set of trusted key manager policy signing keys.
Fields§
§signers: HashSet<PublicKey>
Set of trusted signers.
threshold: u64
Threshold for determining if enough valid signatures are present.
Implementations§
§impl TrustedPolicySigners
impl TrustedPolicySigners
pub fn verify<'a>(
&self,
signed_policy: &'a SignedPolicySGX
) -> Result<&'a PolicySGX, KeyManagerError>
pub fn verify<'a>( &self, signed_policy: &'a SignedPolicySGX ) -> Result<&'a PolicySGX, KeyManagerError>
Verify that policy has valid signatures and that enough of them are from trusted signers.
Trait Implementations§
§impl Clone for TrustedPolicySigners
impl Clone for TrustedPolicySigners
§fn clone(&self) -> TrustedPolicySigners
fn clone(&self) -> TrustedPolicySigners
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 more§impl Debug for TrustedPolicySigners
impl Debug for TrustedPolicySigners
§impl Decode for TrustedPolicySigners
impl Decode for TrustedPolicySigners
§fn try_default() -> Result<TrustedPolicySigners, DecodeError>
fn try_default() -> Result<TrustedPolicySigners, DecodeError>
Try to decode from a missing/null/undefined value.
§fn try_from_cbor_value(
value: Value
) -> Result<TrustedPolicySigners, DecodeError>
fn try_from_cbor_value( value: Value ) -> Result<TrustedPolicySigners, 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.§impl Default for TrustedPolicySigners
impl Default for TrustedPolicySigners
§fn default() -> TrustedPolicySigners
fn default() -> TrustedPolicySigners
Returns the “default value” for a type. Read more
§impl Encode for TrustedPolicySigners
impl Encode for TrustedPolicySigners
§fn into_cbor_value(self) -> Value
fn into_cbor_value(self) -> Value
Encode the type into a CBOR Value.
§impl EncodeAsMap for TrustedPolicySigners
impl EncodeAsMap for TrustedPolicySigners
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
Encode the type into a CBOR Map.
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
Encode the type into a CBOR Map, returning the map items.
Auto Trait Implementations§
impl RefUnwindSafe for TrustedPolicySigners
impl Send for TrustedPolicySigners
impl Sync for TrustedPolicySigners
impl Unpin for TrustedPolicySigners
impl UnwindSafe for TrustedPolicySigners
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