MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / dummy_tdx_attestation

Function dummy_tdx_attestation

dstack-attest/src/attestation.rs:1228–1239  ·  view source on GitHub ↗
(report_data: [u8; 64])

Source from the content-addressed store, hash-verified

1226 }
1227
1228 fn dummy_tdx_attestation(report_data: [u8; 64]) -> Attestation {
1229 Attestation {
1230 quote: AttestationQuote::DstackTdx(TdxQuote {
1231 quote: vec![0u8; TDX_QUOTE_REPORT_DATA_RANGE.end],
1232 event_log: Vec::new(),
1233 }),
1234 runtime_events: Vec::new(),
1235 report_data,
1236 config: "{}".into(),
1237 report: (),
1238 }
1239 }
1240
1241 #[test]
1242 fn test_to_report_data_with_hash() {

Calls

no outgoing calls

Tested by

no test coverage detected