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

Function cmd_show_mrs

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

Source from the content-addressed store, hash-verified

240}
241
242fn cmd_show_mrs() -> Result<()> {
243 let attestation =
244 ra_tls::attestation::Attestation::local().context("Failed to get attestation")?;
245 let app_info = attestation
246 .into_v1()
247 .decode_app_info(false)
248 .context("Failed to decode app info")?;
249 serde_json::to_writer_pretty(io::stdout(), &app_info).context("Failed to write app info")?;
250 println!();
251 Ok(())
252}
253
254fn cmd_replay_imr() -> Result<()> {
255 use sha2::Digest;

Callers 2

mainFunction · 0.85
setup_fsMethod · 0.85

Calls 2

decode_app_infoMethod · 0.80
into_v1Method · 0.80

Tested by

no test coverage detected