Skip to content

Commit 77df53f

Browse files
authored
chore(coprocessor): update tfhe-rs to 1.5.4 (#2103)
Also, treat `get_kind_of()` returning None for a correct index as an error instead of skipping the index. The skipping was there to workaround a bug in tfhe-rs that is now fixed in 1.5.4.
1 parent 3fb34cb commit 77df53f

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

coprocessor/fhevm-engine/Cargo.lock

Lines changed: 11 additions & 11 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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ prometheus = "0.14.0"
5656
prost = "0.13.5"
5757
rand = "0.9.1"
5858
rayon = "1.11.0"
59-
reqwest = { version = "0.12.20", default-features = false, features = ["rustls-tls"] }
59+
reqwest = { version = "0.12.20", default-features = false, features = [
60+
"rustls-tls",
61+
] }
6062
rustls = { version = "0.23", features = ["aws-lc-rs"] }
6163
semver = "1.0.26"
6264
serde = "1.0.225"
@@ -71,11 +73,11 @@ sqlx = { version = "0.8.6", default-features = false, features = [
7173
"time",
7274
"postgres",
7375
"uuid",
74-
"chrono"
76+
"chrono",
7577
] }
7678
testcontainers = "0.24.0"
7779
thiserror = "2.0.12"
78-
tfhe = { version = "=1.5.1", features = [
80+
tfhe = { version = "=1.5.4", features = [
7981
"boolean",
8082
"shortint",
8183
"integer",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ pub fn extract_ct_list(
291291
) -> Result<Vec<SupportedFheCiphertexts>, FhevmError> {
292292
let mut res = Vec::new();
293293
for idx in 0..expanded.len() {
294-
let Some(data_kind) = expanded.get_kind_of(idx) else {
294+
let data_kind = expanded.get_kind_of(idx).ok_or_else(|| {
295295
tracing::error!(len = expanded.len(), idx, "get_kind_of returned None");
296-
continue;
297-
};
296+
FhevmError::MissingTfheRsData
297+
})?;
298298

299299
match data_kind {
300300
tfhe::FheTypes::Bool => {

0 commit comments

Comments
 (0)