running clippy fix separating homepage to a file adding summary of network security removing the rewrite structure removing catch unwind adding sealing to persistence redirectng to the upstream fixing some startup endgecases Co-authored-by: Jakub Doka <jakub.doka2@gmail.com> Reviewed-on: SGX/hacker-challenge-sgx#2
7 lines
294 B
Rust
7 lines
294 B
Rust
// TODO: Use error types (define error types in error.rs, see occlum-ratls as an example)
|
|
pub fn mrsigner_from_hex(mrsigner_hex: &str) -> Result<[u8; 32], Box<dyn std::error::Error>> {
|
|
let mut mrsigner = [0u8; 32];
|
|
hex::decode_to_slice(mrsigner_hex, &mut mrsigner)?;
|
|
Ok(mrsigner)
|
|
}
|