tfhe 0.3.1 → 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 +3 -3
- package/package.json +1 -1
- package/tfhe.d.ts +1474 -178
- package/tfhe.js +5022 -450
- package/tfhe_bg.wasm +0 -0
package/tfhe.d.ts
CHANGED
|
@@ -324,38 +324,49 @@ export class BooleanPublicKey {
|
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
326
|
*/
|
|
327
|
-
export class
|
|
327
|
+
export class CompactFheInt128 {
|
|
328
328
|
free(): void;
|
|
329
329
|
/**
|
|
330
330
|
* @param {any} value
|
|
331
331
|
* @param {TfheCompactPublicKey} client_key
|
|
332
|
-
* @returns {
|
|
332
|
+
* @returns {CompactFheInt128}
|
|
333
333
|
*/
|
|
334
|
-
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey):
|
|
334
|
+
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey): CompactFheInt128;
|
|
335
335
|
/**
|
|
336
|
-
* @returns {
|
|
336
|
+
* @returns {FheInt128}
|
|
337
337
|
*/
|
|
338
|
-
expand():
|
|
338
|
+
expand(): FheInt128;
|
|
339
339
|
/**
|
|
340
340
|
* @returns {Uint8Array}
|
|
341
341
|
*/
|
|
342
342
|
serialize(): Uint8Array;
|
|
343
343
|
/**
|
|
344
344
|
* @param {Uint8Array} buffer
|
|
345
|
-
* @returns {
|
|
345
|
+
* @returns {CompactFheInt128}
|
|
346
346
|
*/
|
|
347
|
-
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;
|
|
348
359
|
}
|
|
349
360
|
/**
|
|
350
361
|
*/
|
|
351
|
-
export class
|
|
362
|
+
export class CompactFheInt128List {
|
|
352
363
|
free(): void;
|
|
353
364
|
/**
|
|
354
365
|
* @param {any[]} values
|
|
355
366
|
* @param {TfheCompactPublicKey} public_key
|
|
356
|
-
* @returns {
|
|
367
|
+
* @returns {CompactFheInt128List}
|
|
357
368
|
*/
|
|
358
|
-
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey):
|
|
369
|
+
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey): CompactFheInt128List;
|
|
359
370
|
/**
|
|
360
371
|
* @returns {any[]}
|
|
361
372
|
*/
|
|
@@ -366,44 +377,55 @@ export class CompactFheUint128List {
|
|
|
366
377
|
serialize(): Uint8Array;
|
|
367
378
|
/**
|
|
368
379
|
* @param {Uint8Array} buffer
|
|
369
|
-
* @returns {
|
|
380
|
+
* @returns {CompactFheInt128List}
|
|
370
381
|
*/
|
|
371
|
-
static deserialize(buffer: Uint8Array):
|
|
382
|
+
static deserialize(buffer: Uint8Array): CompactFheInt128List;
|
|
372
383
|
}
|
|
373
384
|
/**
|
|
374
385
|
*/
|
|
375
|
-
export class
|
|
386
|
+
export class CompactFheInt16 {
|
|
376
387
|
free(): void;
|
|
377
388
|
/**
|
|
378
389
|
* @param {number} value
|
|
379
390
|
* @param {TfheCompactPublicKey} client_key
|
|
380
|
-
* @returns {
|
|
391
|
+
* @returns {CompactFheInt16}
|
|
381
392
|
*/
|
|
382
|
-
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey):
|
|
393
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheInt16;
|
|
383
394
|
/**
|
|
384
|
-
* @returns {
|
|
395
|
+
* @returns {FheInt16}
|
|
385
396
|
*/
|
|
386
|
-
expand():
|
|
397
|
+
expand(): FheInt16;
|
|
387
398
|
/**
|
|
388
399
|
* @returns {Uint8Array}
|
|
389
400
|
*/
|
|
390
401
|
serialize(): Uint8Array;
|
|
391
402
|
/**
|
|
392
403
|
* @param {Uint8Array} buffer
|
|
393
|
-
* @returns {
|
|
404
|
+
* @returns {CompactFheInt16}
|
|
394
405
|
*/
|
|
395
|
-
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;
|
|
396
418
|
}
|
|
397
419
|
/**
|
|
398
420
|
*/
|
|
399
|
-
export class
|
|
421
|
+
export class CompactFheInt16List {
|
|
400
422
|
free(): void;
|
|
401
423
|
/**
|
|
402
|
-
* @param {
|
|
424
|
+
* @param {Int16Array} values
|
|
403
425
|
* @param {TfheCompactPublicKey} public_key
|
|
404
|
-
* @returns {
|
|
426
|
+
* @returns {CompactFheInt16List}
|
|
405
427
|
*/
|
|
406
|
-
static encrypt_with_compact_public_key(values:
|
|
428
|
+
static encrypt_with_compact_public_key(values: Int16Array, public_key: TfheCompactPublicKey): CompactFheInt16List;
|
|
407
429
|
/**
|
|
408
430
|
* @returns {any[]}
|
|
409
431
|
*/
|
|
@@ -414,44 +436,55 @@ export class CompactFheUint16List {
|
|
|
414
436
|
serialize(): Uint8Array;
|
|
415
437
|
/**
|
|
416
438
|
* @param {Uint8Array} buffer
|
|
417
|
-
* @returns {
|
|
439
|
+
* @returns {CompactFheInt16List}
|
|
418
440
|
*/
|
|
419
|
-
static deserialize(buffer: Uint8Array):
|
|
441
|
+
static deserialize(buffer: Uint8Array): CompactFheInt16List;
|
|
420
442
|
}
|
|
421
443
|
/**
|
|
422
444
|
*/
|
|
423
|
-
export class
|
|
445
|
+
export class CompactFheInt256 {
|
|
424
446
|
free(): void;
|
|
425
447
|
/**
|
|
426
448
|
* @param {any} value
|
|
427
449
|
* @param {TfheCompactPublicKey} client_key
|
|
428
|
-
* @returns {
|
|
450
|
+
* @returns {CompactFheInt256}
|
|
429
451
|
*/
|
|
430
|
-
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey):
|
|
452
|
+
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey): CompactFheInt256;
|
|
431
453
|
/**
|
|
432
|
-
* @returns {
|
|
454
|
+
* @returns {FheInt256}
|
|
433
455
|
*/
|
|
434
|
-
expand():
|
|
456
|
+
expand(): FheInt256;
|
|
435
457
|
/**
|
|
436
458
|
* @returns {Uint8Array}
|
|
437
459
|
*/
|
|
438
460
|
serialize(): Uint8Array;
|
|
439
461
|
/**
|
|
440
462
|
* @param {Uint8Array} buffer
|
|
441
|
-
* @returns {
|
|
463
|
+
* @returns {CompactFheInt256}
|
|
442
464
|
*/
|
|
443
|
-
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;
|
|
444
477
|
}
|
|
445
478
|
/**
|
|
446
479
|
*/
|
|
447
|
-
export class
|
|
480
|
+
export class CompactFheInt256List {
|
|
448
481
|
free(): void;
|
|
449
482
|
/**
|
|
450
483
|
* @param {any[]} values
|
|
451
484
|
* @param {TfheCompactPublicKey} public_key
|
|
452
|
-
* @returns {
|
|
485
|
+
* @returns {CompactFheInt256List}
|
|
453
486
|
*/
|
|
454
|
-
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey):
|
|
487
|
+
static encrypt_with_compact_public_key(values: any[], public_key: TfheCompactPublicKey): CompactFheInt256List;
|
|
455
488
|
/**
|
|
456
489
|
* @returns {any[]}
|
|
457
490
|
*/
|
|
@@ -462,44 +495,55 @@ export class CompactFheUint256List {
|
|
|
462
495
|
serialize(): Uint8Array;
|
|
463
496
|
/**
|
|
464
497
|
* @param {Uint8Array} buffer
|
|
465
|
-
* @returns {
|
|
498
|
+
* @returns {CompactFheInt256List}
|
|
466
499
|
*/
|
|
467
|
-
static deserialize(buffer: Uint8Array):
|
|
500
|
+
static deserialize(buffer: Uint8Array): CompactFheInt256List;
|
|
468
501
|
}
|
|
469
502
|
/**
|
|
470
503
|
*/
|
|
471
|
-
export class
|
|
504
|
+
export class CompactFheInt32 {
|
|
472
505
|
free(): void;
|
|
473
506
|
/**
|
|
474
507
|
* @param {number} value
|
|
475
508
|
* @param {TfheCompactPublicKey} client_key
|
|
476
|
-
* @returns {
|
|
509
|
+
* @returns {CompactFheInt32}
|
|
477
510
|
*/
|
|
478
|
-
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey):
|
|
511
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheInt32;
|
|
479
512
|
/**
|
|
480
|
-
* @returns {
|
|
513
|
+
* @returns {FheInt32}
|
|
481
514
|
*/
|
|
482
|
-
expand():
|
|
515
|
+
expand(): FheInt32;
|
|
483
516
|
/**
|
|
484
517
|
* @returns {Uint8Array}
|
|
485
518
|
*/
|
|
486
519
|
serialize(): Uint8Array;
|
|
487
520
|
/**
|
|
488
521
|
* @param {Uint8Array} buffer
|
|
489
|
-
* @returns {
|
|
522
|
+
* @returns {CompactFheInt32}
|
|
490
523
|
*/
|
|
491
|
-
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;
|
|
492
536
|
}
|
|
493
537
|
/**
|
|
494
538
|
*/
|
|
495
|
-
export class
|
|
539
|
+
export class CompactFheInt32List {
|
|
496
540
|
free(): void;
|
|
497
541
|
/**
|
|
498
|
-
* @param {
|
|
542
|
+
* @param {Int32Array} values
|
|
499
543
|
* @param {TfheCompactPublicKey} public_key
|
|
500
|
-
* @returns {
|
|
544
|
+
* @returns {CompactFheInt32List}
|
|
501
545
|
*/
|
|
502
|
-
static encrypt_with_compact_public_key(values:
|
|
546
|
+
static encrypt_with_compact_public_key(values: Int32Array, public_key: TfheCompactPublicKey): CompactFheInt32List;
|
|
503
547
|
/**
|
|
504
548
|
* @returns {any[]}
|
|
505
549
|
*/
|
|
@@ -510,44 +554,55 @@ export class CompactFheUint32List {
|
|
|
510
554
|
serialize(): Uint8Array;
|
|
511
555
|
/**
|
|
512
556
|
* @param {Uint8Array} buffer
|
|
513
|
-
* @returns {
|
|
557
|
+
* @returns {CompactFheInt32List}
|
|
514
558
|
*/
|
|
515
|
-
static deserialize(buffer: Uint8Array):
|
|
559
|
+
static deserialize(buffer: Uint8Array): CompactFheInt32List;
|
|
516
560
|
}
|
|
517
561
|
/**
|
|
518
562
|
*/
|
|
519
|
-
export class
|
|
563
|
+
export class CompactFheInt64 {
|
|
520
564
|
free(): void;
|
|
521
565
|
/**
|
|
522
566
|
* @param {bigint} value
|
|
523
567
|
* @param {TfheCompactPublicKey} client_key
|
|
524
|
-
* @returns {
|
|
568
|
+
* @returns {CompactFheInt64}
|
|
525
569
|
*/
|
|
526
|
-
static encrypt_with_compact_public_key(value: bigint, client_key: TfheCompactPublicKey):
|
|
570
|
+
static encrypt_with_compact_public_key(value: bigint, client_key: TfheCompactPublicKey): CompactFheInt64;
|
|
527
571
|
/**
|
|
528
|
-
* @returns {
|
|
572
|
+
* @returns {FheInt64}
|
|
529
573
|
*/
|
|
530
|
-
expand():
|
|
574
|
+
expand(): FheInt64;
|
|
531
575
|
/**
|
|
532
576
|
* @returns {Uint8Array}
|
|
533
577
|
*/
|
|
534
578
|
serialize(): Uint8Array;
|
|
535
579
|
/**
|
|
536
580
|
* @param {Uint8Array} buffer
|
|
537
|
-
* @returns {
|
|
581
|
+
* @returns {CompactFheInt64}
|
|
538
582
|
*/
|
|
539
|
-
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;
|
|
540
595
|
}
|
|
541
596
|
/**
|
|
542
597
|
*/
|
|
543
|
-
export class
|
|
598
|
+
export class CompactFheInt64List {
|
|
544
599
|
free(): void;
|
|
545
600
|
/**
|
|
546
|
-
* @param {
|
|
601
|
+
* @param {BigInt64Array} values
|
|
547
602
|
* @param {TfheCompactPublicKey} public_key
|
|
548
|
-
* @returns {
|
|
603
|
+
* @returns {CompactFheInt64List}
|
|
549
604
|
*/
|
|
550
|
-
static encrypt_with_compact_public_key(values:
|
|
605
|
+
static encrypt_with_compact_public_key(values: BigInt64Array, public_key: TfheCompactPublicKey): CompactFheInt64List;
|
|
551
606
|
/**
|
|
552
607
|
* @returns {any[]}
|
|
553
608
|
*/
|
|
@@ -558,201 +613,1166 @@ export class CompactFheUint64List {
|
|
|
558
613
|
serialize(): Uint8Array;
|
|
559
614
|
/**
|
|
560
615
|
* @param {Uint8Array} buffer
|
|
561
|
-
* @returns {
|
|
616
|
+
* @returns {CompactFheInt64List}
|
|
562
617
|
*/
|
|
563
|
-
static deserialize(buffer: Uint8Array):
|
|
618
|
+
static deserialize(buffer: Uint8Array): CompactFheInt64List;
|
|
564
619
|
}
|
|
565
620
|
/**
|
|
566
621
|
*/
|
|
567
|
-
export class
|
|
622
|
+
export class CompactFheInt8 {
|
|
568
623
|
free(): void;
|
|
569
624
|
/**
|
|
570
625
|
* @param {number} value
|
|
571
626
|
* @param {TfheCompactPublicKey} client_key
|
|
572
|
-
* @returns {
|
|
627
|
+
* @returns {CompactFheInt8}
|
|
573
628
|
*/
|
|
574
|
-
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey):
|
|
629
|
+
static encrypt_with_compact_public_key(value: number, client_key: TfheCompactPublicKey): CompactFheInt8;
|
|
575
630
|
/**
|
|
576
|
-
* @returns {
|
|
631
|
+
* @returns {FheInt8}
|
|
577
632
|
*/
|
|
578
|
-
expand():
|
|
633
|
+
expand(): FheInt8;
|
|
579
634
|
/**
|
|
580
635
|
* @returns {Uint8Array}
|
|
581
636
|
*/
|
|
582
637
|
serialize(): Uint8Array;
|
|
583
638
|
/**
|
|
584
639
|
* @param {Uint8Array} buffer
|
|
585
|
-
* @returns {
|
|
640
|
+
* @returns {CompactFheInt8}
|
|
586
641
|
*/
|
|
587
|
-
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;
|
|
588
654
|
}
|
|
589
655
|
/**
|
|
590
656
|
*/
|
|
591
|
-
export class
|
|
657
|
+
export class CompactFheInt8List {
|
|
592
658
|
free(): void;
|
|
593
659
|
/**
|
|
594
|
-
* @param {
|
|
660
|
+
* @param {Int8Array} values
|
|
595
661
|
* @param {TfheCompactPublicKey} public_key
|
|
596
|
-
* @returns {
|
|
662
|
+
* @returns {CompactFheInt8List}
|
|
663
|
+
*/
|
|
664
|
+
static encrypt_with_compact_public_key(values: Int8Array, public_key: TfheCompactPublicKey): CompactFheInt8List;
|
|
665
|
+
/**
|
|
666
|
+
* @returns {any[]}
|
|
667
|
+
*/
|
|
668
|
+
expand(): any[];
|
|
669
|
+
/**
|
|
670
|
+
* @returns {Uint8Array}
|
|
671
|
+
*/
|
|
672
|
+
serialize(): Uint8Array;
|
|
673
|
+
/**
|
|
674
|
+
* @param {Uint8Array} buffer
|
|
675
|
+
* @returns {CompactFheInt8List}
|
|
676
|
+
*/
|
|
677
|
+
static deserialize(buffer: Uint8Array): CompactFheInt8List;
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
*/
|
|
681
|
+
export class CompactFheUint128 {
|
|
682
|
+
free(): void;
|
|
683
|
+
/**
|
|
684
|
+
* @param {any} value
|
|
685
|
+
* @param {TfheCompactPublicKey} client_key
|
|
686
|
+
* @returns {CompactFheUint128}
|
|
687
|
+
*/
|
|
688
|
+
static encrypt_with_compact_public_key(value: any, client_key: TfheCompactPublicKey): CompactFheUint128;
|
|
689
|
+
/**
|
|
690
|
+
* @returns {FheUint128}
|
|
691
|
+
*/
|
|
692
|
+
expand(): FheUint128;
|
|
693
|
+
/**
|
|
694
|
+
* @returns {Uint8Array}
|
|
695
|
+
*/
|
|
696
|
+
serialize(): Uint8Array;
|
|
697
|
+
/**
|
|
698
|
+
* @param {Uint8Array} buffer
|
|
699
|
+
* @returns {CompactFheUint128}
|
|
700
|
+
*/
|
|
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;
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
*/
|
|
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 {
|
|
741
|
+
free(): void;
|
|
742
|
+
/**
|
|
743
|
+
* @param {number} value
|
|
744
|
+
* @param {TfheCompactPublicKey} client_key
|
|
745
|
+
* @returns {CompactFheUint16}
|
|
746
|
+
*/
|
|
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}
|
|
597
1542
|
*/
|
|
598
|
-
|
|
1543
|
+
serialize(): Uint8Array;
|
|
599
1544
|
/**
|
|
600
|
-
* @
|
|
1545
|
+
* @param {Uint8Array} buffer
|
|
1546
|
+
* @returns {FheInt16}
|
|
601
1547
|
*/
|
|
602
|
-
|
|
1548
|
+
static deserialize(buffer: Uint8Array): FheInt16;
|
|
603
1549
|
/**
|
|
1550
|
+
* @param {bigint} serialized_size_limit
|
|
604
1551
|
* @returns {Uint8Array}
|
|
605
1552
|
*/
|
|
606
|
-
|
|
1553
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
607
1554
|
/**
|
|
608
1555
|
* @param {Uint8Array} buffer
|
|
609
|
-
* @
|
|
1556
|
+
* @param {bigint} serialized_size_limit
|
|
1557
|
+
* @returns {FheInt16}
|
|
610
1558
|
*/
|
|
611
|
-
static
|
|
1559
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt16;
|
|
612
1560
|
}
|
|
613
1561
|
/**
|
|
614
1562
|
*/
|
|
615
|
-
export class
|
|
1563
|
+
export class FheInt256 {
|
|
616
1564
|
free(): void;
|
|
617
1565
|
/**
|
|
618
1566
|
* @param {any} value
|
|
619
1567
|
* @param {TfheClientKey} client_key
|
|
620
|
-
* @returns {
|
|
1568
|
+
* @returns {FheInt256}
|
|
621
1569
|
*/
|
|
622
|
-
static encrypt_with_client_key(value: any, client_key: TfheClientKey):
|
|
1570
|
+
static encrypt_with_client_key(value: any, client_key: TfheClientKey): FheInt256;
|
|
623
1571
|
/**
|
|
624
|
-
* @
|
|
1572
|
+
* @param {any} value
|
|
1573
|
+
* @param {TfhePublicKey} public_key
|
|
1574
|
+
* @returns {FheInt256}
|
|
625
1575
|
*/
|
|
626
|
-
|
|
1576
|
+
static encrypt_with_public_key(value: any, public_key: TfhePublicKey): FheInt256;
|
|
627
1577
|
/**
|
|
628
|
-
* @
|
|
1578
|
+
* @param {any} value
|
|
1579
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1580
|
+
* @returns {FheInt256}
|
|
629
1581
|
*/
|
|
630
|
-
|
|
1582
|
+
static encrypt_with_compressed_public_key(value: any, compressed_public_key: TfheCompressedPublicKey): FheInt256;
|
|
631
1583
|
/**
|
|
632
|
-
* @param {
|
|
633
|
-
* @
|
|
1584
|
+
* @param {any} value
|
|
1585
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1586
|
+
* @returns {FheInt256}
|
|
634
1587
|
*/
|
|
635
|
-
static
|
|
636
|
-
}
|
|
1588
|
+
static encrypt_with_compact_public_key(value: any, compact_public_key: TfheCompactPublicKey): FheInt256;
|
|
637
1589
|
/**
|
|
1590
|
+
* @param {TfheClientKey} client_key
|
|
1591
|
+
* @returns {any}
|
|
638
1592
|
*/
|
|
639
|
-
|
|
640
|
-
free(): void;
|
|
1593
|
+
decrypt(client_key: TfheClientKey): any;
|
|
641
1594
|
/**
|
|
642
|
-
* @
|
|
643
|
-
* @param {TfheClientKey} client_key
|
|
644
|
-
* @returns {CompressedFheUint16}
|
|
1595
|
+
* @returns {Uint8Array}
|
|
645
1596
|
*/
|
|
646
|
-
|
|
1597
|
+
serialize(): Uint8Array;
|
|
647
1598
|
/**
|
|
648
|
-
* @
|
|
1599
|
+
* @param {Uint8Array} buffer
|
|
1600
|
+
* @returns {FheInt256}
|
|
649
1601
|
*/
|
|
650
|
-
|
|
1602
|
+
static deserialize(buffer: Uint8Array): FheInt256;
|
|
651
1603
|
/**
|
|
1604
|
+
* @param {bigint} serialized_size_limit
|
|
652
1605
|
* @returns {Uint8Array}
|
|
653
1606
|
*/
|
|
654
|
-
|
|
1607
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
655
1608
|
/**
|
|
656
1609
|
* @param {Uint8Array} buffer
|
|
657
|
-
* @
|
|
1610
|
+
* @param {bigint} serialized_size_limit
|
|
1611
|
+
* @returns {FheInt256}
|
|
658
1612
|
*/
|
|
659
|
-
static
|
|
1613
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt256;
|
|
660
1614
|
}
|
|
661
1615
|
/**
|
|
662
1616
|
*/
|
|
663
|
-
export class
|
|
1617
|
+
export class FheInt32 {
|
|
664
1618
|
free(): void;
|
|
665
1619
|
/**
|
|
666
|
-
* @param {
|
|
1620
|
+
* @param {number} value
|
|
667
1621
|
* @param {TfheClientKey} client_key
|
|
668
|
-
* @returns {
|
|
1622
|
+
* @returns {FheInt32}
|
|
669
1623
|
*/
|
|
670
|
-
static encrypt_with_client_key(value:
|
|
1624
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): FheInt32;
|
|
671
1625
|
/**
|
|
672
|
-
* @
|
|
1626
|
+
* @param {number} value
|
|
1627
|
+
* @param {TfhePublicKey} public_key
|
|
1628
|
+
* @returns {FheInt32}
|
|
673
1629
|
*/
|
|
674
|
-
|
|
1630
|
+
static encrypt_with_public_key(value: number, public_key: TfhePublicKey): FheInt32;
|
|
675
1631
|
/**
|
|
676
|
-
* @
|
|
1632
|
+
* @param {number} value
|
|
1633
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1634
|
+
* @returns {FheInt32}
|
|
677
1635
|
*/
|
|
678
|
-
|
|
1636
|
+
static encrypt_with_compressed_public_key(value: number, compressed_public_key: TfheCompressedPublicKey): FheInt32;
|
|
679
1637
|
/**
|
|
680
|
-
* @param {
|
|
681
|
-
* @
|
|
1638
|
+
* @param {number} value
|
|
1639
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1640
|
+
* @returns {FheInt32}
|
|
682
1641
|
*/
|
|
683
|
-
static
|
|
684
|
-
}
|
|
1642
|
+
static encrypt_with_compact_public_key(value: number, compact_public_key: TfheCompactPublicKey): FheInt32;
|
|
685
1643
|
/**
|
|
1644
|
+
* @param {TfheClientKey} client_key
|
|
1645
|
+
* @returns {number}
|
|
686
1646
|
*/
|
|
687
|
-
|
|
688
|
-
free(): void;
|
|
1647
|
+
decrypt(client_key: TfheClientKey): number;
|
|
689
1648
|
/**
|
|
690
|
-
* @
|
|
691
|
-
* @param {TfheClientKey} client_key
|
|
692
|
-
* @returns {CompressedFheUint32}
|
|
1649
|
+
* @returns {Uint8Array}
|
|
693
1650
|
*/
|
|
694
|
-
|
|
1651
|
+
serialize(): Uint8Array;
|
|
695
1652
|
/**
|
|
696
|
-
* @
|
|
1653
|
+
* @param {Uint8Array} buffer
|
|
1654
|
+
* @returns {FheInt32}
|
|
697
1655
|
*/
|
|
698
|
-
|
|
1656
|
+
static deserialize(buffer: Uint8Array): FheInt32;
|
|
699
1657
|
/**
|
|
1658
|
+
* @param {bigint} serialized_size_limit
|
|
700
1659
|
* @returns {Uint8Array}
|
|
701
1660
|
*/
|
|
702
|
-
|
|
1661
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
703
1662
|
/**
|
|
704
1663
|
* @param {Uint8Array} buffer
|
|
705
|
-
* @
|
|
1664
|
+
* @param {bigint} serialized_size_limit
|
|
1665
|
+
* @returns {FheInt32}
|
|
706
1666
|
*/
|
|
707
|
-
static
|
|
1667
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt32;
|
|
708
1668
|
}
|
|
709
1669
|
/**
|
|
710
1670
|
*/
|
|
711
|
-
export class
|
|
1671
|
+
export class FheInt64 {
|
|
712
1672
|
free(): void;
|
|
713
1673
|
/**
|
|
714
1674
|
* @param {bigint} value
|
|
715
1675
|
* @param {TfheClientKey} client_key
|
|
716
|
-
* @returns {
|
|
1676
|
+
* @returns {FheInt64}
|
|
717
1677
|
*/
|
|
718
|
-
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey):
|
|
1678
|
+
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): FheInt64;
|
|
719
1679
|
/**
|
|
720
|
-
* @
|
|
1680
|
+
* @param {bigint} value
|
|
1681
|
+
* @param {TfhePublicKey} public_key
|
|
1682
|
+
* @returns {FheInt64}
|
|
721
1683
|
*/
|
|
722
|
-
|
|
1684
|
+
static encrypt_with_public_key(value: bigint, public_key: TfhePublicKey): FheInt64;
|
|
1685
|
+
/**
|
|
1686
|
+
* @param {bigint} value
|
|
1687
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1688
|
+
* @returns {FheInt64}
|
|
1689
|
+
*/
|
|
1690
|
+
static encrypt_with_compressed_public_key(value: bigint, compressed_public_key: TfheCompressedPublicKey): FheInt64;
|
|
1691
|
+
/**
|
|
1692
|
+
* @param {bigint} value
|
|
1693
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1694
|
+
* @returns {FheInt64}
|
|
1695
|
+
*/
|
|
1696
|
+
static encrypt_with_compact_public_key(value: bigint, compact_public_key: TfheCompactPublicKey): FheInt64;
|
|
1697
|
+
/**
|
|
1698
|
+
* @param {TfheClientKey} client_key
|
|
1699
|
+
* @returns {bigint}
|
|
1700
|
+
*/
|
|
1701
|
+
decrypt(client_key: TfheClientKey): bigint;
|
|
723
1702
|
/**
|
|
724
1703
|
* @returns {Uint8Array}
|
|
725
1704
|
*/
|
|
726
1705
|
serialize(): Uint8Array;
|
|
727
1706
|
/**
|
|
728
1707
|
* @param {Uint8Array} buffer
|
|
729
|
-
* @returns {
|
|
1708
|
+
* @returns {FheInt64}
|
|
730
1709
|
*/
|
|
731
|
-
static deserialize(buffer: Uint8Array):
|
|
1710
|
+
static deserialize(buffer: Uint8Array): FheInt64;
|
|
1711
|
+
/**
|
|
1712
|
+
* @param {bigint} serialized_size_limit
|
|
1713
|
+
* @returns {Uint8Array}
|
|
1714
|
+
*/
|
|
1715
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1716
|
+
/**
|
|
1717
|
+
* @param {Uint8Array} buffer
|
|
1718
|
+
* @param {bigint} serialized_size_limit
|
|
1719
|
+
* @returns {FheInt64}
|
|
1720
|
+
*/
|
|
1721
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt64;
|
|
732
1722
|
}
|
|
733
1723
|
/**
|
|
734
1724
|
*/
|
|
735
|
-
export class
|
|
1725
|
+
export class FheInt8 {
|
|
736
1726
|
free(): void;
|
|
737
1727
|
/**
|
|
738
1728
|
* @param {number} value
|
|
739
1729
|
* @param {TfheClientKey} client_key
|
|
740
|
-
* @returns {
|
|
1730
|
+
* @returns {FheInt8}
|
|
741
1731
|
*/
|
|
742
|
-
static encrypt_with_client_key(value: number, client_key: TfheClientKey):
|
|
1732
|
+
static encrypt_with_client_key(value: number, client_key: TfheClientKey): FheInt8;
|
|
743
1733
|
/**
|
|
744
|
-
* @
|
|
1734
|
+
* @param {number} value
|
|
1735
|
+
* @param {TfhePublicKey} public_key
|
|
1736
|
+
* @returns {FheInt8}
|
|
745
1737
|
*/
|
|
746
|
-
|
|
1738
|
+
static encrypt_with_public_key(value: number, public_key: TfhePublicKey): FheInt8;
|
|
1739
|
+
/**
|
|
1740
|
+
* @param {number} value
|
|
1741
|
+
* @param {TfheCompressedPublicKey} compressed_public_key
|
|
1742
|
+
* @returns {FheInt8}
|
|
1743
|
+
*/
|
|
1744
|
+
static encrypt_with_compressed_public_key(value: number, compressed_public_key: TfheCompressedPublicKey): FheInt8;
|
|
1745
|
+
/**
|
|
1746
|
+
* @param {number} value
|
|
1747
|
+
* @param {TfheCompactPublicKey} compact_public_key
|
|
1748
|
+
* @returns {FheInt8}
|
|
1749
|
+
*/
|
|
1750
|
+
static encrypt_with_compact_public_key(value: number, compact_public_key: TfheCompactPublicKey): FheInt8;
|
|
1751
|
+
/**
|
|
1752
|
+
* @param {TfheClientKey} client_key
|
|
1753
|
+
* @returns {number}
|
|
1754
|
+
*/
|
|
1755
|
+
decrypt(client_key: TfheClientKey): number;
|
|
747
1756
|
/**
|
|
748
1757
|
* @returns {Uint8Array}
|
|
749
1758
|
*/
|
|
750
1759
|
serialize(): Uint8Array;
|
|
751
1760
|
/**
|
|
752
1761
|
* @param {Uint8Array} buffer
|
|
753
|
-
* @returns {
|
|
1762
|
+
* @returns {FheInt8}
|
|
754
1763
|
*/
|
|
755
|
-
static deserialize(buffer: Uint8Array):
|
|
1764
|
+
static deserialize(buffer: Uint8Array): FheInt8;
|
|
1765
|
+
/**
|
|
1766
|
+
* @param {bigint} serialized_size_limit
|
|
1767
|
+
* @returns {Uint8Array}
|
|
1768
|
+
*/
|
|
1769
|
+
safe_serialize(serialized_size_limit: bigint): Uint8Array;
|
|
1770
|
+
/**
|
|
1771
|
+
* @param {Uint8Array} buffer
|
|
1772
|
+
* @param {bigint} serialized_size_limit
|
|
1773
|
+
* @returns {FheInt8}
|
|
1774
|
+
*/
|
|
1775
|
+
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): FheInt8;
|
|
756
1776
|
}
|
|
757
1777
|
/**
|
|
758
1778
|
*/
|
|
@@ -796,6 +1816,17 @@ export class FheUint128 {
|
|
|
796
1816
|
* @returns {FheUint128}
|
|
797
1817
|
*/
|
|
798
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;
|
|
799
1830
|
}
|
|
800
1831
|
/**
|
|
801
1832
|
*/
|
|
@@ -839,6 +1870,17 @@ export class FheUint16 {
|
|
|
839
1870
|
* @returns {FheUint16}
|
|
840
1871
|
*/
|
|
841
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;
|
|
842
1884
|
}
|
|
843
1885
|
/**
|
|
844
1886
|
*/
|
|
@@ -882,6 +1924,17 @@ export class FheUint256 {
|
|
|
882
1924
|
* @returns {FheUint256}
|
|
883
1925
|
*/
|
|
884
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;
|
|
885
1938
|
}
|
|
886
1939
|
/**
|
|
887
1940
|
*/
|
|
@@ -925,6 +1978,17 @@ export class FheUint32 {
|
|
|
925
1978
|
* @returns {FheUint32}
|
|
926
1979
|
*/
|
|
927
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;
|
|
928
1992
|
}
|
|
929
1993
|
/**
|
|
930
1994
|
*/
|
|
@@ -968,6 +2032,17 @@ export class FheUint64 {
|
|
|
968
2032
|
* @returns {FheUint64}
|
|
969
2033
|
*/
|
|
970
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;
|
|
971
2046
|
}
|
|
972
2047
|
/**
|
|
973
2048
|
*/
|
|
@@ -1011,6 +2086,17 @@ export class FheUint8 {
|
|
|
1011
2086
|
* @returns {FheUint8}
|
|
1012
2087
|
*/
|
|
1013
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;
|
|
1014
2100
|
}
|
|
1015
2101
|
/**
|
|
1016
2102
|
*/
|
|
@@ -1376,6 +2462,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1376
2462
|
|
|
1377
2463
|
export interface InitOutput {
|
|
1378
2464
|
readonly memory: WebAssembly.Memory;
|
|
2465
|
+
readonly __wbg_tfhe_free: (a: number) => void;
|
|
1379
2466
|
readonly __wbg_booleanciphertext_free: (a: number) => void;
|
|
1380
2467
|
readonly __wbg_booleancompressedciphertext_free: (a: number) => void;
|
|
1381
2468
|
readonly __wbg_booleanclientkey_free: (a: number) => void;
|
|
@@ -1405,8 +2492,6 @@ export interface InitOutput {
|
|
|
1405
2492
|
readonly boolean_serialize_compressed_server_key: (a: number, b: number) => void;
|
|
1406
2493
|
readonly boolean_deserialize_compressed_server_key: (a: number, b: number, c: number) => void;
|
|
1407
2494
|
readonly __wbg_boolean_free: (a: number) => void;
|
|
1408
|
-
readonly __wbg_tfhe_free: (a: number) => void;
|
|
1409
|
-
readonly __wbg_fheuint128_free: (a: number) => void;
|
|
1410
2495
|
readonly fheuint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1411
2496
|
readonly fheuint128_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
1412
2497
|
readonly fheuint128_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
@@ -1414,16 +2499,19 @@ export interface InitOutput {
|
|
|
1414
2499
|
readonly fheuint128_decrypt: (a: number, b: number, c: number) => void;
|
|
1415
2500
|
readonly fheuint128_serialize: (a: number, b: number) => void;
|
|
1416
2501
|
readonly fheuint128_deserialize: (a: number, b: number, c: number) => void;
|
|
1417
|
-
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;
|
|
1418
2504
|
readonly compressedfheuint128_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1419
|
-
readonly compressedfheuint128_decompress: (a: number, b: number) => void;
|
|
1420
2505
|
readonly compressedfheuint128_serialize: (a: number, b: number) => void;
|
|
1421
2506
|
readonly compressedfheuint128_deserialize: (a: number, b: number, c: number) => void;
|
|
1422
|
-
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;
|
|
1423
2509
|
readonly compactfheuint128_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1424
2510
|
readonly compactfheuint128_expand: (a: number, b: number) => void;
|
|
1425
2511
|
readonly compactfheuint128_serialize: (a: number, b: number) => void;
|
|
1426
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;
|
|
1427
2515
|
readonly compactfheuint128list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1428
2516
|
readonly compactfheuint128list_expand: (a: number, b: number) => void;
|
|
1429
2517
|
readonly compactfheuint128list_serialize: (a: number, b: number) => void;
|
|
@@ -1435,17 +2523,75 @@ export interface InitOutput {
|
|
|
1435
2523
|
readonly fheuint256_decrypt: (a: number, b: number, c: number) => void;
|
|
1436
2524
|
readonly fheuint256_serialize: (a: number, b: number) => void;
|
|
1437
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;
|
|
1438
2528
|
readonly compressedfheuint256_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1439
2529
|
readonly compressedfheuint256_serialize: (a: number, b: number) => void;
|
|
1440
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;
|
|
1441
2533
|
readonly compactfheuint256_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1442
2534
|
readonly compactfheuint256_expand: (a: number, b: number) => void;
|
|
1443
2535
|
readonly compactfheuint256_serialize: (a: number, b: number) => void;
|
|
1444
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;
|
|
1445
2539
|
readonly compactfheuint256list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1446
2540
|
readonly compactfheuint256list_expand: (a: number, b: number) => void;
|
|
1447
2541
|
readonly compactfheuint256list_serialize: (a: number, b: number) => void;
|
|
1448
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;
|
|
1449
2595
|
readonly fheuint8_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1450
2596
|
readonly fheuint8_encrypt_with_public_key: (a: number, b: number, c: number) => void;
|
|
1451
2597
|
readonly fheuint8_encrypt_with_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
@@ -1453,13 +2599,19 @@ export interface InitOutput {
|
|
|
1453
2599
|
readonly fheuint8_decrypt: (a: number, b: number, c: number) => void;
|
|
1454
2600
|
readonly fheuint8_serialize: (a: number, b: number) => void;
|
|
1455
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;
|
|
1456
2604
|
readonly compressedfheuint8_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1457
2605
|
readonly compressedfheuint8_serialize: (a: number, b: number) => void;
|
|
1458
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;
|
|
1459
2609
|
readonly compactfheuint8_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1460
2610
|
readonly compactfheuint8_expand: (a: number, b: number) => void;
|
|
1461
2611
|
readonly compactfheuint8_serialize: (a: number, b: number) => void;
|
|
1462
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;
|
|
1463
2615
|
readonly compactfheuint8list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1464
2616
|
readonly compactfheuint8list_expand: (a: number, b: number) => void;
|
|
1465
2617
|
readonly compactfheuint8list_serialize: (a: number, b: number) => void;
|
|
@@ -1471,13 +2623,19 @@ export interface InitOutput {
|
|
|
1471
2623
|
readonly fheuint16_decrypt: (a: number, b: number, c: number) => void;
|
|
1472
2624
|
readonly fheuint16_serialize: (a: number, b: number) => void;
|
|
1473
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;
|
|
1474
2628
|
readonly compressedfheuint16_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1475
2629
|
readonly compressedfheuint16_serialize: (a: number, b: number) => void;
|
|
1476
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;
|
|
1477
2633
|
readonly compactfheuint16_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1478
2634
|
readonly compactfheuint16_expand: (a: number, b: number) => void;
|
|
1479
2635
|
readonly compactfheuint16_serialize: (a: number, b: number) => void;
|
|
1480
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;
|
|
1481
2639
|
readonly compactfheuint16list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1482
2640
|
readonly compactfheuint16list_expand: (a: number, b: number) => void;
|
|
1483
2641
|
readonly compactfheuint16list_serialize: (a: number, b: number) => void;
|
|
@@ -1489,13 +2647,19 @@ export interface InitOutput {
|
|
|
1489
2647
|
readonly fheuint32_decrypt: (a: number, b: number, c: number) => void;
|
|
1490
2648
|
readonly fheuint32_serialize: (a: number, b: number) => void;
|
|
1491
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;
|
|
1492
2652
|
readonly compressedfheuint32_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1493
2653
|
readonly compressedfheuint32_serialize: (a: number, b: number) => void;
|
|
1494
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;
|
|
1495
2657
|
readonly compactfheuint32_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1496
2658
|
readonly compactfheuint32_expand: (a: number, b: number) => void;
|
|
1497
2659
|
readonly compactfheuint32_serialize: (a: number, b: number) => void;
|
|
1498
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;
|
|
1499
2663
|
readonly compactfheuint32list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1500
2664
|
readonly compactfheuint32list_expand: (a: number, b: number) => void;
|
|
1501
2665
|
readonly compactfheuint32list_serialize: (a: number, b: number) => void;
|
|
@@ -1507,26 +2671,140 @@ export interface InitOutput {
|
|
|
1507
2671
|
readonly fheuint64_decrypt: (a: number, b: number, c: number) => void;
|
|
1508
2672
|
readonly fheuint64_serialize: (a: number, b: number) => void;
|
|
1509
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;
|
|
1510
2676
|
readonly compressedfheuint64_encrypt_with_client_key: (a: number, b: number, c: number) => void;
|
|
1511
2677
|
readonly compressedfheuint64_serialize: (a: number, b: number) => void;
|
|
1512
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;
|
|
1513
2681
|
readonly compactfheuint64_encrypt_with_compact_public_key: (a: number, b: number, c: number) => void;
|
|
1514
2682
|
readonly compactfheuint64_expand: (a: number, b: number) => void;
|
|
1515
2683
|
readonly compactfheuint64_serialize: (a: number, b: number) => void;
|
|
1516
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;
|
|
1517
2687
|
readonly compactfheuint64list_encrypt_with_compact_public_key: (a: number, b: number, c: number, d: number) => void;
|
|
1518
2688
|
readonly compactfheuint64list_expand: (a: number, b: number) => void;
|
|
1519
2689
|
readonly compactfheuint64list_serialize: (a: number, b: number) => void;
|
|
1520
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;
|
|
1521
2787
|
readonly __wbg_fheuint256_free: (a: number) => void;
|
|
2788
|
+
readonly __wbg_fheuint128_free: (a: number) => void;
|
|
2789
|
+
readonly __wbg_fheint256_free: (a: number) => void;
|
|
1522
2790
|
readonly __wbg_fheuint8_free: (a: number) => void;
|
|
1523
2791
|
readonly __wbg_fheuint16_free: (a: number) => void;
|
|
1524
2792
|
readonly __wbg_fheuint32_free: (a: number) => void;
|
|
1525
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;
|
|
1526
2798
|
readonly __wbg_compactfheuint128list_free: (a: number) => void;
|
|
1527
2799
|
readonly __wbg_compressedfheuint256_free: (a: number) => void;
|
|
1528
2800
|
readonly __wbg_compactfheuint256_free: (a: number) => void;
|
|
1529
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;
|
|
1530
2808
|
readonly __wbg_compressedfheuint8_free: (a: number) => void;
|
|
1531
2809
|
readonly __wbg_compactfheuint8_free: (a: number) => void;
|
|
1532
2810
|
readonly __wbg_compactfheuint8list_free: (a: number) => void;
|
|
@@ -1539,46 +2817,29 @@ export interface InitOutput {
|
|
|
1539
2817
|
readonly __wbg_compressedfheuint64_free: (a: number) => void;
|
|
1540
2818
|
readonly __wbg_compactfheuint64_free: (a: number) => void;
|
|
1541
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;
|
|
1542
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;
|
|
1543
2835
|
readonly compressedfheuint8_decompress: (a: number, b: number) => void;
|
|
1544
2836
|
readonly compressedfheuint16_decompress: (a: number, b: number) => void;
|
|
1545
2837
|
readonly compressedfheuint32_decompress: (a: number, b: number) => void;
|
|
1546
2838
|
readonly compressedfheuint64_decompress: (a: number, b: number) => void;
|
|
1547
|
-
readonly
|
|
1548
|
-
readonly
|
|
1549
|
-
readonly
|
|
1550
|
-
readonly
|
|
1551
|
-
readonly tfheclientkey_serialize: (a: number, b: number) => void;
|
|
1552
|
-
readonly tfheclientkey_deserialize: (a: number, b: number, c: number) => void;
|
|
1553
|
-
readonly __wbg_tfhecompressedserverkey_free: (a: number) => void;
|
|
1554
|
-
readonly tfhecompressedserverkey_new: (a: number, b: number) => void;
|
|
1555
|
-
readonly tfhecompressedserverkey_serialize: (a: number, b: number) => void;
|
|
1556
|
-
readonly tfhecompressedserverkey_deserialize: (a: number, b: number, c: number) => void;
|
|
1557
|
-
readonly __wbg_tfhepublickey_free: (a: number) => void;
|
|
1558
|
-
readonly tfhepublickey_new: (a: number, b: number) => void;
|
|
1559
|
-
readonly tfhepublickey_serialize: (a: number, b: number) => void;
|
|
1560
|
-
readonly tfhepublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1561
|
-
readonly __wbg_tfhecompressedpublickey_free: (a: number) => void;
|
|
1562
|
-
readonly tfhecompressedpublickey_new: (a: number, b: number) => void;
|
|
1563
|
-
readonly tfhecompressedpublickey_decompress: (a: number, b: number) => void;
|
|
1564
|
-
readonly tfhecompressedpublickey_serialize: (a: number, b: number) => void;
|
|
1565
|
-
readonly tfhecompressedpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1566
|
-
readonly __wbg_tfhecompactpublickey_free: (a: number) => void;
|
|
1567
|
-
readonly tfhecompactpublickey_new: (a: number, b: number) => void;
|
|
1568
|
-
readonly tfhecompactpublickey_serialize: (a: number, b: number) => void;
|
|
1569
|
-
readonly tfhecompactpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1570
|
-
readonly __wbg_tfhecompressedcompactpublickey_free: (a: number) => void;
|
|
1571
|
-
readonly tfhecompressedcompactpublickey_new: (a: number, b: number) => void;
|
|
1572
|
-
readonly tfhecompressedcompactpublickey_serialize: (a: number, b: number) => void;
|
|
1573
|
-
readonly tfhecompressedcompactpublickey_deserialize: (a: number, b: number, c: number) => void;
|
|
1574
|
-
readonly tfhecompressedcompactpublickey_decompress: (a: number, b: number) => void;
|
|
1575
|
-
readonly __wbg_tfheconfig_free: (a: number) => void;
|
|
1576
|
-
readonly tfheconfigbuilder_all_disabled: () => number;
|
|
1577
|
-
readonly tfheconfigbuilder_enable_default_integers: (a: number) => number;
|
|
1578
|
-
readonly tfheconfigbuilder_enable_default_integers_small: (a: number) => number;
|
|
1579
|
-
readonly tfheconfigbuilder_enable_custom_integers: (a: number, b: number) => number;
|
|
1580
|
-
readonly tfheconfigbuilder_build: (a: number) => number;
|
|
1581
|
-
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;
|
|
1582
2843
|
readonly __wbg_shortintciphertext_free: (a: number) => void;
|
|
1583
2844
|
readonly __wbg_shortintcompressedciphertext_free: (a: number) => void;
|
|
1584
2845
|
readonly __wbg_shortintclientkey_free: (a: number) => void;
|
|
@@ -1613,7 +2874,42 @@ export interface InitOutput {
|
|
|
1613
2874
|
readonly shortint_deserialize_compressed_public_key: (a: number, b: number, c: number) => void;
|
|
1614
2875
|
readonly shortint_serialize_compressed_server_key: (a: number, b: number) => void;
|
|
1615
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;
|
|
1616
2883
|
readonly __wbg_shortint_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;
|
|
1617
2913
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1618
2914
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1619
2915
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|