Skip to content

Commit dd54f0e

Browse files
committed
chore(coprocessor): bump tfhe-rs to 1.5.0
1 parent e542a28 commit dd54f0e

File tree

7 files changed

+89
-41
lines changed

7 files changed

+89
-41
lines changed

.github/workflows/coprocessor-cargo-clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Setup Rust
5353
uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
5454
with:
55-
toolchain: 1.91.0
55+
toolchain: 1.91.1
5656
components: clippy
5757

5858
- name: Install dependencies

.github/workflows/coprocessor-cargo-fmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Rust
4646
uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
4747
with:
48-
toolchain: 1.91.0
48+
toolchain: 1.91.1
4949
components: rustfmt
5050

5151
- name: Run fmt

coprocessor/fhevm-engine/Cargo.lock

Lines changed: 72 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ sqlx = { version = "0.8.6", default-features = false, features = [
7777
] }
7878
testcontainers = "0.24.0"
7979
thiserror = "2.0.12"
80-
tfhe = { version = "=1.4.0-alpha.4", features = [
80+
tfhe = { version = "=1.5.0", features = [
8181
"boolean",
8282
"shortint",
8383
"integer",
8484
"zk-pok",
8585
"experimental-force_fft_algo_dif4",
8686
] }
8787
tfhe-versionable = "=0.6.2"
88-
tfhe-zk-pok = "=0.7.4"
88+
tfhe-zk-pok = "=0.8.0"
8989
time = "0.3.43"
9090
tokio = { version = "1.45.0", features = ["full"] }
9191
tokio-util = "0.7.15"

coprocessor/fhevm-engine/fhevm-engine-common/src/keys.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ use std::{fs::read, sync::Arc};
33
#[cfg(feature = "gpu")]
44
use tfhe::core_crypto::gpu::get_number_of_gpus;
55
#[cfg(feature = "gpu")]
6-
use tfhe::shortint::parameters::v1_4::meta::gpu::V1_4_META_PARAM_GPU_2_2_MULTI_BIT_GROUP_4_KS_PBS_TUNIFORM_2M128 as gpu_meta_parameters;
6+
use tfhe::shortint::parameters::v1_5::meta::gpu::V1_5_META_PARAM_GPU_2_2_MULTI_BIT_GROUP_3_KS_PBS_TUNIFORM_2M128 as gpu_meta_parameters;
77
use tfhe::shortint::AtomicPatternParameters;
88
use tfhe::{
99
set_server_key,
1010
shortint::parameters::{
1111
meta::DedicatedCompactPublicKeyParameters,
12-
v1_4::meta::cpu::V1_4_META_PARAM_CPU_2_2_KS_PBS_PKE_TO_SMALL_ZKV2_TUNIFORM_2M128 as cpu_meta_parameters,
12+
v1_5::meta::cpu::V1_5_META_PARAM_CPU_2_2_KS_PBS_PKE_TO_SMALL_ZKV2_TUNIFORM_2M128 as cpu_meta_parameters,
1313
CompressionParameters, MetaNoiseSquashingParameters, ShortintKeySwitchingParameters,
1414
},
1515
zk::CompactPkeCrs,
@@ -31,7 +31,7 @@ pub const TFHE_COMPACT_PK_PARAMS: DedicatedCompactPublicKeyParameters = cpu_meta
3131
pub const TFHE_NOISE_SQUASHING_PARAMS: MetaNoiseSquashingParameters = cpu_meta_parameters
3232
.noise_squashing_parameters
3333
.expect("Missing noise squashing parameters");
34-
pub const TFHE_PKS_RERANDOMIZATION_PARAMS: ShortintKeySwitchingParameters = cpu_meta_parameters
34+
pub const TFHE_PKS_RERANDOMIZATION_PARAMS: ShortintKeySwitchingParameters = TFHE_COMPACT_PK_PARAMS
3535
.re_randomization_parameters
3636
.expect("Missing rerandomisation parameters");
3737

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.91.0"
2+
channel = "1.91.1"

coprocessor/fhevm-engine/tfhe-worker/benches/utils.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -391,17 +391,17 @@ pub mod shortint_utils {
391391
let lwe_dimension = pbs_params.encryption_lwe_dimension();
392392
CryptoParametersRecord {
393393
lwe_dimension: Some(lwe_dimension),
394-
br_level: Some(comp_params.br_level),
395-
br_base_log: Some(comp_params.br_base_log),
396-
packing_ks_level: Some(comp_params.packing_ks_level),
397-
packing_ks_base_log: Some(comp_params.packing_ks_base_log),
398-
packing_ks_polynomial_size: Some(comp_params.packing_ks_polynomial_size),
399-
packing_ks_glwe_dimension: Some(comp_params.packing_ks_glwe_dimension),
400-
lwe_per_glwe: Some(comp_params.lwe_per_glwe),
401-
storage_log_modulus: Some(comp_params.storage_log_modulus),
394+
br_level: Some(comp_params.br_level()),
395+
br_base_log: Some(comp_params.br_base_log()),
396+
packing_ks_level: Some(comp_params.packing_ks_level()),
397+
packing_ks_base_log: Some(comp_params.packing_ks_base_log()),
398+
packing_ks_polynomial_size: Some(comp_params.packing_ks_polynomial_size()),
399+
packing_ks_glwe_dimension: Some(comp_params.packing_ks_glwe_dimension()),
400+
lwe_per_glwe: Some(comp_params.lwe_per_glwe()),
401+
storage_log_modulus: Some(comp_params.storage_log_modulus()),
402402
lwe_noise_distribution: Some(pbs_params.encryption_noise_distribution()),
403403
packing_ks_key_noise_distribution: Some(
404-
comp_params.packing_ks_key_noise_distribution,
404+
comp_params.packing_ks_key_noise_distribution(),
405405
),
406406
ciphertext_modulus: Some(pbs_params.ciphertext_modulus()),
407407
..Default::default()

0 commit comments

Comments
 (0)