From 8ce0a090f19211d963e10f16fe89fb37185219c8 Mon Sep 17 00:00:00 2001 From: ssolit Date: Wed, 16 Oct 2024 19:39:27 +0000 Subject: [PATCH] derive debug for Data and Enums --- attestation-service/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attestation-service/src/lib.rs b/attestation-service/src/lib.rs index d2f44ccb2..207bf25ff 100644 --- a/attestation-service/src/lib.rs +++ b/attestation-service/src/lib.rs @@ -30,7 +30,7 @@ use verifier::{InitDataHash, ReportData}; use crate::utils::flatten_claims; /// Hash algorithms used to calculate runtime/init data binding -#[derive(Display, EnumString, AsRefStr)] +#[derive(Debug, Display, EnumString, AsRefStr)] pub enum HashAlgorithm { #[strum(ascii_case_insensitive)] Sha256, @@ -66,6 +66,7 @@ impl HashAlgorithm { /// Runtime/Init Data used to check the binding relationship with report data /// in Evidence +#[derive(Debug)] pub enum Data { /// This will be used as the expected runtime/init data to check against /// the one inside evidence.