tfhe 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -5
  3. package/package.json +1 -1
  4. package/tfhe.d.ts +3306 -665
  5. package/tfhe.js +10798 -1462
  6. package/tfhe_bg.wasm +0 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  BSD 3-Clause Clear License
2
2
 
3
- Copyright © 2023 ZAMA.
3
+ Copyright © 2024 ZAMA.
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without modification,
package/README.md CHANGED
@@ -57,7 +57,7 @@ running Windows:
57
57
  tfhe = { version = "*", features = ["boolean", "shortint", "integer", "x86_64"] }
58
58
  ```
59
59
 
60
- Note: aarch64-based machines are not yet supported for Windows as it's currently missing an entropy source to be able to seed the [CSPRNGs](https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator) used in TFHE-rs
60
+ Note: aarch64-based machines are not yet supported for Windows as it's currently missing an entropy source to be able to seed the [CSPRNGs](https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator) used in TFHE-rs.
61
61
 
62
62
 
63
63
  ## A simple example
@@ -70,9 +70,7 @@ use tfhe::{generate_keys, set_server_key, ConfigBuilder, FheUint32, FheUint8};
70
70
 
71
71
  fn main() -> Result<(), Box<dyn std::error::Error>> {
72
72
  // Basic configuration to use homomorphic integers
73
- let config = ConfigBuilder::all_disabled()
74
- .enable_default_integers()
75
- .build();
73
+ let config = ConfigBuilder::default().build();
76
74
 
77
75
  // Key generation
78
76
  let (client_key, server_keys) = generate_keys(config);
@@ -120,7 +118,7 @@ To run this code, use the following command:
120
118
  <p align="center"> <code> cargo run --release </code> </p>
121
119
 
122
120
  Note that when running code that uses `tfhe-rs`, it is highly recommended
123
- to run in release mode with cargo's `--release` flag to have the best performances possible,
121
+ to run in release mode with cargo's `--release` flag to have the best performances possible.
124
122
 
125
123
 
126
124
  ## Contributing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tfhe",
3
3
  "description": "TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE.",
4
- "version": "0.4.1",
4
+ "version": "0.5.0",
5
5
  "license": "BSD-3-Clause-Clear",
6
6
  "repository": {
7
7
  "type": "git",