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

Function cmd_quote

dstack-util/src/main.rs:202–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200}
201
202fn cmd_quote() -> Result<()> {
203 let mut report_data = [0; 64];
204 io::stdin()
205 .read_exact(&mut report_data)
206 .context("Failed to read report data")?;
207 let quote = att::get_quote(&report_data).context("Failed to get quote")?;
208 io::stdout()
209 .write_all(&quote)
210 .context("Failed to write quote")?;
211 Ok(())
212}
213
214fn cmd_eventlog() -> Result<()> {
215 let event_logs = cc_eventlog::tdx::read_event_log().context("Failed to read event logs")?;

Callers 1

mainFunction · 0.85

Calls 1

get_quoteFunction · 0.50

Tested by

no test coverage detected