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.
Files changed (6) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -7
  3. package/package.json +1 -1
  4. package/tfhe.d.ts +3295 -654
  5. package/tfhe.js +10806 -1471
  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
@@ -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::all_disabled()
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://user-images.githubusercontent.com/5758427/231115030-21195b55-2629-4c01-9809-be5059243999.png">
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
@@ -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.2",
4
+ "version": "0.5.1",
5
5
  "license": "BSD-3-Clause-Clear",
6
6
  "repository": {
7
7
  "type": "git",