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

Function decode_report_data

dstack-attest/src/v1.rs:73–77  ·  view source on GitHub ↗
(report_data: &[u8])

Source from the content-addressed store, hash-verified

71}
72
73fn decode_report_data(report_data: &[u8]) -> Result<[u8; 64]> {
74 report_data
75 .try_into()
76 .map_err(|_| anyhow!("stack.report_data must be 64 bytes"))
77}
78
79impl StackEvidence {
80 pub fn report_data(&self) -> Result<[u8; 64]> {

Callers 1

report_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected