SafeTrace icon indicating copy to clipboard operation
SafeTrace copied to clipboard

Improve data serialization for JSON inputs

Open cankisagun opened this issue 4 years ago • 0 comments

Enclave data is serialized for sealing/unsealing using JSON format, which is highly inefficient in terms of space. This should be improved using a binary format such as CBOR. The correct library serde-cbor that is SGX compatible should be identified and used, the code adjusted to use that. Data is JSON_serialized in [enclave/src/data.rs] in the first line of create_sealeddata_for_serializable(), and later deserialized in the last line of recover_sealeddata_for_serializable().

cankisagun avatar Apr 08 '20 17:04 cankisagun