flamingo-verifier-client 0.11.2

Attestation-verifying client for the Flamingo verifier
Documentation
//! 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.
//!
//! ```no_run
//! use flamingo_verifier_client::{Config, FlamingoVerifierClient, PcrMeasurement};
//! use flamingo_verifier_sealed_types::Request;
//!
//! # async fn example(request: &Request, pcrs: [[u8; 48]; 3]) -> Result<(), Box<dyn std::error::Error>> {
//! 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?;
//! # Ok(())
//! # }
//! ```

#![deny(
    clippy::all,
    clippy::pedantic,
    clippy::nursery,
    missing_docs,
    dead_code
)]

mod client;
mod config;
mod error;
mod session;

pub use client::{FlamingoVerifierClient, VerifiedAssignment, VerifiedMatch, VerifiedMatchResult};
pub use config::Config;
pub use error::Error;
pub use pontifex::{ChannelConsumer, PcrMeasurement};
pub use session::FlamingoVerifierSession;