cleanup mrsigner from hex

This commit is contained in:
Valentyn Faychuk 2024-12-02 05:21:59 +02:00
parent c379d3851e
commit 2d99be8fe3
Signed by: valy
GPG Key ID: F1AB995E20FEADC5
2 changed files with 0 additions and 7 deletions

@ -2,7 +2,6 @@ mod datastore;
mod grpc; mod grpc;
mod http_server; mod http_server;
mod persistence; mod persistence;
mod sgx;
mod solana; mod solana;
use crate::{ 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)
}