From 07e2319826954d33678ffe768fe066fe8298b64b Mon Sep 17 00:00:00 2001 From: Rasoul Akhavan Mahdavi Date: Tue, 21 Oct 2025 03:46:20 -0500 Subject: [PATCH] Extra bit needed for bootstrapping --- poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs b/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs index 145ce6b..5478c84 100644 --- a/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs +++ b/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs @@ -116,7 +116,7 @@ impl FheUintBlocks { let (mut pt, scratch_1) = scratch.take_glwe_pt(&pt_infos); for i in 0..T::WORD_SIZE { - pt.encode_coeff_i64(value.bit(i) as i64, TorusPrecision(1), 0); + pt.encode_coeff_i64(value.bit(i) as i64, TorusPrecision(2), 0); self.blocks[i].encrypt_sk(&module, &pt, sk, source_xa, source_xe, scratch_1); } }