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

Method to_cc_event_log

cc-eventlog/src/tcg.rs:307–314  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

305 }
306
307 pub fn to_cc_event_log(&self) -> Result<Vec<TdxEvent>> {
308 self.event_logs
309 .iter()
310 .filter(|log| log.imr_index > 0) // GCP fills some IMRs starting from 0
311 .cloned()
312 .map(TdxEvent::try_from)
313 .collect()
314 }
315}
316
317fn parse_spec_id_event_log<I: scale::Input>(

Callers 2

parse_ccelFunction · 0.80
read_event_logFunction · 0.80

Calls

no outgoing calls

Tested by 1

parse_ccelFunction · 0.64