Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tfhe-rs): bump to v0.5.1 #20

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading