| 9 | use ra_tls::attestation::{QuoteContentType, VersionedAttestation}; |
| 10 | |
| 11 | pub trait PlatformBackend: Send + Sync { |
| 12 | fn attestation_for_info(&self) -> Result<VersionedAttestation>; |
| 13 | fn certificate_attestation(&self, pubkey: &[u8]) -> Result<VersionedAttestation>; |
| 14 | fn quote_response(&self, report_data: [u8; 64], vm_config: &str) -> Result<GetQuoteResponse>; |
| 15 | fn attest_response(&self, report_data: [u8; 64]) -> Result<AttestResponse>; |
| 16 | fn emit_event(&self, event: &str, payload: &[u8]) -> Result<()>; |
| 17 | } |
| 18 | |
| 19 | #[derive(Debug, Default)] |
| 20 | pub struct RealPlatform; |
nothing calls this directly
no outgoing calls
no test coverage detected