Skip to main content

Crate flamingo_verifier_client

Crate flamingo_verifier_client 

Source
Expand description

Client for the Flamingo Verifier host.

Opens a WebSocket session, verifies the AWS Nitro attestation document that commits to the enclave’s encryption key, and runs one sealed match over the verified channel. The session yields a ChannelConsumer bound to that key; Pontifex checks the commitment, measurements, signature and freshness.

use flamingo_verifier_client::{Config, FlamingoVerifierClient, PcrMeasurement};
use flamingo_verifier_sealed_types::Request;

let config = Config::new(
    "https://verifier.example.com",
    vec![(0..).zip(pcrs).map(|(index, value)| PcrMeasurement::new(index, value)).collect()],
)?;
let client = FlamingoVerifierClient::new(config)?;
let session = client.connect().await?;
let result = session.request_match(request).await?;

Structs§

ChannelConsumer
The consumer side of a channel, which seals requests to one attested enclave boot.
Config
Configuration to interact with a Flamingo Verifier host.
FlamingoVerifierClient
Opens a WebSocket session with the Flamingo Verifier host.
FlamingoVerifierSession
One verified exchange: a WebSocket bound to the enclave assignment delivered on it.
PcrMeasurement
Represents expected PCR measurements with its index and value.
VerifiedAssignment
An assignment whose attestation verified and whose encryption key is ready for sealing.
VerifiedMatch
A Flamingo Token whose attestation, signature and claims the client verified.

Enums§

Error
Failures while configuring or calling the host.
VerifiedMatchResult
Verified success or an encrypted unsigned rejection, with bounded worker diagnostics.