Skip to content

Commit

Permalink
Feature gate AttestationHandler
Browse files Browse the repository at this point in the history
We don't want it to get used for the Client's `wasm` builds.
  • Loading branch information
HCastano committed Oct 11, 2024
1 parent 1f83ea4 commit d5f2563
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/shared/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl QuoteInputData {
}

/// A trait for types which can handle attestation requests.
#[cfg(not(feature = "wasm"))]
pub trait AttestationHandler<AccountId> {
/// Verify that the given quote is valid and matches the given information about the attestee.
fn verify_quote(
Expand All @@ -146,6 +147,7 @@ pub trait AttestationHandler<AccountId> {
}

/// A convenience implementation for testing and benchmarking.
#[cfg(not(feature = "wasm"))]
impl<AccountId> AttestationHandler<AccountId> for () {
fn verify_quote(
_attestee: &AccountId,
Expand Down

0 comments on commit d5f2563

Please sign in to comment.