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

Function debug_print_log

dstack-mr/src/util.rs:20–25  ·  view source on GitHub ↗
(name: &str, log: &[Vec<u8>])

Source from the content-addressed store, hash-verified

18}
19
20pub(crate) fn debug_print_log(name: &str, log: &[Vec<u8>]) {
21 debug!("{name} event log:");
22 for (i, entry) in log.iter().enumerate() {
23 debug!("[{i}] digest: {}", hex::encode(entry));
24 }
25}
26/// Computes a measurement of the given RTMR event log.
27pub(crate) fn measure_log(log: &[Vec<u8>]) -> Vec<u8> {
28 let mut mr = [0u8; 48]; // SHA384 output size

Callers 1

measure_with_logsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected