pub struct Roots<'a> {
pub hardware: &'a [PublicKey],
pub emulator: &'a [PublicKey],
}Expand description
Roots of trust, accepting the Arks attested under them: hardware Arks by the hardware roots and emulated Arks by the emulator roots, the attestation having to be valid at the current time. An Ark that was never onboarded is rejected, its self-signed attestation being an onboarding decision rather than one of trust.
Fields§
§hardware: &'a [PublicKey]§emulator: &'a [PublicKey]Trait Implementations§
Source§impl Verifier for Roots<'_>
impl Verifier for Roots<'_>
Source§fn verify(
&self,
attestation: &Attestation,
) -> Result<(PublicKey, Self::Info), String>
fn verify( &self, attestation: &Attestation, ) -> Result<(PublicKey, Self::Info), String>
Verifies the device attestation, returning the Ark’s identity key along
with any info extracted from the attestation. The handshake signature is
checked against the returned key, so this decision is what authenticates
the session. Rejecting the attestation aborts the handshake.
Auto Trait Implementations§
impl<'a> Freeze for Roots<'a>
impl<'a> RefUnwindSafe for Roots<'a>
impl<'a> Send for Roots<'a>
impl<'a> Sync for Roots<'a>
impl<'a> Unpin for Roots<'a>
impl<'a> UnsafeUnpin for Roots<'a>
impl<'a> UnwindSafe for Roots<'a>
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