tfhe 0.3.1 → 0.4.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 (5) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/tfhe.d.ts +1474 -178
  4. package/tfhe.js +5022 -450
  5. package/tfhe_bg.wasm +0 -0
package/README.md CHANGED
@@ -47,7 +47,7 @@ tfhe = { version = "*", features = ["boolean", "shortint", "integer", "x86_64-un
47
47
  ```toml
48
48
  tfhe = { version = "*", features = ["boolean", "shortint", "integer", "aarch64-unix"] }
49
49
  ```
50
- Note: users with ARM devices must use `TFHE-rs` by compiling using the `nightly` toolchain.
50
+ Note: users with ARM devices must compile `TFHE-rs` using a stable toolchain with version >= 1.72.
51
51
 
52
52
 
53
53
  + For x86_64-based machines with the [`rdseed instruction`](https://en.wikipedia.org/wiki/RDRAND)
@@ -92,10 +92,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
92
92
  // On the server side:
93
93
  set_server_key(server_keys);
94
94
 
95
- // Clear equivalent computations: 1344 * 8 = 10752
95
+ // Clear equivalent computations: 1344 * 5 = 6720
96
96
  let encrypted_res_mul = &encrypted_a * &encrypted_b;
97
97
 
98
- // Clear equivalent computations: 1344 >> 8 = 42
98
+ // Clear equivalent computations: 1344 >> 5 = 42
99
99
  encrypted_a = &encrypted_res_mul >> &encrypted_b;
100
100
 
101
101
  // Clear equivalent computations: let casted_a = a as u8;
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.3.1",
4
+ "version": "0.4.0",
5
5
  "license": "BSD-3-Clause-Clear",
6
6
  "repository": {
7
7
  "type": "git",