mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-04-28 03:01:21 -04:00
This allows to create CompactCiphertextList and ProvenCompactCiphertextList using a seed, so that the encryption can be reproduced * Follows NIST submission: - Create XofSeed from some seed bytes - Then init a NoiseRandomGenerator from the XofSeed - Use the gnerator to do the public encryption - When a zk proof is needed, for each chunk create the seed for the zk-proof by taking the next 16 bytes of noise_random_generator. This is custom to tfhe-rs as NIST submission does not cover this case * JS API + tests included * Backward compatibility tests Backward compatibility tests are included, as since this produces seeded data, we need to be able to guarantee backward compatibility.