Skip to main content

Attester

Trait Attester 

Source
pub trait Attester {
    // Required method
    fn attest(&mut self) -> Attestation;
}
Expand description

Source of the device attestation the server presents in the handshake; queried on every handshake, so a freshly onboarded attestation can be picked up without recreating the wire.

Required Methods§

Source

fn attest(&mut self) -> Attestation

Returns the device attestation to present to the client (e.g. a root-signed CWT read from disk, or a self-signed fallback for pre-onboarding devices). The identity key it embeds must be the one signing the wire’s handshake.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Attester for Attestation

A fixed attestation, presented as is on every handshake.