tfhe 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/package.json +1 -1
  2. package/tfhe.d.ts +111 -111
  3. package/tfhe.js +54 -61
  4. 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": "1.5.3",
5
+ "version": "1.5.4",
6
6
  "license": "BSD-3-Clause-Clear",
7
7
  "repository": {
8
8
  "type": "git",
package/tfhe.d.ts CHANGED
@@ -3328,104 +3328,6 @@ export function wbg_rayon_start_worker(receiver: number): void;
3328
3328
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
3329
3329
 
3330
3330
  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
3331
  readonly __wbg_compactciphertextlist_free: (a: number, b: number) => void;
3430
3332
  readonly __wbg_compactciphertextlistbuilder_free: (a: number, b: number) => void;
3431
3333
  readonly __wbg_compactciphertextlistexpander_free: (a: number, b: number) => void;
@@ -3597,15 +3499,6 @@ export interface InitOutput {
3597
3499
  readonly __wbg_fheuint8_free: (a: number, b: number) => void;
3598
3500
  readonly __wbg_fheuint96_free: (a: number, b: number) => void;
3599
3501
  readonly __wbg_provencompactciphertextlist_free: (a: number, b: number) => void;
3600
- readonly __wbg_tfheclientkey_free: (a: number, b: number) => void;
3601
- readonly __wbg_tfhecompactpublickey_free: (a: number, b: number) => void;
3602
- readonly __wbg_tfhecompressedcompactpublickey_free: (a: number, b: number) => void;
3603
- readonly __wbg_tfhecompressedpublickey_free: (a: number, b: number) => void;
3604
- readonly __wbg_tfhecompressedserverkey_free: (a: number, b: number) => void;
3605
- readonly __wbg_tfheconfig_free: (a: number, b: number) => void;
3606
- readonly __wbg_tfheconfigbuilder_free: (a: number, b: number) => void;
3607
- readonly __wbg_tfhepublickey_free: (a: number, b: number) => void;
3608
- readonly __wbg_tfheserverkey_free: (a: number, b: number) => void;
3609
3502
  readonly compactciphertextlist_builder: (a: number) => [number, number, number];
3610
3503
  readonly compactciphertextlist_deserialize: (a: number, b: number) => [number, number, number];
3611
3504
  readonly compactciphertextlist_expand: (a: number) => [number, number, number];
@@ -4956,7 +4849,6 @@ export interface InitOutput {
4956
4849
  readonly fheuint96_safe_deserialize: (a: number, b: number, c: bigint) => [number, number, number];
4957
4850
  readonly fheuint96_safe_serialize: (a: number, b: bigint) => [number, number, number, number];
4958
4851
  readonly fheuint96_serialize: (a: number) => [number, number, number, number];
4959
- readonly init_panic_hook: () => void;
4960
4852
  readonly provencompactciphertextlist_builder: (a: number) => [number, number, number];
4961
4853
  readonly provencompactciphertextlist_deserialize: (a: number, b: number) => [number, number, number];
4962
4854
  readonly provencompactciphertextlist_expand_without_verification: (a: number) => [number, number, number];
@@ -4965,6 +4857,51 @@ export interface InitOutput {
4965
4857
  readonly provencompactciphertextlist_safe_serialize: (a: number, b: bigint) => [number, number, number, number];
4966
4858
  readonly provencompactciphertextlist_serialize: (a: number) => [number, number, number, number];
4967
4859
  readonly provencompactciphertextlist_verify_and_expand: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
4860
+ readonly provencompactciphertextlist_len: (a: number) => number;
4861
+ readonly provencompactciphertextlist_is_empty: (a: number) => number;
4862
+ readonly __wbg_boolean_free: (a: number, b: number) => void;
4863
+ readonly __wbg_booleanciphertext_free: (a: number, b: number) => void;
4864
+ readonly __wbg_booleanclientkey_free: (a: number, b: number) => void;
4865
+ readonly __wbg_booleancompressedciphertext_free: (a: number, b: number) => void;
4866
+ readonly __wbg_booleancompressedserverkey_free: (a: number, b: number) => void;
4867
+ readonly __wbg_booleannoisedistribution_free: (a: number, b: number) => void;
4868
+ readonly __wbg_booleanparameters_free: (a: number, b: number) => void;
4869
+ readonly __wbg_booleanpublickey_free: (a: number, b: number) => void;
4870
+ readonly __wbg_tfhe_free: (a: number, b: number) => void;
4871
+ readonly __wbg_tfheclientkey_free: (a: number, b: number) => void;
4872
+ readonly __wbg_tfhecompactpublickey_free: (a: number, b: number) => void;
4873
+ readonly __wbg_tfhecompressedcompactpublickey_free: (a: number, b: number) => void;
4874
+ readonly __wbg_tfhecompressedpublickey_free: (a: number, b: number) => void;
4875
+ readonly __wbg_tfhecompressedserverkey_free: (a: number, b: number) => void;
4876
+ readonly __wbg_tfheconfig_free: (a: number, b: number) => void;
4877
+ readonly __wbg_tfheconfigbuilder_free: (a: number, b: number) => void;
4878
+ readonly __wbg_tfhepublickey_free: (a: number, b: number) => void;
4879
+ readonly __wbg_tfheserverkey_free: (a: number, b: number) => void;
4880
+ readonly boolean_decompress_ciphertext: (a: number) => number;
4881
+ readonly boolean_decrypt: (a: number, b: number) => number;
4882
+ readonly boolean_deserialize_ciphertext: (a: number, b: number) => [number, number, number];
4883
+ readonly boolean_deserialize_client_key: (a: number, b: number) => [number, number, number];
4884
+ readonly boolean_deserialize_compressed_ciphertext: (a: number, b: number) => [number, number, number];
4885
+ readonly boolean_deserialize_compressed_server_key: (a: number, b: number) => [number, number, number];
4886
+ readonly boolean_deserialize_public_key: (a: number, b: number) => [number, number, number];
4887
+ readonly boolean_encrypt: (a: number, b: number) => number;
4888
+ readonly boolean_encrypt_compressed: (a: number, b: number) => number;
4889
+ readonly boolean_encrypt_with_public_key: (a: number, b: number) => number;
4890
+ readonly boolean_get_parameters: (a: number) => [number, number, number];
4891
+ readonly boolean_new_client_key: (a: number) => number;
4892
+ readonly boolean_new_client_key_from_seed_and_parameters: (a: bigint, b: bigint, c: number) => number;
4893
+ readonly boolean_new_compressed_server_key: (a: number) => number;
4894
+ readonly boolean_new_gaussian_from_std_dev: (a: number) => number;
4895
+ 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;
4896
+ readonly boolean_new_public_key: (a: number) => number;
4897
+ readonly boolean_serialize_ciphertext: (a: number) => [number, number, number, number];
4898
+ readonly boolean_serialize_client_key: (a: number) => [number, number, number, number];
4899
+ readonly boolean_serialize_compressed_ciphertext: (a: number) => [number, number, number, number];
4900
+ readonly boolean_serialize_compressed_server_key: (a: number) => [number, number, number, number];
4901
+ readonly boolean_serialize_public_key: (a: number) => [number, number, number, number];
4902
+ readonly boolean_trivial_encrypt: (a: number) => number;
4903
+ readonly boolean_try_new_t_uniform: (a: number) => [number, number, number];
4904
+ readonly init_panic_hook: () => void;
4968
4905
  readonly set_server_key: (a: number) => [number, number];
4969
4906
  readonly tfheclientkey_deserialize: (a: number, b: number) => [number, number, number];
4970
4907
  readonly tfheclientkey_generate: (a: number) => [number, number, number];
@@ -5007,14 +4944,77 @@ export interface InitOutput {
5007
4944
  readonly tfhepublickey_safe_serialize: (a: number, b: bigint) => [number, number, number, number];
5008
4945
  readonly tfhepublickey_serialize: (a: number) => [number, number, number, number];
5009
4946
  readonly tfheserverkey_new: (a: number) => [number, number, number];
5010
- readonly provencompactciphertextlist_len: (a: number) => number;
5011
- readonly provencompactciphertextlist_is_empty: (a: number) => number;
4947
+ readonly __wbg_shortint_free: (a: number, b: number) => void;
4948
+ readonly __wbg_shortintciphertext_free: (a: number, b: number) => void;
4949
+ readonly __wbg_shortintclientkey_free: (a: number, b: number) => void;
4950
+ readonly __wbg_shortintcompactpublickeyencryptionparameters_free: (a: number, b: number) => void;
4951
+ readonly __wbg_shortintcompressedciphertext_free: (a: number, b: number) => void;
4952
+ readonly __wbg_shortintcompressedpublickey_free: (a: number, b: number) => void;
4953
+ readonly __wbg_shortintcompressedserverkey_free: (a: number, b: number) => void;
4954
+ readonly __wbg_shortintnoisedistribution_free: (a: number, b: number) => void;
4955
+ readonly __wbg_shortintparameters_free: (a: number, b: number) => void;
4956
+ readonly __wbg_shortintpublickey_free: (a: number, b: number) => void;
4957
+ readonly shortint_decompress_ciphertext: (a: number) => number;
4958
+ readonly shortint_decrypt: (a: number, b: number) => bigint;
4959
+ readonly shortint_deserialize_ciphertext: (a: number, b: number) => [number, number, number];
4960
+ readonly shortint_deserialize_client_key: (a: number, b: number) => [number, number, number];
4961
+ readonly shortint_deserialize_compressed_ciphertext: (a: number, b: number) => [number, number, number];
4962
+ readonly shortint_deserialize_compressed_public_key: (a: number, b: number) => [number, number, number];
4963
+ readonly shortint_deserialize_compressed_server_key: (a: number, b: number) => [number, number, number];
4964
+ readonly shortint_deserialize_public_key: (a: number, b: number) => [number, number, number];
4965
+ readonly shortint_encrypt: (a: number, b: bigint) => number;
4966
+ readonly shortint_encrypt_compressed: (a: number, b: bigint) => number;
4967
+ readonly shortint_encrypt_with_compressed_public_key: (a: number, b: bigint) => number;
4968
+ readonly shortint_encrypt_with_public_key: (a: number, b: bigint) => number;
4969
+ readonly shortint_new_client_key: (a: number) => number;
4970
+ readonly shortint_new_client_key_from_seed_and_parameters: (a: bigint, b: bigint, c: number) => number;
4971
+ readonly shortint_new_compressed_public_key: (a: number) => number;
4972
+ readonly shortint_new_compressed_server_key: (a: number) => number;
4973
+ readonly shortint_new_gaussian_from_std_dev: (a: number) => number;
4974
+ 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;
4975
+ readonly shortint_new_public_key: (a: number) => number;
4976
+ readonly shortint_params_name: (a: number) => [number, number, number, number];
4977
+ readonly shortint_pke_params_name: (a: number) => [number, number];
4978
+ readonly shortint_serialize_ciphertext: (a: number) => [number, number, number, number];
4979
+ readonly shortint_serialize_client_key: (a: number) => [number, number, number, number];
4980
+ readonly shortint_serialize_compressed_ciphertext: (a: number) => [number, number, number, number];
4981
+ readonly shortint_serialize_compressed_public_key: (a: number) => [number, number, number, number];
4982
+ readonly shortint_serialize_compressed_server_key: (a: number) => [number, number, number, number];
4983
+ readonly shortint_serialize_public_key: (a: number) => [number, number, number, number];
4984
+ readonly shortint_try_new_t_uniform: (a: number) => [number, number, number];
4985
+ readonly shortintcompactpublickeyencryptionparameters_new: (a: number) => number;
4986
+ readonly shortintcompactpublickeyencryptionparameters_new_parameters: (a: number, b: number, c: bigint, d: bigint, e: number, f: number, g: number, h: number) => [number, number, number];
4987
+ readonly shortintparameters_carry_modulus: (a: number) => bigint;
4988
+ readonly shortintparameters_encryption_key_choice: (a: number) => number;
4989
+ readonly shortintparameters_glwe_dimension: (a: number) => number;
4990
+ readonly shortintparameters_glwe_noise_distribution: (a: number) => number;
4991
+ readonly shortintparameters_ks_base_log: (a: number) => number;
4992
+ readonly shortintparameters_ks_level: (a: number) => number;
4993
+ readonly shortintparameters_lwe_dimension: (a: number) => number;
4994
+ readonly shortintparameters_message_modulus: (a: number) => bigint;
4995
+ readonly shortintparameters_new: (a: number) => [number, number, number];
4996
+ readonly shortintparameters_pbs_base_log: (a: number) => number;
4997
+ readonly shortintparameters_pbs_level: (a: number) => number;
4998
+ readonly shortintparameters_polynomial_size: (a: number) => number;
4999
+ readonly shortintparameters_set_carry_modulus: (a: number, b: bigint) => void;
5000
+ readonly shortintparameters_set_encryption_key_choice: (a: number, b: number) => void;
5001
+ readonly shortintparameters_set_glwe_dimension: (a: number, b: number) => void;
5002
+ readonly shortintparameters_set_glwe_noise_distribution: (a: number, b: number) => void;
5003
+ readonly shortintparameters_set_ks_base_log: (a: number, b: number) => void;
5004
+ readonly shortintparameters_set_ks_level: (a: number, b: number) => void;
5005
+ readonly shortintparameters_set_lwe_dimension: (a: number, b: number) => void;
5006
+ readonly shortintparameters_set_lwe_noise_distribution: (a: number, b: number) => void;
5007
+ readonly shortintparameters_set_message_modulus: (a: number, b: bigint) => void;
5008
+ readonly shortintparameters_set_pbs_base_log: (a: number, b: number) => void;
5009
+ readonly shortintparameters_set_pbs_level: (a: number, b: number) => void;
5010
+ readonly shortintparameters_set_polynomial_size: (a: number, b: number) => void;
5011
+ readonly shortintparameters_lwe_noise_distribution: (a: number) => number;
5012
5012
  readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
5013
- readonly initThreadPool: (a: number) => any;
5014
5013
  readonly wbg_rayon_poolbuilder_build: (a: number) => void;
5015
5014
  readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
5016
5015
  readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
5017
5016
  readonly wbg_rayon_start_worker: (a: number) => void;
5017
+ readonly initThreadPool: (a: number) => any;
5018
5018
  readonly __wbindgen_exn_store: (a: number) => void;
5019
5019
  readonly __externref_table_alloc: () => number;
5020
5020
  readonly __wbindgen_externrefs: WebAssembly.Table;
package/tfhe.js CHANGED
@@ -20866,14 +20866,14 @@ export class ProvenCompactCiphertextList {
20866
20866
  * @returns {boolean}
20867
20867
  */
20868
20868
  is_empty() {
20869
- const ret = wasm.compactciphertextlistexpander_is_empty(this.__wbg_ptr);
20869
+ const ret = wasm.provencompactciphertextlist_is_empty(this.__wbg_ptr);
20870
20870
  return ret !== 0;
20871
20871
  }
20872
20872
  /**
20873
20873
  * @returns {number}
20874
20874
  */
20875
20875
  len() {
20876
- const ret = wasm.compactciphertextlistexpander_len(this.__wbg_ptr);
20876
+ const ret = wasm.provencompactciphertextlist_len(this.__wbg_ptr);
20877
20877
  return ret >>> 0;
20878
20878
  }
20879
20879
  /**
@@ -21544,7 +21544,7 @@ export class ShortintParameters {
21544
21544
  * @returns {ShortintNoiseDistribution}
21545
21545
  */
21546
21546
  lwe_noise_distribution() {
21547
- const ret = wasm.shortintparameters_glwe_noise_distribution(this.__wbg_ptr);
21547
+ const ret = wasm.shortintparameters_lwe_noise_distribution(this.__wbg_ptr);
21548
21548
  return ShortintNoiseDistribution.__wrap(ret);
21549
21549
  }
21550
21550
  /**
@@ -23017,85 +23017,85 @@ export function wbg_rayon_start_worker(receiver) {
23017
23017
  function __wbg_get_imports(memory) {
23018
23018
  const import0 = {
23019
23019
  __proto__: null,
23020
- __wbg_BigInt_7ea1e749ce6b92fd: function() { return handleError(function (arg0) {
23020
+ __wbg_BigInt_7882274c8d2ac74c: function() { return handleError(function (arg0) {
23021
23021
  const ret = BigInt(arg0);
23022
23022
  return ret;
23023
23023
  }, arguments); },
23024
- __wbg_BigInt_b7bbccdff258c9f2: function(arg0) {
23024
+ __wbg_BigInt_dea56efbbd197f86: function(arg0) {
23025
23025
  const ret = BigInt(arg0);
23026
23026
  return ret;
23027
23027
  },
23028
- __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
23028
+ __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
23029
23029
  const ret = Error(getStringFromWasm0(arg0, arg1));
23030
23030
  return ret;
23031
23031
  },
23032
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
23032
+ __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
23033
23033
  const v = arg1;
23034
23034
  const ret = typeof(v) === 'bigint' ? v : undefined;
23035
23035
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
23036
23036
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
23037
23037
  },
23038
- __wbg___wbindgen_bit_and_4362b1176950d42a: function(arg0, arg1) {
23038
+ __wbg___wbindgen_bit_and_dba6f4f3921eb91f: function(arg0, arg1) {
23039
23039
  const ret = arg0 & arg1;
23040
23040
  return ret;
23041
23041
  },
23042
- __wbg___wbindgen_bit_or_71a02d39796ea13d: function(arg0, arg1) {
23042
+ __wbg___wbindgen_bit_or_d52c1d490c34939f: function(arg0, arg1) {
23043
23043
  const ret = arg0 | arg1;
23044
23044
  return ret;
23045
23045
  },
23046
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
23046
+ __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
23047
23047
  const ret = debugString(arg1);
23048
23048
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
23049
23049
  const len1 = WASM_VECTOR_LEN;
23050
23050
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
23051
23051
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
23052
23052
  },
23053
- __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
23053
+ __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
23054
23054
  const ret = typeof(arg0) === 'function';
23055
23055
  return ret;
23056
23056
  },
23057
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
23057
+ __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
23058
23058
  const val = arg0;
23059
23059
  const ret = typeof(val) === 'object' && val !== null;
23060
23060
  return ret;
23061
23061
  },
23062
- __wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
23062
+ __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
23063
23063
  const ret = typeof(arg0) === 'string';
23064
23064
  return ret;
23065
23065
  },
23066
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
23066
+ __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
23067
23067
  const ret = arg0 === undefined;
23068
23068
  return ret;
23069
23069
  },
23070
- __wbg___wbindgen_jsval_eq_11888390b0186270: function(arg0, arg1) {
23070
+ __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
23071
23071
  const ret = arg0 === arg1;
23072
23072
  return ret;
23073
23073
  },
23074
- __wbg___wbindgen_lt_bb59cc3d23526e0d: function(arg0, arg1) {
23074
+ __wbg___wbindgen_lt_8327de055fabd03f: function(arg0, arg1) {
23075
23075
  const ret = arg0 < arg1;
23076
23076
  return ret;
23077
23077
  },
23078
- __wbg___wbindgen_memory_bd1fbcf21fbef3c8: function() {
23078
+ __wbg___wbindgen_memory_edb3f01e3930bbf6: function() {
23079
23079
  const ret = wasm.memory;
23080
23080
  return ret;
23081
23081
  },
23082
- __wbg___wbindgen_module_f6b8052d79c1cc16: function() {
23082
+ __wbg___wbindgen_module_bf945c07123bafe2: function() {
23083
23083
  const ret = wasmModule;
23084
23084
  return ret;
23085
23085
  },
23086
- __wbg___wbindgen_neg_6b4d356dff49dcc6: function(arg0) {
23086
+ __wbg___wbindgen_neg_23fd9afe84ba8be3: function(arg0) {
23087
23087
  const ret = -arg0;
23088
23088
  return ret;
23089
23089
  },
23090
- __wbg___wbindgen_shl_8d64d06761f9ea4e: function(arg0, arg1) {
23090
+ __wbg___wbindgen_shl_602e1a0d3a841bf5: function(arg0, arg1) {
23091
23091
  const ret = arg0 << arg1;
23092
23092
  return ret;
23093
23093
  },
23094
- __wbg___wbindgen_shr_ef8e07cce709eb54: function(arg0, arg1) {
23094
+ __wbg___wbindgen_shr_2669cdfc0644ce0d: function(arg0, arg1) {
23095
23095
  const ret = arg0 >> arg1;
23096
23096
  return ret;
23097
23097
  },
23098
- __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
23098
+ __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
23099
23099
  const obj = arg1;
23100
23100
  const ret = typeof(obj) === 'string' ? obj : undefined;
23101
23101
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -23103,22 +23103,18 @@ function __wbg_get_imports(memory) {
23103
23103
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
23104
23104
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
23105
23105
  },
23106
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
23106
+ __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
23107
23107
  throw new Error(getStringFromWasm0(arg0, arg1));
23108
23108
  },
23109
- __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
23110
- const ret = arg0.call(arg1);
23111
- return ret;
23112
- }, arguments); },
23113
- __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
23109
+ __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
23114
23110
  const ret = arg0.call(arg1, arg2);
23115
23111
  return ret;
23116
23112
  }, arguments); },
23117
- __wbg_crypto_86f2631e91b51511: function(arg0) {
23113
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
23118
23114
  const ret = arg0.crypto;
23119
23115
  return ret;
23120
23116
  },
23121
- __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
23117
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
23122
23118
  let deferred0_0;
23123
23119
  let deferred0_1;
23124
23120
  try {
@@ -23129,14 +23125,14 @@ function __wbg_get_imports(memory) {
23129
23125
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23130
23126
  }
23131
23127
  },
23132
- __wbg_getRandomValues_b3f15fcbfabb0f8b: function() { return handleError(function (arg0, arg1) {
23128
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
23133
23129
  arg0.getRandomValues(arg1);
23134
23130
  }, arguments); },
23135
- __wbg_getTime_1e3cd1391c5c3995: function(arg0) {
23131
+ __wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
23136
23132
  const ret = arg0.getTime();
23137
23133
  return ret;
23138
23134
  },
23139
- __wbg_instanceof_Window_ed49b2db8df90359: function(arg0) {
23135
+ __wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
23140
23136
  let result;
23141
23137
  try {
23142
23138
  result = arg0 instanceof Window;
@@ -23146,91 +23142,87 @@ function __wbg_get_imports(memory) {
23146
23142
  const ret = result;
23147
23143
  return ret;
23148
23144
  },
23149
- __wbg_length_32ed9a279acd054c: function(arg0) {
23145
+ __wbg_length_ea16607d7b61445b: function(arg0) {
23150
23146
  const ret = arg0.length;
23151
23147
  return ret;
23152
23148
  },
23153
- __wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
23149
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
23154
23150
  const ret = arg0.msCrypto;
23155
23151
  return ret;
23156
23152
  },
23157
- __wbg_new_0_73afc35eb544e539: function() {
23153
+ __wbg_new_0_1dcafdf5e786e876: function() {
23158
23154
  const ret = new Date();
23159
23155
  return ret;
23160
23156
  },
23161
- __wbg_new_8a6f238a6ece86ea: function() {
23157
+ __wbg_new_227d7c05414eb861: function() {
23162
23158
  const ret = new Error();
23163
23159
  return ret;
23164
23160
  },
23165
- __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
23166
- const ret = new Function(getStringFromWasm0(arg0, arg1));
23167
- return ret;
23168
- },
23169
- __wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
23161
+ __wbg_new_with_length_825018a1616e9e55: function(arg0) {
23170
23162
  const ret = new Uint8Array(arg0 >>> 0);
23171
23163
  return ret;
23172
23164
  },
23173
- __wbg_node_e1f24f89a7336c2e: function(arg0) {
23165
+ __wbg_node_84ea875411254db1: function(arg0) {
23174
23166
  const ret = arg0.node;
23175
23167
  return ret;
23176
23168
  },
23177
- __wbg_process_3975fd6c72f520aa: function(arg0) {
23169
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
23178
23170
  const ret = arg0.process;
23179
23171
  return ret;
23180
23172
  },
23181
- __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
23173
+ __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
23182
23174
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
23183
23175
  },
23184
- __wbg_randomFillSync_f8c153b79f285817: function() { return handleError(function (arg0, arg1) {
23176
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
23185
23177
  arg0.randomFillSync(arg1);
23186
23178
  }, arguments); },
23187
- __wbg_require_b74f47fc2d022fd6: function() { return handleError(function () {
23179
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
23188
23180
  const ret = module.require;
23189
23181
  return ret;
23190
23182
  }, arguments); },
23191
- __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
23183
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
23192
23184
  const ret = arg1.stack;
23193
23185
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
23194
23186
  const len1 = WASM_VECTOR_LEN;
23195
23187
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
23196
23188
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
23197
23189
  },
23198
- __wbg_startWorkers_2ca11761e08ff5d5: function(arg0, arg1, arg2) {
23190
+ __wbg_startWorkers_8b582d57e92bd2d4: function(arg0, arg1, arg2) {
23199
23191
  const ret = startWorkers(arg0, arg1, wbg_rayon_PoolBuilder.__wrap(arg2));
23200
23192
  return ret;
23201
23193
  },
23202
- __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
23194
+ __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
23203
23195
  const ret = typeof global === 'undefined' ? null : global;
23204
23196
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
23205
23197
  },
23206
- __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
23198
+ __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
23207
23199
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
23208
23200
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
23209
23201
  },
23210
- __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
23202
+ __wbg_static_accessor_SELF_f207c857566db248: function() {
23211
23203
  const ret = typeof self === 'undefined' ? null : self;
23212
23204
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
23213
23205
  },
23214
- __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
23206
+ __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
23215
23207
  const ret = typeof window === 'undefined' ? null : window;
23216
23208
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
23217
23209
  },
23218
- __wbg_subarray_a96e1fef17ed23cb: function(arg0, arg1, arg2) {
23210
+ __wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
23219
23211
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
23220
23212
  return ret;
23221
23213
  },
23222
- __wbg_toString_029ac24421fd7a24: function(arg0) {
23223
- const ret = arg0.toString();
23224
- return ret;
23225
- },
23226
- __wbg_toString_56d946daff83867b: function(arg0, arg1, arg2) {
23214
+ __wbg_toString_f3426b54472f960a: function(arg0, arg1, arg2) {
23227
23215
  const ret = arg1.toString(arg2);
23228
23216
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
23229
23217
  const len1 = WASM_VECTOR_LEN;
23230
23218
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
23231
23219
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
23232
23220
  },
23233
- __wbg_versions_4e31226f5e8dc909: function(arg0) {
23221
+ __wbg_toString_fca8b5e46235cfb4: function(arg0) {
23222
+ const ret = arg0.toString();
23223
+ return ret;
23224
+ },
23225
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
23234
23226
  const ret = arg0.versions;
23235
23227
  return ret;
23236
23228
  },
@@ -24090,8 +24082,9 @@ function __wbg_finalize_init(instance, module, thread_stack_size) {
24090
24082
  cachedDataViewMemory0 = null;
24091
24083
  cachedUint8ArrayMemory0 = null;
24092
24084
  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';
24085
+ throw new Error('invalid stack size');
24094
24086
  }
24087
+
24095
24088
  wasm.__wbindgen_start(thread_stack_size);
24096
24089
  return wasm;
24097
24090
  }
package/tfhe_bg.wasm CHANGED
Binary file