diff --git a/Cargo.toml b/Cargo.toml index 8939e39..064f5bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,4 +21,4 @@ lto = true nix = "0.20" libc = "0.2" log = "0.4" -minicbor = { version = "0.18.0", features = ["derive", "alloc"] } \ No newline at end of file +minicbor = { version = "0.18", features = ["derive", "alloc"] } \ No newline at end of file diff --git a/src/api/mod.rs b/src/api/mod.rs index f6ccaa5..52773bd 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -257,29 +257,16 @@ impl AttestationDoc { nonce: Option>, public_key: Option>, ) -> Self { - let mut pcrs_serialized = BTreeMap::new(); - - for (i, pcr) in pcrs.into_iter() { - // let pcr = ByteBuf::from(pcr); - pcrs_serialized.insert(i, pcr); - } - - // let cabundle_serialized = cabundle.into_iter().map(ByteBuf::from).collect(); - let cabundle_serialized = cabundle; AttestationDoc { module_id, digest, timestamp, - pcrs: pcrs_serialized, - cabundle: cabundle_serialized, - // certificate: ByteBuf::from(certificate), - certificate: certificate, - // user_data: user_data.map(ByteBuf::from), - user_data: user_data, - // nonce: nonce.map(ByteBuf::from), - nonce: nonce, - // public_key: public_key.map(ByteBuf::from), + pcrs, + cabundle, + certificate, + user_data, + nonce, public_key: public_key, } }