fix: fix compression of trivial ciphertext

This commit is contained in:
Mayeul@Zama
2025-02-07 16:06:42 +01:00
committed by mayeul-zama
parent afdb30aa77
commit 73412a43bf

View File

@@ -59,7 +59,8 @@ impl CompressionKey {
for ct in ct_list {
assert!(
ct.noise_level() == NoiseLevel::NOMINAL,
ct.noise_level() == NoiseLevel::NOMINAL
|| ct.noise_level() == NoiseLevel::ZERO,
"Ciphertexts must have a nominal (post PBS) noise to be compressed"
);