pub struct BasicEndorsementPolicyEvaluator;
Expand description
An endorsement policy evaluator which implements support for basic endorsement atoms.
Trait Implementations§
Source§impl EndorsementPolicyEvaluator for BasicEndorsementPolicyEvaluator
impl EndorsementPolicyEvaluator for BasicEndorsementPolicyEvaluator
Source§fn verify_atom<C: Context>(
ctx: &C,
policy: &AllowedEndorsement,
_ect: &EndorsedCapabilityTEE,
endorsing_node_id: PublicKey,
endorsing_node: &Option<Node>,
_metadata: &BTreeMap<String, String>,
) -> Result<(), Error>
fn verify_atom<C: Context>( ctx: &C, policy: &AllowedEndorsement, _ect: &EndorsedCapabilityTEE, endorsing_node_id: PublicKey, endorsing_node: &Option<Node>, _metadata: &BTreeMap<String, String>, ) -> Result<(), Error>
Verify a single endorsement policy atom.
Source§fn verify<C: Context>(
ctx: &C,
policy: &[Box<AllowedEndorsement>],
ect: &EndorsedCapabilityTEE,
metadata: &BTreeMap<String, String>,
) -> Result<Option<Node>, Error>
fn verify<C: Context>( ctx: &C, policy: &[Box<AllowedEndorsement>], ect: &EndorsedCapabilityTEE, metadata: &BTreeMap<String, String>, ) -> Result<Option<Node>, Error>
Verify the given endorsed TEE capability against an endorsement policy.
Source§fn verify_atoms<C: Context>(
ctx: &C,
op: EndorsementPolicyOperator,
policy: &[Box<AllowedEndorsement>],
ect: &EndorsedCapabilityTEE,
endorsing_node_id: PublicKey,
endorsing_node: &Option<Node>,
metadata: &BTreeMap<String, String>,
max_depth: usize,
) -> Result<(), Error>
fn verify_atoms<C: Context>( ctx: &C, op: EndorsementPolicyOperator, policy: &[Box<AllowedEndorsement>], ect: &EndorsedCapabilityTEE, endorsing_node_id: PublicKey, endorsing_node: &Option<Node>, metadata: &BTreeMap<String, String>, max_depth: usize, ) -> Result<(), Error>
Verify multiple endorsement policy atoms.
Auto Trait Implementations§
impl Freeze for BasicEndorsementPolicyEvaluator
impl RefUnwindSafe for BasicEndorsementPolicyEvaluator
impl Send for BasicEndorsementPolicyEvaluator
impl Sync for BasicEndorsementPolicyEvaluator
impl Unpin for BasicEndorsementPolicyEvaluator
impl UnwindSafe for BasicEndorsementPolicyEvaluator
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