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§
- Channel
Consumer - The consumer side of a channel, which seals requests to one attested enclave boot.
- Config
- Configuration to interact with a Flamingo Verifier host.
- Flamingo
Verifier Client - Opens a WebSocket session with the Flamingo Verifier host.
- Flamingo
Verifier Session - One verified exchange: a WebSocket bound to the enclave assignment delivered on it.
- PcrMeasurement
- Represents expected PCR measurements with its index and value.
- Verified
Assignment - An assignment whose attestation verified and whose encryption key is ready for sealing.
- Verified
Match - A Flamingo Token whose attestation, signature and claims the client verified.
Enums§
- Error
- Failures while configuring or calling the host.
- Verified
Match Result - Verified success or an encrypted unsigned rejection, with bounded worker diagnostics.