flamingo-verifier-client 0.2.2

Attestation-verifying client for the Flamingo verifier
Documentation

Client for the embedding verifier's enclave-assignment flow.

Fetches an assignment, verifies the AWS Nitro attestation document it carries, and yields a [ChannelConsumer] bound to the separately supplied public key. The signed document commits to that key; Pontifex checks the commitment, measurements, signature and freshness.

use flamingo_verifier_client::{Config, FaceVerifierClient, PcrMeasurement};
use flamingo_verifier_sealed_types::MatchInputs;

# async fn example(inputs: &MatchInputs, pcr0: [u8; 48]) -> Result<(), Box<dyn std::error::Error>> {
let config = Config::new(
    "https://verifier.example.com",
    vec![vec![PcrMeasurement::new(0, pcr0)]],
)?;
let client = FaceVerifierClient::new(config)?;
let assignment = client.request_assignment().await?;
let result = client.request_match(&assignment, inputs).await?;
# Ok(())
# }