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

Commit

Permalink
Merge pull request #20 from zama-ai/bump/tfhe-rs-v0.5.1
Browse files Browse the repository at this point in the history
chore(tfhe-rs): bump to v0.5.1
  • Loading branch information
leventdem authored Feb 8, 2024
2 parents cf818d9 + 30254a0 commit 90112cd
Show file tree
Hide file tree
Showing 4 changed files with 11 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"] }
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Tags:
* v0.2.1: based on tfhe-rs 0.3.1
* v0.2.2: based on tfhe-rs 0.4.0
* v0.2.3: based on tfhe-rs 0.4.1
* v0.2.4: based on tfhe-rs 0.5.1

# Build

Expand Down
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 90112cd

Please sign in to comment.