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.
- package/LICENSE +1 -1
- package/README.md +3 -5
- package/package.json +1 -1
- package/tfhe.d.ts +3306 -665
- package/tfhe.js +10798 -1462
- package/tfhe_bg.wasm +0 -0
package/LICENSE
CHANGED
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::
|
|
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