tfhe 1.5.3 → 1.6.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 +23 -23
- package/package.json +2 -2
- package/tfhe.d.ts +188 -107
- package/tfhe.js +181 -65
- package/tfhe_bg.wasm +0 -0
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<hr/>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
<a href="https://github.com/zama-ai/tfhe-rs-handbook/blob/main/tfhe-rs-handbook.pdf"> 📃 Read Handbook</a> |<a href="https://docs.zama.
|
|
13
|
+
<a href="https://github.com/zama-ai/tfhe-rs-handbook/blob/main/tfhe-rs-handbook.pdf"> 📃 Read Handbook</a> |<a href="https://docs.zama.org/tfhe-rs"> 📒 Documentation</a> | <a href="https://www.zama.org/community-channels"> 💛 Community support</a> | <a href="https://github.com/zama-ai/awesome-zama"> 📚 FHE resources by Zama</a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
|
|
@@ -47,7 +47,7 @@ production-ready library for all the advanced features of TFHE.
|
|
|
47
47
|
- **Ciphertext and server key compression** for efficient data transfer
|
|
48
48
|
- **Full Rust API, C bindings to the Rust High-Level API, and client-side JavaScript API using WASM**.
|
|
49
49
|
|
|
50
|
-
*Learn more about TFHE-rs features in the [documentation](https://docs.zama.
|
|
50
|
+
*Learn more about TFHE-rs features in the [documentation](https://docs.zama.org/tfhe-rs).*
|
|
51
51
|
<br></br>
|
|
52
52
|
|
|
53
53
|
## Table of Contents
|
|
@@ -79,7 +79,7 @@ tfhe = { version = "*", features = ["boolean", "shortint", "integer"] }
|
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
> [!Note]
|
|
82
|
-
> Note: You need Rust version 1.
|
|
82
|
+
> Note: You need Rust version 1.91.1 or newer to compile TFHE-rs. You can check your version with `rustc --version`.
|
|
83
83
|
|
|
84
84
|
> [!Note]
|
|
85
85
|
> Note: AArch64-based machines are not 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.
|
|
@@ -149,7 +149,7 @@ To run this code, use the following command:
|
|
|
149
149
|
> Note that when running code that uses `TFHE-rs`, it is highly recommended
|
|
150
150
|
to run in release mode with cargo's `--release` flag to have the best performance possible.
|
|
151
151
|
|
|
152
|
-
*Find an example with more explanations in [this part of the documentation](https://docs.zama.
|
|
152
|
+
*Find an example with more explanations in [this part of the documentation](https://docs.zama.org/tfhe-rs/get-started/quick-start)*
|
|
153
153
|
|
|
154
154
|
<p align="right">
|
|
155
155
|
<a href="#about" > ↑ Back to top </a>
|
|
@@ -163,25 +163,25 @@ to run in release mode with cargo's `--release` flag to have the best performanc
|
|
|
163
163
|
A document containing scientific and technical details about algorithms implemented into the library is available here: [TFHE-rs: A (Practical) Handbook](https://github.com/zama-ai/tfhe-rs-handbook/blob/main/tfhe-rs-handbook.pdf).
|
|
164
164
|
|
|
165
165
|
### TFHE deep dive
|
|
166
|
-
- [TFHE Deep Dive - Part I - Ciphertext types](https://www.zama.
|
|
167
|
-
- [TFHE Deep Dive - Part II - Encodings and linear leveled operations](https://www.zama.
|
|
168
|
-
- [TFHE Deep Dive - Part III - Key switching and leveled multiplications](https://www.zama.
|
|
169
|
-
- [TFHE Deep Dive - Part IV - Programmable Bootstrapping](https://www.zama.
|
|
166
|
+
- [TFHE Deep Dive - Part I - Ciphertext types](https://www.zama.org/post/tfhe-deep-dive-part-1)
|
|
167
|
+
- [TFHE Deep Dive - Part II - Encodings and linear leveled operations](https://www.zama.org/post/tfhe-deep-dive-part-2)
|
|
168
|
+
- [TFHE Deep Dive - Part III - Key switching and leveled multiplications](https://www.zama.org/post/tfhe-deep-dive-part-3)
|
|
169
|
+
- [TFHE Deep Dive - Part IV - Programmable Bootstrapping](https://www.zama.org/post/tfhe-deep-dive-part-4)
|
|
170
170
|
<br></br>
|
|
171
171
|
|
|
172
172
|
### Tutorials
|
|
173
|
-
- [
|
|
174
|
-
- [Homomorphic parity bit](https://docs.zama.
|
|
175
|
-
- [Homomorphic case changing on Ascii string](https://docs.zama.
|
|
176
|
-
- [Boolean SHA256 with TFHE-rs](https://www.zama.
|
|
177
|
-
- [Dark market with TFHE-rs](https://www.zama.
|
|
178
|
-
- [Regular expression engine with TFHE-rs](https://www.zama.
|
|
179
|
-
|
|
180
|
-
*Explore more useful resources in [TFHE-rs tutorials](https://docs.zama.
|
|
173
|
+
- [Video tutorial: Implement signed integers using TFHE-rs](https://www.zama.org/post/video-tutorial-implement-signed-integers-sing-tfhe-rs)
|
|
174
|
+
- [Homomorphic parity bit](https://docs.zama.org/tfhe-rs/tutorials/parity-bit)
|
|
175
|
+
- [Homomorphic case changing on Ascii string](https://docs.zama.org/tfhe-rs/tutorials/ascii-fhe-string)
|
|
176
|
+
- [Boolean SHA256 with TFHE-rs](https://www.zama.org/post/boolean-sha256-tfhe-rs)
|
|
177
|
+
- [Dark market with TFHE-rs](https://www.zama.org/post/dark-market-tfhe-rs)
|
|
178
|
+
- [Regular expression engine with TFHE-rs](https://www.zama.org/post/regex-engine-tfhe-rs)
|
|
179
|
+
|
|
180
|
+
*Explore more useful resources in [TFHE-rs tutorials](https://docs.zama.org/tfhe-rs/tutorials) and [Awesome Zama repo](https://github.com/zama-ai/awesome-zama)*
|
|
181
181
|
<br></br>
|
|
182
182
|
### Documentation
|
|
183
183
|
|
|
184
|
-
Full, comprehensive documentation is available here: [https://docs.zama.
|
|
184
|
+
Full, comprehensive documentation is available here: [https://docs.zama.org/tfhe-rs](https://docs.zama.org/tfhe-rs).
|
|
185
185
|
<p align="right">
|
|
186
186
|
<a href="#about" > ↑ Back to top </a>
|
|
187
187
|
</p>
|
|
@@ -202,7 +202,7 @@ When a new update is published in the Lattice Estimator, we update parameters ac
|
|
|
202
202
|
### Security model
|
|
203
203
|
|
|
204
204
|
By default, the parameter sets used in the High-Level API have a failure probability $\le 2^{-128}$ to securely work in the IND-CPA^D model using the algorithmic techniques provided in our code base [1].
|
|
205
|
-
If you want to work within the IND-CPA security model, which is less strict than the IND-CPA-D model, the parameter sets can easily be changed and would have slightly better performance. More details can be found in the [TFHE-rs documentation](https://docs.zama.
|
|
205
|
+
If you want to work within the IND-CPA security model, which is less strict than the IND-CPA-D model, the parameter sets can easily be changed and would have slightly better performance. More details can be found in the [TFHE-rs documentation](https://docs.zama.org/tfhe-rs).
|
|
206
206
|
|
|
207
207
|
[1] Bernard, Olivier, et al. "Drifting Towards Better Error Probabilities in Fully Homomorphic Encryption Schemes". https://eprint.iacr.org/2024/1718.pdf
|
|
208
208
|
|
|
@@ -231,7 +231,7 @@ To cite TFHE-rs in academic papers, please use the following entry:
|
|
|
231
231
|
There are two ways to contribute to TFHE-rs:
|
|
232
232
|
|
|
233
233
|
- [Open issues](https://github.com/zama-ai/tfhe-rs/issues/new/choose) to report bugs and typos, or to suggest new ideas
|
|
234
|
-
- Request to become an official contributor by emailing [hello@zama.
|
|
234
|
+
- Request to become an official contributor by emailing [hello@zama.org](mailto:hello@zama.org).
|
|
235
235
|
|
|
236
236
|
Becoming an approved contributor involves signing our Contributor License Agreement (CLA). Only approved contributors can send pull requests, so please make sure to get in touch before you do!
|
|
237
237
|
<br></br>
|
|
@@ -243,16 +243,16 @@ This software is distributed under the **BSD-3-Clause-Clear** license. Read [thi
|
|
|
243
243
|
**Is Zama’s technology free to use?**
|
|
244
244
|
>Zama’s libraries are free to use under the BSD 3-Clause Clear license only for development, research, prototyping, and experimentation purposes. However, for any commercial use of Zama's open source code, companies must purchase Zama’s commercial patent license.
|
|
245
245
|
>
|
|
246
|
-
>Everything we do is open source and we are very transparent on what it means for our users, you can read more about how we monetize our open source products at Zama in [this blogpost](https://www.zama.
|
|
246
|
+
>Everything we do is open source and we are very transparent on what it means for our users, you can read more about how we monetize our open source products at Zama in [this blogpost](https://www.zama.org/post/open-source).
|
|
247
247
|
|
|
248
248
|
**What do I need to do if I want to use Zama’s technology for commercial purposes?**
|
|
249
|
-
>To commercially use Zama’s technology you need to be granted Zama’s patent license. Please contact us hello@zama.
|
|
249
|
+
>To commercially use Zama’s technology you need to be granted Zama’s patent license. Please contact us hello@zama.org for more information.
|
|
250
250
|
|
|
251
251
|
**Do you file IP on your technology?**
|
|
252
252
|
>Yes, all Zama’s technologies are patented.
|
|
253
253
|
|
|
254
254
|
**Can you customize a solution for my specific use case?**
|
|
255
|
-
>We are open to collaborating and advancing the FHE space with our partners. If you have specific needs, please email us at hello@zama.
|
|
255
|
+
>We are open to collaborating and advancing the FHE space with our partners. If you have specific needs, please email us at hello@zama.org.
|
|
256
256
|
|
|
257
257
|
<p align="right">
|
|
258
258
|
<a href="#about" > ↑ Back to top </a>
|
|
@@ -261,7 +261,7 @@ This software is distributed under the **BSD-3-Clause-Clear** license. Read [thi
|
|
|
261
261
|
|
|
262
262
|
## Support
|
|
263
263
|
|
|
264
|
-
<a target="_blank" href="https://community.zama.
|
|
264
|
+
<a target="_blank" href="https://community.zama.org">
|
|
265
265
|
<picture>
|
|
266
266
|
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/zama-ai/tfhe-rs/assets/157474013/08656d0a-3f44-4126-b8b6-8c601dff5380">
|
|
267
267
|
<source media="(prefers-color-scheme: light)" srcset="https://github.com/zama-ai/tfhe-rs/assets/157474013/1c9c9308-50ac-4aab-a4b9-469bb8c536a4">
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tfhe",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.6.0",
|
|
6
6
|
"license": "BSD-3-Clause-Clear",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"snippets"
|
|
16
16
|
],
|
|
17
17
|
"main": "tfhe.js",
|
|
18
|
-
"homepage": "https://zama.
|
|
18
|
+
"homepage": "https://zama.org/",
|
|
19
19
|
"types": "tfhe.d.ts",
|
|
20
20
|
"sideEffects": [
|
|
21
21
|
"./snippets/*"
|
package/tfhe.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export class CompactCiphertextList {
|
|
|
91
91
|
[Symbol.dispose](): void;
|
|
92
92
|
static builder(public_key: TfheCompactPublicKey): CompactCiphertextListBuilder;
|
|
93
93
|
static deserialize(buffer: Uint8Array): CompactCiphertextList;
|
|
94
|
+
eq(other: CompactCiphertextList): boolean;
|
|
94
95
|
expand(): CompactCiphertextListExpander;
|
|
95
96
|
get_kind_of(index: number): FheTypes | undefined;
|
|
96
97
|
is_empty(): boolean;
|
|
@@ -106,7 +107,9 @@ export class CompactCiphertextListBuilder {
|
|
|
106
107
|
[Symbol.dispose](): void;
|
|
107
108
|
build(): CompactCiphertextList;
|
|
108
109
|
build_packed(): CompactCiphertextList;
|
|
110
|
+
build_packed_seeded(seed: Uint8Array): CompactCiphertextList;
|
|
109
111
|
build_with_proof_packed(crs: CompactPkeCrs, metadata: Uint8Array, compute_load: ZkComputeLoad): ProvenCompactCiphertextList;
|
|
112
|
+
build_with_proof_packed_seeded(crs: CompactPkeCrs, metadata: Uint8Array, compute_load: ZkComputeLoad, seed: Uint8Array): ProvenCompactCiphertextList;
|
|
110
113
|
push_boolean(value: boolean): void;
|
|
111
114
|
push_i10(value: number): void;
|
|
112
115
|
push_i1024(value: any): void;
|
|
@@ -2548,6 +2551,7 @@ export class ProvenCompactCiphertextList {
|
|
|
2548
2551
|
[Symbol.dispose](): void;
|
|
2549
2552
|
static builder(public_key: TfheCompactPublicKey): CompactCiphertextListBuilder;
|
|
2550
2553
|
static deserialize(buffer: Uint8Array): ProvenCompactCiphertextList;
|
|
2554
|
+
eq(other: ProvenCompactCiphertextList): boolean;
|
|
2551
2555
|
expand_without_verification(): CompactCiphertextListExpander;
|
|
2552
2556
|
get_kind_of(index: number): FheTypes | undefined;
|
|
2553
2557
|
is_empty(): boolean;
|
|
@@ -2625,6 +2629,8 @@ export enum ShortintCompactPublicKeyEncryptionParametersName {
|
|
|
2625
2629
|
V1_4_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1 = 12,
|
|
2626
2630
|
V1_5_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128 = 13,
|
|
2627
2631
|
V1_5_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1 = 14,
|
|
2632
|
+
V1_6_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128 = 15,
|
|
2633
|
+
V1_6_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1 = 16,
|
|
2628
2634
|
}
|
|
2629
2635
|
|
|
2630
2636
|
export class ShortintCompressedCiphertext {
|
|
@@ -3190,6 +3196,77 @@ export enum ShortintParametersName {
|
|
|
3190
3196
|
V1_5_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 495,
|
|
3191
3197
|
V1_5_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 496,
|
|
3192
3198
|
V1_5_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 497,
|
|
3199
|
+
V1_6_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 498,
|
|
3200
|
+
V1_6_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 499,
|
|
3201
|
+
V1_6_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 500,
|
|
3202
|
+
V1_6_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 501,
|
|
3203
|
+
V1_6_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 502,
|
|
3204
|
+
V1_6_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 503,
|
|
3205
|
+
V1_6_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 504,
|
|
3206
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 505,
|
|
3207
|
+
V1_6_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 506,
|
|
3208
|
+
V1_6_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 507,
|
|
3209
|
+
V1_6_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 508,
|
|
3210
|
+
V1_6_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 509,
|
|
3211
|
+
V1_6_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 510,
|
|
3212
|
+
V1_6_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 511,
|
|
3213
|
+
V1_6_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 512,
|
|
3214
|
+
V1_6_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 513,
|
|
3215
|
+
V1_6_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 514,
|
|
3216
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 515,
|
|
3217
|
+
V1_6_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 516,
|
|
3218
|
+
V1_6_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 517,
|
|
3219
|
+
V1_6_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 518,
|
|
3220
|
+
V1_6_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128 = 519,
|
|
3221
|
+
V1_6_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 520,
|
|
3222
|
+
V1_6_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 521,
|
|
3223
|
+
V1_6_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 522,
|
|
3224
|
+
V1_6_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 523,
|
|
3225
|
+
V1_6_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 524,
|
|
3226
|
+
V1_6_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 525,
|
|
3227
|
+
V1_6_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128 = 526,
|
|
3228
|
+
V1_6_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128 = 527,
|
|
3229
|
+
V1_6_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 528,
|
|
3230
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 529,
|
|
3231
|
+
V1_6_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 530,
|
|
3232
|
+
V1_6_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 531,
|
|
3233
|
+
V1_6_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 532,
|
|
3234
|
+
V1_6_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 533,
|
|
3235
|
+
V1_6_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128 = 534,
|
|
3236
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128 = 535,
|
|
3237
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128 = 536,
|
|
3238
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128 = 537,
|
|
3239
|
+
V1_6_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 538,
|
|
3240
|
+
V1_6_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 539,
|
|
3241
|
+
V1_6_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 540,
|
|
3242
|
+
V1_6_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 541,
|
|
3243
|
+
V1_6_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 542,
|
|
3244
|
+
V1_6_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 543,
|
|
3245
|
+
V1_6_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 544,
|
|
3246
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 545,
|
|
3247
|
+
V1_6_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 546,
|
|
3248
|
+
V1_6_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 547,
|
|
3249
|
+
V1_6_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 548,
|
|
3250
|
+
V1_6_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 549,
|
|
3251
|
+
V1_6_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 550,
|
|
3252
|
+
V1_6_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 551,
|
|
3253
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 552,
|
|
3254
|
+
V1_6_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 553,
|
|
3255
|
+
V1_6_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 554,
|
|
3256
|
+
V1_6_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 555,
|
|
3257
|
+
V1_6_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 556,
|
|
3258
|
+
V1_6_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 557,
|
|
3259
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 558,
|
|
3260
|
+
V1_6_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 559,
|
|
3261
|
+
V1_6_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 560,
|
|
3262
|
+
V1_6_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 561,
|
|
3263
|
+
V1_6_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 562,
|
|
3264
|
+
V1_6_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 563,
|
|
3265
|
+
V1_6_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 564,
|
|
3266
|
+
V1_6_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 565,
|
|
3267
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 566,
|
|
3268
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 567,
|
|
3269
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 568,
|
|
3193
3270
|
}
|
|
3194
3271
|
|
|
3195
3272
|
export class ShortintPublicKey {
|
|
@@ -3328,108 +3405,9 @@ export function wbg_rayon_start_worker(receiver: number): void;
|
|
|
3328
3405
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
3329
3406
|
|
|
3330
3407
|
export interface InitOutput {
|
|
3331
|
-
readonly __wbg_boolean_free: (a: number, b: number) => void;
|
|
3332
|
-
readonly __wbg_booleanciphertext_free: (a: number, b: number) => void;
|
|
3333
|
-
readonly __wbg_booleanclientkey_free: (a: number, b: number) => void;
|
|
3334
|
-
readonly __wbg_booleancompressedciphertext_free: (a: number, b: number) => void;
|
|
3335
|
-
readonly __wbg_booleancompressedserverkey_free: (a: number, b: number) => void;
|
|
3336
|
-
readonly __wbg_booleannoisedistribution_free: (a: number, b: number) => void;
|
|
3337
|
-
readonly __wbg_booleanparameters_free: (a: number, b: number) => void;
|
|
3338
|
-
readonly __wbg_booleanpublickey_free: (a: number, b: number) => void;
|
|
3339
|
-
readonly __wbg_tfhe_free: (a: number, b: number) => void;
|
|
3340
|
-
readonly boolean_decompress_ciphertext: (a: number) => number;
|
|
3341
|
-
readonly boolean_decrypt: (a: number, b: number) => number;
|
|
3342
|
-
readonly boolean_deserialize_ciphertext: (a: number, b: number) => [number, number, number];
|
|
3343
|
-
readonly boolean_deserialize_client_key: (a: number, b: number) => [number, number, number];
|
|
3344
|
-
readonly boolean_deserialize_compressed_ciphertext: (a: number, b: number) => [number, number, number];
|
|
3345
|
-
readonly boolean_deserialize_compressed_server_key: (a: number, b: number) => [number, number, number];
|
|
3346
|
-
readonly boolean_deserialize_public_key: (a: number, b: number) => [number, number, number];
|
|
3347
|
-
readonly boolean_encrypt: (a: number, b: number) => number;
|
|
3348
|
-
readonly boolean_encrypt_compressed: (a: number, b: number) => number;
|
|
3349
|
-
readonly boolean_encrypt_with_public_key: (a: number, b: number) => number;
|
|
3350
|
-
readonly boolean_get_parameters: (a: number) => [number, number, number];
|
|
3351
|
-
readonly boolean_new_client_key: (a: number) => number;
|
|
3352
|
-
readonly boolean_new_client_key_from_seed_and_parameters: (a: bigint, b: bigint, c: number) => number;
|
|
3353
|
-
readonly boolean_new_compressed_server_key: (a: number) => number;
|
|
3354
|
-
readonly boolean_new_gaussian_from_std_dev: (a: number) => number;
|
|
3355
|
-
readonly boolean_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
3356
|
-
readonly boolean_new_public_key: (a: number) => number;
|
|
3357
|
-
readonly boolean_serialize_ciphertext: (a: number) => [number, number, number, number];
|
|
3358
|
-
readonly boolean_serialize_client_key: (a: number) => [number, number, number, number];
|
|
3359
|
-
readonly boolean_serialize_compressed_ciphertext: (a: number) => [number, number, number, number];
|
|
3360
|
-
readonly boolean_serialize_compressed_server_key: (a: number) => [number, number, number, number];
|
|
3361
|
-
readonly boolean_serialize_public_key: (a: number) => [number, number, number, number];
|
|
3362
|
-
readonly boolean_trivial_encrypt: (a: number) => number;
|
|
3363
|
-
readonly boolean_try_new_t_uniform: (a: number) => [number, number, number];
|
|
3364
|
-
readonly __wbg_shortint_free: (a: number, b: number) => void;
|
|
3365
|
-
readonly __wbg_shortintciphertext_free: (a: number, b: number) => void;
|
|
3366
|
-
readonly __wbg_shortintclientkey_free: (a: number, b: number) => void;
|
|
3367
|
-
readonly __wbg_shortintcompactpublickeyencryptionparameters_free: (a: number, b: number) => void;
|
|
3368
|
-
readonly __wbg_shortintcompressedciphertext_free: (a: number, b: number) => void;
|
|
3369
|
-
readonly __wbg_shortintcompressedpublickey_free: (a: number, b: number) => void;
|
|
3370
|
-
readonly __wbg_shortintcompressedserverkey_free: (a: number, b: number) => void;
|
|
3371
|
-
readonly __wbg_shortintnoisedistribution_free: (a: number, b: number) => void;
|
|
3372
|
-
readonly __wbg_shortintparameters_free: (a: number, b: number) => void;
|
|
3373
|
-
readonly __wbg_shortintpublickey_free: (a: number, b: number) => void;
|
|
3374
|
-
readonly shortint_decompress_ciphertext: (a: number) => number;
|
|
3375
|
-
readonly shortint_decrypt: (a: number, b: number) => bigint;
|
|
3376
|
-
readonly shortint_deserialize_ciphertext: (a: number, b: number) => [number, number, number];
|
|
3377
|
-
readonly shortint_deserialize_client_key: (a: number, b: number) => [number, number, number];
|
|
3378
|
-
readonly shortint_deserialize_compressed_ciphertext: (a: number, b: number) => [number, number, number];
|
|
3379
|
-
readonly shortint_deserialize_compressed_public_key: (a: number, b: number) => [number, number, number];
|
|
3380
|
-
readonly shortint_deserialize_compressed_server_key: (a: number, b: number) => [number, number, number];
|
|
3381
|
-
readonly shortint_deserialize_public_key: (a: number, b: number) => [number, number, number];
|
|
3382
|
-
readonly shortint_encrypt: (a: number, b: bigint) => number;
|
|
3383
|
-
readonly shortint_encrypt_compressed: (a: number, b: bigint) => number;
|
|
3384
|
-
readonly shortint_encrypt_with_compressed_public_key: (a: number, b: bigint) => number;
|
|
3385
|
-
readonly shortint_encrypt_with_public_key: (a: number, b: bigint) => number;
|
|
3386
|
-
readonly shortint_new_client_key: (a: number) => number;
|
|
3387
|
-
readonly shortint_new_client_key_from_seed_and_parameters: (a: bigint, b: bigint, c: number) => number;
|
|
3388
|
-
readonly shortint_new_compressed_public_key: (a: number) => number;
|
|
3389
|
-
readonly shortint_new_compressed_server_key: (a: number) => number;
|
|
3390
|
-
readonly shortint_new_gaussian_from_std_dev: (a: number) => number;
|
|
3391
|
-
readonly shortint_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint, k: bigint, l: bigint, m: number, n: number, o: number) => number;
|
|
3392
|
-
readonly shortint_new_public_key: (a: number) => number;
|
|
3393
|
-
readonly shortint_params_name: (a: number) => [number, number, number, number];
|
|
3394
|
-
readonly shortint_pke_params_name: (a: number) => [number, number];
|
|
3395
|
-
readonly shortint_serialize_ciphertext: (a: number) => [number, number, number, number];
|
|
3396
|
-
readonly shortint_serialize_client_key: (a: number) => [number, number, number, number];
|
|
3397
|
-
readonly shortint_serialize_compressed_ciphertext: (a: number) => [number, number, number, number];
|
|
3398
|
-
readonly shortint_serialize_compressed_public_key: (a: number) => [number, number, number, number];
|
|
3399
|
-
readonly shortint_serialize_compressed_server_key: (a: number) => [number, number, number, number];
|
|
3400
|
-
readonly shortint_serialize_public_key: (a: number) => [number, number, number, number];
|
|
3401
|
-
readonly shortint_try_new_t_uniform: (a: number) => [number, number, number];
|
|
3402
|
-
readonly shortintcompactpublickeyencryptionparameters_new: (a: number) => number;
|
|
3403
|
-
readonly shortintcompactpublickeyencryptionparameters_new_parameters: (a: number, b: number, c: bigint, d: bigint, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
3404
|
-
readonly shortintparameters_carry_modulus: (a: number) => bigint;
|
|
3405
|
-
readonly shortintparameters_encryption_key_choice: (a: number) => number;
|
|
3406
|
-
readonly shortintparameters_glwe_dimension: (a: number) => number;
|
|
3407
|
-
readonly shortintparameters_glwe_noise_distribution: (a: number) => number;
|
|
3408
|
-
readonly shortintparameters_ks_base_log: (a: number) => number;
|
|
3409
|
-
readonly shortintparameters_ks_level: (a: number) => number;
|
|
3410
|
-
readonly shortintparameters_lwe_dimension: (a: number) => number;
|
|
3411
|
-
readonly shortintparameters_message_modulus: (a: number) => bigint;
|
|
3412
|
-
readonly shortintparameters_new: (a: number) => [number, number, number];
|
|
3413
|
-
readonly shortintparameters_pbs_base_log: (a: number) => number;
|
|
3414
|
-
readonly shortintparameters_pbs_level: (a: number) => number;
|
|
3415
|
-
readonly shortintparameters_polynomial_size: (a: number) => number;
|
|
3416
|
-
readonly shortintparameters_set_carry_modulus: (a: number, b: bigint) => void;
|
|
3417
|
-
readonly shortintparameters_set_encryption_key_choice: (a: number, b: number) => void;
|
|
3418
|
-
readonly shortintparameters_set_glwe_dimension: (a: number, b: number) => void;
|
|
3419
|
-
readonly shortintparameters_set_glwe_noise_distribution: (a: number, b: number) => void;
|
|
3420
|
-
readonly shortintparameters_set_ks_base_log: (a: number, b: number) => void;
|
|
3421
|
-
readonly shortintparameters_set_ks_level: (a: number, b: number) => void;
|
|
3422
|
-
readonly shortintparameters_set_lwe_dimension: (a: number, b: number) => void;
|
|
3423
|
-
readonly shortintparameters_set_lwe_noise_distribution: (a: number, b: number) => void;
|
|
3424
|
-
readonly shortintparameters_set_message_modulus: (a: number, b: bigint) => void;
|
|
3425
|
-
readonly shortintparameters_set_pbs_base_log: (a: number, b: number) => void;
|
|
3426
|
-
readonly shortintparameters_set_pbs_level: (a: number, b: number) => void;
|
|
3427
|
-
readonly shortintparameters_set_polynomial_size: (a: number, b: number) => void;
|
|
3428
|
-
readonly shortintparameters_lwe_noise_distribution: (a: number) => number;
|
|
3429
3408
|
readonly __wbg_compactciphertextlist_free: (a: number, b: number) => void;
|
|
3430
3409
|
readonly __wbg_compactciphertextlistbuilder_free: (a: number, b: number) => void;
|
|
3431
3410
|
readonly __wbg_compactciphertextlistexpander_free: (a: number, b: number) => void;
|
|
3432
|
-
readonly __wbg_compactpkecrs_free: (a: number, b: number) => void;
|
|
3433
3411
|
readonly __wbg_compressedfhebool_free: (a: number, b: number) => void;
|
|
3434
3412
|
readonly __wbg_compressedfheint1024_free: (a: number, b: number) => void;
|
|
3435
3413
|
readonly __wbg_compressedfheint104_free: (a: number, b: number) => void;
|
|
@@ -3597,6 +3575,16 @@ export interface InitOutput {
|
|
|
3597
3575
|
readonly __wbg_fheuint8_free: (a: number, b: number) => void;
|
|
3598
3576
|
readonly __wbg_fheuint96_free: (a: number, b: number) => void;
|
|
3599
3577
|
readonly __wbg_provencompactciphertextlist_free: (a: number, b: number) => void;
|
|
3578
|
+
readonly __wbg_shortint_free: (a: number, b: number) => void;
|
|
3579
|
+
readonly __wbg_shortintciphertext_free: (a: number, b: number) => void;
|
|
3580
|
+
readonly __wbg_shortintclientkey_free: (a: number, b: number) => void;
|
|
3581
|
+
readonly __wbg_shortintcompactpublickeyencryptionparameters_free: (a: number, b: number) => void;
|
|
3582
|
+
readonly __wbg_shortintcompressedciphertext_free: (a: number, b: number) => void;
|
|
3583
|
+
readonly __wbg_shortintcompressedpublickey_free: (a: number, b: number) => void;
|
|
3584
|
+
readonly __wbg_shortintcompressedserverkey_free: (a: number, b: number) => void;
|
|
3585
|
+
readonly __wbg_shortintnoisedistribution_free: (a: number, b: number) => void;
|
|
3586
|
+
readonly __wbg_shortintparameters_free: (a: number, b: number) => void;
|
|
3587
|
+
readonly __wbg_shortintpublickey_free: (a: number, b: number) => void;
|
|
3600
3588
|
readonly __wbg_tfheclientkey_free: (a: number, b: number) => void;
|
|
3601
3589
|
readonly __wbg_tfhecompactpublickey_free: (a: number, b: number) => void;
|
|
3602
3590
|
readonly __wbg_tfhecompressedcompactpublickey_free: (a: number, b: number) => void;
|
|
@@ -3608,6 +3596,7 @@ export interface InitOutput {
|
|
|
3608
3596
|
readonly __wbg_tfheserverkey_free: (a: number, b: number) => void;
|
|
3609
3597
|
readonly compactciphertextlist_builder: (a: number) => [number, number, number];
|
|
3610
3598
|
readonly compactciphertextlist_deserialize: (a: number, b: number) => [number, number, number];
|
|
3599
|
+
readonly compactciphertextlist_eq: (a: number, b: number) => number;
|
|
3611
3600
|
readonly compactciphertextlist_expand: (a: number) => [number, number, number];
|
|
3612
3601
|
readonly compactciphertextlist_get_kind_of: (a: number, b: number) => number;
|
|
3613
3602
|
readonly compactciphertextlist_is_empty: (a: number) => number;
|
|
@@ -3617,7 +3606,9 @@ export interface InitOutput {
|
|
|
3617
3606
|
readonly compactciphertextlist_serialize: (a: number) => [number, number, number, number];
|
|
3618
3607
|
readonly compactciphertextlistbuilder_build: (a: number) => [number, number, number];
|
|
3619
3608
|
readonly compactciphertextlistbuilder_build_packed: (a: number) => [number, number, number];
|
|
3609
|
+
readonly compactciphertextlistbuilder_build_packed_seeded: (a: number, b: number, c: number) => [number, number, number];
|
|
3620
3610
|
readonly compactciphertextlistbuilder_build_with_proof_packed: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
3611
|
+
readonly compactciphertextlistbuilder_build_with_proof_packed_seeded: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
3621
3612
|
readonly compactciphertextlistbuilder_push_boolean: (a: number, b: number) => [number, number];
|
|
3622
3613
|
readonly compactciphertextlistbuilder_push_i10: (a: number, b: number) => [number, number];
|
|
3623
3614
|
readonly compactciphertextlistbuilder_push_i1024: (a: number, b: any) => [number, number];
|
|
@@ -3787,13 +3778,6 @@ export interface InitOutput {
|
|
|
3787
3778
|
readonly compactciphertextlistexpander_get_uint96: (a: number, b: number) => [number, number, number];
|
|
3788
3779
|
readonly compactciphertextlistexpander_is_empty: (a: number) => number;
|
|
3789
3780
|
readonly compactciphertextlistexpander_len: (a: number) => number;
|
|
3790
|
-
readonly compactpkecrs_deserialize: (a: number, b: number) => [number, number, number];
|
|
3791
|
-
readonly compactpkecrs_deserialize_from_public_params: (a: number, b: number) => [number, number, number];
|
|
3792
|
-
readonly compactpkecrs_from_config: (a: number, b: number) => [number, number, number];
|
|
3793
|
-
readonly compactpkecrs_safe_deserialize: (a: number, b: number, c: bigint) => [number, number, number];
|
|
3794
|
-
readonly compactpkecrs_safe_deserialize_from_public_params: (a: number, b: number, c: bigint) => [number, number, number];
|
|
3795
|
-
readonly compactpkecrs_safe_serialize: (a: number, b: bigint) => [number, number, number, number];
|
|
3796
|
-
readonly compactpkecrs_serialize: (a: number, b: number) => [number, number, number, number];
|
|
3797
3781
|
readonly compressedfhebool_decompress: (a: number) => [number, number, number];
|
|
3798
3782
|
readonly compressedfhebool_deserialize: (a: number, b: number) => [number, number, number];
|
|
3799
3783
|
readonly compressedfhebool_encrypt_with_client_key: (a: number, b: number) => [number, number, number];
|
|
@@ -4959,6 +4943,7 @@ export interface InitOutput {
|
|
|
4959
4943
|
readonly init_panic_hook: () => void;
|
|
4960
4944
|
readonly provencompactciphertextlist_builder: (a: number) => [number, number, number];
|
|
4961
4945
|
readonly provencompactciphertextlist_deserialize: (a: number, b: number) => [number, number, number];
|
|
4946
|
+
readonly provencompactciphertextlist_eq: (a: number, b: number) => number;
|
|
4962
4947
|
readonly provencompactciphertextlist_expand_without_verification: (a: number) => [number, number, number];
|
|
4963
4948
|
readonly provencompactciphertextlist_get_kind_of: (a: number, b: number) => number;
|
|
4964
4949
|
readonly provencompactciphertextlist_safe_deserialize: (a: number, b: number, c: bigint) => [number, number, number];
|
|
@@ -4966,6 +4951,60 @@ export interface InitOutput {
|
|
|
4966
4951
|
readonly provencompactciphertextlist_serialize: (a: number) => [number, number, number, number];
|
|
4967
4952
|
readonly provencompactciphertextlist_verify_and_expand: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
4968
4953
|
readonly set_server_key: (a: number) => [number, number];
|
|
4954
|
+
readonly shortint_decompress_ciphertext: (a: number) => number;
|
|
4955
|
+
readonly shortint_decrypt: (a: number, b: number) => bigint;
|
|
4956
|
+
readonly shortint_deserialize_ciphertext: (a: number, b: number) => [number, number, number];
|
|
4957
|
+
readonly shortint_deserialize_client_key: (a: number, b: number) => [number, number, number];
|
|
4958
|
+
readonly shortint_deserialize_compressed_ciphertext: (a: number, b: number) => [number, number, number];
|
|
4959
|
+
readonly shortint_deserialize_compressed_public_key: (a: number, b: number) => [number, number, number];
|
|
4960
|
+
readonly shortint_deserialize_compressed_server_key: (a: number, b: number) => [number, number, number];
|
|
4961
|
+
readonly shortint_deserialize_public_key: (a: number, b: number) => [number, number, number];
|
|
4962
|
+
readonly shortint_encrypt: (a: number, b: bigint) => number;
|
|
4963
|
+
readonly shortint_encrypt_compressed: (a: number, b: bigint) => number;
|
|
4964
|
+
readonly shortint_encrypt_with_compressed_public_key: (a: number, b: bigint) => number;
|
|
4965
|
+
readonly shortint_encrypt_with_public_key: (a: number, b: bigint) => number;
|
|
4966
|
+
readonly shortint_new_client_key: (a: number) => number;
|
|
4967
|
+
readonly shortint_new_client_key_from_seed_and_parameters: (a: bigint, b: bigint, c: number) => number;
|
|
4968
|
+
readonly shortint_new_compressed_public_key: (a: number) => number;
|
|
4969
|
+
readonly shortint_new_compressed_server_key: (a: number) => number;
|
|
4970
|
+
readonly shortint_new_gaussian_from_std_dev: (a: number) => number;
|
|
4971
|
+
readonly shortint_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint, k: bigint, l: bigint, m: number, n: number, o: number) => number;
|
|
4972
|
+
readonly shortint_new_public_key: (a: number) => number;
|
|
4973
|
+
readonly shortint_params_name: (a: number) => [number, number, number, number];
|
|
4974
|
+
readonly shortint_pke_params_name: (a: number) => [number, number];
|
|
4975
|
+
readonly shortint_serialize_ciphertext: (a: number) => [number, number, number, number];
|
|
4976
|
+
readonly shortint_serialize_client_key: (a: number) => [number, number, number, number];
|
|
4977
|
+
readonly shortint_serialize_compressed_ciphertext: (a: number) => [number, number, number, number];
|
|
4978
|
+
readonly shortint_serialize_compressed_public_key: (a: number) => [number, number, number, number];
|
|
4979
|
+
readonly shortint_serialize_compressed_server_key: (a: number) => [number, number, number, number];
|
|
4980
|
+
readonly shortint_serialize_public_key: (a: number) => [number, number, number, number];
|
|
4981
|
+
readonly shortint_try_new_t_uniform: (a: number) => [number, number, number];
|
|
4982
|
+
readonly shortintcompactpublickeyencryptionparameters_new: (a: number) => number;
|
|
4983
|
+
readonly shortintcompactpublickeyencryptionparameters_new_parameters: (a: number, b: number, c: bigint, d: bigint, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
4984
|
+
readonly shortintparameters_carry_modulus: (a: number) => bigint;
|
|
4985
|
+
readonly shortintparameters_encryption_key_choice: (a: number) => number;
|
|
4986
|
+
readonly shortintparameters_glwe_dimension: (a: number) => number;
|
|
4987
|
+
readonly shortintparameters_glwe_noise_distribution: (a: number) => number;
|
|
4988
|
+
readonly shortintparameters_ks_base_log: (a: number) => number;
|
|
4989
|
+
readonly shortintparameters_ks_level: (a: number) => number;
|
|
4990
|
+
readonly shortintparameters_lwe_dimension: (a: number) => number;
|
|
4991
|
+
readonly shortintparameters_message_modulus: (a: number) => bigint;
|
|
4992
|
+
readonly shortintparameters_new: (a: number) => [number, number, number];
|
|
4993
|
+
readonly shortintparameters_pbs_base_log: (a: number) => number;
|
|
4994
|
+
readonly shortintparameters_pbs_level: (a: number) => number;
|
|
4995
|
+
readonly shortintparameters_polynomial_size: (a: number) => number;
|
|
4996
|
+
readonly shortintparameters_set_carry_modulus: (a: number, b: bigint) => void;
|
|
4997
|
+
readonly shortintparameters_set_encryption_key_choice: (a: number, b: number) => void;
|
|
4998
|
+
readonly shortintparameters_set_glwe_dimension: (a: number, b: number) => void;
|
|
4999
|
+
readonly shortintparameters_set_glwe_noise_distribution: (a: number, b: number) => void;
|
|
5000
|
+
readonly shortintparameters_set_ks_base_log: (a: number, b: number) => void;
|
|
5001
|
+
readonly shortintparameters_set_ks_level: (a: number, b: number) => void;
|
|
5002
|
+
readonly shortintparameters_set_lwe_dimension: (a: number, b: number) => void;
|
|
5003
|
+
readonly shortintparameters_set_lwe_noise_distribution: (a: number, b: number) => void;
|
|
5004
|
+
readonly shortintparameters_set_message_modulus: (a: number, b: bigint) => void;
|
|
5005
|
+
readonly shortintparameters_set_pbs_base_log: (a: number, b: number) => void;
|
|
5006
|
+
readonly shortintparameters_set_pbs_level: (a: number, b: number) => void;
|
|
5007
|
+
readonly shortintparameters_set_polynomial_size: (a: number, b: number) => void;
|
|
4969
5008
|
readonly tfheclientkey_deserialize: (a: number, b: number) => [number, number, number];
|
|
4970
5009
|
readonly tfheclientkey_generate: (a: number) => [number, number, number];
|
|
4971
5010
|
readonly tfheclientkey_generate_with_seed: (a: number, b: any) => [number, number, number];
|
|
@@ -5009,12 +5048,54 @@ export interface InitOutput {
|
|
|
5009
5048
|
readonly tfheserverkey_new: (a: number) => [number, number, number];
|
|
5010
5049
|
readonly provencompactciphertextlist_len: (a: number) => number;
|
|
5011
5050
|
readonly provencompactciphertextlist_is_empty: (a: number) => number;
|
|
5051
|
+
readonly shortintparameters_lwe_noise_distribution: (a: number) => number;
|
|
5052
|
+
readonly __wbg_boolean_free: (a: number, b: number) => void;
|
|
5053
|
+
readonly __wbg_booleanciphertext_free: (a: number, b: number) => void;
|
|
5054
|
+
readonly __wbg_booleanclientkey_free: (a: number, b: number) => void;
|
|
5055
|
+
readonly __wbg_booleancompressedciphertext_free: (a: number, b: number) => void;
|
|
5056
|
+
readonly __wbg_booleancompressedserverkey_free: (a: number, b: number) => void;
|
|
5057
|
+
readonly __wbg_booleannoisedistribution_free: (a: number, b: number) => void;
|
|
5058
|
+
readonly __wbg_booleanparameters_free: (a: number, b: number) => void;
|
|
5059
|
+
readonly __wbg_booleanpublickey_free: (a: number, b: number) => void;
|
|
5060
|
+
readonly __wbg_compactpkecrs_free: (a: number, b: number) => void;
|
|
5061
|
+
readonly boolean_decompress_ciphertext: (a: number) => number;
|
|
5062
|
+
readonly boolean_decrypt: (a: number, b: number) => number;
|
|
5063
|
+
readonly boolean_deserialize_ciphertext: (a: number, b: number) => [number, number, number];
|
|
5064
|
+
readonly boolean_deserialize_client_key: (a: number, b: number) => [number, number, number];
|
|
5065
|
+
readonly boolean_deserialize_compressed_ciphertext: (a: number, b: number) => [number, number, number];
|
|
5066
|
+
readonly boolean_deserialize_compressed_server_key: (a: number, b: number) => [number, number, number];
|
|
5067
|
+
readonly boolean_deserialize_public_key: (a: number, b: number) => [number, number, number];
|
|
5068
|
+
readonly boolean_encrypt: (a: number, b: number) => number;
|
|
5069
|
+
readonly boolean_encrypt_compressed: (a: number, b: number) => number;
|
|
5070
|
+
readonly boolean_encrypt_with_public_key: (a: number, b: number) => number;
|
|
5071
|
+
readonly boolean_get_parameters: (a: number) => [number, number, number];
|
|
5072
|
+
readonly boolean_new_client_key: (a: number) => number;
|
|
5073
|
+
readonly boolean_new_client_key_from_seed_and_parameters: (a: bigint, b: bigint, c: number) => number;
|
|
5074
|
+
readonly boolean_new_compressed_server_key: (a: number) => number;
|
|
5075
|
+
readonly boolean_new_gaussian_from_std_dev: (a: number) => number;
|
|
5076
|
+
readonly boolean_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
5077
|
+
readonly boolean_new_public_key: (a: number) => number;
|
|
5078
|
+
readonly boolean_serialize_ciphertext: (a: number) => [number, number, number, number];
|
|
5079
|
+
readonly boolean_serialize_client_key: (a: number) => [number, number, number, number];
|
|
5080
|
+
readonly boolean_serialize_compressed_ciphertext: (a: number) => [number, number, number, number];
|
|
5081
|
+
readonly boolean_serialize_compressed_server_key: (a: number) => [number, number, number, number];
|
|
5082
|
+
readonly boolean_serialize_public_key: (a: number) => [number, number, number, number];
|
|
5083
|
+
readonly boolean_trivial_encrypt: (a: number) => number;
|
|
5084
|
+
readonly boolean_try_new_t_uniform: (a: number) => [number, number, number];
|
|
5085
|
+
readonly compactpkecrs_deserialize: (a: number, b: number) => [number, number, number];
|
|
5086
|
+
readonly compactpkecrs_deserialize_from_public_params: (a: number, b: number) => [number, number, number];
|
|
5087
|
+
readonly compactpkecrs_from_config: (a: number, b: number) => [number, number, number];
|
|
5088
|
+
readonly compactpkecrs_safe_deserialize: (a: number, b: number, c: bigint) => [number, number, number];
|
|
5089
|
+
readonly compactpkecrs_safe_deserialize_from_public_params: (a: number, b: number, c: bigint) => [number, number, number];
|
|
5090
|
+
readonly compactpkecrs_safe_serialize: (a: number, b: bigint) => [number, number, number, number];
|
|
5091
|
+
readonly compactpkecrs_serialize: (a: number, b: number) => [number, number, number, number];
|
|
5092
|
+
readonly __wbg_tfhe_free: (a: number, b: number) => void;
|
|
5012
5093
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
5013
|
-
readonly initThreadPool: (a: number) => any;
|
|
5014
5094
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
5015
5095
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
5016
5096
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
5017
5097
|
readonly wbg_rayon_start_worker: (a: number) => void;
|
|
5098
|
+
readonly initThreadPool: (a: number) => any;
|
|
5018
5099
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
5019
5100
|
readonly __externref_table_alloc: () => number;
|
|
5020
5101
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
package/tfhe.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* @ts-self-types="./tfhe.d.ts" */
|
|
2
2
|
import { startWorkers } from './snippets/wasm-bindgen-rayon-38edf6e439f6d70d/src/workerHelpers.js';
|
|
3
3
|
|
|
4
|
+
|
|
4
5
|
export class Boolean {
|
|
5
6
|
__destroy_into_raw() {
|
|
6
7
|
const ptr = this.__wbg_ptr;
|
|
@@ -503,6 +504,15 @@ export class CompactCiphertextList {
|
|
|
503
504
|
}
|
|
504
505
|
return CompactCiphertextList.__wrap(ret[0]);
|
|
505
506
|
}
|
|
507
|
+
/**
|
|
508
|
+
* @param {CompactCiphertextList} other
|
|
509
|
+
* @returns {boolean}
|
|
510
|
+
*/
|
|
511
|
+
eq(other) {
|
|
512
|
+
_assertClass(other, CompactCiphertextList);
|
|
513
|
+
const ret = wasm.compactciphertextlist_eq(this.__wbg_ptr, other.__wbg_ptr);
|
|
514
|
+
return ret !== 0;
|
|
515
|
+
}
|
|
506
516
|
/**
|
|
507
517
|
* @returns {CompactCiphertextListExpander}
|
|
508
518
|
*/
|
|
@@ -615,6 +625,19 @@ export class CompactCiphertextListBuilder {
|
|
|
615
625
|
}
|
|
616
626
|
return CompactCiphertextList.__wrap(ret[0]);
|
|
617
627
|
}
|
|
628
|
+
/**
|
|
629
|
+
* @param {Uint8Array} seed
|
|
630
|
+
* @returns {CompactCiphertextList}
|
|
631
|
+
*/
|
|
632
|
+
build_packed_seeded(seed) {
|
|
633
|
+
const ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc);
|
|
634
|
+
const len0 = WASM_VECTOR_LEN;
|
|
635
|
+
const ret = wasm.compactciphertextlistbuilder_build_packed_seeded(this.__wbg_ptr, ptr0, len0);
|
|
636
|
+
if (ret[2]) {
|
|
637
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
638
|
+
}
|
|
639
|
+
return CompactCiphertextList.__wrap(ret[0]);
|
|
640
|
+
}
|
|
618
641
|
/**
|
|
619
642
|
* @param {CompactPkeCrs} crs
|
|
620
643
|
* @param {Uint8Array} metadata
|
|
@@ -631,6 +654,25 @@ export class CompactCiphertextListBuilder {
|
|
|
631
654
|
}
|
|
632
655
|
return ProvenCompactCiphertextList.__wrap(ret[0]);
|
|
633
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* @param {CompactPkeCrs} crs
|
|
659
|
+
* @param {Uint8Array} metadata
|
|
660
|
+
* @param {ZkComputeLoad} compute_load
|
|
661
|
+
* @param {Uint8Array} seed
|
|
662
|
+
* @returns {ProvenCompactCiphertextList}
|
|
663
|
+
*/
|
|
664
|
+
build_with_proof_packed_seeded(crs, metadata, compute_load, seed) {
|
|
665
|
+
_assertClass(crs, CompactPkeCrs);
|
|
666
|
+
const ptr0 = passArray8ToWasm0(metadata, wasm.__wbindgen_malloc);
|
|
667
|
+
const len0 = WASM_VECTOR_LEN;
|
|
668
|
+
const ptr1 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc);
|
|
669
|
+
const len1 = WASM_VECTOR_LEN;
|
|
670
|
+
const ret = wasm.compactciphertextlistbuilder_build_with_proof_packed_seeded(this.__wbg_ptr, crs.__wbg_ptr, ptr0, len0, compute_load, ptr1, len1);
|
|
671
|
+
if (ret[2]) {
|
|
672
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
673
|
+
}
|
|
674
|
+
return ProvenCompactCiphertextList.__wrap(ret[0]);
|
|
675
|
+
}
|
|
634
676
|
/**
|
|
635
677
|
* @param {boolean} value
|
|
636
678
|
*/
|
|
@@ -20844,6 +20886,15 @@ export class ProvenCompactCiphertextList {
|
|
|
20844
20886
|
}
|
|
20845
20887
|
return ProvenCompactCiphertextList.__wrap(ret[0]);
|
|
20846
20888
|
}
|
|
20889
|
+
/**
|
|
20890
|
+
* @param {ProvenCompactCiphertextList} other
|
|
20891
|
+
* @returns {boolean}
|
|
20892
|
+
*/
|
|
20893
|
+
eq(other) {
|
|
20894
|
+
_assertClass(other, ProvenCompactCiphertextList);
|
|
20895
|
+
const ret = wasm.provencompactciphertextlist_eq(this.__wbg_ptr, other.__wbg_ptr);
|
|
20896
|
+
return ret !== 0;
|
|
20897
|
+
}
|
|
20847
20898
|
/**
|
|
20848
20899
|
* @returns {CompactCiphertextListExpander}
|
|
20849
20900
|
*/
|
|
@@ -20866,14 +20917,14 @@ export class ProvenCompactCiphertextList {
|
|
|
20866
20917
|
* @returns {boolean}
|
|
20867
20918
|
*/
|
|
20868
20919
|
is_empty() {
|
|
20869
|
-
const ret = wasm.
|
|
20920
|
+
const ret = wasm.provencompactciphertextlist_is_empty(this.__wbg_ptr);
|
|
20870
20921
|
return ret !== 0;
|
|
20871
20922
|
}
|
|
20872
20923
|
/**
|
|
20873
20924
|
* @returns {number}
|
|
20874
20925
|
*/
|
|
20875
20926
|
len() {
|
|
20876
|
-
const ret = wasm.
|
|
20927
|
+
const ret = wasm.provencompactciphertextlist_len(this.__wbg_ptr);
|
|
20877
20928
|
return ret >>> 0;
|
|
20878
20929
|
}
|
|
20879
20930
|
/**
|
|
@@ -21353,7 +21404,7 @@ export class ShortintCompactPublicKeyEncryptionParameters {
|
|
|
21353
21404
|
if (Symbol.dispose) ShortintCompactPublicKeyEncryptionParameters.prototype[Symbol.dispose] = ShortintCompactPublicKeyEncryptionParameters.prototype.free;
|
|
21354
21405
|
|
|
21355
21406
|
/**
|
|
21356
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14}
|
|
21407
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16}
|
|
21357
21408
|
*/
|
|
21358
21409
|
export const ShortintCompactPublicKeyEncryptionParametersName = Object.freeze({
|
|
21359
21410
|
PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128: 0, "0": "PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",
|
|
@@ -21371,6 +21422,8 @@ export const ShortintCompactPublicKeyEncryptionParametersName = Object.freeze({
|
|
|
21371
21422
|
V1_4_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1: 12, "12": "V1_4_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1",
|
|
21372
21423
|
V1_5_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128: 13, "13": "V1_5_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",
|
|
21373
21424
|
V1_5_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1: 14, "14": "V1_5_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1",
|
|
21425
|
+
V1_6_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128: 15, "15": "V1_6_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",
|
|
21426
|
+
V1_6_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1: 16, "16": "V1_6_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1",
|
|
21374
21427
|
});
|
|
21375
21428
|
|
|
21376
21429
|
export class ShortintCompressedCiphertext {
|
|
@@ -21544,7 +21597,7 @@ export class ShortintParameters {
|
|
|
21544
21597
|
* @returns {ShortintNoiseDistribution}
|
|
21545
21598
|
*/
|
|
21546
21599
|
lwe_noise_distribution() {
|
|
21547
|
-
const ret = wasm.
|
|
21600
|
+
const ret = wasm.shortintparameters_lwe_noise_distribution(this.__wbg_ptr);
|
|
21548
21601
|
return ShortintNoiseDistribution.__wrap(ret);
|
|
21549
21602
|
}
|
|
21550
21603
|
/**
|
|
@@ -21558,7 +21611,7 @@ export class ShortintParameters {
|
|
|
21558
21611
|
* @param {ShortintParametersName | null} [name]
|
|
21559
21612
|
*/
|
|
21560
21613
|
constructor(name) {
|
|
21561
|
-
const ret = wasm.shortintparameters_new(isLikeNone(name) ?
|
|
21614
|
+
const ret = wasm.shortintparameters_new(isLikeNone(name) ? 569 : name);
|
|
21562
21615
|
if (ret[2]) {
|
|
21563
21616
|
throw takeFromExternrefTable0(ret[1]);
|
|
21564
21617
|
}
|
|
@@ -21665,7 +21718,7 @@ export class ShortintParameters {
|
|
|
21665
21718
|
if (Symbol.dispose) ShortintParameters.prototype[Symbol.dispose] = ShortintParameters.prototype.free;
|
|
21666
21719
|
|
|
21667
21720
|
/**
|
|
21668
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497}
|
|
21721
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568}
|
|
21669
21722
|
*/
|
|
21670
21723
|
export const ShortintParametersName = Object.freeze({
|
|
21671
21724
|
PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128: 0, "0": "PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",
|
|
@@ -22166,6 +22219,77 @@ export const ShortintParametersName = Object.freeze({
|
|
|
22166
22219
|
V1_5_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128: 495, "495": "V1_5_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",
|
|
22167
22220
|
V1_5_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128: 496, "496": "V1_5_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",
|
|
22168
22221
|
V1_5_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128: 497, "497": "V1_5_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",
|
|
22222
|
+
V1_6_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128: 498, "498": "V1_6_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22223
|
+
V1_6_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128: 499, "499": "V1_6_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128",
|
|
22224
|
+
V1_6_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128: 500, "500": "V1_6_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22225
|
+
V1_6_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128: 501, "501": "V1_6_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128",
|
|
22226
|
+
V1_6_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128: 502, "502": "V1_6_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128",
|
|
22227
|
+
V1_6_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128: 503, "503": "V1_6_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22228
|
+
V1_6_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128: 504, "504": "V1_6_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128",
|
|
22229
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128: 505, "505": "V1_6_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128",
|
|
22230
|
+
V1_6_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128: 506, "506": "V1_6_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128",
|
|
22231
|
+
V1_6_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128: 507, "507": "V1_6_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22232
|
+
V1_6_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128: 508, "508": "V1_6_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128",
|
|
22233
|
+
V1_6_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128: 509, "509": "V1_6_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128",
|
|
22234
|
+
V1_6_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128: 510, "510": "V1_6_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128",
|
|
22235
|
+
V1_6_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128: 511, "511": "V1_6_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128",
|
|
22236
|
+
V1_6_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128: 512, "512": "V1_6_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22237
|
+
V1_6_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128: 513, "513": "V1_6_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128",
|
|
22238
|
+
V1_6_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128: 514, "514": "V1_6_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128",
|
|
22239
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128: 515, "515": "V1_6_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128",
|
|
22240
|
+
V1_6_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128: 516, "516": "V1_6_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128",
|
|
22241
|
+
V1_6_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128: 517, "517": "V1_6_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128",
|
|
22242
|
+
V1_6_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128: 518, "518": "V1_6_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22243
|
+
V1_6_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128: 519, "519": "V1_6_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128",
|
|
22244
|
+
V1_6_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128: 520, "520": "V1_6_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128",
|
|
22245
|
+
V1_6_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128: 521, "521": "V1_6_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128",
|
|
22246
|
+
V1_6_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128: 522, "522": "V1_6_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128",
|
|
22247
|
+
V1_6_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128: 523, "523": "V1_6_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128",
|
|
22248
|
+
V1_6_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128: 524, "524": "V1_6_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128",
|
|
22249
|
+
V1_6_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128: 525, "525": "V1_6_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22250
|
+
V1_6_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128: 526, "526": "V1_6_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128",
|
|
22251
|
+
V1_6_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128: 527, "527": "V1_6_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128",
|
|
22252
|
+
V1_6_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128: 528, "528": "V1_6_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128",
|
|
22253
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128: 529, "529": "V1_6_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128",
|
|
22254
|
+
V1_6_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128: 530, "530": "V1_6_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128",
|
|
22255
|
+
V1_6_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128: 531, "531": "V1_6_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128",
|
|
22256
|
+
V1_6_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128: 532, "532": "V1_6_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128",
|
|
22257
|
+
V1_6_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128: 533, "533": "V1_6_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128",
|
|
22258
|
+
V1_6_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128: 534, "534": "V1_6_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128",
|
|
22259
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128: 535, "535": "V1_6_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128",
|
|
22260
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128: 536, "536": "V1_6_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128",
|
|
22261
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128: 537, "537": "V1_6_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128",
|
|
22262
|
+
V1_6_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 538, "538": "V1_6_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22263
|
+
V1_6_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 539, "539": "V1_6_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22264
|
+
V1_6_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 540, "540": "V1_6_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22265
|
+
V1_6_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 541, "541": "V1_6_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22266
|
+
V1_6_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 542, "542": "V1_6_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22267
|
+
V1_6_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 543, "543": "V1_6_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22268
|
+
V1_6_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 544, "544": "V1_6_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22269
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 545, "545": "V1_6_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22270
|
+
V1_6_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 546, "546": "V1_6_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22271
|
+
V1_6_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 547, "547": "V1_6_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22272
|
+
V1_6_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 548, "548": "V1_6_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22273
|
+
V1_6_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 549, "549": "V1_6_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22274
|
+
V1_6_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 550, "550": "V1_6_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22275
|
+
V1_6_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 551, "551": "V1_6_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22276
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 552, "552": "V1_6_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22277
|
+
V1_6_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 553, "553": "V1_6_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22278
|
+
V1_6_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 554, "554": "V1_6_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22279
|
+
V1_6_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 555, "555": "V1_6_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22280
|
+
V1_6_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 556, "556": "V1_6_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22281
|
+
V1_6_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 557, "557": "V1_6_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22282
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 558, "558": "V1_6_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22283
|
+
V1_6_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 559, "559": "V1_6_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22284
|
+
V1_6_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 560, "560": "V1_6_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22285
|
+
V1_6_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 561, "561": "V1_6_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22286
|
+
V1_6_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 562, "562": "V1_6_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22287
|
+
V1_6_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 563, "563": "V1_6_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22288
|
+
V1_6_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128: 564, "564": "V1_6_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",
|
|
22289
|
+
V1_6_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128: 565, "565": "V1_6_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",
|
|
22290
|
+
V1_6_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128: 566, "566": "V1_6_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",
|
|
22291
|
+
V1_6_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128: 567, "567": "V1_6_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",
|
|
22292
|
+
V1_6_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128: 568, "568": "V1_6_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",
|
|
22169
22293
|
});
|
|
22170
22294
|
|
|
22171
22295
|
export class ShortintPublicKey {
|
|
@@ -22923,7 +23047,7 @@ export function shortint_params_name(param) {
|
|
|
22923
23047
|
let deferred2_0;
|
|
22924
23048
|
let deferred2_1;
|
|
22925
23049
|
try {
|
|
22926
|
-
const ret = wasm.shortint_params_name(isLikeNone(param) ?
|
|
23050
|
+
const ret = wasm.shortint_params_name(isLikeNone(param) ? 569 : param);
|
|
22927
23051
|
var ptr1 = ret[0];
|
|
22928
23052
|
var len1 = ret[1];
|
|
22929
23053
|
if (ret[3]) {
|
|
@@ -23013,89 +23137,88 @@ if (Symbol.dispose) wbg_rayon_PoolBuilder.prototype[Symbol.dispose] = wbg_rayon_
|
|
|
23013
23137
|
export function wbg_rayon_start_worker(receiver) {
|
|
23014
23138
|
wasm.wbg_rayon_start_worker(receiver);
|
|
23015
23139
|
}
|
|
23016
|
-
|
|
23017
23140
|
function __wbg_get_imports(memory) {
|
|
23018
23141
|
const import0 = {
|
|
23019
23142
|
__proto__: null,
|
|
23020
|
-
|
|
23143
|
+
__wbg_BigInt_65bcea251e788083: function(arg0) {
|
|
23021
23144
|
const ret = BigInt(arg0);
|
|
23022
23145
|
return ret;
|
|
23023
|
-
},
|
|
23024
|
-
|
|
23146
|
+
},
|
|
23147
|
+
__wbg_BigInt_ccbca793f456e582: function() { return handleError(function (arg0) {
|
|
23025
23148
|
const ret = BigInt(arg0);
|
|
23026
23149
|
return ret;
|
|
23027
|
-
},
|
|
23028
|
-
|
|
23150
|
+
}, arguments); },
|
|
23151
|
+
__wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
|
|
23029
23152
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
23030
23153
|
return ret;
|
|
23031
23154
|
},
|
|
23032
|
-
|
|
23155
|
+
__wbg___wbindgen_bigint_get_as_i64_3d3aba5d616c6a51: function(arg0, arg1) {
|
|
23033
23156
|
const v = arg1;
|
|
23034
23157
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
23035
23158
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
23036
23159
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
23037
23160
|
},
|
|
23038
|
-
|
|
23161
|
+
__wbg___wbindgen_bit_and_96f696c56b4950d5: function(arg0, arg1) {
|
|
23039
23162
|
const ret = arg0 & arg1;
|
|
23040
23163
|
return ret;
|
|
23041
23164
|
},
|
|
23042
|
-
|
|
23165
|
+
__wbg___wbindgen_bit_or_d564c2751fdac6c9: function(arg0, arg1) {
|
|
23043
23166
|
const ret = arg0 | arg1;
|
|
23044
23167
|
return ret;
|
|
23045
23168
|
},
|
|
23046
|
-
|
|
23169
|
+
__wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
|
|
23047
23170
|
const ret = debugString(arg1);
|
|
23048
23171
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23049
23172
|
const len1 = WASM_VECTOR_LEN;
|
|
23050
23173
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
23051
23174
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
23052
23175
|
},
|
|
23053
|
-
|
|
23176
|
+
__wbg___wbindgen_is_function_3baa9db1a987f47d: function(arg0) {
|
|
23054
23177
|
const ret = typeof(arg0) === 'function';
|
|
23055
23178
|
return ret;
|
|
23056
23179
|
},
|
|
23057
|
-
|
|
23180
|
+
__wbg___wbindgen_is_object_63322ec0cd6ea4ef: function(arg0) {
|
|
23058
23181
|
const val = arg0;
|
|
23059
23182
|
const ret = typeof(val) === 'object' && val !== null;
|
|
23060
23183
|
return ret;
|
|
23061
23184
|
},
|
|
23062
|
-
|
|
23185
|
+
__wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
|
|
23063
23186
|
const ret = typeof(arg0) === 'string';
|
|
23064
23187
|
return ret;
|
|
23065
23188
|
},
|
|
23066
|
-
|
|
23189
|
+
__wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
|
|
23067
23190
|
const ret = arg0 === undefined;
|
|
23068
23191
|
return ret;
|
|
23069
23192
|
},
|
|
23070
|
-
|
|
23193
|
+
__wbg___wbindgen_jsval_eq_d3465d8a07697228: function(arg0, arg1) {
|
|
23071
23194
|
const ret = arg0 === arg1;
|
|
23072
23195
|
return ret;
|
|
23073
23196
|
},
|
|
23074
|
-
|
|
23197
|
+
__wbg___wbindgen_lt_78bab382628fb48f: function(arg0, arg1) {
|
|
23075
23198
|
const ret = arg0 < arg1;
|
|
23076
23199
|
return ret;
|
|
23077
23200
|
},
|
|
23078
|
-
|
|
23201
|
+
__wbg___wbindgen_memory_dfa12096f400c9bd: function() {
|
|
23079
23202
|
const ret = wasm.memory;
|
|
23080
23203
|
return ret;
|
|
23081
23204
|
},
|
|
23082
|
-
|
|
23205
|
+
__wbg___wbindgen_module_b5e6fb95dbdb7d7e: function() {
|
|
23083
23206
|
const ret = wasmModule;
|
|
23084
23207
|
return ret;
|
|
23085
23208
|
},
|
|
23086
|
-
|
|
23209
|
+
__wbg___wbindgen_neg_8d39d23ef65c9fdb: function(arg0) {
|
|
23087
23210
|
const ret = -arg0;
|
|
23088
23211
|
return ret;
|
|
23089
23212
|
},
|
|
23090
|
-
|
|
23213
|
+
__wbg___wbindgen_shl_c7ea4173387a1669: function(arg0, arg1) {
|
|
23091
23214
|
const ret = arg0 << arg1;
|
|
23092
23215
|
return ret;
|
|
23093
23216
|
},
|
|
23094
|
-
|
|
23217
|
+
__wbg___wbindgen_shr_436553cbaef41a66: function(arg0, arg1) {
|
|
23095
23218
|
const ret = arg0 >> arg1;
|
|
23096
23219
|
return ret;
|
|
23097
23220
|
},
|
|
23098
|
-
|
|
23221
|
+
__wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
|
|
23099
23222
|
const obj = arg1;
|
|
23100
23223
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
23101
23224
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -23103,22 +23226,18 @@ function __wbg_get_imports(memory) {
|
|
|
23103
23226
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
23104
23227
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
23105
23228
|
},
|
|
23106
|
-
|
|
23229
|
+
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
23107
23230
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
23108
23231
|
},
|
|
23109
|
-
|
|
23110
|
-
const ret = arg0.call(arg1);
|
|
23111
|
-
return ret;
|
|
23112
|
-
}, arguments); },
|
|
23113
|
-
__wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
|
|
23232
|
+
__wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
23114
23233
|
const ret = arg0.call(arg1, arg2);
|
|
23115
23234
|
return ret;
|
|
23116
23235
|
}, arguments); },
|
|
23117
|
-
|
|
23236
|
+
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
23118
23237
|
const ret = arg0.crypto;
|
|
23119
23238
|
return ret;
|
|
23120
23239
|
},
|
|
23121
|
-
|
|
23240
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
23122
23241
|
let deferred0_0;
|
|
23123
23242
|
let deferred0_1;
|
|
23124
23243
|
try {
|
|
@@ -23129,14 +23248,14 @@ function __wbg_get_imports(memory) {
|
|
|
23129
23248
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
23130
23249
|
}
|
|
23131
23250
|
},
|
|
23132
|
-
|
|
23251
|
+
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
23133
23252
|
arg0.getRandomValues(arg1);
|
|
23134
23253
|
}, arguments); },
|
|
23135
|
-
|
|
23254
|
+
__wbg_getTime_da7c55f52b71e8c6: function(arg0) {
|
|
23136
23255
|
const ret = arg0.getTime();
|
|
23137
23256
|
return ret;
|
|
23138
23257
|
},
|
|
23139
|
-
|
|
23258
|
+
__wbg_instanceof_Window_cc64c86c8ef9e02b: function(arg0) {
|
|
23140
23259
|
let result;
|
|
23141
23260
|
try {
|
|
23142
23261
|
result = arg0 instanceof Window;
|
|
@@ -23146,91 +23265,87 @@ function __wbg_get_imports(memory) {
|
|
|
23146
23265
|
const ret = result;
|
|
23147
23266
|
return ret;
|
|
23148
23267
|
},
|
|
23149
|
-
|
|
23268
|
+
__wbg_length_9f1775224cf1d815: function(arg0) {
|
|
23150
23269
|
const ret = arg0.length;
|
|
23151
23270
|
return ret;
|
|
23152
23271
|
},
|
|
23153
|
-
|
|
23272
|
+
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
23154
23273
|
const ret = arg0.msCrypto;
|
|
23155
23274
|
return ret;
|
|
23156
23275
|
},
|
|
23157
|
-
|
|
23276
|
+
__wbg_new_0_4d657201ced14de3: function() {
|
|
23158
23277
|
const ret = new Date();
|
|
23159
23278
|
return ret;
|
|
23160
23279
|
},
|
|
23161
|
-
|
|
23280
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
23162
23281
|
const ret = new Error();
|
|
23163
23282
|
return ret;
|
|
23164
23283
|
},
|
|
23165
|
-
|
|
23166
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
23167
|
-
return ret;
|
|
23168
|
-
},
|
|
23169
|
-
__wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
|
|
23284
|
+
__wbg_new_with_length_8c854e41ea4dae9b: function(arg0) {
|
|
23170
23285
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
23171
23286
|
return ret;
|
|
23172
23287
|
},
|
|
23173
|
-
|
|
23288
|
+
__wbg_node_84ea875411254db1: function(arg0) {
|
|
23174
23289
|
const ret = arg0.node;
|
|
23175
23290
|
return ret;
|
|
23176
23291
|
},
|
|
23177
|
-
|
|
23292
|
+
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
23178
23293
|
const ret = arg0.process;
|
|
23179
23294
|
return ret;
|
|
23180
23295
|
},
|
|
23181
|
-
|
|
23296
|
+
__wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
|
|
23182
23297
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
23183
23298
|
},
|
|
23184
|
-
|
|
23299
|
+
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
23185
23300
|
arg0.randomFillSync(arg1);
|
|
23186
23301
|
}, arguments); },
|
|
23187
|
-
|
|
23302
|
+
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
23188
23303
|
const ret = module.require;
|
|
23189
23304
|
return ret;
|
|
23190
23305
|
}, arguments); },
|
|
23191
|
-
|
|
23306
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
23192
23307
|
const ret = arg1.stack;
|
|
23193
23308
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23194
23309
|
const len1 = WASM_VECTOR_LEN;
|
|
23195
23310
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
23196
23311
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
23197
23312
|
},
|
|
23198
|
-
|
|
23313
|
+
__wbg_startWorkers_8b582d57e92bd2d4: function(arg0, arg1, arg2) {
|
|
23199
23314
|
const ret = startWorkers(arg0, arg1, wbg_rayon_PoolBuilder.__wrap(arg2));
|
|
23200
23315
|
return ret;
|
|
23201
23316
|
},
|
|
23202
|
-
|
|
23317
|
+
__wbg_static_accessor_GLOBAL_8cfadc87a297ca02: function() {
|
|
23203
23318
|
const ret = typeof global === 'undefined' ? null : global;
|
|
23204
23319
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
23205
23320
|
},
|
|
23206
|
-
|
|
23321
|
+
__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf: function() {
|
|
23207
23322
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
23208
23323
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
23209
23324
|
},
|
|
23210
|
-
|
|
23325
|
+
__wbg_static_accessor_SELF_e445c1c7484aecc3: function() {
|
|
23211
23326
|
const ret = typeof self === 'undefined' ? null : self;
|
|
23212
23327
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
23213
23328
|
},
|
|
23214
|
-
|
|
23329
|
+
__wbg_static_accessor_WINDOW_f20e8576ef1e0f17: function() {
|
|
23215
23330
|
const ret = typeof window === 'undefined' ? null : window;
|
|
23216
23331
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
23217
23332
|
},
|
|
23218
|
-
|
|
23333
|
+
__wbg_subarray_f8ca46a25b1f5e0d: function(arg0, arg1, arg2) {
|
|
23219
23334
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
23220
23335
|
return ret;
|
|
23221
23336
|
},
|
|
23222
|
-
|
|
23337
|
+
__wbg_toString_6dc1a94e0bdba378: function(arg0) {
|
|
23223
23338
|
const ret = arg0.toString();
|
|
23224
23339
|
return ret;
|
|
23225
23340
|
},
|
|
23226
|
-
|
|
23341
|
+
__wbg_toString_c96dc76d5547a715: function(arg0, arg1, arg2) {
|
|
23227
23342
|
const ret = arg1.toString(arg2);
|
|
23228
23343
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23229
23344
|
const len1 = WASM_VECTOR_LEN;
|
|
23230
23345
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
23231
23346
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
23232
23347
|
},
|
|
23233
|
-
|
|
23348
|
+
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
23234
23349
|
const ret = arg0.versions;
|
|
23235
23350
|
return ret;
|
|
23236
23351
|
},
|
|
@@ -24090,8 +24205,9 @@ function __wbg_finalize_init(instance, module, thread_stack_size) {
|
|
|
24090
24205
|
cachedDataViewMemory0 = null;
|
|
24091
24206
|
cachedUint8ArrayMemory0 = null;
|
|
24092
24207
|
if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
|
|
24093
|
-
throw 'invalid stack size';
|
|
24208
|
+
throw new Error('invalid stack size');
|
|
24094
24209
|
}
|
|
24210
|
+
|
|
24095
24211
|
wasm.__wbindgen_start(thread_stack_size);
|
|
24096
24212
|
return wasm;
|
|
24097
24213
|
}
|
package/tfhe_bg.wasm
CHANGED
|
Binary file
|