1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Client for the Flamingo 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.
//!
//! ```no_run
//! use flamingo_verifier_client::{Config, FlamingoVerifierClient, 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 = FlamingoVerifierClient::new(config)?;
//! let assignment = client.request_assignment().await?;
//! let result = client.request_match(&assignment, inputs).await?;
//! # Ok(())
//! # }
//! ```
pub use ;
pub use Config;
pub use Error;
pub use ;