tfhe 0.4.2 → 0.5.1
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 +11 -7
- package/package.json +1 -1
- package/tfhe.d.ts +3295 -654
- package/tfhe.js +10806 -1471
- package/tfhe_bg.wasm +0 -0
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
</p>
|
|
5
5
|
<hr/>
|
|
6
6
|
<p align="center">
|
|
7
|
-
<a href="https://docs.zama.ai/tfhe-rs"> 📒 Read documentation</a> | <a href="https://zama.ai/community"> 💛 Community support</a>
|
|
7
|
+
<a href="https://docs.zama.ai/tfhe-rs"> 📒 Read documentation</a> | <a href="https://zama.ai/community"> 💛 Community support</a> | <a href="https://github.com/zama-ai/awesome-zama"> 📚 FHE resources</a>
|
|
8
8
|
</p>
|
|
9
9
|
<p align="center">
|
|
10
10
|
<!-- Version badge using shields.io -->
|
|
11
11
|
<a href="https://github.com/zama-ai/tfhe-rs/releases">
|
|
12
12
|
<img src="https://img.shields.io/github/v/release/zama-ai/tfhe-rs?style=flat-square">
|
|
13
13
|
</a>
|
|
14
|
+
<!-- Link to tutorials badge using shields.io -->
|
|
15
|
+
<a href="#license">
|
|
16
|
+
<img src="https://img.shields.io/badge/License-BSD--3--Clause--Clear-orange?style=flat-square">
|
|
17
|
+
</a>
|
|
14
18
|
<!-- Zama Bounty Program -->
|
|
15
19
|
<a href="https://github.com/zama-ai/bounty-program">
|
|
16
20
|
<img src="https://img.shields.io/badge/Contribute-Zama%20Bounty%20Program-yellow?style=flat-square">
|
|
@@ -57,7 +61,7 @@ running Windows:
|
|
|
57
61
|
tfhe = { version = "*", features = ["boolean", "shortint", "integer", "x86_64"] }
|
|
58
62
|
```
|
|
59
63
|
|
|
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
|
|
64
|
+
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
65
|
|
|
62
66
|
|
|
63
67
|
## A simple example
|
|
@@ -70,9 +74,7 @@ use tfhe::{generate_keys, set_server_key, ConfigBuilder, FheUint32, FheUint8};
|
|
|
70
74
|
|
|
71
75
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
72
76
|
// Basic configuration to use homomorphic integers
|
|
73
|
-
let config = ConfigBuilder::
|
|
74
|
-
.enable_default_integers()
|
|
75
|
-
.build();
|
|
77
|
+
let config = ConfigBuilder::default().build();
|
|
76
78
|
|
|
77
79
|
// Key generation
|
|
78
80
|
let (client_key, server_keys) = generate_keys(config);
|
|
@@ -120,7 +122,7 @@ To run this code, use the following command:
|
|
|
120
122
|
<p align="center"> <code> cargo run --release </code> </p>
|
|
121
123
|
|
|
122
124
|
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
|
|
125
|
+
to run in release mode with cargo's `--release` flag to have the best performances possible.
|
|
124
126
|
|
|
125
127
|
|
|
126
128
|
## Contributing
|
|
@@ -140,9 +142,11 @@ libraries.
|
|
|
140
142
|
|
|
141
143
|
## Need support?
|
|
142
144
|
<a target="_blank" href="https://community.zama.ai">
|
|
143
|
-
<img src="https://
|
|
145
|
+
<img src="https://github.com/zama-ai/tfhe-rs/assets/157474013/33d856dc-f25d-454b-a010-af12bff2aa7d">
|
|
144
146
|
</a>
|
|
145
147
|
|
|
148
|
+
|
|
149
|
+
|
|
146
150
|
## Citing TFHE-rs
|
|
147
151
|
|
|
148
152
|
To cite TFHE-rs in academic papers, please use the following entry:
|
package/package.json
CHANGED