-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use tfhe-rs parameters supporting compression
Also, add a small binary to generate keys in fhevm-engine-common.
- Loading branch information
1 parent
71984ed
commit bed330f
Showing
4 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
target | ||
**/fhevm-keys |
4 changes: 2 additions & 2 deletions
4
fhevm-engine/coprocessor/migrations/20240723111257_coprocessor.sql
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use fhevm_engine_common::generate_fhe_keys; | ||
|
||
fn main() { | ||
let output_dir = "fhevm-keys"; | ||
println!("Generating keys..."); | ||
let keys = generate_fhe_keys(); | ||
println!("Creating directory {output_dir}"); | ||
std::fs::create_dir_all(output_dir).unwrap(); | ||
println!("Creating file {output_dir}/cks"); | ||
std::fs::write(format!("{output_dir}/cks"), keys.client_key).unwrap(); | ||
println!("Creating file {output_dir}/pks"); | ||
std::fs::write(format!("{output_dir}/pks"), keys.compact_public_key).unwrap(); | ||
println!("Creating file {output_dir}/sks"); | ||
std::fs::write(format!("{output_dir}/sks"), keys.server_key).unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters