cleanup mrsigner from hex
This commit is contained in:
parent
c379d3851e
commit
2d99be8fe3
@ -2,7 +2,6 @@ mod datastore;
|
||||
mod grpc;
|
||||
mod http_server;
|
||||
mod persistence;
|
||||
mod sgx;
|
||||
mod solana;
|
||||
|
||||
use crate::{
|
||||
|
@ -1,6 +0,0 @@
|
||||
// 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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user