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.
- package/README.md +3 -3
- package/package.json +1 -1
- package/tfhe.d.ts +1474 -178
- package/tfhe.js +5022 -450
- 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
|
|
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 *
|
|
95
|
+
// Clear equivalent computations: 1344 * 5 = 6720
|
|
96
96
|
let encrypted_res_mul = &encrypted_a * &encrypted_b;
|
|
97
97
|
|
|
98
|
-
// Clear equivalent computations: 1344 >>
|
|
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