Skip to content

Commit

Permalink
derive debug for Data and Enums
Browse files Browse the repository at this point in the history
  • Loading branch information
ssolit committed Oct 16, 2024
1 parent e52be89 commit 8ce0a09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion attestation-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8ce0a09

Please sign in to comment.