()
| 300 | } |
| 301 | |
| 302 | pub fn decode_from_ccel_file() -> Result<Self> { |
| 303 | let data = fs_err::read(CCEL_FILE).context("Failed to read CCEL")?; |
| 304 | Self::decode(&mut data.as_slice()) |
| 305 | } |
| 306 | |
| 307 | pub fn to_cc_event_log(&self) -> Result<Vec<TdxEvent>> { |
| 308 | self.event_logs |