pub struct DualAttestation { /* private fields */ }Expand description
Joined attestations can only be constructed after both signatures have been verified under their own accepted-current roots, the roots pass deployment separation policy, and all cross-claim/accounting checks pass.
Implementations§
Source§impl DualAttestation
impl DualAttestation
pub fn verify_and_join( intent: &CanonicalResourceIntent, mac: MacAttestationCandidate, ledger: LedgerAttestationCandidate, mac_verifier: &dyn MacAttestationVerifier, ledger_verifier: &dyn LedgerAttestationVerifier, independence: &dyn AttestationIndependencePolicy, ) -> Result<Self, ContractError>
pub const fn effective_assurance(&self) -> Assurance
pub fn mac(&self) -> &VerifiedMacAttestation
pub fn ledger(&self) -> &VerifiedLedgerAttestation
Trait Implementations§
Source§impl Clone for DualAttestation
impl Clone for DualAttestation
Source§fn clone(&self) -> DualAttestation
fn clone(&self) -> DualAttestation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DualAttestation
impl Debug for DualAttestation
Source§impl PartialEq for DualAttestation
impl PartialEq for DualAttestation
Source§fn eq(&self, other: &DualAttestation) -> bool
fn eq(&self, other: &DualAttestation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DualAttestation
impl StructuralPartialEq for DualAttestation
Auto Trait Implementations§
impl Freeze for DualAttestation
impl RefUnwindSafe for DualAttestation
impl Send for DualAttestation
impl Sync for DualAttestation
impl Unpin for DualAttestation
impl UnsafeUnpin for DualAttestation
impl UnwindSafe for DualAttestation
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