tfhe 0.3.0 → 0.4.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/README.md +45 -69
- package/package.json +1 -1
- package/tfhe.d.ts +1519 -214
- package/tfhe.js +4976 -400
- package/tfhe_bg.wasm +0 -0
package/tfhe.d.ts
CHANGED
|
@@ -5,6 +5,20 @@
|
|
|
5
5
|
export function init_panic_hook(): void;
|
|
6
6
|
/**
|
|
7
7
|
*/
|
|
8
|
+
export enum BooleanParameterSet {
|
|
9
|
+
Default = 0,
|
|
10
|
+
TfheLib = 1,
|
|
11
|
+
DefaultKsPbs = 2,
|
|
12
|
+
TfheLibKsPbs = 3,
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
*/
|
|
16
|
+
export enum BooleanEncryptionKeyChoice {
|
|
17
|
+
Big = 0,
|
|
18
|
+
Small = 1,
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
8
22
|
export enum ShortintEncryptionKeyChoice {
|
|
9
23
|
Big = 0,
|
|
10
24
|
Small = 1,
|
|
@@ -150,12 +164,6 @@ export enum ShortintParametersName {
|
|
|
150
164
|
}
|
|
151
165
|
/**
|
|
152
166
|
*/
|
|
153
|
-
export enum BooleanParameterSet {
|
|
154
|
-
Default = 0,
|
|
155
|
-
TfheLib = 1,
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
*/
|
|
159
167
|
export class Boolean {
|
|
160
168
|
free(): void;
|
|
161
169
|
/**
|
|
@@ -173,9 +181,10 @@ export class Boolean {
|
|
|
173
181
|
* @param {number} pbs_level
|
|
174
182
|
* @param {number} ks_base_log
|
|
175
183
|
* @param {number} ks_level
|
|
184
|
+
* @param {number} encryption_key_choice
|
|
176
185
|
* @returns {BooleanParameters}
|
|
177
186
|
*/
|
|
178
|
-
static new_parameters(lwe_dimension: number, glwe_dimension: number, polynomial_size: number, lwe_modular_std_dev: number, glwe_modular_std_dev: number, pbs_base_log: number, pbs_level: number, ks_base_log: number, ks_level: number): BooleanParameters;
|
|
187
|
+
static new_parameters(lwe_dimension: number, glwe_dimension: number, polynomial_size: number, lwe_modular_std_dev: number, glwe_modular_std_dev: number, pbs_base_log: number, pbs_level: number, ks_base_log: number, ks_level: number, encryption_key_choice: number): BooleanParameters;
|
|
179
188
|
/**
|
|
180
189
|
* @param {bigint} seed_high_bytes
|
|
181
190
|
* @param {bigint} seed_low_bytes
|
|
@@ -315,38 +324,49 @@ export class BooleanPublicKey {
|
|
|
315
324
|
}
|
|
316
325
|
/**
|
|
317
326
|
*/
|
|
318
|
-
export class
|
|
327
|
+
export class CompactFheInt128 {
|
|
319
328
|
free(): void;
|
|
320
329
|
/**
|
|
321
330
|
* @param {any} value
|
|
322
331
|
* @param {TfheCompactPublicKey} client_key
|
|
323
|
-
* @returns {
|
|
332
|
+
* @returns {CompactFheInt128}
|
|
324
333
|
*/
|
|
325
|
-
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey):
|
|
334
|
+
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey): CompactFheInt128;
|
|
326
335
|
/**
|
|
327
|
-
* @returns {
|
|
336
|
+
* @returns {FheInt128}
|
|
328
337
|
*/
|
|
329
|
-
expand():
|
|
338
|
+
expand(): FheInt128;
|
|
330
339
|
/**
|
|
331
340
|
* @returns {Uint8Array}
|
|
332
341
|
*/
|
|
333
342
|
serialize(): Uint8Array;
|
|
334
343
|
/**
|
|
335
344
|
* @param {Uint8Array} buffer
|
|
336
|
-
* @returns {
|
|
345
|
+
* @returns {CompactFheInt128}
|
|
337
346
|
*/
|
|
338
|
-
static deserialize(buffer: Uint8Array):
|
|
347
|
+
static deserialize(buffer: Uint8Array): CompactFheInt128;
|
|
348
|
+
/**
|
|
349
|
+
* @param {bigint} serialized_size_limit
|
|
350
|
+
* @returns {Uint8Array}
|
|
351
|
+
*/
|
|
352
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
353
|
+
/**
|
|
354
|
+
* @param {Uint8Array} buffer
|
|
355
|
+
* @param {bigint} serialized_size_limit
|
|
356
|
+
* @returns {CompactFheInt128}
|
|
357
|
+
*/
|
|
358
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheInt128;
|
|
339
359
|
}
|
|
340
360
|
/**
|
|
341
361
|
*/
|
|
342
|
-
export class
|
|
362
|
+
export class CompactFheInt128List {
|
|
343
363
|
free(): void;
|
|
344
364
|
/**
|
|
345
365
|
* @param {any[]} values
|
|
346
366
|
* @param {TfheCompactPublicKey} public_key
|
|
347
|
-
* @returns {
|
|
367
|
+
* @returns {CompactFheInt128List}
|
|
348
368
|
*/
|
|
349
|
-
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey):
|
|
369
|
+
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey): CompactFheInt128List;
|
|
350
370
|
/**
|
|
351
371
|
* @returns {any[]}
|
|
352
372
|
*/
|
|
@@ -357,44 +377,55 @@ export class CompactFheUint128List {
|
|
|
357
377
|
serialize(): Uint8Array;
|
|
358
378
|
/**
|
|
359
379
|
* @param {Uint8Array} buffer
|
|
360
|
-
* @returns {
|
|
380
|
+
* @returns {CompactFheInt128List}
|
|
361
381
|
*/
|
|
362
|
-
static deserialize(buffer: Uint8Array):
|
|
382
|
+
static deserialize(buffer: Uint8Array): CompactFheInt128List;
|
|
363
383
|
}
|
|
364
384
|
/**
|
|
365
385
|
*/
|
|
366
|
-
export class
|
|
386
|
+
export class CompactFheInt16 {
|
|
367
387
|
free(): void;
|
|
368
388
|
/**
|
|
369
389
|
* @param {number} value
|
|
370
390
|
* @param {TfheCompactPublicKey} client_key
|
|
371
|
-
* @returns {
|
|
391
|
+
* @returns {CompactFheInt16}
|
|
372
392
|
*/
|
|
373
|
-
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey):
|
|
393
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheInt16;
|
|
374
394
|
/**
|
|
375
|
-
* @returns {
|
|
395
|
+
* @returns {FheInt16}
|
|
376
396
|
*/
|
|
377
|
-
expand():
|
|
397
|
+
expand(): FheInt16;
|
|
378
398
|
/**
|
|
379
399
|
* @returns {Uint8Array}
|
|
380
400
|
*/
|
|
381
401
|
serialize(): Uint8Array;
|
|
382
402
|
/**
|
|
383
403
|
* @param {Uint8Array} buffer
|
|
384
|
-
* @returns {
|
|
404
|
+
* @returns {CompactFheInt16}
|
|
385
405
|
*/
|
|
386
|
-
static deserialize(buffer: Uint8Array):
|
|
406
|
+
static deserialize(buffer: Uint8Array): CompactFheInt16;
|
|
407
|
+
/**
|
|
408
|
+
* @param {bigint} serialized_size_limit
|
|
409
|
+
* @returns {Uint8Array}
|
|
410
|
+
*/
|
|
411
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
412
|
+
/**
|
|
413
|
+
* @param {Uint8Array} buffer
|
|
414
|
+
* @param {bigint} serialized_size_limit
|
|
415
|
+
* @returns {CompactFheInt16}
|
|
416
|
+
*/
|
|
417
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheInt16;
|
|
387
418
|
}
|
|
388
419
|
/**
|
|
389
420
|
*/
|
|
390
|
-
export class
|
|
421
|
+
export class CompactFheInt16List {
|
|
391
422
|
free(): void;
|
|
392
423
|
/**
|
|
393
|
-
* @param {
|
|
424
|
+
* @param {Int16Array} values
|
|
394
425
|
* @param {TfheCompactPublicKey} public_key
|
|
395
|
-
* @returns {
|
|
426
|
+
* @returns {CompactFheInt16List}
|
|
396
427
|
*/
|
|
397
|
-
static encrypt_with_compact_public_key(values:
|
|
428
|
+
static encrypt_with_compact_public_key(values: Int16Array, public_key: TfheCompactPublicKey): CompactFheInt16List;
|
|
398
429
|
/**
|
|
399
430
|
* @returns {any[]}
|
|
400
431
|
*/
|
|
@@ -405,44 +436,55 @@ export class CompactFheUint16List {
|
|
|
405
436
|
serialize(): Uint8Array;
|
|
406
437
|
/**
|
|
407
438
|
* @param {Uint8Array} buffer
|
|
408
|
-
* @returns {
|
|
439
|
+
* @returns {CompactFheInt16List}
|
|
409
440
|
*/
|
|
410
|
-
static deserialize(buffer: Uint8Array):
|
|
441
|
+
static deserialize(buffer: Uint8Array): CompactFheInt16List;
|
|
411
442
|
}
|
|
412
443
|
/**
|
|
413
444
|
*/
|
|
414
|
-
export class
|
|
445
|
+
export class CompactFheInt256 {
|
|
415
446
|
free(): void;
|
|
416
447
|
/**
|
|
417
448
|
* @param {any} value
|
|
418
449
|
* @param {TfheCompactPublicKey} client_key
|
|
419
|
-
* @returns {
|
|
450
|
+
* @returns {CompactFheInt256}
|
|
420
451
|
*/
|
|
421
|
-
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey):
|
|
452
|
+
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey): CompactFheInt256;
|
|
422
453
|
/**
|
|
423
|
-
* @returns {
|
|
454
|
+
* @returns {FheInt256}
|
|
424
455
|
*/
|
|
425
|
-
expand():
|
|
456
|
+
expand(): FheInt256;
|
|
426
457
|
/**
|
|
427
458
|
* @returns {Uint8Array}
|
|
428
459
|
*/
|
|
429
460
|
serialize(): Uint8Array;
|
|
430
461
|
/**
|
|
431
462
|
* @param {Uint8Array} buffer
|
|
432
|
-
* @returns {
|
|
463
|
+
* @returns {CompactFheInt256}
|
|
433
464
|
*/
|
|
434
|
-
static deserialize(buffer: Uint8Array):
|
|
465
|
+
static deserialize(buffer: Uint8Array): CompactFheInt256;
|
|
466
|
+
/**
|
|
467
|
+
* @param {bigint} serialized_size_limit
|
|
468
|
+
* @returns {Uint8Array}
|
|
469
|
+
*/
|
|
470
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
471
|
+
/**
|
|
472
|
+
* @param {Uint8Array} buffer
|
|
473
|
+
* @param {bigint} serialized_size_limit
|
|
474
|
+
* @returns {CompactFheInt256}
|
|
475
|
+
*/
|
|
476
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheInt256;
|
|
435
477
|
}
|
|
436
478
|
/**
|
|
437
479
|
*/
|
|
438
|
-
export class
|
|
480
|
+
export class CompactFheInt256List {
|
|
439
481
|
free(): void;
|
|
440
482
|
/**
|
|
441
483
|
* @param {any[]} values
|
|
442
484
|
* @param {TfheCompactPublicKey} public_key
|
|
443
|
-
* @returns {
|
|
485
|
+
* @returns {CompactFheInt256List}
|
|
444
486
|
*/
|
|
445
|
-
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey):
|
|
487
|
+
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey): CompactFheInt256List;
|
|
446
488
|
/**
|
|
447
489
|
* @returns {any[]}
|
|
448
490
|
*/
|
|
@@ -453,44 +495,55 @@ export class CompactFheUint256List {
|
|
|
453
495
|
serialize(): Uint8Array;
|
|
454
496
|
/**
|
|
455
497
|
* @param {Uint8Array} buffer
|
|
456
|
-
* @returns {
|
|
498
|
+
* @returns {CompactFheInt256List}
|
|
457
499
|
*/
|
|
458
|
-
static deserialize(buffer: Uint8Array):
|
|
500
|
+
static deserialize(buffer: Uint8Array): CompactFheInt256List;
|
|
459
501
|
}
|
|
460
502
|
/**
|
|
461
503
|
*/
|
|
462
|
-
export class
|
|
504
|
+
export class CompactFheInt32 {
|
|
463
505
|
free(): void;
|
|
464
506
|
/**
|
|
465
507
|
* @param {number} value
|
|
466
508
|
* @param {TfheCompactPublicKey} client_key
|
|
467
|
-
* @returns {
|
|
509
|
+
* @returns {CompactFheInt32}
|
|
468
510
|
*/
|
|
469
|
-
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey):
|
|
511
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheInt32;
|
|
470
512
|
/**
|
|
471
|
-
* @returns {
|
|
513
|
+
* @returns {FheInt32}
|
|
472
514
|
*/
|
|
473
|
-
expand():
|
|
515
|
+
expand(): FheInt32;
|
|
474
516
|
/**
|
|
475
517
|
* @returns {Uint8Array}
|
|
476
518
|
*/
|
|
477
519
|
serialize(): Uint8Array;
|
|
478
520
|
/**
|
|
479
521
|
* @param {Uint8Array} buffer
|
|
480
|
-
* @returns {
|
|
522
|
+
* @returns {CompactFheInt32}
|
|
481
523
|
*/
|
|
482
|
-
static deserialize(buffer: Uint8Array):
|
|
524
|
+
static deserialize(buffer: Uint8Array): CompactFheInt32;
|
|
525
|
+
/**
|
|
526
|
+
* @param {bigint} serialized_size_limit
|
|
527
|
+
* @returns {Uint8Array}
|
|
528
|
+
*/
|
|
529
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
530
|
+
/**
|
|
531
|
+
* @param {Uint8Array} buffer
|
|
532
|
+
* @param {bigint} serialized_size_limit
|
|
533
|
+
* @returns {CompactFheInt32}
|
|
534
|
+
*/
|
|
535
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheInt32;
|
|
483
536
|
}
|
|
484
537
|
/**
|
|
485
538
|
*/
|
|
486
|
-
export class
|
|
539
|
+
export class CompactFheInt32List {
|
|
487
540
|
free(): void;
|
|
488
541
|
/**
|
|
489
|
-
* @param {
|
|
542
|
+
* @param {Int32Array} values
|
|
490
543
|
* @param {TfheCompactPublicKey} public_key
|
|
491
|
-
* @returns {
|
|
544
|
+
* @returns {CompactFheInt32List}
|
|
492
545
|
*/
|
|
493
|
-
static encrypt_with_compact_public_key(values:
|
|
546
|
+
static encrypt_with_compact_public_key(values: Int32Array, public_key: TfheCompactPublicKey): CompactFheInt32List;
|
|
494
547
|
/**
|
|
495
548
|
* @returns {any[]}
|
|
496
549
|
*/
|
|
@@ -501,44 +554,55 @@ export class CompactFheUint32List {
|
|
|
501
554
|
serialize(): Uint8Array;
|
|
502
555
|
/**
|
|
503
556
|
* @param {Uint8Array} buffer
|
|
504
|
-
* @returns {
|
|
557
|
+
* @returns {CompactFheInt32List}
|
|
505
558
|
*/
|
|
506
|
-
static deserialize(buffer: Uint8Array):
|
|
559
|
+
static deserialize(buffer: Uint8Array): CompactFheInt32List;
|
|
507
560
|
}
|
|
508
561
|
/**
|
|
509
562
|
*/
|
|
510
|
-
export class
|
|
563
|
+
export class CompactFheInt64 {
|
|
511
564
|
free(): void;
|
|
512
565
|
/**
|
|
513
566
|
* @param {bigint} value
|
|
514
567
|
* @param {TfheCompactPublicKey} client_key
|
|
515
|
-
* @returns {
|
|
568
|
+
* @returns {CompactFheInt64}
|
|
516
569
|
*/
|
|
517
|
-
static encrypt_with_compact_public_key(value: bigint, client_key: TfheCompactPublicKey):
|
|
570
|
+
static encrypt_with_compact_public_key(value: bigint, client_key: TfheCompactPublicKey): CompactFheInt64;
|
|
518
571
|
/**
|
|
519
|
-
* @returns {
|
|
572
|
+
* @returns {FheInt64}
|
|
520
573
|
*/
|
|
521
|
-
expand():
|
|
574
|
+
expand(): FheInt64;
|
|
522
575
|
/**
|
|
523
576
|
* @returns {Uint8Array}
|
|
524
577
|
*/
|
|
525
578
|
serialize(): Uint8Array;
|
|
526
579
|
/**
|
|
527
580
|
* @param {Uint8Array} buffer
|
|
528
|
-
* @returns {
|
|
581
|
+
* @returns {CompactFheInt64}
|
|
529
582
|
*/
|
|
530
|
-
static deserialize(buffer: Uint8Array):
|
|
583
|
+
static deserialize(buffer: Uint8Array): CompactFheInt64;
|
|
584
|
+
/**
|
|
585
|
+
* @param {bigint} serialized_size_limit
|
|
586
|
+
* @returns {Uint8Array}
|
|
587
|
+
*/
|
|
588
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
589
|
+
/**
|
|
590
|
+
* @param {Uint8Array} buffer
|
|
591
|
+
* @param {bigint} serialized_size_limit
|
|
592
|
+
* @returns {CompactFheInt64}
|
|
593
|
+
*/
|
|
594
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheInt64;
|
|
531
595
|
}
|
|
532
596
|
/**
|
|
533
597
|
*/
|
|
534
|
-
export class
|
|
598
|
+
export class CompactFheInt64List {
|
|
535
599
|
free(): void;
|
|
536
600
|
/**
|
|
537
|
-
* @param {
|
|
601
|
+
* @param {BigInt64Array} values
|
|
538
602
|
* @param {TfheCompactPublicKey} public_key
|
|
539
|
-
* @returns {
|
|
603
|
+
* @returns {CompactFheInt64List}
|
|
540
604
|
*/
|
|
541
|
-
static encrypt_with_compact_public_key(values:
|
|
605
|
+
static encrypt_with_compact_public_key(values: BigInt64Array, public_key: TfheCompactPublicKey): CompactFheInt64List;
|
|
542
606
|
/**
|
|
543
607
|
* @returns {any[]}
|
|
544
608
|
*/
|
|
@@ -549,44 +613,55 @@ export class CompactFheUint64List {
|
|
|
549
613
|
serialize(): Uint8Array;
|
|
550
614
|
/**
|
|
551
615
|
* @param {Uint8Array} buffer
|
|
552
|
-
* @returns {
|
|
616
|
+
* @returns {CompactFheInt64List}
|
|
553
617
|
*/
|
|
554
|
-
static deserialize(buffer: Uint8Array):
|
|
618
|
+
static deserialize(buffer: Uint8Array): CompactFheInt64List;
|
|
555
619
|
}
|
|
556
620
|
/**
|
|
557
621
|
*/
|
|
558
|
-
export class
|
|
622
|
+
export class CompactFheInt8 {
|
|
559
623
|
free(): void;
|
|
560
624
|
/**
|
|
561
625
|
* @param {number} value
|
|
562
626
|
* @param {TfheCompactPublicKey} client_key
|
|
563
|
-
* @returns {
|
|
627
|
+
* @returns {CompactFheInt8}
|
|
564
628
|
*/
|
|
565
|
-
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey):
|
|
629
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheInt8;
|
|
566
630
|
/**
|
|
567
|
-
* @returns {
|
|
631
|
+
* @returns {FheInt8}
|
|
568
632
|
*/
|
|
569
|
-
expand():
|
|
633
|
+
expand(): FheInt8;
|
|
570
634
|
/**
|
|
571
635
|
* @returns {Uint8Array}
|
|
572
636
|
*/
|
|
573
637
|
serialize(): Uint8Array;
|
|
574
638
|
/**
|
|
575
639
|
* @param {Uint8Array} buffer
|
|
576
|
-
* @returns {
|
|
640
|
+
* @returns {CompactFheInt8}
|
|
577
641
|
*/
|
|
578
|
-
static deserialize(buffer: Uint8Array):
|
|
642
|
+
static deserialize(buffer: Uint8Array): CompactFheInt8;
|
|
643
|
+
/**
|
|
644
|
+
* @param {bigint} serialized_size_limit
|
|
645
|
+
* @returns {Uint8Array}
|
|
646
|
+
*/
|
|
647
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
648
|
+
/**
|
|
649
|
+
* @param {Uint8Array} buffer
|
|
650
|
+
* @param {bigint} serialized_size_limit
|
|
651
|
+
* @returns {CompactFheInt8}
|
|
652
|
+
*/
|
|
653
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheInt8;
|
|
579
654
|
}
|
|
580
655
|
/**
|
|
581
656
|
*/
|
|
582
|
-
export class
|
|
657
|
+
export class CompactFheInt8List {
|
|
583
658
|
free(): void;
|
|
584
659
|
/**
|
|
585
|
-
* @param {
|
|
660
|
+
* @param {Int8Array} values
|
|
586
661
|
* @param {TfheCompactPublicKey} public_key
|
|
587
|
-
* @returns {
|
|
662
|
+
* @returns {CompactFheInt8List}
|
|
588
663
|
*/
|
|
589
|
-
static encrypt_with_compact_public_key(values:
|
|
664
|
+
static encrypt_with_compact_public_key(values: Int8Array, public_key: TfheCompactPublicKey): CompactFheInt8List;
|
|
590
665
|
/**
|
|
591
666
|
* @returns {any[]}
|
|
592
667
|
*/
|
|
@@ -597,153 +672,1107 @@ export class CompactFheUint8List {
|
|
|
597
672
|
serialize(): Uint8Array;
|
|
598
673
|
/**
|
|
599
674
|
* @param {Uint8Array} buffer
|
|
600
|
-
* @returns {
|
|
675
|
+
* @returns {CompactFheInt8List}
|
|
601
676
|
*/
|
|
602
|
-
static deserialize(buffer: Uint8Array):
|
|
677
|
+
static deserialize(buffer: Uint8Array): CompactFheInt8List;
|
|
603
678
|
}
|
|
604
679
|
/**
|
|
605
680
|
*/
|
|
606
|
-
export class
|
|
681
|
+
export class CompactFheUint128 {
|
|
607
682
|
free(): void;
|
|
608
683
|
/**
|
|
609
684
|
* @param {any} value
|
|
610
|
-
* @param {
|
|
611
|
-
* @returns {
|
|
685
|
+
* @param {TfheCompactPublicKey} client_key
|
|
686
|
+
* @returns {CompactFheUint128}
|
|
612
687
|
*/
|
|
613
|
-
static
|
|
688
|
+
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey): CompactFheUint128;
|
|
614
689
|
/**
|
|
615
690
|
* @returns {FheUint128}
|
|
616
691
|
*/
|
|
617
|
-
|
|
692
|
+
expand(): FheUint128;
|
|
618
693
|
/**
|
|
619
694
|
* @returns {Uint8Array}
|
|
620
695
|
*/
|
|
621
696
|
serialize(): Uint8Array;
|
|
622
697
|
/**
|
|
623
698
|
* @param {Uint8Array} buffer
|
|
624
|
-
* @returns {
|
|
699
|
+
* @returns {CompactFheUint128}
|
|
625
700
|
*/
|
|
626
|
-
static deserialize(buffer: Uint8Array):
|
|
701
|
+
static deserialize(buffer: Uint8Array): CompactFheUint128;
|
|
702
|
+
/**
|
|
703
|
+
* @param {bigint} serialized_size_limit
|
|
704
|
+
* @returns {Uint8Array}
|
|
705
|
+
*/
|
|
706
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
707
|
+
/**
|
|
708
|
+
* @param {Uint8Array} buffer
|
|
709
|
+
* @param {bigint} serialized_size_limit
|
|
710
|
+
* @returns {CompactFheUint128}
|
|
711
|
+
*/
|
|
712
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheUint128;
|
|
627
713
|
}
|
|
628
714
|
/**
|
|
629
715
|
*/
|
|
630
|
-
export class
|
|
716
|
+
export class CompactFheUint128List {
|
|
717
|
+
free(): void;
|
|
718
|
+
/**
|
|
719
|
+
* @param {any[]} values
|
|
720
|
+
* @param {TfheCompactPublicKey} public_key
|
|
721
|
+
* @returns {CompactFheUint128List}
|
|
722
|
+
*/
|
|
723
|
+
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey): CompactFheUint128List;
|
|
724
|
+
/**
|
|
725
|
+
* @returns {any[]}
|
|
726
|
+
*/
|
|
727
|
+
expand(): any[];
|
|
728
|
+
/**
|
|
729
|
+
* @returns {Uint8Array}
|
|
730
|
+
*/
|
|
731
|
+
serialize(): Uint8Array;
|
|
732
|
+
/**
|
|
733
|
+
* @param {Uint8Array} buffer
|
|
734
|
+
* @returns {CompactFheUint128List}
|
|
735
|
+
*/
|
|
736
|
+
static deserialize(buffer: Uint8Array): CompactFheUint128List;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
*/
|
|
740
|
+
export class CompactFheUint16 {
|
|
631
741
|
free(): void;
|
|
632
742
|
/**
|
|
633
743
|
* @param {number} value
|
|
634
|
-
* @param {
|
|
635
|
-
* @returns {
|
|
744
|
+
* @param {TfheCompactPublicKey} client_key
|
|
745
|
+
* @returns {CompactFheUint16}
|
|
636
746
|
*/
|
|
637
|
-
static
|
|
747
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheUint16;
|
|
748
|
+
/**
|
|
749
|
+
* @returns {FheUint16}
|
|
750
|
+
*/
|
|
751
|
+
expand(): FheUint16;
|
|
752
|
+
/**
|
|
753
|
+
* @returns {Uint8Array}
|
|
754
|
+
*/
|
|
755
|
+
serialize(): Uint8Array;
|
|
756
|
+
/**
|
|
757
|
+
* @param {Uint8Array} buffer
|
|
758
|
+
* @returns {CompactFheUint16}
|
|
759
|
+
*/
|
|
760
|
+
static deserialize(buffer: Uint8Array): CompactFheUint16;
|
|
761
|
+
/**
|
|
762
|
+
* @param {bigint} serialized_size_limit
|
|
763
|
+
* @returns {Uint8Array}
|
|
764
|
+
*/
|
|
765
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
766
|
+
/**
|
|
767
|
+
* @param {Uint8Array} buffer
|
|
768
|
+
* @param {bigint} serialized_size_limit
|
|
769
|
+
* @returns {CompactFheUint16}
|
|
770
|
+
*/
|
|
771
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheUint16;
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
*/
|
|
775
|
+
export class CompactFheUint16List {
|
|
776
|
+
free(): void;
|
|
777
|
+
/**
|
|
778
|
+
* @param {Uint16Array} values
|
|
779
|
+
* @param {TfheCompactPublicKey} public_key
|
|
780
|
+
* @returns {CompactFheUint16List}
|
|
781
|
+
*/
|
|
782
|
+
static encrypt_with_compact_public_key(values: Uint16Array, public_key: TfheCompactPublicKey): CompactFheUint16List;
|
|
783
|
+
/**
|
|
784
|
+
* @returns {any[]}
|
|
785
|
+
*/
|
|
786
|
+
expand(): any[];
|
|
787
|
+
/**
|
|
788
|
+
* @returns {Uint8Array}
|
|
789
|
+
*/
|
|
790
|
+
serialize(): Uint8Array;
|
|
791
|
+
/**
|
|
792
|
+
* @param {Uint8Array} buffer
|
|
793
|
+
* @returns {CompactFheUint16List}
|
|
794
|
+
*/
|
|
795
|
+
static deserialize(buffer: Uint8Array): CompactFheUint16List;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
*/
|
|
799
|
+
export class CompactFheUint256 {
|
|
800
|
+
free(): void;
|
|
801
|
+
/**
|
|
802
|
+
* @param {any} value
|
|
803
|
+
* @param {TfheCompactPublicKey} client_key
|
|
804
|
+
* @returns {CompactFheUint256}
|
|
805
|
+
*/
|
|
806
|
+
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey): CompactFheUint256;
|
|
807
|
+
/**
|
|
808
|
+
* @returns {FheUint256}
|
|
809
|
+
*/
|
|
810
|
+
expand(): FheUint256;
|
|
811
|
+
/**
|
|
812
|
+
* @returns {Uint8Array}
|
|
813
|
+
*/
|
|
814
|
+
serialize(): Uint8Array;
|
|
815
|
+
/**
|
|
816
|
+
* @param {Uint8Array} buffer
|
|
817
|
+
* @returns {CompactFheUint256}
|
|
818
|
+
*/
|
|
819
|
+
static deserialize(buffer: Uint8Array): CompactFheUint256;
|
|
820
|
+
/**
|
|
821
|
+
* @param {bigint} serialized_size_limit
|
|
822
|
+
* @returns {Uint8Array}
|
|
823
|
+
*/
|
|
824
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
825
|
+
/**
|
|
826
|
+
* @param {Uint8Array} buffer
|
|
827
|
+
* @param {bigint} serialized_size_limit
|
|
828
|
+
* @returns {CompactFheUint256}
|
|
829
|
+
*/
|
|
830
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheUint256;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
*/
|
|
834
|
+
export class CompactFheUint256List {
|
|
835
|
+
free(): void;
|
|
836
|
+
/**
|
|
837
|
+
* @param {any[]} values
|
|
838
|
+
* @param {TfheCompactPublicKey} public_key
|
|
839
|
+
* @returns {CompactFheUint256List}
|
|
840
|
+
*/
|
|
841
|
+
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey): CompactFheUint256List;
|
|
842
|
+
/**
|
|
843
|
+
* @returns {any[]}
|
|
844
|
+
*/
|
|
845
|
+
expand(): any[];
|
|
846
|
+
/**
|
|
847
|
+
* @returns {Uint8Array}
|
|
848
|
+
*/
|
|
849
|
+
serialize(): Uint8Array;
|
|
850
|
+
/**
|
|
851
|
+
* @param {Uint8Array} buffer
|
|
852
|
+
* @returns {CompactFheUint256List}
|
|
853
|
+
*/
|
|
854
|
+
static deserialize(buffer: Uint8Array): CompactFheUint256List;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
*/
|
|
858
|
+
export class CompactFheUint32 {
|
|
859
|
+
free(): void;
|
|
860
|
+
/**
|
|
861
|
+
* @param {number} value
|
|
862
|
+
* @param {TfheCompactPublicKey} client_key
|
|
863
|
+
* @returns {CompactFheUint32}
|
|
864
|
+
*/
|
|
865
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheUint32;
|
|
866
|
+
/**
|
|
867
|
+
* @returns {FheUint32}
|
|
868
|
+
*/
|
|
869
|
+
expand(): FheUint32;
|
|
870
|
+
/**
|
|
871
|
+
* @returns {Uint8Array}
|
|
872
|
+
*/
|
|
873
|
+
serialize(): Uint8Array;
|
|
874
|
+
/**
|
|
875
|
+
* @param {Uint8Array} buffer
|
|
876
|
+
* @returns {CompactFheUint32}
|
|
877
|
+
*/
|
|
878
|
+
static deserialize(buffer: Uint8Array): CompactFheUint32;
|
|
879
|
+
/**
|
|
880
|
+
* @param {bigint} serialized_size_limit
|
|
881
|
+
* @returns {Uint8Array}
|
|
882
|
+
*/
|
|
883
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
884
|
+
/**
|
|
885
|
+
* @param {Uint8Array} buffer
|
|
886
|
+
* @param {bigint} serialized_size_limit
|
|
887
|
+
* @returns {CompactFheUint32}
|
|
888
|
+
*/
|
|
889
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheUint32;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
*/
|
|
893
|
+
export class CompactFheUint32List {
|
|
894
|
+
free(): void;
|
|
895
|
+
/**
|
|
896
|
+
* @param {Uint32Array} values
|
|
897
|
+
* @param {TfheCompactPublicKey} public_key
|
|
898
|
+
* @returns {CompactFheUint32List}
|
|
899
|
+
*/
|
|
900
|
+
static encrypt_with_compact_public_key(values: Uint32Array, public_key: TfheCompactPublicKey): CompactFheUint32List;
|
|
901
|
+
/**
|
|
902
|
+
* @returns {any[]}
|
|
903
|
+
*/
|
|
904
|
+
expand(): any[];
|
|
905
|
+
/**
|
|
906
|
+
* @returns {Uint8Array}
|
|
907
|
+
*/
|
|
908
|
+
serialize(): Uint8Array;
|
|
909
|
+
/**
|
|
910
|
+
* @param {Uint8Array} buffer
|
|
911
|
+
* @returns {CompactFheUint32List}
|
|
912
|
+
*/
|
|
913
|
+
static deserialize(buffer: Uint8Array): CompactFheUint32List;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
*/
|
|
917
|
+
export class CompactFheUint64 {
|
|
918
|
+
free(): void;
|
|
919
|
+
/**
|
|
920
|
+
* @param {bigint} value
|
|
921
|
+
* @param {TfheCompactPublicKey} client_key
|
|
922
|
+
* @returns {CompactFheUint64}
|
|
923
|
+
*/
|
|
924
|
+
static encrypt_with_compact_public_key(value: bigint, client_key: TfheCompactPublicKey): CompactFheUint64;
|
|
925
|
+
/**
|
|
926
|
+
* @returns {FheUint64}
|
|
927
|
+
*/
|
|
928
|
+
expand(): FheUint64;
|
|
929
|
+
/**
|
|
930
|
+
* @returns {Uint8Array}
|
|
931
|
+
*/
|
|
932
|
+
serialize(): Uint8Array;
|
|
933
|
+
/**
|
|
934
|
+
* @param {Uint8Array} buffer
|
|
935
|
+
* @returns {CompactFheUint64}
|
|
936
|
+
*/
|
|
937
|
+
static deserialize(buffer: Uint8Array): CompactFheUint64;
|
|
938
|
+
/**
|
|
939
|
+
* @param {bigint} serialized_size_limit
|
|
940
|
+
* @returns {Uint8Array}
|
|
941
|
+
*/
|
|
942
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
943
|
+
/**
|
|
944
|
+
* @param {Uint8Array} buffer
|
|
945
|
+
* @param {bigint} serialized_size_limit
|
|
946
|
+
* @returns {CompactFheUint64}
|
|
947
|
+
*/
|
|
948
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheUint64;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
*/
|
|
952
|
+
export class CompactFheUint64List {
|
|
953
|
+
free(): void;
|
|
954
|
+
/**
|
|
955
|
+
* @param {BigUint64Array} values
|
|
956
|
+
* @param {TfheCompactPublicKey} public_key
|
|
957
|
+
* @returns {CompactFheUint64List}
|
|
958
|
+
*/
|
|
959
|
+
static encrypt_with_compact_public_key(values: BigUint64Array, public_key: TfheCompactPublicKey): CompactFheUint64List;
|
|
960
|
+
/**
|
|
961
|
+
* @returns {any[]}
|
|
962
|
+
*/
|
|
963
|
+
expand(): any[];
|
|
964
|
+
/**
|
|
965
|
+
* @returns {Uint8Array}
|
|
966
|
+
*/
|
|
967
|
+
serialize(): Uint8Array;
|
|
968
|
+
/**
|
|
969
|
+
* @param {Uint8Array} buffer
|
|
970
|
+
* @returns {CompactFheUint64List}
|
|
971
|
+
*/
|
|
972
|
+
static deserialize(buffer: Uint8Array): CompactFheUint64List;
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
*/
|
|
976
|
+
export class CompactFheUint8 {
|
|
977
|
+
free(): void;
|
|
978
|
+
/**
|
|
979
|
+
* @param {number} value
|
|
980
|
+
* @param {TfheCompactPublicKey} client_key
|
|
981
|
+
* @returns {CompactFheUint8}
|
|
982
|
+
*/
|
|
983
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheUint8;
|
|
984
|
+
/**
|
|
985
|
+
* @returns {FheUint8}
|
|
986
|
+
*/
|
|
987
|
+
expand(): FheUint8;
|
|
988
|
+
/**
|
|
989
|
+
* @returns {Uint8Array}
|
|
990
|
+
*/
|
|
991
|
+
serialize(): Uint8Array;
|
|
992
|
+
/**
|
|
993
|
+
* @param {Uint8Array} buffer
|
|
994
|
+
* @returns {CompactFheUint8}
|
|
995
|
+
*/
|
|
996
|
+
static deserialize(buffer: Uint8Array): CompactFheUint8;
|
|
997
|
+
/**
|
|
998
|
+
* @param {bigint} serialized_size_limit
|
|
999
|
+
* @returns {Uint8Array}
|
|
1000
|
+
*/
|
|
1001
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1002
|
+
/**
|
|
1003
|
+
* @param {Uint8Array} buffer
|
|
1004
|
+
* @param {bigint} serialized_size_limit
|
|
1005
|
+
* @returns {CompactFheUint8}
|
|
1006
|
+
*/
|
|
1007
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactFheUint8;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
*/
|
|
1011
|
+
export class CompactFheUint8List {
|
|
1012
|
+
free(): void;
|
|
1013
|
+
/**
|
|
1014
|
+
* @param {Uint8Array} values
|
|
1015
|
+
* @param {TfheCompactPublicKey} public_key
|
|
1016
|
+
* @returns {CompactFheUint8List}
|
|
1017
|
+
*/
|
|
1018
|
+
static encrypt_with_compact_public_key(values: Uint8Array, public_key: TfheCompactPublicKey): CompactFheUint8List;
|
|
1019
|
+
/**
|
|
1020
|
+
* @returns {any[]}
|
|
1021
|
+
*/
|
|
1022
|
+
expand(): any[];
|
|
1023
|
+
/**
|
|
1024
|
+
* @returns {Uint8Array}
|
|
1025
|
+
*/
|
|
1026
|
+
serialize(): Uint8Array;
|
|
1027
|
+
/**
|
|
1028
|
+
* @param {Uint8Array} buffer
|
|
1029
|
+
* @returns {CompactFheUint8List}
|
|
1030
|
+
*/
|
|
1031
|
+
static deserialize(buffer: Uint8Array): CompactFheUint8List;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
*/
|
|
1035
|
+
export class CompressedFheInt128 {
|
|
1036
|
+
free(): void;
|
|
1037
|
+
/**
|
|
1038
|
+
* @param {any} value
|
|
1039
|
+
* @param {TfheClientKey} client_key
|
|
1040
|
+
* @returns {CompressedFheInt128}
|
|
1041
|
+
*/
|
|
1042
|
+
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt128;
|
|
1043
|
+
/**
|
|
1044
|
+
* @returns {FheInt128}
|
|
1045
|
+
*/
|
|
1046
|
+
decompress(): FheInt128;
|
|
1047
|
+
/**
|
|
1048
|
+
* @returns {Uint8Array}
|
|
1049
|
+
*/
|
|
1050
|
+
serialize(): Uint8Array;
|
|
1051
|
+
/**
|
|
1052
|
+
* @param {Uint8Array} buffer
|
|
1053
|
+
* @returns {CompressedFheInt128}
|
|
1054
|
+
*/
|
|
1055
|
+
static deserialize(buffer: Uint8Array): CompressedFheInt128;
|
|
1056
|
+
/**
|
|
1057
|
+
* @param {bigint} serialized_size_limit
|
|
1058
|
+
* @returns {Uint8Array}
|
|
1059
|
+
*/
|
|
1060
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1061
|
+
/**
|
|
1062
|
+
* @param {Uint8Array} buffer
|
|
1063
|
+
* @param {bigint} serialized_size_limit
|
|
1064
|
+
* @returns {CompressedFheInt128}
|
|
1065
|
+
*/
|
|
1066
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt128;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
*/
|
|
1070
|
+
export class CompressedFheInt16 {
|
|
1071
|
+
free(): void;
|
|
1072
|
+
/**
|
|
1073
|
+
* @param {number} value
|
|
1074
|
+
* @param {TfheClientKey} client_key
|
|
1075
|
+
* @returns {CompressedFheInt16}
|
|
1076
|
+
*/
|
|
1077
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt16;
|
|
1078
|
+
/**
|
|
1079
|
+
* @returns {FheInt16}
|
|
1080
|
+
*/
|
|
1081
|
+
decompress(): FheInt16;
|
|
1082
|
+
/**
|
|
1083
|
+
* @returns {Uint8Array}
|
|
1084
|
+
*/
|
|
1085
|
+
serialize(): Uint8Array;
|
|
1086
|
+
/**
|
|
1087
|
+
* @param {Uint8Array} buffer
|
|
1088
|
+
* @returns {CompressedFheInt16}
|
|
1089
|
+
*/
|
|
1090
|
+
static deserialize(buffer: Uint8Array): CompressedFheInt16;
|
|
1091
|
+
/**
|
|
1092
|
+
* @param {bigint} serialized_size_limit
|
|
1093
|
+
* @returns {Uint8Array}
|
|
1094
|
+
*/
|
|
1095
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1096
|
+
/**
|
|
1097
|
+
* @param {Uint8Array} buffer
|
|
1098
|
+
* @param {bigint} serialized_size_limit
|
|
1099
|
+
* @returns {CompressedFheInt16}
|
|
1100
|
+
*/
|
|
1101
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt16;
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
*/
|
|
1105
|
+
export class CompressedFheInt256 {
|
|
1106
|
+
free(): void;
|
|
1107
|
+
/**
|
|
1108
|
+
* @param {any} value
|
|
1109
|
+
* @param {TfheClientKey} client_key
|
|
1110
|
+
* @returns {CompressedFheInt256}
|
|
1111
|
+
*/
|
|
1112
|
+
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt256;
|
|
1113
|
+
/**
|
|
1114
|
+
* @returns {FheInt256}
|
|
1115
|
+
*/
|
|
1116
|
+
decompress(): FheInt256;
|
|
1117
|
+
/**
|
|
1118
|
+
* @returns {Uint8Array}
|
|
1119
|
+
*/
|
|
1120
|
+
serialize(): Uint8Array;
|
|
1121
|
+
/**
|
|
1122
|
+
* @param {Uint8Array} buffer
|
|
1123
|
+
* @returns {CompressedFheInt256}
|
|
1124
|
+
*/
|
|
1125
|
+
static deserialize(buffer: Uint8Array): CompressedFheInt256;
|
|
1126
|
+
/**
|
|
1127
|
+
* @param {bigint} serialized_size_limit
|
|
1128
|
+
* @returns {Uint8Array}
|
|
1129
|
+
*/
|
|
1130
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1131
|
+
/**
|
|
1132
|
+
* @param {Uint8Array} buffer
|
|
1133
|
+
* @param {bigint} serialized_size_limit
|
|
1134
|
+
* @returns {CompressedFheInt256}
|
|
1135
|
+
*/
|
|
1136
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt256;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
*/
|
|
1140
|
+
export class CompressedFheInt32 {
|
|
1141
|
+
free(): void;
|
|
1142
|
+
/**
|
|
1143
|
+
* @param {number} value
|
|
1144
|
+
* @param {TfheClientKey} client_key
|
|
1145
|
+
* @returns {CompressedFheInt32}
|
|
1146
|
+
*/
|
|
1147
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt32;
|
|
1148
|
+
/**
|
|
1149
|
+
* @returns {FheInt32}
|
|
1150
|
+
*/
|
|
1151
|
+
decompress(): FheInt32;
|
|
1152
|
+
/**
|
|
1153
|
+
* @returns {Uint8Array}
|
|
1154
|
+
*/
|
|
1155
|
+
serialize(): Uint8Array;
|
|
1156
|
+
/**
|
|
1157
|
+
* @param {Uint8Array} buffer
|
|
1158
|
+
* @returns {CompressedFheInt32}
|
|
1159
|
+
*/
|
|
1160
|
+
static deserialize(buffer: Uint8Array): CompressedFheInt32;
|
|
1161
|
+
/**
|
|
1162
|
+
* @param {bigint} serialized_size_limit
|
|
1163
|
+
* @returns {Uint8Array}
|
|
1164
|
+
*/
|
|
1165
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1166
|
+
/**
|
|
1167
|
+
* @param {Uint8Array} buffer
|
|
1168
|
+
* @param {bigint} serialized_size_limit
|
|
1169
|
+
* @returns {CompressedFheInt32}
|
|
1170
|
+
*/
|
|
1171
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt32;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
*/
|
|
1175
|
+
export class CompressedFheInt64 {
|
|
1176
|
+
free(): void;
|
|
1177
|
+
/**
|
|
1178
|
+
* @param {bigint} value
|
|
1179
|
+
* @param {TfheClientKey} client_key
|
|
1180
|
+
* @returns {CompressedFheInt64}
|
|
1181
|
+
*/
|
|
1182
|
+
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): CompressedFheInt64;
|
|
1183
|
+
/**
|
|
1184
|
+
* @returns {FheInt64}
|
|
1185
|
+
*/
|
|
1186
|
+
decompress(): FheInt64;
|
|
1187
|
+
/**
|
|
1188
|
+
* @returns {Uint8Array}
|
|
1189
|
+
*/
|
|
1190
|
+
serialize(): Uint8Array;
|
|
1191
|
+
/**
|
|
1192
|
+
* @param {Uint8Array} buffer
|
|
1193
|
+
* @returns {CompressedFheInt64}
|
|
1194
|
+
*/
|
|
1195
|
+
static deserialize(buffer: Uint8Array): CompressedFheInt64;
|
|
1196
|
+
/**
|
|
1197
|
+
* @param {bigint} serialized_size_limit
|
|
1198
|
+
* @returns {Uint8Array}
|
|
1199
|
+
*/
|
|
1200
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1201
|
+
/**
|
|
1202
|
+
* @param {Uint8Array} buffer
|
|
1203
|
+
* @param {bigint} serialized_size_limit
|
|
1204
|
+
* @returns {CompressedFheInt64}
|
|
1205
|
+
*/
|
|
1206
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt64;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
*/
|
|
1210
|
+
export class CompressedFheInt8 {
|
|
1211
|
+
free(): void;
|
|
1212
|
+
/**
|
|
1213
|
+
* @param {number} value
|
|
1214
|
+
* @param {TfheClientKey} client_key
|
|
1215
|
+
* @returns {CompressedFheInt8}
|
|
1216
|
+
*/
|
|
1217
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt8;
|
|
1218
|
+
/**
|
|
1219
|
+
* @returns {FheInt8}
|
|
1220
|
+
*/
|
|
1221
|
+
decompress(): FheInt8;
|
|
1222
|
+
/**
|
|
1223
|
+
* @returns {Uint8Array}
|
|
1224
|
+
*/
|
|
1225
|
+
serialize(): Uint8Array;
|
|
1226
|
+
/**
|
|
1227
|
+
* @param {Uint8Array} buffer
|
|
1228
|
+
* @returns {CompressedFheInt8}
|
|
1229
|
+
*/
|
|
1230
|
+
static deserialize(buffer: Uint8Array): CompressedFheInt8;
|
|
1231
|
+
/**
|
|
1232
|
+
* @param {bigint} serialized_size_limit
|
|
1233
|
+
* @returns {Uint8Array}
|
|
1234
|
+
*/
|
|
1235
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1236
|
+
/**
|
|
1237
|
+
* @param {Uint8Array} buffer
|
|
1238
|
+
* @param {bigint} serialized_size_limit
|
|
1239
|
+
* @returns {CompressedFheInt8}
|
|
1240
|
+
*/
|
|
1241
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt8;
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
*/
|
|
1245
|
+
export class CompressedFheUint128 {
|
|
1246
|
+
free(): void;
|
|
1247
|
+
/**
|
|
1248
|
+
* @param {any} value
|
|
1249
|
+
* @param {TfheClientKey} client_key
|
|
1250
|
+
* @returns {CompressedFheUint128}
|
|
1251
|
+
*/
|
|
1252
|
+
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint128;
|
|
1253
|
+
/**
|
|
1254
|
+
* @returns {FheUint128}
|
|
1255
|
+
*/
|
|
1256
|
+
decompress(): FheUint128;
|
|
1257
|
+
/**
|
|
1258
|
+
* @returns {Uint8Array}
|
|
1259
|
+
*/
|
|
1260
|
+
serialize(): Uint8Array;
|
|
1261
|
+
/**
|
|
1262
|
+
* @param {Uint8Array} buffer
|
|
1263
|
+
* @returns {CompressedFheUint128}
|
|
1264
|
+
*/
|
|
1265
|
+
static deserialize(buffer: Uint8Array): CompressedFheUint128;
|
|
1266
|
+
/**
|
|
1267
|
+
* @param {bigint} serialized_size_limit
|
|
1268
|
+
* @returns {Uint8Array}
|
|
1269
|
+
*/
|
|
1270
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1271
|
+
/**
|
|
1272
|
+
* @param {Uint8Array} buffer
|
|
1273
|
+
* @param {bigint} serialized_size_limit
|
|
1274
|
+
* @returns {CompressedFheUint128}
|
|
1275
|
+
*/
|
|
1276
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint128;
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
*/
|
|
1280
|
+
export class CompressedFheUint16 {
|
|
1281
|
+
free(): void;
|
|
1282
|
+
/**
|
|
1283
|
+
* @param {number} value
|
|
1284
|
+
* @param {TfheClientKey} client_key
|
|
1285
|
+
* @returns {CompressedFheUint16}
|
|
1286
|
+
*/
|
|
1287
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheUint16;
|
|
1288
|
+
/**
|
|
1289
|
+
* @returns {FheUint16}
|
|
1290
|
+
*/
|
|
1291
|
+
decompress(): FheUint16;
|
|
1292
|
+
/**
|
|
1293
|
+
* @returns {Uint8Array}
|
|
1294
|
+
*/
|
|
1295
|
+
serialize(): Uint8Array;
|
|
1296
|
+
/**
|
|
1297
|
+
* @param {Uint8Array} buffer
|
|
1298
|
+
* @returns {CompressedFheUint16}
|
|
1299
|
+
*/
|
|
1300
|
+
static deserialize(buffer: Uint8Array): CompressedFheUint16;
|
|
1301
|
+
/**
|
|
1302
|
+
* @param {bigint} serialized_size_limit
|
|
1303
|
+
* @returns {Uint8Array}
|
|
1304
|
+
*/
|
|
1305
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1306
|
+
/**
|
|
1307
|
+
* @param {Uint8Array} buffer
|
|
1308
|
+
* @param {bigint} serialized_size_limit
|
|
1309
|
+
* @returns {CompressedFheUint16}
|
|
1310
|
+
*/
|
|
1311
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint16;
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
*/
|
|
1315
|
+
export class CompressedFheUint256 {
|
|
1316
|
+
free(): void;
|
|
1317
|
+
/**
|
|
1318
|
+
* @param {any} value
|
|
1319
|
+
* @param {TfheClientKey} client_key
|
|
1320
|
+
* @returns {CompressedFheUint256}
|
|
1321
|
+
*/
|
|
1322
|
+
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint256;
|
|
1323
|
+
/**
|
|
1324
|
+
* @returns {FheUint256}
|
|
1325
|
+
*/
|
|
1326
|
+
decompress(): FheUint256;
|
|
1327
|
+
/**
|
|
1328
|
+
* @returns {Uint8Array}
|
|
1329
|
+
*/
|
|
1330
|
+
serialize(): Uint8Array;
|
|
1331
|
+
/**
|
|
1332
|
+
* @param {Uint8Array} buffer
|
|
1333
|
+
* @returns {CompressedFheUint256}
|
|
1334
|
+
*/
|
|
1335
|
+
static deserialize(buffer: Uint8Array): CompressedFheUint256;
|
|
1336
|
+
/**
|
|
1337
|
+
* @param {bigint} serialized_size_limit
|
|
1338
|
+
* @returns {Uint8Array}
|
|
1339
|
+
*/
|
|
1340
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1341
|
+
/**
|
|
1342
|
+
* @param {Uint8Array} buffer
|
|
1343
|
+
* @param {bigint} serialized_size_limit
|
|
1344
|
+
* @returns {CompressedFheUint256}
|
|
1345
|
+
*/
|
|
1346
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint256;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
*/
|
|
1350
|
+
export class CompressedFheUint32 {
|
|
1351
|
+
free(): void;
|
|
1352
|
+
/**
|
|
1353
|
+
* @param {number} value
|
|
1354
|
+
* @param {TfheClientKey} client_key
|
|
1355
|
+
* @returns {CompressedFheUint32}
|
|
1356
|
+
*/
|
|
1357
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheUint32;
|
|
1358
|
+
/**
|
|
1359
|
+
* @returns {FheUint32}
|
|
1360
|
+
*/
|
|
1361
|
+
decompress(): FheUint32;
|
|
1362
|
+
/**
|
|
1363
|
+
* @returns {Uint8Array}
|
|
1364
|
+
*/
|
|
1365
|
+
serialize(): Uint8Array;
|
|
1366
|
+
/**
|
|
1367
|
+
* @param {Uint8Array} buffer
|
|
1368
|
+
* @returns {CompressedFheUint32}
|
|
1369
|
+
*/
|
|
1370
|
+
static deserialize(buffer: Uint8Array): CompressedFheUint32;
|
|
1371
|
+
/**
|
|
1372
|
+
* @param {bigint} serialized_size_limit
|
|
1373
|
+
* @returns {Uint8Array}
|
|
1374
|
+
*/
|
|
1375
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1376
|
+
/**
|
|
1377
|
+
* @param {Uint8Array} buffer
|
|
1378
|
+
* @param {bigint} serialized_size_limit
|
|
1379
|
+
* @returns {CompressedFheUint32}
|
|
1380
|
+
*/
|
|
1381
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint32;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
*/
|
|
1385
|
+
export class CompressedFheUint64 {
|
|
1386
|
+
free(): void;
|
|
1387
|
+
/**
|
|
1388
|
+
* @param {bigint} value
|
|
1389
|
+
* @param {TfheClientKey} client_key
|
|
1390
|
+
* @returns {CompressedFheUint64}
|
|
1391
|
+
*/
|
|
1392
|
+
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): CompressedFheUint64;
|
|
1393
|
+
/**
|
|
1394
|
+
* @returns {FheUint64}
|
|
1395
|
+
*/
|
|
1396
|
+
decompress(): FheUint64;
|
|
1397
|
+
/**
|
|
1398
|
+
* @returns {Uint8Array}
|
|
1399
|
+
*/
|
|
1400
|
+
serialize(): Uint8Array;
|
|
1401
|
+
/**
|
|
1402
|
+
* @param {Uint8Array} buffer
|
|
1403
|
+
* @returns {CompressedFheUint64}
|
|
1404
|
+
*/
|
|
1405
|
+
static deserialize(buffer: Uint8Array): CompressedFheUint64;
|
|
1406
|
+
/**
|
|
1407
|
+
* @param {bigint} serialized_size_limit
|
|
1408
|
+
* @returns {Uint8Array}
|
|
1409
|
+
*/
|
|
1410
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1411
|
+
/**
|
|
1412
|
+
* @param {Uint8Array} buffer
|
|
1413
|
+
* @param {bigint} serialized_size_limit
|
|
1414
|
+
* @returns {CompressedFheUint64}
|
|
1415
|
+
*/
|
|
1416
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint64;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
*/
|
|
1420
|
+
export class CompressedFheUint8 {
|
|
1421
|
+
free(): void;
|
|
1422
|
+
/**
|
|
1423
|
+
* @param {number} value
|
|
1424
|
+
* @param {TfheClientKey} client_key
|
|
1425
|
+
* @returns {CompressedFheUint8}
|
|
1426
|
+
*/
|
|
1427
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheUint8;
|
|
1428
|
+
/**
|
|
1429
|
+
* @returns {FheUint8}
|
|
1430
|
+
*/
|
|
1431
|
+
decompress(): FheUint8;
|
|
1432
|
+
/**
|
|
1433
|
+
* @returns {Uint8Array}
|
|
1434
|
+
*/
|
|
1435
|
+
serialize(): Uint8Array;
|
|
1436
|
+
/**
|
|
1437
|
+
* @param {Uint8Array} buffer
|
|
1438
|
+
* @returns {CompressedFheUint8}
|
|
1439
|
+
*/
|
|
1440
|
+
static deserialize(buffer: Uint8Array): CompressedFheUint8;
|
|
1441
|
+
/**
|
|
1442
|
+
* @param {bigint} serialized_size_limit
|
|
1443
|
+
* @returns {Uint8Array}
|
|
1444
|
+
*/
|
|
1445
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1446
|
+
/**
|
|
1447
|
+
* @param {Uint8Array} buffer
|
|
1448
|
+
* @param {bigint} serialized_size_limit
|
|
1449
|
+
* @returns {CompressedFheUint8}
|
|
1450
|
+
*/
|
|
1451
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint8;
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
*/
|
|
1455
|
+
export class FheInt128 {
|
|
1456
|
+
free(): void;
|
|
1457
|
+
/**
|
|
1458
|
+
* @param {any} value
|
|
1459
|
+
* @param {TfheClientKey} client_key
|
|
1460
|
+
* @returns {FheInt128}
|
|
1461
|
+
*/
|
|
1462
|
+
static encrypt_with_client_key(value: any, client_key: TfheClientKey): FheInt128;
|
|
1463
|
+
/**
|
|
1464
|
+
* @param {any} value
|
|
1465
|
+
* @param {TfhePublicKey} public_key
|
|
1466
|
+
* @returns {FheInt128}
|
|
1467
|
+
*/
|
|
1468
|
+
static encrypt_with_public_key(value: any, public_key: TfhePublicKey): FheInt128;
|
|
1469
|
+
/**
|
|
1470
|
+
* @param {any} value
|
|
1471
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1472
|
+
* @returns {FheInt128}
|
|
1473
|
+
*/
|
|
1474
|
+
static encrypt_with_compressed_public_key(value: any, compressed_public_key: TfheCompressedPublicKey): FheInt128;
|
|
1475
|
+
/**
|
|
1476
|
+
* @param {any} value
|
|
1477
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1478
|
+
* @returns {FheInt128}
|
|
1479
|
+
*/
|
|
1480
|
+
static encrypt_with_compact_public_key(value: any, compact_public_key: TfheCompactPublicKey): FheInt128;
|
|
1481
|
+
/**
|
|
1482
|
+
* @param {TfheClientKey} client_key
|
|
1483
|
+
* @returns {any}
|
|
1484
|
+
*/
|
|
1485
|
+
decrypt(client_key: TfheClientKey): any;
|
|
1486
|
+
/**
|
|
1487
|
+
* @returns {Uint8Array}
|
|
1488
|
+
*/
|
|
1489
|
+
serialize(): Uint8Array;
|
|
1490
|
+
/**
|
|
1491
|
+
* @param {Uint8Array} buffer
|
|
1492
|
+
* @returns {FheInt128}
|
|
1493
|
+
*/
|
|
1494
|
+
static deserialize(buffer: Uint8Array): FheInt128;
|
|
1495
|
+
/**
|
|
1496
|
+
* @param {bigint} serialized_size_limit
|
|
1497
|
+
* @returns {Uint8Array}
|
|
1498
|
+
*/
|
|
1499
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1500
|
+
/**
|
|
1501
|
+
* @param {Uint8Array} buffer
|
|
1502
|
+
* @param {bigint} serialized_size_limit
|
|
1503
|
+
* @returns {FheInt128}
|
|
1504
|
+
*/
|
|
1505
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt128;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
*/
|
|
1509
|
+
export class FheInt16 {
|
|
1510
|
+
free(): void;
|
|
1511
|
+
/**
|
|
1512
|
+
* @param {number} value
|
|
1513
|
+
* @param {TfheClientKey} client_key
|
|
1514
|
+
* @returns {FheInt16}
|
|
1515
|
+
*/
|
|
1516
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): FheInt16;
|
|
1517
|
+
/**
|
|
1518
|
+
* @param {number} value
|
|
1519
|
+
* @param {TfhePublicKey} public_key
|
|
1520
|
+
* @returns {FheInt16}
|
|
1521
|
+
*/
|
|
1522
|
+
static encrypt_with_public_key(value: number, public_key: TfhePublicKey): FheInt16;
|
|
1523
|
+
/**
|
|
1524
|
+
* @param {number} value
|
|
1525
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1526
|
+
* @returns {FheInt16}
|
|
1527
|
+
*/
|
|
1528
|
+
static encrypt_with_compressed_public_key(value: number, compressed_public_key: TfheCompressedPublicKey): FheInt16;
|
|
1529
|
+
/**
|
|
1530
|
+
* @param {number} value
|
|
1531
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1532
|
+
* @returns {FheInt16}
|
|
1533
|
+
*/
|
|
1534
|
+
static encrypt_with_compact_public_key(value: number, compact_public_key: TfheCompactPublicKey): FheInt16;
|
|
1535
|
+
/**
|
|
1536
|
+
* @param {TfheClientKey} client_key
|
|
1537
|
+
* @returns {number}
|
|
1538
|
+
*/
|
|
1539
|
+
decrypt(client_key: TfheClientKey): number;
|
|
1540
|
+
/**
|
|
1541
|
+
* @returns {Uint8Array}
|
|
1542
|
+
*/
|
|
1543
|
+
serialize(): Uint8Array;
|
|
1544
|
+
/**
|
|
1545
|
+
* @param {Uint8Array} buffer
|
|
1546
|
+
* @returns {FheInt16}
|
|
1547
|
+
*/
|
|
1548
|
+
static deserialize(buffer: Uint8Array): FheInt16;
|
|
1549
|
+
/**
|
|
1550
|
+
* @param {bigint} serialized_size_limit
|
|
1551
|
+
* @returns {Uint8Array}
|
|
1552
|
+
*/
|
|
1553
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1554
|
+
/**
|
|
1555
|
+
* @param {Uint8Array} buffer
|
|
1556
|
+
* @param {bigint} serialized_size_limit
|
|
1557
|
+
* @returns {FheInt16}
|
|
1558
|
+
*/
|
|
1559
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt16;
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
*/
|
|
1563
|
+
export class FheInt256 {
|
|
1564
|
+
free(): void;
|
|
1565
|
+
/**
|
|
1566
|
+
* @param {any} value
|
|
1567
|
+
* @param {TfheClientKey} client_key
|
|
1568
|
+
* @returns {FheInt256}
|
|
1569
|
+
*/
|
|
1570
|
+
static encrypt_with_client_key(value: any, client_key: TfheClientKey): FheInt256;
|
|
1571
|
+
/**
|
|
1572
|
+
* @param {any} value
|
|
1573
|
+
* @param {TfhePublicKey} public_key
|
|
1574
|
+
* @returns {FheInt256}
|
|
1575
|
+
*/
|
|
1576
|
+
static encrypt_with_public_key(value: any, public_key: TfhePublicKey): FheInt256;
|
|
1577
|
+
/**
|
|
1578
|
+
* @param {any} value
|
|
1579
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1580
|
+
* @returns {FheInt256}
|
|
1581
|
+
*/
|
|
1582
|
+
static encrypt_with_compressed_public_key(value: any, compressed_public_key: TfheCompressedPublicKey): FheInt256;
|
|
1583
|
+
/**
|
|
1584
|
+
* @param {any} value
|
|
1585
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1586
|
+
* @returns {FheInt256}
|
|
1587
|
+
*/
|
|
1588
|
+
static encrypt_with_compact_public_key(value: any, compact_public_key: TfheCompactPublicKey): FheInt256;
|
|
1589
|
+
/**
|
|
1590
|
+
* @param {TfheClientKey} client_key
|
|
1591
|
+
* @returns {any}
|
|
1592
|
+
*/
|
|
1593
|
+
decrypt(client_key: TfheClientKey): any;
|
|
1594
|
+
/**
|
|
1595
|
+
* @returns {Uint8Array}
|
|
1596
|
+
*/
|
|
1597
|
+
serialize(): Uint8Array;
|
|
1598
|
+
/**
|
|
1599
|
+
* @param {Uint8Array} buffer
|
|
1600
|
+
* @returns {FheInt256}
|
|
1601
|
+
*/
|
|
1602
|
+
static deserialize(buffer: Uint8Array): FheInt256;
|
|
1603
|
+
/**
|
|
1604
|
+
* @param {bigint} serialized_size_limit
|
|
1605
|
+
* @returns {Uint8Array}
|
|
1606
|
+
*/
|
|
1607
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1608
|
+
/**
|
|
1609
|
+
* @param {Uint8Array} buffer
|
|
1610
|
+
* @param {bigint} serialized_size_limit
|
|
1611
|
+
* @returns {FheInt256}
|
|
1612
|
+
*/
|
|
1613
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt256;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
*/
|
|
1617
|
+
export class FheInt32 {
|
|
1618
|
+
free(): void;
|
|
1619
|
+
/**
|
|
1620
|
+
* @param {number} value
|
|
1621
|
+
* @param {TfheClientKey} client_key
|
|
1622
|
+
* @returns {FheInt32}
|
|
1623
|
+
*/
|
|
1624
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): FheInt32;
|
|
1625
|
+
/**
|
|
1626
|
+
* @param {number} value
|
|
1627
|
+
* @param {TfhePublicKey} public_key
|
|
1628
|
+
* @returns {FheInt32}
|
|
1629
|
+
*/
|
|
1630
|
+
static encrypt_with_public_key(value: number, public_key: TfhePublicKey): FheInt32;
|
|
1631
|
+
/**
|
|
1632
|
+
* @param {number} value
|
|
1633
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1634
|
+
* @returns {FheInt32}
|
|
1635
|
+
*/
|
|
1636
|
+
static encrypt_with_compressed_public_key(value: number, compressed_public_key: TfheCompressedPublicKey): FheInt32;
|
|
1637
|
+
/**
|
|
1638
|
+
* @param {number} value
|
|
1639
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1640
|
+
* @returns {FheInt32}
|
|
1641
|
+
*/
|
|
1642
|
+
static encrypt_with_compact_public_key(value: number, compact_public_key: TfheCompactPublicKey): FheInt32;
|
|
1643
|
+
/**
|
|
1644
|
+
* @param {TfheClientKey} client_key
|
|
1645
|
+
* @returns {number}
|
|
1646
|
+
*/
|
|
1647
|
+
decrypt(client_key: TfheClientKey): number;
|
|
1648
|
+
/**
|
|
1649
|
+
* @returns {Uint8Array}
|
|
1650
|
+
*/
|
|
1651
|
+
serialize(): Uint8Array;
|
|
638
1652
|
/**
|
|
639
|
-
* @
|
|
1653
|
+
* @param {Uint8Array} buffer
|
|
1654
|
+
* @returns {FheInt32}
|
|
640
1655
|
*/
|
|
641
|
-
|
|
1656
|
+
static deserialize(buffer: Uint8Array): FheInt32;
|
|
642
1657
|
/**
|
|
1658
|
+
* @param {bigint} serialized_size_limit
|
|
643
1659
|
* @returns {Uint8Array}
|
|
644
1660
|
*/
|
|
645
|
-
|
|
1661
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
646
1662
|
/**
|
|
647
1663
|
* @param {Uint8Array} buffer
|
|
648
|
-
* @
|
|
1664
|
+
* @param {bigint} serialized_size_limit
|
|
1665
|
+
* @returns {FheInt32}
|
|
649
1666
|
*/
|
|
650
|
-
static
|
|
1667
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt32;
|
|
651
1668
|
}
|
|
652
1669
|
/**
|
|
653
1670
|
*/
|
|
654
|
-
export class
|
|
1671
|
+
export class FheInt64 {
|
|
655
1672
|
free(): void;
|
|
656
1673
|
/**
|
|
657
|
-
* @param {
|
|
1674
|
+
* @param {bigint} value
|
|
658
1675
|
* @param {TfheClientKey} client_key
|
|
659
|
-
* @returns {
|
|
1676
|
+
* @returns {FheInt64}
|
|
660
1677
|
*/
|
|
661
|
-
static encrypt_with_client_key(value:
|
|
1678
|
+
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): FheInt64;
|
|
662
1679
|
/**
|
|
663
|
-
* @
|
|
1680
|
+
* @param {bigint} value
|
|
1681
|
+
* @param {TfhePublicKey} public_key
|
|
1682
|
+
* @returns {FheInt64}
|
|
664
1683
|
*/
|
|
665
|
-
|
|
1684
|
+
static encrypt_with_public_key(value: bigint, public_key: TfhePublicKey): FheInt64;
|
|
666
1685
|
/**
|
|
667
|
-
* @
|
|
1686
|
+
* @param {bigint} value
|
|
1687
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1688
|
+
* @returns {FheInt64}
|
|
668
1689
|
*/
|
|
669
|
-
|
|
1690
|
+
static encrypt_with_compressed_public_key(value: bigint, compressed_public_key: TfheCompressedPublicKey): FheInt64;
|
|
670
1691
|
/**
|
|
671
|
-
* @param {
|
|
672
|
-
* @
|
|
1692
|
+
* @param {bigint} value
|
|
1693
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1694
|
+
* @returns {FheInt64}
|
|
673
1695
|
*/
|
|
674
|
-
static
|
|
675
|
-
}
|
|
1696
|
+
static encrypt_with_compact_public_key(value: bigint, compact_public_key: TfheCompactPublicKey): FheInt64;
|
|
676
1697
|
/**
|
|
1698
|
+
* @param {TfheClientKey} client_key
|
|
1699
|
+
* @returns {bigint}
|
|
677
1700
|
*/
|
|
678
|
-
|
|
679
|
-
free(): void;
|
|
1701
|
+
decrypt(client_key: TfheClientKey): bigint;
|
|
680
1702
|
/**
|
|
681
|
-
* @
|
|
682
|
-
* @param {TfheClientKey} client_key
|
|
683
|
-
* @returns {CompressedFheUint32}
|
|
1703
|
+
* @returns {Uint8Array}
|
|
684
1704
|
*/
|
|
685
|
-
|
|
1705
|
+
serialize(): Uint8Array;
|
|
686
1706
|
/**
|
|
687
|
-
* @
|
|
1707
|
+
* @param {Uint8Array} buffer
|
|
1708
|
+
* @returns {FheInt64}
|
|
688
1709
|
*/
|
|
689
|
-
|
|
1710
|
+
static deserialize(buffer: Uint8Array): FheInt64;
|
|
690
1711
|
/**
|
|
1712
|
+
* @param {bigint} serialized_size_limit
|
|
691
1713
|
* @returns {Uint8Array}
|
|
692
1714
|
*/
|
|
693
|
-
|
|
1715
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
694
1716
|
/**
|
|
695
1717
|
* @param {Uint8Array} buffer
|
|
696
|
-
* @
|
|
1718
|
+
* @param {bigint} serialized_size_limit
|
|
1719
|
+
* @returns {FheInt64}
|
|
697
1720
|
*/
|
|
698
|
-
static
|
|
1721
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt64;
|
|
699
1722
|
}
|
|
700
1723
|
/**
|
|
701
1724
|
*/
|
|
702
|
-
export class
|
|
1725
|
+
export class FheInt8 {
|
|
703
1726
|
free(): void;
|
|
704
1727
|
/**
|
|
705
|
-
* @param {
|
|
1728
|
+
* @param {number} value
|
|
706
1729
|
* @param {TfheClientKey} client_key
|
|
707
|
-
* @returns {
|
|
1730
|
+
* @returns {FheInt8}
|
|
708
1731
|
*/
|
|
709
|
-
static encrypt_with_client_key(value:
|
|
1732
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): FheInt8;
|
|
710
1733
|
/**
|
|
711
|
-
* @
|
|
1734
|
+
* @param {number} value
|
|
1735
|
+
* @param {TfhePublicKey} public_key
|
|
1736
|
+
* @returns {FheInt8}
|
|
712
1737
|
*/
|
|
713
|
-
|
|
1738
|
+
static encrypt_with_public_key(value: number, public_key: TfhePublicKey): FheInt8;
|
|
714
1739
|
/**
|
|
715
|
-
* @
|
|
1740
|
+
* @param {number} value
|
|
1741
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1742
|
+
* @returns {FheInt8}
|
|
716
1743
|
*/
|
|
717
|
-
|
|
1744
|
+
static encrypt_with_compressed_public_key(value: number, compressed_public_key: TfheCompressedPublicKey): FheInt8;
|
|
718
1745
|
/**
|
|
719
|
-
* @param {
|
|
720
|
-
* @
|
|
1746
|
+
* @param {number} value
|
|
1747
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1748
|
+
* @returns {FheInt8}
|
|
721
1749
|
*/
|
|
722
|
-
static
|
|
723
|
-
}
|
|
1750
|
+
static encrypt_with_compact_public_key(value: number, compact_public_key: TfheCompactPublicKey): FheInt8;
|
|
724
1751
|
/**
|
|
1752
|
+
* @param {TfheClientKey} client_key
|
|
1753
|
+
* @returns {number}
|
|
725
1754
|
*/
|
|
726
|
-
|
|
727
|
-
free(): void;
|
|
1755
|
+
decrypt(client_key: TfheClientKey): number;
|
|
728
1756
|
/**
|
|
729
|
-
* @
|
|
730
|
-
* @param {TfheClientKey} client_key
|
|
731
|
-
* @returns {CompressedFheUint8}
|
|
1757
|
+
* @returns {Uint8Array}
|
|
732
1758
|
*/
|
|
733
|
-
|
|
1759
|
+
serialize(): Uint8Array;
|
|
734
1760
|
/**
|
|
735
|
-
* @
|
|
1761
|
+
* @param {Uint8Array} buffer
|
|
1762
|
+
* @returns {FheInt8}
|
|
736
1763
|
*/
|
|
737
|
-
|
|
1764
|
+
static deserialize(buffer: Uint8Array): FheInt8;
|
|
738
1765
|
/**
|
|
1766
|
+
* @param {bigint} serialized_size_limit
|
|
739
1767
|
* @returns {Uint8Array}
|
|
740
1768
|
*/
|
|
741
|
-
|
|
1769
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
742
1770
|
/**
|
|
743
1771
|
* @param {Uint8Array} buffer
|
|
744
|
-
* @
|
|
1772
|
+
* @param {bigint} serialized_size_limit
|
|
1773
|
+
* @returns {FheInt8}
|
|
745
1774
|
*/
|
|
746
|
-
static
|
|
1775
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt8;
|
|
747
1776
|
}
|
|
748
1777
|
/**
|
|
749
1778
|
*/
|
|
@@ -787,6 +1816,17 @@ export class FheUint128 {
|
|
|
787
1816
|
* @returns {FheUint128}
|
|
788
1817
|
*/
|
|
789
1818
|
static deserialize(buffer: Uint8Array): FheUint128;
|
|
1819
|
+
/**
|
|
1820
|
+
* @param {bigint} serialized_size_limit
|
|
1821
|
+
* @returns {Uint8Array}
|
|
1822
|
+
*/
|
|
1823
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1824
|
+
/**
|
|
1825
|
+
* @param {Uint8Array} buffer
|
|
1826
|
+
* @param {bigint} serialized_size_limit
|
|
1827
|
+
* @returns {FheUint128}
|
|
1828
|
+
*/
|
|
1829
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheUint128;
|
|
790
1830
|
}
|
|
791
1831
|
/**
|
|
792
1832
|
*/
|
|
@@ -830,6 +1870,17 @@ export class FheUint16 {
|
|
|
830
1870
|
* @returns {FheUint16}
|
|
831
1871
|
*/
|
|
832
1872
|
static deserialize(buffer: Uint8Array): FheUint16;
|
|
1873
|
+
/**
|
|
1874
|
+
* @param {bigint} serialized_size_limit
|
|
1875
|
+
* @returns {Uint8Array}
|
|
1876
|
+
*/
|
|
1877
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1878
|
+
/**
|
|
1879
|
+
* @param {Uint8Array} buffer
|
|
1880
|
+
* @param {bigint} serialized_size_limit
|
|
1881
|
+
* @returns {FheUint16}
|
|
1882
|
+
*/
|
|
1883
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheUint16;
|
|
833
1884
|
}
|
|
834
1885
|
/**
|
|
835
1886
|
*/
|
|
@@ -873,6 +1924,17 @@ export class FheUint256 {
|
|
|
873
1924
|
* @returns {FheUint256}
|
|
874
1925
|
*/
|
|
875
1926
|
static deserialize(buffer: Uint8Array): FheUint256;
|
|
1927
|
+
/**
|
|
1928
|
+
* @param {bigint} serialized_size_limit
|
|
1929
|
+
* @returns {Uint8Array}
|
|
1930
|
+
*/
|
|
1931
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1932
|
+
/**
|
|
1933
|
+
* @param {Uint8Array} buffer
|
|
1934
|
+
* @param {bigint} serialized_size_limit
|
|
1935
|
+
* @returns {FheUint256}
|
|
1936
|
+
*/
|
|
1937
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheUint256;
|
|
876
1938
|
}
|
|
877
1939
|
/**
|
|
878
1940
|
*/
|
|
@@ -916,6 +1978,17 @@ export class FheUint32 {
|
|
|
916
1978
|
* @returns {FheUint32}
|
|
917
1979
|
*/
|
|
918
1980
|
static deserialize(buffer: Uint8Array): FheUint32;
|
|
1981
|
+
/**
|
|
1982
|
+
* @param {bigint} serialized_size_limit
|
|
1983
|
+
* @returns {Uint8Array}
|
|
1984
|
+
*/
|
|
1985
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1986
|
+
/**
|
|
1987
|
+
* @param {Uint8Array} buffer
|
|
1988
|
+
* @param {bigint} serialized_size_limit
|
|
1989
|
+
* @returns {FheUint32}
|
|
1990
|
+
*/
|
|
1991
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheUint32;
|
|
919
1992
|
}
|
|
920
1993
|
/**
|
|
921
1994
|
*/
|
|
@@ -959,6 +2032,17 @@ export class FheUint64 {
|
|
|
959
2032
|
* @returns {FheUint64}
|
|
960
2033
|
*/
|
|
961
2034
|
static deserialize(buffer: Uint8Array): FheUint64;
|
|
2035
|
+
/**
|
|
2036
|
+
* @param {bigint} serialized_size_limit
|
|
2037
|
+
* @returns {Uint8Array}
|
|
2038
|
+
*/
|
|
2039
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
2040
|
+
/**
|
|
2041
|
+
* @param {Uint8Array} buffer
|
|
2042
|
+
* @param {bigint} serialized_size_limit
|
|
2043
|
+
* @returns {FheUint64}
|
|
2044
|
+
*/
|
|
2045
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheUint64;
|
|
962
2046
|
}
|
|
963
2047
|
/**
|
|
964
2048
|
*/
|
|
@@ -1002,6 +2086,17 @@ export class FheUint8 {
|
|
|
1002
2086
|
* @returns {FheUint8}
|
|
1003
2087
|
*/
|
|
1004
2088
|
static deserialize(buffer: Uint8Array): FheUint8;
|
|
2089
|
+
/**
|
|
2090
|
+
* @param {bigint} serialized_size_limit
|
|
2091
|
+
* @returns {Uint8Array}
|
|
2092
|
+
*/
|
|
2093
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
2094
|
+
/**
|
|
2095
|
+
* @param {Uint8Array} buffer
|
|
2096
|
+
* @param {bigint} serialized_size_limit
|
|
2097
|
+
* @returns {FheUint8}
|
|
2098
|
+
*/
|
|
2099
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheUint8;
|
|
1005
2100
|
}
|
|
1006
2101
|
/**
|
|
1007
2102
|
*/
|
|
@@ -1367,7 +2462,36 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1367
2462
|
|
|
1368
2463
|
export interface InitOutput {
|
|
1369
2464
|
readonly memory: WebAssembly.Memory;
|
|
1370
|
-
readonly
|
|
2465
|
+
readonly __wbg_tfhe_free: (a: number) => void;
|
|
2466
|
+
readonly __wbg_booleanciphertext_free: (a: number) => void;
|
|
2467
|
+
readonly __wbg_booleancompressedciphertext_free: (a: number) => void;
|
|
2468
|
+
readonly __wbg_booleanclientkey_free: (a: number) => void;
|
|
2469
|
+
readonly __wbg_booleanpublickey_free: (a: number) => void;
|
|
2470
|
+
readonly __wbg_booleancompressedserverkey_free: (a: number) => void;
|
|
2471
|
+
readonly __wbg_booleanparameters_free: (a: number) => void;
|
|
2472
|
+
readonly boolean_get_parameters: (a: number, b: number) => void;
|
|
2473
|
+
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;
|
|
2474
|
+
readonly boolean_new_client_key_from_seed_and_parameters: (a: number, b: number, c: number) => number;
|
|
2475
|
+
readonly boolean_new_client_key: (a: number) => number;
|
|
2476
|
+
readonly boolean_new_public_key: (a: number) => number;
|
|
2477
|
+
readonly boolean_new_compressed_server_key: (a: number) => number;
|
|
2478
|
+
readonly boolean_encrypt: (a: number, b: number) => number;
|
|
2479
|
+
readonly boolean_encrypt_compressed: (a: number, b: number) => number;
|
|
2480
|
+
readonly boolean_decompress_ciphertext: (a: number) => number;
|
|
2481
|
+
readonly boolean_encrypt_with_public_key: (a: number, b: number) => number;
|
|
2482
|
+
readonly boolean_trivial_encrypt: (a: number, b: number) => number;
|
|
2483
|
+
readonly boolean_decrypt: (a: number, b: number) => number;
|
|
2484
|
+
readonly boolean_serialize_ciphertext: (a: number, b: number) => void;
|
|
2485
|
+
readonly boolean_deserialize_ciphertext: (a: number, b: number, c: number) => void;
|
|
2486
|
+
readonly boolean_serialize_compressed_ciphertext: (a: number, b: number) => void;
|
|
2487
|
+
readonly boolean_deserialize_compressed_ciphertext: (a: number, b: number, c: number) => void;
|
|
2488
|
+
readonly boolean_serialize_client_key: (a: number, b: number) => void;
|
|
2489
|
+
readonly boolean_deserialize_client_key: (a: number, b: number, c: number) => void;
|
|
2490
|
+
readonly boolean_serialize_public_key: (a: number, b: number) => void;
|
|
2491
|
+
readonly boolean_deserialize_public_key: (a: number, b: number, c: number) => void;
|
|
2492
|
+
readonly boolean_serialize_compressed_server_key: (a: number, b: number) => void;
|
|
2493
|
+
readonly boolean_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
|
|
2494
|
+
readonly __wbg_boolean_free: (a: number) => void;
|
|
1371
2495
|
readonly fheuint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1372
2496
|
readonly fheuint128_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
1373
2497
|
readonly fheuint128_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
@@ -1375,16 +2499,19 @@ export interface InitOutput {
|
|
|
1375
2499
|
readonly fheuint128_decrypt: (a: number, b: number, c: number) => void;
|
|
1376
2500
|
readonly fheuint128_serialize: (a: number, b: number) => void;
|
|
1377
2501
|
readonly fheuint128_deserialize: (a: number, b: number, c: number) => void;
|
|
1378
|
-
readonly
|
|
2502
|
+
readonly fheuint128_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2503
|
+
readonly fheuint128_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1379
2504
|
readonly compressedfheuint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1380
|
-
readonly compressedfheuint128_decompress: (a: number, b: number) => void;
|
|
1381
2505
|
readonly compressedfheuint128_serialize: (a: number, b: number) => void;
|
|
1382
2506
|
readonly compressedfheuint128_deserialize: (a: number, b: number, c: number) => void;
|
|
1383
|
-
readonly
|
|
2507
|
+
readonly compressedfheuint128_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2508
|
+
readonly compressedfheuint128_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1384
2509
|
readonly compactfheuint128_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1385
2510
|
readonly compactfheuint128_expand: (a: number, b: number) => void;
|
|
1386
2511
|
readonly compactfheuint128_serialize: (a: number, b: number) => void;
|
|
1387
2512
|
readonly compactfheuint128_deserialize: (a: number, b: number, c: number) => void;
|
|
2513
|
+
readonly compactfheuint128_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2514
|
+
readonly compactfheuint128_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1388
2515
|
readonly compactfheuint128list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1389
2516
|
readonly compactfheuint128list_expand: (a: number, b: number) => void;
|
|
1390
2517
|
readonly compactfheuint128list_serialize: (a: number, b: number) => void;
|
|
@@ -1396,17 +2523,75 @@ export interface InitOutput {
|
|
|
1396
2523
|
readonly fheuint256_decrypt: (a: number, b: number, c: number) => void;
|
|
1397
2524
|
readonly fheuint256_serialize: (a: number, b: number) => void;
|
|
1398
2525
|
readonly fheuint256_deserialize: (a: number, b: number, c: number) => void;
|
|
2526
|
+
readonly fheuint256_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2527
|
+
readonly fheuint256_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1399
2528
|
readonly compressedfheuint256_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1400
2529
|
readonly compressedfheuint256_serialize: (a: number, b: number) => void;
|
|
1401
2530
|
readonly compressedfheuint256_deserialize: (a: number, b: number, c: number) => void;
|
|
2531
|
+
readonly compressedfheuint256_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2532
|
+
readonly compressedfheuint256_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1402
2533
|
readonly compactfheuint256_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1403
2534
|
readonly compactfheuint256_expand: (a: number, b: number) => void;
|
|
1404
2535
|
readonly compactfheuint256_serialize: (a: number, b: number) => void;
|
|
1405
2536
|
readonly compactfheuint256_deserialize: (a: number, b: number, c: number) => void;
|
|
2537
|
+
readonly compactfheuint256_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2538
|
+
readonly compactfheuint256_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1406
2539
|
readonly compactfheuint256list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1407
2540
|
readonly compactfheuint256list_expand: (a: number, b: number) => void;
|
|
1408
2541
|
readonly compactfheuint256list_serialize: (a: number, b: number) => void;
|
|
1409
2542
|
readonly compactfheuint256list_deserialize: (a: number, b: number, c: number) => void;
|
|
2543
|
+
readonly __wbg_fheint128_free: (a: number) => void;
|
|
2544
|
+
readonly fheint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2545
|
+
readonly fheint128_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
2546
|
+
readonly fheint128_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
2547
|
+
readonly fheint128_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2548
|
+
readonly fheint128_decrypt: (a: number, b: number, c: number) => void;
|
|
2549
|
+
readonly fheint128_serialize: (a: number, b: number) => void;
|
|
2550
|
+
readonly fheint128_deserialize: (a: number, b: number, c: number) => void;
|
|
2551
|
+
readonly fheint128_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2552
|
+
readonly fheint128_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2553
|
+
readonly __wbg_compressedfheint128_free: (a: number) => void;
|
|
2554
|
+
readonly compressedfheint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2555
|
+
readonly compressedfheint128_decompress: (a: number, b: number) => void;
|
|
2556
|
+
readonly compressedfheint128_serialize: (a: number, b: number) => void;
|
|
2557
|
+
readonly compressedfheint128_deserialize: (a: number, b: number, c: number) => void;
|
|
2558
|
+
readonly compressedfheint128_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2559
|
+
readonly compressedfheint128_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2560
|
+
readonly __wbg_compactfheint128_free: (a: number) => void;
|
|
2561
|
+
readonly compactfheint128_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2562
|
+
readonly compactfheint128_expand: (a: number, b: number) => void;
|
|
2563
|
+
readonly compactfheint128_serialize: (a: number, b: number) => void;
|
|
2564
|
+
readonly compactfheint128_deserialize: (a: number, b: number, c: number) => void;
|
|
2565
|
+
readonly compactfheint128_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2566
|
+
readonly compactfheint128_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2567
|
+
readonly compactfheint128list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
2568
|
+
readonly compactfheint128list_expand: (a: number, b: number) => void;
|
|
2569
|
+
readonly compactfheint128list_serialize: (a: number, b: number) => void;
|
|
2570
|
+
readonly compactfheint128list_deserialize: (a: number, b: number, c: number) => void;
|
|
2571
|
+
readonly fheint256_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2572
|
+
readonly fheint256_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
2573
|
+
readonly fheint256_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
2574
|
+
readonly fheint256_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2575
|
+
readonly fheint256_decrypt: (a: number, b: number, c: number) => void;
|
|
2576
|
+
readonly fheint256_serialize: (a: number, b: number) => void;
|
|
2577
|
+
readonly fheint256_deserialize: (a: number, b: number, c: number) => void;
|
|
2578
|
+
readonly fheint256_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2579
|
+
readonly fheint256_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2580
|
+
readonly compressedfheint256_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2581
|
+
readonly compressedfheint256_serialize: (a: number, b: number) => void;
|
|
2582
|
+
readonly compressedfheint256_deserialize: (a: number, b: number, c: number) => void;
|
|
2583
|
+
readonly compressedfheint256_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2584
|
+
readonly compressedfheint256_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2585
|
+
readonly compactfheint256_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2586
|
+
readonly compactfheint256_expand: (a: number, b: number) => void;
|
|
2587
|
+
readonly compactfheint256_serialize: (a: number, b: number) => void;
|
|
2588
|
+
readonly compactfheint256_deserialize: (a: number, b: number, c: number) => void;
|
|
2589
|
+
readonly compactfheint256_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2590
|
+
readonly compactfheint256_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2591
|
+
readonly compactfheint256list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
2592
|
+
readonly compactfheint256list_expand: (a: number, b: number) => void;
|
|
2593
|
+
readonly compactfheint256list_serialize: (a: number, b: number) => void;
|
|
2594
|
+
readonly compactfheint256list_deserialize: (a: number, b: number, c: number) => void;
|
|
1410
2595
|
readonly fheuint8_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1411
2596
|
readonly fheuint8_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
1412
2597
|
readonly fheuint8_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
@@ -1414,13 +2599,19 @@ export interface InitOutput {
|
|
|
1414
2599
|
readonly fheuint8_decrypt: (a: number, b: number, c: number) => void;
|
|
1415
2600
|
readonly fheuint8_serialize: (a: number, b: number) => void;
|
|
1416
2601
|
readonly fheuint8_deserialize: (a: number, b: number, c: number) => void;
|
|
2602
|
+
readonly fheuint8_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2603
|
+
readonly fheuint8_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1417
2604
|
readonly compressedfheuint8_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1418
2605
|
readonly compressedfheuint8_serialize: (a: number, b: number) => void;
|
|
1419
2606
|
readonly compressedfheuint8_deserialize: (a: number, b: number, c: number) => void;
|
|
2607
|
+
readonly compressedfheuint8_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2608
|
+
readonly compressedfheuint8_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1420
2609
|
readonly compactfheuint8_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1421
2610
|
readonly compactfheuint8_expand: (a: number, b: number) => void;
|
|
1422
2611
|
readonly compactfheuint8_serialize: (a: number, b: number) => void;
|
|
1423
2612
|
readonly compactfheuint8_deserialize: (a: number, b: number, c: number) => void;
|
|
2613
|
+
readonly compactfheuint8_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2614
|
+
readonly compactfheuint8_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1424
2615
|
readonly compactfheuint8list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1425
2616
|
readonly compactfheuint8list_expand: (a: number, b: number) => void;
|
|
1426
2617
|
readonly compactfheuint8list_serialize: (a: number, b: number) => void;
|
|
@@ -1432,13 +2623,19 @@ export interface InitOutput {
|
|
|
1432
2623
|
readonly fheuint16_decrypt: (a: number, b: number, c: number) => void;
|
|
1433
2624
|
readonly fheuint16_serialize: (a: number, b: number) => void;
|
|
1434
2625
|
readonly fheuint16_deserialize: (a: number, b: number, c: number) => void;
|
|
2626
|
+
readonly fheuint16_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2627
|
+
readonly fheuint16_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1435
2628
|
readonly compressedfheuint16_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1436
2629
|
readonly compressedfheuint16_serialize: (a: number, b: number) => void;
|
|
1437
2630
|
readonly compressedfheuint16_deserialize: (a: number, b: number, c: number) => void;
|
|
2631
|
+
readonly compressedfheuint16_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2632
|
+
readonly compressedfheuint16_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1438
2633
|
readonly compactfheuint16_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1439
2634
|
readonly compactfheuint16_expand: (a: number, b: number) => void;
|
|
1440
2635
|
readonly compactfheuint16_serialize: (a: number, b: number) => void;
|
|
1441
2636
|
readonly compactfheuint16_deserialize: (a: number, b: number, c: number) => void;
|
|
2637
|
+
readonly compactfheuint16_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2638
|
+
readonly compactfheuint16_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1442
2639
|
readonly compactfheuint16list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1443
2640
|
readonly compactfheuint16list_expand: (a: number, b: number) => void;
|
|
1444
2641
|
readonly compactfheuint16list_serialize: (a: number, b: number) => void;
|
|
@@ -1450,13 +2647,19 @@ export interface InitOutput {
|
|
|
1450
2647
|
readonly fheuint32_decrypt: (a: number, b: number, c: number) => void;
|
|
1451
2648
|
readonly fheuint32_serialize: (a: number, b: number) => void;
|
|
1452
2649
|
readonly fheuint32_deserialize: (a: number, b: number, c: number) => void;
|
|
2650
|
+
readonly fheuint32_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2651
|
+
readonly fheuint32_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1453
2652
|
readonly compressedfheuint32_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1454
2653
|
readonly compressedfheuint32_serialize: (a: number, b: number) => void;
|
|
1455
2654
|
readonly compressedfheuint32_deserialize: (a: number, b: number, c: number) => void;
|
|
2655
|
+
readonly compressedfheuint32_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2656
|
+
readonly compressedfheuint32_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1456
2657
|
readonly compactfheuint32_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1457
2658
|
readonly compactfheuint32_expand: (a: number, b: number) => void;
|
|
1458
2659
|
readonly compactfheuint32_serialize: (a: number, b: number) => void;
|
|
1459
2660
|
readonly compactfheuint32_deserialize: (a: number, b: number, c: number) => void;
|
|
2661
|
+
readonly compactfheuint32_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2662
|
+
readonly compactfheuint32_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1460
2663
|
readonly compactfheuint32list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1461
2664
|
readonly compactfheuint32list_expand: (a: number, b: number) => void;
|
|
1462
2665
|
readonly compactfheuint32list_serialize: (a: number, b: number) => void;
|
|
@@ -1468,26 +2671,140 @@ export interface InitOutput {
|
|
|
1468
2671
|
readonly fheuint64_decrypt: (a: number, b: number, c: number) => void;
|
|
1469
2672
|
readonly fheuint64_serialize: (a: number, b: number) => void;
|
|
1470
2673
|
readonly fheuint64_deserialize: (a: number, b: number, c: number) => void;
|
|
2674
|
+
readonly fheuint64_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2675
|
+
readonly fheuint64_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1471
2676
|
readonly compressedfheuint64_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1472
2677
|
readonly compressedfheuint64_serialize: (a: number, b: number) => void;
|
|
1473
2678
|
readonly compressedfheuint64_deserialize: (a: number, b: number, c: number) => void;
|
|
2679
|
+
readonly compressedfheuint64_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2680
|
+
readonly compressedfheuint64_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1474
2681
|
readonly compactfheuint64_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1475
2682
|
readonly compactfheuint64_expand: (a: number, b: number) => void;
|
|
1476
2683
|
readonly compactfheuint64_serialize: (a: number, b: number) => void;
|
|
1477
2684
|
readonly compactfheuint64_deserialize: (a: number, b: number, c: number) => void;
|
|
2685
|
+
readonly compactfheuint64_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2686
|
+
readonly compactfheuint64_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
1478
2687
|
readonly compactfheuint64list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1479
2688
|
readonly compactfheuint64list_expand: (a: number, b: number) => void;
|
|
1480
2689
|
readonly compactfheuint64list_serialize: (a: number, b: number) => void;
|
|
1481
2690
|
readonly compactfheuint64list_deserialize: (a: number, b: number, c: number) => void;
|
|
2691
|
+
readonly fheint8_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2692
|
+
readonly fheint8_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
2693
|
+
readonly fheint8_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
2694
|
+
readonly fheint8_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2695
|
+
readonly fheint8_decrypt: (a: number, b: number, c: number) => void;
|
|
2696
|
+
readonly fheint8_serialize: (a: number, b: number) => void;
|
|
2697
|
+
readonly fheint8_deserialize: (a: number, b: number, c: number) => void;
|
|
2698
|
+
readonly fheint8_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2699
|
+
readonly fheint8_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2700
|
+
readonly compressedfheint8_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2701
|
+
readonly compressedfheint8_serialize: (a: number, b: number) => void;
|
|
2702
|
+
readonly compressedfheint8_deserialize: (a: number, b: number, c: number) => void;
|
|
2703
|
+
readonly compressedfheint8_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2704
|
+
readonly compressedfheint8_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2705
|
+
readonly compactfheint8_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2706
|
+
readonly compactfheint8_expand: (a: number, b: number) => void;
|
|
2707
|
+
readonly compactfheint8_serialize: (a: number, b: number) => void;
|
|
2708
|
+
readonly compactfheint8_deserialize: (a: number, b: number, c: number) => void;
|
|
2709
|
+
readonly compactfheint8_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2710
|
+
readonly compactfheint8_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2711
|
+
readonly compactfheint8list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
2712
|
+
readonly compactfheint8list_expand: (a: number, b: number) => void;
|
|
2713
|
+
readonly compactfheint8list_serialize: (a: number, b: number) => void;
|
|
2714
|
+
readonly compactfheint8list_deserialize: (a: number, b: number, c: number) => void;
|
|
2715
|
+
readonly fheint16_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2716
|
+
readonly fheint16_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
2717
|
+
readonly fheint16_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
2718
|
+
readonly fheint16_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2719
|
+
readonly fheint16_decrypt: (a: number, b: number, c: number) => void;
|
|
2720
|
+
readonly fheint16_serialize: (a: number, b: number) => void;
|
|
2721
|
+
readonly fheint16_deserialize: (a: number, b: number, c: number) => void;
|
|
2722
|
+
readonly fheint16_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2723
|
+
readonly fheint16_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2724
|
+
readonly compressedfheint16_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2725
|
+
readonly compressedfheint16_serialize: (a: number, b: number) => void;
|
|
2726
|
+
readonly compressedfheint16_deserialize: (a: number, b: number, c: number) => void;
|
|
2727
|
+
readonly compressedfheint16_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2728
|
+
readonly compressedfheint16_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2729
|
+
readonly compactfheint16_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2730
|
+
readonly compactfheint16_expand: (a: number, b: number) => void;
|
|
2731
|
+
readonly compactfheint16_serialize: (a: number, b: number) => void;
|
|
2732
|
+
readonly compactfheint16_deserialize: (a: number, b: number, c: number) => void;
|
|
2733
|
+
readonly compactfheint16_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2734
|
+
readonly compactfheint16_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2735
|
+
readonly compactfheint16list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
2736
|
+
readonly compactfheint16list_expand: (a: number, b: number) => void;
|
|
2737
|
+
readonly compactfheint16list_serialize: (a: number, b: number) => void;
|
|
2738
|
+
readonly compactfheint16list_deserialize: (a: number, b: number, c: number) => void;
|
|
2739
|
+
readonly fheint32_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2740
|
+
readonly fheint32_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
2741
|
+
readonly fheint32_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
2742
|
+
readonly fheint32_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2743
|
+
readonly fheint32_decrypt: (a: number, b: number, c: number) => void;
|
|
2744
|
+
readonly fheint32_serialize: (a: number, b: number) => void;
|
|
2745
|
+
readonly fheint32_deserialize: (a: number, b: number, c: number) => void;
|
|
2746
|
+
readonly fheint32_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2747
|
+
readonly fheint32_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2748
|
+
readonly compressedfheint32_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2749
|
+
readonly compressedfheint32_serialize: (a: number, b: number) => void;
|
|
2750
|
+
readonly compressedfheint32_deserialize: (a: number, b: number, c: number) => void;
|
|
2751
|
+
readonly compressedfheint32_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2752
|
+
readonly compressedfheint32_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2753
|
+
readonly compactfheint32_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2754
|
+
readonly compactfheint32_expand: (a: number, b: number) => void;
|
|
2755
|
+
readonly compactfheint32_serialize: (a: number, b: number) => void;
|
|
2756
|
+
readonly compactfheint32_deserialize: (a: number, b: number, c: number) => void;
|
|
2757
|
+
readonly compactfheint32_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2758
|
+
readonly compactfheint32_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2759
|
+
readonly compactfheint32list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
2760
|
+
readonly compactfheint32list_expand: (a: number, b: number) => void;
|
|
2761
|
+
readonly compactfheint32list_serialize: (a: number, b: number) => void;
|
|
2762
|
+
readonly compactfheint32list_deserialize: (a: number, b: number, c: number) => void;
|
|
2763
|
+
readonly fheint64_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2764
|
+
readonly fheint64_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
2765
|
+
readonly fheint64_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
2766
|
+
readonly fheint64_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2767
|
+
readonly fheint64_decrypt: (a: number, b: number, c: number) => void;
|
|
2768
|
+
readonly fheint64_serialize: (a: number, b: number) => void;
|
|
2769
|
+
readonly fheint64_deserialize: (a: number, b: number, c: number) => void;
|
|
2770
|
+
readonly fheint64_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2771
|
+
readonly fheint64_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2772
|
+
readonly compressedfheint64_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
2773
|
+
readonly compressedfheint64_serialize: (a: number, b: number) => void;
|
|
2774
|
+
readonly compressedfheint64_deserialize: (a: number, b: number, c: number) => void;
|
|
2775
|
+
readonly compressedfheint64_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2776
|
+
readonly compressedfheint64_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2777
|
+
readonly compactfheint64_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
2778
|
+
readonly compactfheint64_expand: (a: number, b: number) => void;
|
|
2779
|
+
readonly compactfheint64_serialize: (a: number, b: number) => void;
|
|
2780
|
+
readonly compactfheint64_deserialize: (a: number, b: number, c: number) => void;
|
|
2781
|
+
readonly compactfheint64_safe_serialize: (a: number, b: number, c: number) => void;
|
|
2782
|
+
readonly compactfheint64_safe_deserialize: (a: number, b: number, c: number, d: number) => void;
|
|
2783
|
+
readonly compactfheint64list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
2784
|
+
readonly compactfheint64list_expand: (a: number, b: number) => void;
|
|
2785
|
+
readonly compactfheint64list_serialize: (a: number, b: number) => void;
|
|
2786
|
+
readonly compactfheint64list_deserialize: (a: number, b: number, c: number) => void;
|
|
1482
2787
|
readonly __wbg_fheuint256_free: (a: number) => void;
|
|
2788
|
+
readonly __wbg_fheuint128_free: (a: number) => void;
|
|
2789
|
+
readonly __wbg_fheint256_free: (a: number) => void;
|
|
1483
2790
|
readonly __wbg_fheuint8_free: (a: number) => void;
|
|
1484
2791
|
readonly __wbg_fheuint16_free: (a: number) => void;
|
|
1485
2792
|
readonly __wbg_fheuint32_free: (a: number) => void;
|
|
1486
2793
|
readonly __wbg_fheuint64_free: (a: number) => void;
|
|
2794
|
+
readonly __wbg_fheint8_free: (a: number) => void;
|
|
2795
|
+
readonly __wbg_fheint16_free: (a: number) => void;
|
|
2796
|
+
readonly __wbg_fheint32_free: (a: number) => void;
|
|
2797
|
+
readonly __wbg_fheint64_free: (a: number) => void;
|
|
1487
2798
|
readonly __wbg_compactfheuint128list_free: (a: number) => void;
|
|
1488
2799
|
readonly __wbg_compressedfheuint256_free: (a: number) => void;
|
|
1489
2800
|
readonly __wbg_compactfheuint256_free: (a: number) => void;
|
|
1490
2801
|
readonly __wbg_compactfheuint256list_free: (a: number) => void;
|
|
2802
|
+
readonly __wbg_compressedfheuint128_free: (a: number) => void;
|
|
2803
|
+
readonly __wbg_compactfheuint128_free: (a: number) => void;
|
|
2804
|
+
readonly __wbg_compactfheint128list_free: (a: number) => void;
|
|
2805
|
+
readonly __wbg_compressedfheint256_free: (a: number) => void;
|
|
2806
|
+
readonly __wbg_compactfheint256_free: (a: number) => void;
|
|
2807
|
+
readonly __wbg_compactfheint256list_free: (a: number) => void;
|
|
1491
2808
|
readonly __wbg_compressedfheuint8_free: (a: number) => void;
|
|
1492
2809
|
readonly __wbg_compactfheuint8_free: (a: number) => void;
|
|
1493
2810
|
readonly __wbg_compactfheuint8list_free: (a: number) => void;
|
|
@@ -1500,46 +2817,29 @@ export interface InitOutput {
|
|
|
1500
2817
|
readonly __wbg_compressedfheuint64_free: (a: number) => void;
|
|
1501
2818
|
readonly __wbg_compactfheuint64_free: (a: number) => void;
|
|
1502
2819
|
readonly __wbg_compactfheuint64list_free: (a: number) => void;
|
|
2820
|
+
readonly __wbg_compressedfheint8_free: (a: number) => void;
|
|
2821
|
+
readonly __wbg_compactfheint8_free: (a: number) => void;
|
|
2822
|
+
readonly __wbg_compactfheint8list_free: (a: number) => void;
|
|
2823
|
+
readonly __wbg_compressedfheint16_free: (a: number) => void;
|
|
2824
|
+
readonly __wbg_compactfheint16_free: (a: number) => void;
|
|
2825
|
+
readonly __wbg_compactfheint16list_free: (a: number) => void;
|
|
2826
|
+
readonly __wbg_compressedfheint32_free: (a: number) => void;
|
|
2827
|
+
readonly __wbg_compactfheint32_free: (a: number) => void;
|
|
2828
|
+
readonly __wbg_compactfheint32list_free: (a: number) => void;
|
|
2829
|
+
readonly __wbg_compressedfheint64_free: (a: number) => void;
|
|
2830
|
+
readonly __wbg_compactfheint64_free: (a: number) => void;
|
|
2831
|
+
readonly __wbg_compactfheint64list_free: (a: number) => void;
|
|
1503
2832
|
readonly compressedfheuint256_decompress: (a: number, b: number) => void;
|
|
2833
|
+
readonly compressedfheuint128_decompress: (a: number, b: number) => void;
|
|
2834
|
+
readonly compressedfheint256_decompress: (a: number, b: number) => void;
|
|
1504
2835
|
readonly compressedfheuint8_decompress: (a: number, b: number) => void;
|
|
1505
2836
|
readonly compressedfheuint16_decompress: (a: number, b: number) => void;
|
|
1506
2837
|
readonly compressedfheuint32_decompress: (a: number, b: number) => void;
|
|
1507
2838
|
readonly compressedfheuint64_decompress: (a: number, b: number) => void;
|
|
1508
|
-
readonly
|
|
1509
|
-
readonly
|
|
1510
|
-
readonly
|
|
1511
|
-
readonly
|
|
1512
|
-
readonly tfheclientkey_serialize: (a: number, b: number) => void;
|
|
1513
|
-
readonly tfheclientkey_deserialize: (a: number, b: number, c: number) => void;
|
|
1514
|
-
readonly __wbg_tfhecompressedserverkey_free: (a: number) => void;
|
|
1515
|
-
readonly tfhecompressedserverkey_new: (a: number, b: number) => void;
|
|
1516
|
-
readonly tfhecompressedserverkey_serialize: (a: number, b: number) => void;
|
|
1517
|
-
readonly tfhecompressedserverkey_deserialize: (a: number, b: number, c: number) => void;
|
|
1518
|
-
readonly __wbg_tfhepublickey_free: (a: number) => void;
|
|
1519
|
-
readonly tfhepublickey_new: (a: number, b: number) => void;
|
|
1520
|
-
readonly tfhepublickey_serialize: (a: number, b: number) => void;
|
|
1521
|
-
readonly tfhepublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1522
|
-
readonly __wbg_tfhecompressedpublickey_free: (a: number) => void;
|
|
1523
|
-
readonly tfhecompressedpublickey_new: (a: number, b: number) => void;
|
|
1524
|
-
readonly tfhecompressedpublickey_decompress: (a: number, b: number) => void;
|
|
1525
|
-
readonly tfhecompressedpublickey_serialize: (a: number, b: number) => void;
|
|
1526
|
-
readonly tfhecompressedpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1527
|
-
readonly __wbg_tfhecompactpublickey_free: (a: number) => void;
|
|
1528
|
-
readonly tfhecompactpublickey_new: (a: number, b: number) => void;
|
|
1529
|
-
readonly tfhecompactpublickey_serialize: (a: number, b: number) => void;
|
|
1530
|
-
readonly tfhecompactpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1531
|
-
readonly __wbg_tfhecompressedcompactpublickey_free: (a: number) => void;
|
|
1532
|
-
readonly tfhecompressedcompactpublickey_new: (a: number, b: number) => void;
|
|
1533
|
-
readonly tfhecompressedcompactpublickey_serialize: (a: number, b: number) => void;
|
|
1534
|
-
readonly tfhecompressedcompactpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1535
|
-
readonly tfhecompressedcompactpublickey_decompress: (a: number, b: number) => void;
|
|
1536
|
-
readonly __wbg_tfheconfig_free: (a: number) => void;
|
|
1537
|
-
readonly tfheconfigbuilder_all_disabled: () => number;
|
|
1538
|
-
readonly tfheconfigbuilder_enable_default_integers: (a: number) => number;
|
|
1539
|
-
readonly tfheconfigbuilder_enable_default_integers_small: (a: number) => number;
|
|
1540
|
-
readonly tfheconfigbuilder_enable_custom_integers: (a: number, b: number) => number;
|
|
1541
|
-
readonly tfheconfigbuilder_build: (a: number) => number;
|
|
1542
|
-
readonly __wbg_tfheconfigbuilder_free: (a: number) => void;
|
|
2839
|
+
readonly compressedfheint8_decompress: (a: number, b: number) => void;
|
|
2840
|
+
readonly compressedfheint16_decompress: (a: number, b: number) => void;
|
|
2841
|
+
readonly compressedfheint32_decompress: (a: number, b: number) => void;
|
|
2842
|
+
readonly compressedfheint64_decompress: (a: number, b: number) => void;
|
|
1543
2843
|
readonly __wbg_shortintciphertext_free: (a: number) => void;
|
|
1544
2844
|
readonly __wbg_shortintcompressedciphertext_free: (a: number) => void;
|
|
1545
2845
|
readonly __wbg_shortintclientkey_free: (a: number) => void;
|
|
@@ -1574,37 +2874,42 @@ export interface InitOutput {
|
|
|
1574
2874
|
readonly shortint_deserialize_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
1575
2875
|
readonly shortint_serialize_compressed_server_key: (a: number, b: number) => void;
|
|
1576
2876
|
readonly shortint_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
|
|
2877
|
+
readonly __wbg_tfheconfig_free: (a: number) => void;
|
|
2878
|
+
readonly tfheconfigbuilder_all_disabled: () => number;
|
|
2879
|
+
readonly tfheconfigbuilder_enable_default_integers: (a: number) => number;
|
|
2880
|
+
readonly tfheconfigbuilder_enable_default_integers_small: (a: number) => number;
|
|
2881
|
+
readonly tfheconfigbuilder_enable_custom_integers: (a: number, b: number) => number;
|
|
2882
|
+
readonly tfheconfigbuilder_build: (a: number) => number;
|
|
1577
2883
|
readonly __wbg_shortint_free: (a: number) => void;
|
|
1578
|
-
readonly
|
|
1579
|
-
readonly
|
|
1580
|
-
readonly
|
|
1581
|
-
readonly
|
|
1582
|
-
readonly
|
|
1583
|
-
readonly
|
|
1584
|
-
readonly
|
|
1585
|
-
readonly
|
|
1586
|
-
readonly
|
|
1587
|
-
readonly
|
|
1588
|
-
readonly
|
|
1589
|
-
readonly
|
|
1590
|
-
readonly
|
|
1591
|
-
readonly
|
|
1592
|
-
readonly
|
|
1593
|
-
readonly
|
|
1594
|
-
readonly
|
|
1595
|
-
readonly
|
|
1596
|
-
readonly
|
|
1597
|
-
readonly
|
|
1598
|
-
readonly
|
|
1599
|
-
readonly
|
|
1600
|
-
readonly
|
|
1601
|
-
readonly
|
|
1602
|
-
readonly
|
|
1603
|
-
readonly
|
|
1604
|
-
readonly
|
|
1605
|
-
readonly
|
|
1606
|
-
readonly
|
|
1607
|
-
readonly __wbg_tfhe_free: (a: number) => void;
|
|
2884
|
+
readonly __wbg_tfheconfigbuilder_free: (a: number) => void;
|
|
2885
|
+
readonly init_panic_hook: () => void;
|
|
2886
|
+
readonly __wbg_tfheclientkey_free: (a: number) => void;
|
|
2887
|
+
readonly tfheclientkey_generate: (a: number, b: number) => void;
|
|
2888
|
+
readonly tfheclientkey_generate_with_seed: (a: number, b: number, c: number) => void;
|
|
2889
|
+
readonly tfheclientkey_serialize: (a: number, b: number) => void;
|
|
2890
|
+
readonly tfheclientkey_deserialize: (a: number, b: number, c: number) => void;
|
|
2891
|
+
readonly __wbg_tfhecompressedserverkey_free: (a: number) => void;
|
|
2892
|
+
readonly tfhecompressedserverkey_new: (a: number, b: number) => void;
|
|
2893
|
+
readonly tfhecompressedserverkey_serialize: (a: number, b: number) => void;
|
|
2894
|
+
readonly tfhecompressedserverkey_deserialize: (a: number, b: number, c: number) => void;
|
|
2895
|
+
readonly __wbg_tfhepublickey_free: (a: number) => void;
|
|
2896
|
+
readonly tfhepublickey_new: (a: number, b: number) => void;
|
|
2897
|
+
readonly tfhepublickey_serialize: (a: number, b: number) => void;
|
|
2898
|
+
readonly tfhepublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
2899
|
+
readonly __wbg_tfhecompressedpublickey_free: (a: number) => void;
|
|
2900
|
+
readonly tfhecompressedpublickey_new: (a: number, b: number) => void;
|
|
2901
|
+
readonly tfhecompressedpublickey_decompress: (a: number, b: number) => void;
|
|
2902
|
+
readonly tfhecompressedpublickey_serialize: (a: number, b: number) => void;
|
|
2903
|
+
readonly tfhecompressedpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
2904
|
+
readonly __wbg_tfhecompactpublickey_free: (a: number) => void;
|
|
2905
|
+
readonly tfhecompactpublickey_new: (a: number, b: number) => void;
|
|
2906
|
+
readonly tfhecompactpublickey_serialize: (a: number, b: number) => void;
|
|
2907
|
+
readonly tfhecompactpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
2908
|
+
readonly __wbg_tfhecompressedcompactpublickey_free: (a: number) => void;
|
|
2909
|
+
readonly tfhecompressedcompactpublickey_new: (a: number, b: number) => void;
|
|
2910
|
+
readonly tfhecompressedcompactpublickey_serialize: (a: number, b: number) => void;
|
|
2911
|
+
readonly tfhecompressedcompactpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
2912
|
+
readonly tfhecompressedcompactpublickey_decompress: (a: number, b: number) => void;
|
|
1608
2913
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1609
2914
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1610
2915
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|