tfhe 0.9.1 → 0.10.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/package.json +1 -1
- package/tfhe.d.ts +91 -91
- package/tfhe.js +27 -27
- package/tfhe_bg.wasm +0 -0
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": "0.
|
|
5
|
+
"version": "0.10.0",
|
|
6
6
|
"license": "BSD-3-Clause-Clear",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/tfhe.d.ts
CHANGED
|
@@ -18,9 +18,20 @@ export function initThreadPool(num_threads: number): Promise<any>;
|
|
|
18
18
|
export function wbg_rayon_start_worker(receiver: number): void;
|
|
19
19
|
/**
|
|
20
20
|
*/
|
|
21
|
-
export enum
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
export enum ShortintEncryptionKeyChoice {
|
|
22
|
+
Big = 0,
|
|
23
|
+
Small = 1,
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*/
|
|
27
|
+
export enum BooleanEncryptionKeyChoice {
|
|
28
|
+
Big = 0,
|
|
29
|
+
Small = 1,
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*/
|
|
33
|
+
export enum ShortintCompactPublicKeyEncryptionParametersName {
|
|
34
|
+
SHORTINT_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64 = 0,
|
|
24
35
|
}
|
|
25
36
|
/**
|
|
26
37
|
*/
|
|
@@ -32,12 +43,6 @@ export enum BooleanParameterSet {
|
|
|
32
43
|
}
|
|
33
44
|
/**
|
|
34
45
|
*/
|
|
35
|
-
export enum BooleanEncryptionKeyChoice {
|
|
36
|
-
Big = 0,
|
|
37
|
-
Small = 1,
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
*/
|
|
41
46
|
export enum FheTypes {
|
|
42
47
|
Bool = 0,
|
|
43
48
|
Uint2 = 1,
|
|
@@ -72,9 +77,15 @@ export enum FheTypes {
|
|
|
72
77
|
}
|
|
73
78
|
/**
|
|
74
79
|
*/
|
|
75
|
-
export enum
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
export enum ShortintPBSOrder {
|
|
81
|
+
KeyswitchBootstrap = 0,
|
|
82
|
+
BootstrapKeyswitch = 1,
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
*/
|
|
86
|
+
export enum ZkComputeLoad {
|
|
87
|
+
Proof = 0,
|
|
88
|
+
Verify = 1,
|
|
78
89
|
}
|
|
79
90
|
/**
|
|
80
91
|
*/
|
|
@@ -194,17 +205,6 @@ export enum ShortintParametersName {
|
|
|
194
205
|
}
|
|
195
206
|
/**
|
|
196
207
|
*/
|
|
197
|
-
export enum ZkComputeLoad {
|
|
198
|
-
Proof = 0,
|
|
199
|
-
Verify = 1,
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
*/
|
|
203
|
-
export enum ShortintCompactPublicKeyEncryptionParametersName {
|
|
204
|
-
SHORTINT_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64 = 0,
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
*/
|
|
208
208
|
export class Boolean {
|
|
209
209
|
free(): void;
|
|
210
210
|
/**
|
|
@@ -3932,71 +3932,6 @@ export class wbg_rayon_PoolBuilder {
|
|
|
3932
3932
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
3933
3933
|
|
|
3934
3934
|
export interface InitOutput {
|
|
3935
|
-
readonly __wbg_shortintciphertext_free: (a: number, b: number) => void;
|
|
3936
|
-
readonly __wbg_shortintclientkey_free: (a: number, b: number) => void;
|
|
3937
|
-
readonly __wbg_shortintpublickey_free: (a: number, b: number) => void;
|
|
3938
|
-
readonly __wbg_shortintcompressedpublickey_free: (a: number, b: number) => void;
|
|
3939
|
-
readonly __wbg_shortintcompressedserverkey_free: (a: number, b: number) => void;
|
|
3940
|
-
readonly __wbg_shortint_free: (a: number, b: number) => void;
|
|
3941
|
-
readonly __wbg_shortintparameters_free: (a: number, b: number) => void;
|
|
3942
|
-
readonly __wbg_shortintcompactpublickeyencryptionparameters_free: (a: number, b: number) => void;
|
|
3943
|
-
readonly shortintparameters_lwe_dimension: (a: number) => number;
|
|
3944
|
-
readonly shortintparameters_set_lwe_dimension: (a: number, b: number) => void;
|
|
3945
|
-
readonly shortintparameters_glwe_dimension: (a: number) => number;
|
|
3946
|
-
readonly shortintparameters_set_glwe_dimension: (a: number, b: number) => void;
|
|
3947
|
-
readonly shortintparameters_polynomial_size: (a: number) => number;
|
|
3948
|
-
readonly shortintparameters_set_polynomial_size: (a: number, b: number) => void;
|
|
3949
|
-
readonly shortintparameters_set_lwe_noise_distribution: (a: number, b: number) => void;
|
|
3950
|
-
readonly shortintparameters_glwe_noise_distribution: (a: number) => number;
|
|
3951
|
-
readonly shortintparameters_set_glwe_noise_distribution: (a: number, b: number) => void;
|
|
3952
|
-
readonly shortintparameters_pbs_base_log: (a: number) => number;
|
|
3953
|
-
readonly shortintparameters_set_pbs_base_log: (a: number, b: number) => void;
|
|
3954
|
-
readonly shortintparameters_pbs_level: (a: number) => number;
|
|
3955
|
-
readonly shortintparameters_set_pbs_level: (a: number, b: number) => void;
|
|
3956
|
-
readonly shortintparameters_ks_base_log: (a: number) => number;
|
|
3957
|
-
readonly shortintparameters_set_ks_base_log: (a: number, b: number) => void;
|
|
3958
|
-
readonly shortintparameters_ks_level: (a: number) => number;
|
|
3959
|
-
readonly shortintparameters_set_ks_level: (a: number, b: number) => void;
|
|
3960
|
-
readonly shortintparameters_message_modulus: (a: number) => number;
|
|
3961
|
-
readonly shortintparameters_set_message_modulus: (a: number, b: number) => void;
|
|
3962
|
-
readonly shortintparameters_carry_modulus: (a: number) => number;
|
|
3963
|
-
readonly shortintparameters_set_carry_modulus: (a: number, b: number) => void;
|
|
3964
|
-
readonly shortintparameters_encryption_key_choice: (a: number) => number;
|
|
3965
|
-
readonly shortintparameters_set_encryption_key_choice: (a: number, b: number) => void;
|
|
3966
|
-
readonly __wbg_shortintnoisedistribution_free: (a: number, b: number) => void;
|
|
3967
|
-
readonly shortintcompactpublickeyencryptionparameters_new: (a: number) => number;
|
|
3968
|
-
readonly shortintcompactpublickeyencryptionparameters_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
3969
|
-
readonly shortintparameters_new: (a: number) => number;
|
|
3970
|
-
readonly shortint_get_parameters: (a: number, b: number, c: number) => void;
|
|
3971
|
-
readonly shortint_get_parameters_small: (a: number, b: number, c: number) => void;
|
|
3972
|
-
readonly shortint_new_gaussian_from_std_dev: (a: number) => number;
|
|
3973
|
-
readonly shortint_try_new_t_uniform: (a: number, b: number) => void;
|
|
3974
|
-
readonly shortint_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => number;
|
|
3975
|
-
readonly shortint_new_client_key_from_seed_and_parameters: (a: number, b: number, c: number) => number;
|
|
3976
|
-
readonly shortint_new_client_key: (a: number) => number;
|
|
3977
|
-
readonly shortint_new_public_key: (a: number) => number;
|
|
3978
|
-
readonly shortint_new_compressed_public_key: (a: number) => number;
|
|
3979
|
-
readonly shortint_new_compressed_server_key: (a: number) => number;
|
|
3980
|
-
readonly shortint_encrypt: (a: number, b: number) => number;
|
|
3981
|
-
readonly shortint_encrypt_compressed: (a: number, b: number) => number;
|
|
3982
|
-
readonly shortint_decompress_ciphertext: (a: number) => number;
|
|
3983
|
-
readonly shortint_encrypt_with_public_key: (a: number, b: number) => number;
|
|
3984
|
-
readonly shortint_encrypt_with_compressed_public_key: (a: number, b: number) => number;
|
|
3985
|
-
readonly shortint_decrypt: (a: number, b: number) => number;
|
|
3986
|
-
readonly shortint_serialize_ciphertext: (a: number, b: number) => void;
|
|
3987
|
-
readonly shortint_deserialize_ciphertext: (a: number, b: number, c: number) => void;
|
|
3988
|
-
readonly shortint_serialize_compressed_ciphertext: (a: number, b: number) => void;
|
|
3989
|
-
readonly shortint_deserialize_compressed_ciphertext: (a: number, b: number, c: number) => void;
|
|
3990
|
-
readonly shortint_serialize_client_key: (a: number, b: number) => void;
|
|
3991
|
-
readonly shortint_deserialize_client_key: (a: number, b: number, c: number) => void;
|
|
3992
|
-
readonly shortint_serialize_public_key: (a: number, b: number) => void;
|
|
3993
|
-
readonly shortint_deserialize_public_key: (a: number, b: number, c: number) => void;
|
|
3994
|
-
readonly shortint_serialize_compressed_public_key: (a: number, b: number) => void;
|
|
3995
|
-
readonly shortint_deserialize_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
3996
|
-
readonly shortint_serialize_compressed_server_key: (a: number, b: number) => void;
|
|
3997
|
-
readonly shortint_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
|
|
3998
|
-
readonly shortintparameters_lwe_noise_distribution: (a: number) => number;
|
|
3999
|
-
readonly __wbg_shortintcompressedciphertext_free: (a: number, b: number) => void;
|
|
4000
3935
|
readonly fheuint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
4001
3936
|
readonly fheuint128_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
4002
3937
|
readonly fheuint128_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
@@ -4566,6 +4501,71 @@ export interface InitOutput {
|
|
|
4566
4501
|
readonly __wbg_compressedfheint32_free: (a: number, b: number) => void;
|
|
4567
4502
|
readonly __wbg_compressedfheint64_free: (a: number, b: number) => void;
|
|
4568
4503
|
readonly fheuint256_decrypt: (a: number, b: number, c: number) => void;
|
|
4504
|
+
readonly __wbg_shortintciphertext_free: (a: number, b: number) => void;
|
|
4505
|
+
readonly __wbg_shortintclientkey_free: (a: number, b: number) => void;
|
|
4506
|
+
readonly __wbg_shortintpublickey_free: (a: number, b: number) => void;
|
|
4507
|
+
readonly __wbg_shortintcompressedpublickey_free: (a: number, b: number) => void;
|
|
4508
|
+
readonly __wbg_shortintcompressedserverkey_free: (a: number, b: number) => void;
|
|
4509
|
+
readonly __wbg_shortint_free: (a: number, b: number) => void;
|
|
4510
|
+
readonly __wbg_shortintparameters_free: (a: number, b: number) => void;
|
|
4511
|
+
readonly __wbg_shortintcompactpublickeyencryptionparameters_free: (a: number, b: number) => void;
|
|
4512
|
+
readonly shortintparameters_lwe_dimension: (a: number) => number;
|
|
4513
|
+
readonly shortintparameters_set_lwe_dimension: (a: number, b: number) => void;
|
|
4514
|
+
readonly shortintparameters_glwe_dimension: (a: number) => number;
|
|
4515
|
+
readonly shortintparameters_set_glwe_dimension: (a: number, b: number) => void;
|
|
4516
|
+
readonly shortintparameters_polynomial_size: (a: number) => number;
|
|
4517
|
+
readonly shortintparameters_set_polynomial_size: (a: number, b: number) => void;
|
|
4518
|
+
readonly shortintparameters_set_lwe_noise_distribution: (a: number, b: number) => void;
|
|
4519
|
+
readonly shortintparameters_glwe_noise_distribution: (a: number) => number;
|
|
4520
|
+
readonly shortintparameters_set_glwe_noise_distribution: (a: number, b: number) => void;
|
|
4521
|
+
readonly shortintparameters_pbs_base_log: (a: number) => number;
|
|
4522
|
+
readonly shortintparameters_set_pbs_base_log: (a: number, b: number) => void;
|
|
4523
|
+
readonly shortintparameters_pbs_level: (a: number) => number;
|
|
4524
|
+
readonly shortintparameters_set_pbs_level: (a: number, b: number) => void;
|
|
4525
|
+
readonly shortintparameters_ks_base_log: (a: number) => number;
|
|
4526
|
+
readonly shortintparameters_set_ks_base_log: (a: number, b: number) => void;
|
|
4527
|
+
readonly shortintparameters_ks_level: (a: number) => number;
|
|
4528
|
+
readonly shortintparameters_set_ks_level: (a: number, b: number) => void;
|
|
4529
|
+
readonly shortintparameters_message_modulus: (a: number) => number;
|
|
4530
|
+
readonly shortintparameters_set_message_modulus: (a: number, b: number) => void;
|
|
4531
|
+
readonly shortintparameters_carry_modulus: (a: number) => number;
|
|
4532
|
+
readonly shortintparameters_set_carry_modulus: (a: number, b: number) => void;
|
|
4533
|
+
readonly shortintparameters_encryption_key_choice: (a: number) => number;
|
|
4534
|
+
readonly shortintparameters_set_encryption_key_choice: (a: number, b: number) => void;
|
|
4535
|
+
readonly __wbg_shortintnoisedistribution_free: (a: number, b: number) => void;
|
|
4536
|
+
readonly shortintcompactpublickeyencryptionparameters_new: (a: number) => number;
|
|
4537
|
+
readonly shortintcompactpublickeyencryptionparameters_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
4538
|
+
readonly shortintparameters_new: (a: number) => number;
|
|
4539
|
+
readonly shortint_get_parameters: (a: number, b: number, c: number) => void;
|
|
4540
|
+
readonly shortint_get_parameters_small: (a: number, b: number, c: number) => void;
|
|
4541
|
+
readonly shortint_new_gaussian_from_std_dev: (a: number) => number;
|
|
4542
|
+
readonly shortint_try_new_t_uniform: (a: number, b: number) => void;
|
|
4543
|
+
readonly shortint_new_parameters: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => number;
|
|
4544
|
+
readonly shortint_new_client_key_from_seed_and_parameters: (a: number, b: number, c: number) => number;
|
|
4545
|
+
readonly shortint_new_client_key: (a: number) => number;
|
|
4546
|
+
readonly shortint_new_public_key: (a: number) => number;
|
|
4547
|
+
readonly shortint_new_compressed_public_key: (a: number) => number;
|
|
4548
|
+
readonly shortint_new_compressed_server_key: (a: number) => number;
|
|
4549
|
+
readonly shortint_encrypt: (a: number, b: number) => number;
|
|
4550
|
+
readonly shortint_encrypt_compressed: (a: number, b: number) => number;
|
|
4551
|
+
readonly shortint_decompress_ciphertext: (a: number) => number;
|
|
4552
|
+
readonly shortint_encrypt_with_public_key: (a: number, b: number) => number;
|
|
4553
|
+
readonly shortint_encrypt_with_compressed_public_key: (a: number, b: number) => number;
|
|
4554
|
+
readonly shortint_decrypt: (a: number, b: number) => number;
|
|
4555
|
+
readonly shortint_serialize_ciphertext: (a: number, b: number) => void;
|
|
4556
|
+
readonly shortint_deserialize_ciphertext: (a: number, b: number, c: number) => void;
|
|
4557
|
+
readonly shortint_serialize_compressed_ciphertext: (a: number, b: number) => void;
|
|
4558
|
+
readonly shortint_deserialize_compressed_ciphertext: (a: number, b: number, c: number) => void;
|
|
4559
|
+
readonly shortint_serialize_client_key: (a: number, b: number) => void;
|
|
4560
|
+
readonly shortint_deserialize_client_key: (a: number, b: number, c: number) => void;
|
|
4561
|
+
readonly shortint_serialize_public_key: (a: number, b: number) => void;
|
|
4562
|
+
readonly shortint_deserialize_public_key: (a: number, b: number, c: number) => void;
|
|
4563
|
+
readonly shortint_serialize_compressed_public_key: (a: number, b: number) => void;
|
|
4564
|
+
readonly shortint_deserialize_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
4565
|
+
readonly shortint_serialize_compressed_server_key: (a: number, b: number) => void;
|
|
4566
|
+
readonly shortint_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
|
|
4567
|
+
readonly shortintparameters_lwe_noise_distribution: (a: number) => number;
|
|
4568
|
+
readonly __wbg_shortintcompressedciphertext_free: (a: number, b: number) => void;
|
|
4569
4569
|
readonly __wbg_booleanciphertext_free: (a: number, b: number) => void;
|
|
4570
4570
|
readonly __wbg_booleancompressedciphertext_free: (a: number, b: number) => void;
|
|
4571
4571
|
readonly __wbg_booleanclientkey_free: (a: number, b: number) => void;
|
|
@@ -4649,9 +4649,6 @@ export interface InitOutput {
|
|
|
4649
4649
|
readonly tfhecompressedcompactpublickey_safe_serialize: (a: number, b: number, c: number) => void;
|
|
4650
4650
|
readonly tfhecompressedcompactpublickey_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
4651
4651
|
readonly tfhecompressedcompactpublickey_safe_deserialize_conformant: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4652
|
-
readonly tfheconfigbuilder_default_with_big_encryption: () => number;
|
|
4653
|
-
readonly __wbg_tfheconfigbuilder_free: (a: number, b: number) => void;
|
|
4654
|
-
readonly __wbg_tfhe_free: (a: number, b: number) => void;
|
|
4655
4652
|
readonly __wbg_compactpkecrs_free: (a: number, b: number) => void;
|
|
4656
4653
|
readonly compactpkepublicparams_serialize: (a: number, b: number, c: number) => void;
|
|
4657
4654
|
readonly compactpkepublicparams_deserialize: (a: number, b: number, c: number) => void;
|
|
@@ -4661,6 +4658,9 @@ export interface InitOutput {
|
|
|
4661
4658
|
readonly compactpkecrs_from_config: (a: number, b: number, c: number) => void;
|
|
4662
4659
|
readonly compactpkecrs_public_params: (a: number) => number;
|
|
4663
4660
|
readonly __wbg_compactpkepublicparams_free: (a: number, b: number) => void;
|
|
4661
|
+
readonly tfheconfigbuilder_default_with_big_encryption: () => number;
|
|
4662
|
+
readonly __wbg_tfheconfigbuilder_free: (a: number, b: number) => void;
|
|
4663
|
+
readonly __wbg_tfhe_free: (a: number, b: number) => void;
|
|
4664
4664
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
4665
4665
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
4666
4666
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
package/tfhe.js
CHANGED
|
@@ -246,28 +246,28 @@ export function wbg_rayon_start_worker(receiver) {
|
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
*/
|
|
249
|
-
export const
|
|
249
|
+
export const ShortintEncryptionKeyChoice = Object.freeze({ Big:0,"0":"Big",Small:1,"1":"Small", });
|
|
250
250
|
/**
|
|
251
251
|
*/
|
|
252
|
-
export const
|
|
252
|
+
export const BooleanEncryptionKeyChoice = Object.freeze({ Big:0,"0":"Big",Small:1,"1":"Small", });
|
|
253
253
|
/**
|
|
254
254
|
*/
|
|
255
|
-
export const
|
|
255
|
+
export const ShortintCompactPublicKeyEncryptionParametersName = Object.freeze({ SHORTINT_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64:0,"0":"SHORTINT_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64", });
|
|
256
256
|
/**
|
|
257
257
|
*/
|
|
258
|
-
export const
|
|
258
|
+
export const BooleanParameterSet = Object.freeze({ Default:0,"0":"Default",TfheLib:1,"1":"TfheLib",DefaultKsPbs:2,"2":"DefaultKsPbs",TfheLibKsPbs:3,"3":"TfheLibKsPbs", });
|
|
259
259
|
/**
|
|
260
260
|
*/
|
|
261
|
-
export const
|
|
261
|
+
export const FheTypes = Object.freeze({ Bool:0,"0":"Bool",Uint2:1,"1":"Uint2",Uint4:2,"2":"Uint4",Uint6:3,"3":"Uint6",Uint8:4,"4":"Uint8",Uint10:5,"5":"Uint10",Uint12:6,"6":"Uint12",Uint14:7,"7":"Uint14",Uint16:8,"8":"Uint16",Uint32:9,"9":"Uint32",Uint64:10,"10":"Uint64",Uint128:11,"11":"Uint128",Uint160:12,"12":"Uint160",Uint256:13,"13":"Uint256",Uint512:14,"14":"Uint512",Uint1024:15,"15":"Uint1024",Uint2048:16,"16":"Uint2048",Int2:17,"17":"Int2",Int4:18,"18":"Int4",Int6:19,"19":"Int6",Int8:20,"20":"Int8",Int10:21,"21":"Int10",Int12:22,"22":"Int12",Int14:23,"23":"Int14",Int16:24,"24":"Int16",Int32:25,"25":"Int32",Int64:26,"26":"Int64",Int128:27,"27":"Int128",Int160:28,"28":"Int160",Int256:29,"29":"Int256", });
|
|
262
262
|
/**
|
|
263
263
|
*/
|
|
264
|
-
export const
|
|
264
|
+
export const ShortintPBSOrder = Object.freeze({ KeyswitchBootstrap:0,"0":"KeyswitchBootstrap",BootstrapKeyswitch:1,"1":"BootstrapKeyswitch", });
|
|
265
265
|
/**
|
|
266
266
|
*/
|
|
267
267
|
export const ZkComputeLoad = Object.freeze({ Proof:0,"0":"Proof",Verify:1,"1":"Verify", });
|
|
268
268
|
/**
|
|
269
269
|
*/
|
|
270
|
-
export const
|
|
270
|
+
export const ShortintParametersName = Object.freeze({ PARAM_MESSAGE_1_CARRY_0_KS_PBS:0,"0":"PARAM_MESSAGE_1_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_1_KS_PBS:1,"1":"PARAM_MESSAGE_1_CARRY_1_KS_PBS",PARAM_MESSAGE_2_CARRY_0_KS_PBS:2,"2":"PARAM_MESSAGE_2_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_2_KS_PBS:3,"3":"PARAM_MESSAGE_1_CARRY_2_KS_PBS",PARAM_MESSAGE_2_CARRY_1_KS_PBS:4,"4":"PARAM_MESSAGE_2_CARRY_1_KS_PBS",PARAM_MESSAGE_3_CARRY_0_KS_PBS:5,"5":"PARAM_MESSAGE_3_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_3_KS_PBS:6,"6":"PARAM_MESSAGE_1_CARRY_3_KS_PBS",PARAM_MESSAGE_2_CARRY_2_KS_PBS:7,"7":"PARAM_MESSAGE_2_CARRY_2_KS_PBS",PARAM_MESSAGE_3_CARRY_1_KS_PBS:8,"8":"PARAM_MESSAGE_3_CARRY_1_KS_PBS",PARAM_MESSAGE_4_CARRY_0_KS_PBS:9,"9":"PARAM_MESSAGE_4_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_4_KS_PBS:10,"10":"PARAM_MESSAGE_1_CARRY_4_KS_PBS",PARAM_MESSAGE_2_CARRY_3_KS_PBS:11,"11":"PARAM_MESSAGE_2_CARRY_3_KS_PBS",PARAM_MESSAGE_3_CARRY_2_KS_PBS:12,"12":"PARAM_MESSAGE_3_CARRY_2_KS_PBS",PARAM_MESSAGE_4_CARRY_1_KS_PBS:13,"13":"PARAM_MESSAGE_4_CARRY_1_KS_PBS",PARAM_MESSAGE_5_CARRY_0_KS_PBS:14,"14":"PARAM_MESSAGE_5_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_5_KS_PBS:15,"15":"PARAM_MESSAGE_1_CARRY_5_KS_PBS",PARAM_MESSAGE_2_CARRY_4_KS_PBS:16,"16":"PARAM_MESSAGE_2_CARRY_4_KS_PBS",PARAM_MESSAGE_3_CARRY_3_KS_PBS:17,"17":"PARAM_MESSAGE_3_CARRY_3_KS_PBS",PARAM_MESSAGE_4_CARRY_2_KS_PBS:18,"18":"PARAM_MESSAGE_4_CARRY_2_KS_PBS",PARAM_MESSAGE_5_CARRY_1_KS_PBS:19,"19":"PARAM_MESSAGE_5_CARRY_1_KS_PBS",PARAM_MESSAGE_6_CARRY_0_KS_PBS:20,"20":"PARAM_MESSAGE_6_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_6_KS_PBS:21,"21":"PARAM_MESSAGE_1_CARRY_6_KS_PBS",PARAM_MESSAGE_2_CARRY_5_KS_PBS:22,"22":"PARAM_MESSAGE_2_CARRY_5_KS_PBS",PARAM_MESSAGE_3_CARRY_4_KS_PBS:23,"23":"PARAM_MESSAGE_3_CARRY_4_KS_PBS",PARAM_MESSAGE_4_CARRY_3_KS_PBS:24,"24":"PARAM_MESSAGE_4_CARRY_3_KS_PBS",PARAM_MESSAGE_5_CARRY_2_KS_PBS:25,"25":"PARAM_MESSAGE_5_CARRY_2_KS_PBS",PARAM_MESSAGE_6_CARRY_1_KS_PBS:26,"26":"PARAM_MESSAGE_6_CARRY_1_KS_PBS",PARAM_MESSAGE_7_CARRY_0_KS_PBS:27,"27":"PARAM_MESSAGE_7_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_7_KS_PBS:28,"28":"PARAM_MESSAGE_1_CARRY_7_KS_PBS",PARAM_MESSAGE_2_CARRY_6_KS_PBS:29,"29":"PARAM_MESSAGE_2_CARRY_6_KS_PBS",PARAM_MESSAGE_3_CARRY_5_KS_PBS:30,"30":"PARAM_MESSAGE_3_CARRY_5_KS_PBS",PARAM_MESSAGE_4_CARRY_4_KS_PBS:31,"31":"PARAM_MESSAGE_4_CARRY_4_KS_PBS",PARAM_MESSAGE_5_CARRY_3_KS_PBS:32,"32":"PARAM_MESSAGE_5_CARRY_3_KS_PBS",PARAM_MESSAGE_6_CARRY_2_KS_PBS:33,"33":"PARAM_MESSAGE_6_CARRY_2_KS_PBS",PARAM_MESSAGE_7_CARRY_1_KS_PBS:34,"34":"PARAM_MESSAGE_7_CARRY_1_KS_PBS",PARAM_MESSAGE_8_CARRY_0_KS_PBS:35,"35":"PARAM_MESSAGE_8_CARRY_0_KS_PBS",PARAM_MESSAGE_1_CARRY_1_PBS_KS:36,"36":"PARAM_MESSAGE_1_CARRY_1_PBS_KS",PARAM_MESSAGE_2_CARRY_2_PBS_KS:37,"37":"PARAM_MESSAGE_2_CARRY_2_PBS_KS",PARAM_MESSAGE_3_CARRY_3_PBS_KS:38,"38":"PARAM_MESSAGE_3_CARRY_3_PBS_KS",PARAM_MESSAGE_4_CARRY_4_PBS_KS:39,"39":"PARAM_MESSAGE_4_CARRY_4_PBS_KS",PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS:40,"40":"PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS",PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS:41,"41":"PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS",PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS:42,"42":"PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS",PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS:43,"43":"PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS",PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS:44,"44":"PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS",PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS:45,"45":"PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS",PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS:46,"46":"PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS",PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS:47,"47":"PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS",PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS:48,"48":"PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS",PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS:49,"49":"PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS",PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS:50,"50":"PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS",PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS:51,"51":"PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS",PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS:52,"52":"PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS",PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS:53,"53":"PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS",PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS:54,"54":"PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS",PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS:55,"55":"PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS",PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS:56,"56":"PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS",PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS:57,"57":"PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS",PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS:58,"58":"PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS",PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS:59,"59":"PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS",PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS:60,"60":"PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS",PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS:61,"61":"PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS",PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS:62,"62":"PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS",PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS:63,"63":"PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS",PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS:64,"64":"PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS",PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS:65,"65":"PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS",PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS:66,"66":"PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS",PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS:67,"67":"PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS",PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS:68,"68":"PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS",PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS:69,"69":"PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS",PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS:70,"70":"PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS",PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64:71,"71":"PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64",PARAM_MESSAGE_1_CARRY_0:72,"72":"PARAM_MESSAGE_1_CARRY_0",PARAM_MESSAGE_1_CARRY_1:73,"73":"PARAM_MESSAGE_1_CARRY_1",PARAM_MESSAGE_2_CARRY_0:74,"74":"PARAM_MESSAGE_2_CARRY_0",PARAM_MESSAGE_1_CARRY_2:75,"75":"PARAM_MESSAGE_1_CARRY_2",PARAM_MESSAGE_2_CARRY_1:76,"76":"PARAM_MESSAGE_2_CARRY_1",PARAM_MESSAGE_3_CARRY_0:77,"77":"PARAM_MESSAGE_3_CARRY_0",PARAM_MESSAGE_1_CARRY_3:78,"78":"PARAM_MESSAGE_1_CARRY_3",PARAM_MESSAGE_2_CARRY_2:79,"79":"PARAM_MESSAGE_2_CARRY_2",PARAM_MESSAGE_3_CARRY_1:80,"80":"PARAM_MESSAGE_3_CARRY_1",PARAM_MESSAGE_4_CARRY_0:81,"81":"PARAM_MESSAGE_4_CARRY_0",PARAM_MESSAGE_1_CARRY_4:82,"82":"PARAM_MESSAGE_1_CARRY_4",PARAM_MESSAGE_2_CARRY_3:83,"83":"PARAM_MESSAGE_2_CARRY_3",PARAM_MESSAGE_3_CARRY_2:84,"84":"PARAM_MESSAGE_3_CARRY_2",PARAM_MESSAGE_4_CARRY_1:85,"85":"PARAM_MESSAGE_4_CARRY_1",PARAM_MESSAGE_5_CARRY_0:86,"86":"PARAM_MESSAGE_5_CARRY_0",PARAM_MESSAGE_1_CARRY_5:87,"87":"PARAM_MESSAGE_1_CARRY_5",PARAM_MESSAGE_2_CARRY_4:88,"88":"PARAM_MESSAGE_2_CARRY_4",PARAM_MESSAGE_3_CARRY_3:89,"89":"PARAM_MESSAGE_3_CARRY_3",PARAM_MESSAGE_4_CARRY_2:90,"90":"PARAM_MESSAGE_4_CARRY_2",PARAM_MESSAGE_5_CARRY_1:91,"91":"PARAM_MESSAGE_5_CARRY_1",PARAM_MESSAGE_6_CARRY_0:92,"92":"PARAM_MESSAGE_6_CARRY_0",PARAM_MESSAGE_1_CARRY_6:93,"93":"PARAM_MESSAGE_1_CARRY_6",PARAM_MESSAGE_2_CARRY_5:94,"94":"PARAM_MESSAGE_2_CARRY_5",PARAM_MESSAGE_3_CARRY_4:95,"95":"PARAM_MESSAGE_3_CARRY_4",PARAM_MESSAGE_4_CARRY_3:96,"96":"PARAM_MESSAGE_4_CARRY_3",PARAM_MESSAGE_5_CARRY_2:97,"97":"PARAM_MESSAGE_5_CARRY_2",PARAM_MESSAGE_6_CARRY_1:98,"98":"PARAM_MESSAGE_6_CARRY_1",PARAM_MESSAGE_7_CARRY_0:99,"99":"PARAM_MESSAGE_7_CARRY_0",PARAM_MESSAGE_1_CARRY_7:100,"100":"PARAM_MESSAGE_1_CARRY_7",PARAM_MESSAGE_2_CARRY_6:101,"101":"PARAM_MESSAGE_2_CARRY_6",PARAM_MESSAGE_3_CARRY_5:102,"102":"PARAM_MESSAGE_3_CARRY_5",PARAM_MESSAGE_4_CARRY_4:103,"103":"PARAM_MESSAGE_4_CARRY_4",PARAM_MESSAGE_5_CARRY_3:104,"104":"PARAM_MESSAGE_5_CARRY_3",PARAM_MESSAGE_6_CARRY_2:105,"105":"PARAM_MESSAGE_6_CARRY_2",PARAM_MESSAGE_7_CARRY_1:106,"106":"PARAM_MESSAGE_7_CARRY_1",PARAM_MESSAGE_8_CARRY_0:107,"107":"PARAM_MESSAGE_8_CARRY_0",PARAM_SMALL_MESSAGE_1_CARRY_1:108,"108":"PARAM_SMALL_MESSAGE_1_CARRY_1",PARAM_SMALL_MESSAGE_2_CARRY_2:109,"109":"PARAM_SMALL_MESSAGE_2_CARRY_2",PARAM_SMALL_MESSAGE_3_CARRY_3:110,"110":"PARAM_SMALL_MESSAGE_3_CARRY_3",PARAM_SMALL_MESSAGE_4_CARRY_4:111,"111":"PARAM_SMALL_MESSAGE_4_CARRY_4", });
|
|
271
271
|
|
|
272
272
|
const BooleanFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
273
273
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -15226,6 +15226,10 @@ function __wbg_get_imports() {
|
|
|
15226
15226
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
15227
15227
|
takeObject(arg0);
|
|
15228
15228
|
};
|
|
15229
|
+
imports.wbg.__wbindgen_bigint_from_i128 = function(arg0, arg1) {
|
|
15230
|
+
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
|
|
15231
|
+
return addHeapObject(ret);
|
|
15232
|
+
};
|
|
15229
15233
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
15230
15234
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
15231
15235
|
return addHeapObject(ret);
|
|
@@ -15238,40 +15242,36 @@ function __wbg_get_imports() {
|
|
|
15238
15242
|
const ret = getObject(arg0) >> getObject(arg1);
|
|
15239
15243
|
return addHeapObject(ret);
|
|
15240
15244
|
};
|
|
15245
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
15246
|
+
const ret = arg0;
|
|
15247
|
+
return addHeapObject(ret);
|
|
15248
|
+
};
|
|
15241
15249
|
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
15242
15250
|
const ret = getObject(arg0) === getObject(arg1);
|
|
15243
15251
|
return ret;
|
|
15244
15252
|
};
|
|
15245
|
-
imports.wbg.
|
|
15246
|
-
const ret = getObject(arg0)
|
|
15253
|
+
imports.wbg.__wbindgen_ge = function(arg0, arg1) {
|
|
15254
|
+
const ret = getObject(arg0) >= getObject(arg1);
|
|
15247
15255
|
return ret;
|
|
15248
15256
|
};
|
|
15249
|
-
imports.wbg.__wbindgen_neg = function(arg0) {
|
|
15250
|
-
const ret = -getObject(arg0);
|
|
15251
|
-
return addHeapObject(ret);
|
|
15252
|
-
};
|
|
15253
|
-
imports.wbg.__wbindgen_bigint_from_str = function(arg0, arg1) {
|
|
15254
|
-
const ret = BigInt(getStringFromWasm0(arg0, arg1));
|
|
15255
|
-
return addHeapObject(ret);
|
|
15256
|
-
};
|
|
15257
15257
|
imports.wbg.__wbindgen_bit_and = function(arg0, arg1) {
|
|
15258
15258
|
const ret = getObject(arg0) & getObject(arg1);
|
|
15259
15259
|
return addHeapObject(ret);
|
|
15260
15260
|
};
|
|
15261
|
-
imports.wbg.
|
|
15262
|
-
const ret = arg0
|
|
15263
|
-
return addHeapObject(ret);
|
|
15264
|
-
};
|
|
15265
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
15266
|
-
const ret = arg0;
|
|
15261
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
15262
|
+
const ret = getObject(arg0);
|
|
15267
15263
|
return addHeapObject(ret);
|
|
15268
15264
|
};
|
|
15269
|
-
imports.wbg.
|
|
15270
|
-
const ret = getObject(arg0)
|
|
15265
|
+
imports.wbg.__wbindgen_lt = function(arg0, arg1) {
|
|
15266
|
+
const ret = getObject(arg0) < getObject(arg1);
|
|
15271
15267
|
return ret;
|
|
15272
15268
|
};
|
|
15273
|
-
imports.wbg.
|
|
15274
|
-
const ret = getObject(arg0);
|
|
15269
|
+
imports.wbg.__wbindgen_neg = function(arg0) {
|
|
15270
|
+
const ret = -getObject(arg0);
|
|
15271
|
+
return addHeapObject(ret);
|
|
15272
|
+
};
|
|
15273
|
+
imports.wbg.__wbindgen_bigint_from_str = function(arg0, arg1) {
|
|
15274
|
+
const ret = BigInt(getStringFromWasm0(arg0, arg1));
|
|
15275
15275
|
return addHeapObject(ret);
|
|
15276
15276
|
};
|
|
15277
15277
|
imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
|
package/tfhe_bg.wasm
CHANGED
|
Binary file
|