Serialization
This document explains how to serialize and deserialize ciphertexts and secret keys when working with TFHE-rs in Rust.
Concrete already has its serilization functions (e.g. tfhers_bridge.export_value
, tfhers_bridge.import_value
, tfhers_bridge.keygen_with_initial_keys
, tfhers_bridge.serialize_input_secret_key
). However, when implementing a TFHE-rs computation in Rust, we must use a compatible serialization.
Ciphertexts
We should deserialize FheUint8
using safe serialization functions from TFHE-rs
To serialize
Secret Key
We should deserialize LweSecretKey
using safe serialization functions from TFHE-rs
To serialize
Last updated