Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
chore(tfhe-rs): bump to v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
leventdem committed Feb 7, 2024
1 parent cf818d9 commit d3bf8b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fhevm-tfhe-cli"
version = "0.2.3"
version = "0.2.4"
authors = ["Zama <[email protected]>"]
edition = "2021"
license = "BSD-3-Clause-Clear"
Expand All @@ -12,4 +12,4 @@ publish = false
bincode = "1.3.3"
clap = { version = "3.1.18", features = ["derive"] }
serde = "1.0"
tfhe = { git = "https://github.com/zama-ai/tfhe-rs.git", rev = "tfhe-rs-0.4.1", features = ["boolean", "experimental-force_fft_algo_dif4", "shortint", "integer"] }
tfhe = { git = "https://github.com/zama-ai/tfhe-rs.git", rev = "tfhe-rs-0.5.1", features = ["boolean", "experimental-force_fft_algo_dif4", "shortint", "integer"] }
8 changes: 3 additions & 5 deletions src/gen_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
// All rights reserved.

use tfhe::{
generate_keys, shortint::parameters::PARAM_MESSAGE_2_CARRY_2_KS_PBS, ClientKey,
CompactPublicKey, ConfigBuilder, ServerKey,
generate_keys, shortint::parameters::PARAM_MESSAGE_2_CARRY_2_KS_PBS, ClientKey, CompactPublicKey, ConfigBuilder, ServerKey
};

pub fn gen_keys() -> (ClientKey, ServerKey, CompactPublicKey) {
let config = ConfigBuilder::all_disabled()
.enable_custom_integers(PARAM_MESSAGE_2_CARRY_2_KS_PBS, None)
.build();
let config = ConfigBuilder::with_custom_parameters(PARAM_MESSAGE_2_CARRY_2_KS_PBS, None)
.build();
let (cks, sks) = generate_keys(config);
let pks = CompactPublicKey::new(&cks);
(cks, sks, pks)
Expand Down

0 comments on commit d3bf8b7

Please sign in to comment.