(&self)
| 67 | } |
| 68 | |
| 69 | pub fn digest(&self) -> Vec<u8> { |
| 70 | if let Some(runtime_event) = self.to_runtime_event() { |
| 71 | return runtime_event.sha384_digest().to_vec(); |
| 72 | } |
| 73 | self.digest.clone() |
| 74 | } |
| 75 | |
| 76 | pub fn is_runtime_event(&self) -> bool { |
| 77 | self.event_type == DSTACK_RUNTIME_EVENT_TYPE |