Skip to content

Commit

Permalink
feat: update tfhe-rs to 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Feb 7, 2024
1 parent 8a5eff6 commit eb539d8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"ethers": "^6.6.4",
"libsodium": "^0.7.11",
"libsodium-wrappers": "^0.7.11",
"node-tfhe": "^0.4.1",
"node-tfhe": "^0.5.1",
"sha3": "^2.1.4",
"tfhe": "^0.4.1"
"tfhe": "^0.5.1"
},
"devDependencies": {
"@rollup/plugin-alias": "^5.0.0",
Expand Down
6 changes: 4 additions & 2 deletions src/tfhe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export const createTfheKeypair = () => {
const block_params = new ShortintParameters(
ShortintParametersName.PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS,
);
let config = TfheConfigBuilder.all_disabled()
.enable_custom_integers(block_params)
// const configBuilder = new TfheConfigBuilder();
// const config = configBuilder.use_custom_parameters(block_params).build();
const config = TfheConfigBuilder.default()
.use_custom_parameters(block_params)
.build();
let clientKey = TfheClientKey.generate(config);
let publicKey = TfheCompactPublicKey.new(clientKey);
Expand Down

0 comments on commit eb539d8

Please sign in to comment.