shade_attestation/lib.rs
1#![no_std]
2#![deny(clippy::mod_module_files)]
3
4extern crate alloc;
5
6// dcap-qvl requires getrandom but NEAR vm doesn't support it
7// error if randomness is called
8#[cfg(target_arch = "wasm32")]
9mod wasm_getrandom {
10 use getrandom::{Error, register_custom_getrandom};
11
12 fn randomness_unsupported(_: &mut [u8]) -> Result<(), Error> {
13 Err(Error::UNSUPPORTED)
14 }
15
16 register_custom_getrandom!(randomness_unsupported);
17}
18
19pub mod app_compose;
20pub mod attestation;
21pub mod collateral;
22pub mod measurements;
23pub mod quote;
24pub mod report_data;
25pub mod tcb_info;