tfhe
Version:
TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE.
1,116 lines • 284 kB
TypeScript
/* tslint:disable */
/* eslint-disable */
export function init_panic_hook(): void;
export function set_server_key(server_key: TfheServerKey): void;
export function shortint_pke_params_name(param: ShortintCompactPublicKeyEncryptionParametersName): string;
export function shortint_params_name(param: ShortintParametersName): string;
export function initThreadPool(num_threads: number): Promise<any>;
export function wbg_rayon_start_worker(receiver: number): void;
export enum BooleanEncryptionKeyChoice {
Big = 0,
Small = 1,
}
export enum BooleanParameterSet {
Default = 0,
TfheLib = 1,
DefaultKsPbs = 2,
TfheLibKsPbs = 3,
}
export enum FheTypes {
Bool = 0,
Uint4 = 1,
Uint8 = 2,
Uint16 = 3,
Uint32 = 4,
Uint64 = 5,
Uint128 = 6,
Uint160 = 7,
Uint256 = 8,
Uint512 = 9,
Uint1024 = 10,
Uint2048 = 11,
Uint2 = 12,
Uint6 = 13,
Uint10 = 14,
Uint12 = 15,
Uint14 = 16,
Int2 = 17,
Int4 = 18,
Int6 = 19,
Int8 = 20,
Int10 = 21,
Int12 = 22,
Int14 = 23,
Int16 = 24,
Int32 = 25,
Int64 = 26,
Int128 = 27,
Int160 = 28,
Int256 = 29,
AsciiString = 30,
Int512 = 31,
Int1024 = 32,
Int2048 = 33,
Uint24 = 34,
Uint40 = 35,
Uint48 = 36,
Uint56 = 37,
Uint72 = 38,
Uint80 = 39,
Uint88 = 40,
Uint96 = 41,
Uint104 = 42,
Uint112 = 43,
Uint120 = 44,
Uint136 = 45,
Uint144 = 46,
Uint152 = 47,
Uint168 = 48,
Uint176 = 49,
Uint184 = 50,
Uint192 = 51,
Uint200 = 52,
Uint208 = 53,
Uint216 = 54,
Uint224 = 55,
Uint232 = 56,
Uint240 = 57,
Uint248 = 58,
Int24 = 59,
Int40 = 60,
Int48 = 61,
Int56 = 62,
Int72 = 63,
Int80 = 64,
Int88 = 65,
Int96 = 66,
Int104 = 67,
Int112 = 68,
Int120 = 69,
Int136 = 70,
Int144 = 71,
Int152 = 72,
Int168 = 73,
Int176 = 74,
Int184 = 75,
Int192 = 76,
Int200 = 77,
Int208 = 78,
Int216 = 79,
Int224 = 80,
Int232 = 81,
Int240 = 82,
Int248 = 83,
}
export enum ShortintCompactPublicKeyEncryptionParametersName {
PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128 = 0,
V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128 = 1,
V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1 = 2,
V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128 = 3,
V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1 = 4,
V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64 = 5,
V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64_ZKV1 = 6,
}
export enum ShortintEncryptionKeyChoice {
Big = 0,
Small = 1,
}
export enum ShortintPBSOrder {
KeyswitchBootstrap = 0,
BootstrapKeyswitch = 1,
}
export enum ShortintParametersName {
PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128 = 0,
V1_1_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 1,
V1_1_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 2,
V1_1_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 3,
V1_1_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 4,
V1_1_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 5,
V1_1_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 6,
V1_1_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 7,
V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 8,
V1_1_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 9,
V1_1_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 10,
V1_1_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 11,
V1_1_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 12,
V1_1_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 13,
V1_1_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 14,
V1_1_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 15,
V1_1_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 16,
V1_1_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 17,
V1_1_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 18,
V1_1_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 19,
V1_1_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 20,
V1_1_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 21,
V1_1_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128 = 22,
V1_1_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 23,
V1_1_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 24,
V1_1_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 25,
V1_1_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 26,
V1_1_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 27,
V1_1_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 28,
V1_1_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128 = 29,
V1_1_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128 = 30,
V1_1_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 31,
V1_1_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 32,
V1_1_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 33,
V1_1_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 34,
V1_1_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 35,
V1_1_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 36,
V1_1_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128 = 37,
V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128 = 38,
V1_1_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128 = 39,
V1_1_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128 = 40,
V1_1_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 41,
V1_1_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 42,
V1_1_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 43,
V1_1_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 44,
V1_1_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 45,
V1_1_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 46,
V1_1_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 47,
V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 48,
V1_1_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 49,
V1_1_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 50,
V1_1_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 51,
V1_1_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 52,
V1_1_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 53,
V1_1_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 54,
V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 55,
V1_1_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 56,
V1_1_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 57,
V1_1_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 58,
V1_1_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 59,
V1_1_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 60,
V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 61,
V1_1_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 62,
V1_1_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 63,
V1_1_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 64,
V1_1_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 65,
V1_1_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 66,
V1_1_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 67,
V1_1_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 68,
V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 69,
V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 70,
V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 71,
V1_0_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 72,
V1_0_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 73,
V1_0_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 74,
V1_0_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 75,
V1_0_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 76,
V1_0_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 77,
V1_0_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 78,
V1_0_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 79,
V1_0_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 80,
V1_0_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 81,
V1_0_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 82,
V1_0_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 83,
V1_0_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 84,
V1_0_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 85,
V1_0_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 86,
V1_0_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 87,
V1_0_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 88,
V1_0_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 89,
V1_0_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 90,
V1_0_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 91,
V1_0_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 92,
V1_0_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128 = 93,
V1_0_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 94,
V1_0_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 95,
V1_0_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 96,
V1_0_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 97,
V1_0_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 98,
V1_0_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 99,
V1_0_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128 = 100,
V1_0_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128 = 101,
V1_0_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128 = 102,
V1_0_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128 = 103,
V1_0_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128 = 104,
V1_0_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128 = 105,
V1_0_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128 = 106,
V1_0_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128 = 107,
V1_0_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128 = 108,
V1_0_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128 = 109,
V1_0_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128 = 110,
V1_0_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128 = 111,
V1_0_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 112,
V1_0_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 113,
V1_0_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 114,
V1_0_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 115,
V1_0_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 116,
V1_0_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 117,
V1_0_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 118,
V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 119,
V1_0_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 120,
V1_0_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 121,
V1_0_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 122,
V1_0_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 123,
V1_0_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 124,
V1_0_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 125,
V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 126,
V1_0_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 127,
V1_0_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 128,
V1_0_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 129,
V1_0_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 130,
V1_0_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 131,
V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 132,
V1_0_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 133,
V1_0_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 134,
V1_0_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 135,
V1_0_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 136,
V1_0_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 137,
V1_0_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128 = 138,
V1_0_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 139,
V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 140,
V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 141,
V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128 = 142,
V0_11_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 143,
V0_11_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64 = 144,
V0_11_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 145,
V0_11_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M64 = 146,
V0_11_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M64 = 147,
V0_11_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 148,
V0_11_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M64 = 149,
V0_11_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64 = 150,
V0_11_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M64 = 151,
V0_11_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 152,
V0_11_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M64 = 153,
V0_11_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M64 = 154,
V0_11_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M64 = 155,
V0_11_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M64 = 156,
V0_11_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 157,
V0_11_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M64 = 158,
V0_11_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M64 = 159,
V0_11_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64 = 160,
V0_11_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M64 = 161,
V0_11_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M64 = 162,
V0_11_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 163,
V0_11_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M64 = 164,
V0_11_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M64 = 165,
V0_11_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M64 = 166,
V0_11_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M64 = 167,
V0_11_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M64 = 168,
V0_11_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M64 = 169,
V0_11_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 170,
V0_11_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M64 = 171,
V0_11_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M64 = 172,
V0_11_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M64 = 173,
V0_11_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M64 = 174,
V0_11_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M64 = 175,
V0_11_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M64 = 176,
V0_11_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M64 = 177,
V0_11_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M64 = 178,
V0_11_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M64 = 179,
V0_11_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64 = 180,
V0_11_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M64 = 181,
V0_11_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M64 = 182,
V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 183,
V0_11_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 184,
V0_11_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 185,
V0_11_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 186,
V0_11_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 187,
V0_11_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 188,
V0_11_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 189,
V0_11_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 190,
V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 191,
V0_11_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 192,
V0_11_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 193,
V0_11_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 194,
V0_11_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 195,
V0_11_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 196,
V0_11_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 197,
V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 198,
V0_11_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 199,
V0_11_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 200,
V0_11_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 201,
V0_11_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 202,
V0_11_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 203,
V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 204,
V0_11_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 205,
V0_11_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 206,
V0_11_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 207,
V0_11_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 208,
V0_11_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 209,
V0_11_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64 = 210,
V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M64 = 211,
V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64 = 212,
V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M64 = 213,
V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M64 = 214,
}
export enum ZkComputeLoad {
Proof = 0,
Verify = 1,
}
export class Boolean {
private constructor();
free(): void;
static get_parameters(parameter_choice: number): BooleanParameters;
static new_gaussian_from_std_dev(std_dev: number): BooleanNoiseDistribution;
static try_new_t_uniform(bound_log2: number): BooleanNoiseDistribution;
static new_parameters(lwe_dimension: number, glwe_dimension: number, polynomial_size: number, lwe_noise_distribution: BooleanNoiseDistribution, glwe_noise_distribution: BooleanNoiseDistribution, pbs_base_log: number, pbs_level: number, ks_base_log: number, ks_level: number, encryption_key_choice: BooleanEncryptionKeyChoice): BooleanParameters;
static new_client_key_from_seed_and_parameters(seed_high_bytes: bigint, seed_low_bytes: bigint, parameters: BooleanParameters): BooleanClientKey;
static new_client_key(parameters: BooleanParameters): BooleanClientKey;
static new_public_key(client_key: BooleanClientKey): BooleanPublicKey;
static new_compressed_server_key(client_key: BooleanClientKey): BooleanCompressedServerKey;
static encrypt(client_key: BooleanClientKey, message: boolean): BooleanCiphertext;
static encrypt_compressed(client_key: BooleanClientKey, message: boolean): BooleanCompressedCiphertext;
static decompress_ciphertext(compressed_ciphertext: BooleanCompressedCiphertext): BooleanCiphertext;
static encrypt_with_public_key(public_key: BooleanPublicKey, message: boolean): BooleanCiphertext;
static trivial_encrypt(message: boolean): BooleanCiphertext;
static decrypt(client_key: BooleanClientKey, ct: BooleanCiphertext): boolean;
static serialize_ciphertext(ciphertext: BooleanCiphertext): Uint8Array;
static deserialize_ciphertext(buffer: Uint8Array): BooleanCiphertext;
static serialize_compressed_ciphertext(ciphertext: BooleanCompressedCiphertext): Uint8Array;
static deserialize_compressed_ciphertext(buffer: Uint8Array): BooleanCompressedCiphertext;
static serialize_client_key(client_key: BooleanClientKey): Uint8Array;
static deserialize_client_key(buffer: Uint8Array): BooleanClientKey;
static serialize_public_key(public_key: BooleanPublicKey): Uint8Array;
static deserialize_public_key(buffer: Uint8Array): BooleanPublicKey;
static serialize_compressed_server_key(server_key: BooleanCompressedServerKey): Uint8Array;
static deserialize_compressed_server_key(buffer: Uint8Array): BooleanCompressedServerKey;
}
export class BooleanCiphertext {
private constructor();
free(): void;
}
export class BooleanClientKey {
private constructor();
free(): void;
}
export class BooleanCompressedCiphertext {
private constructor();
free(): void;
}
export class BooleanCompressedServerKey {
private constructor();
free(): void;
}
export class BooleanNoiseDistribution {
private constructor();
free(): void;
}
export class BooleanParameters {
private constructor();
free(): void;
}
export class BooleanPublicKey {
private constructor();
free(): void;
}
export class CompactCiphertextList {
private constructor();
free(): void;
static builder(public_key: TfheCompactPublicKey): CompactCiphertextListBuilder;
len(): number;
is_empty(): boolean;
get_kind_of(index: number): FheTypes | undefined;
expand(): CompactCiphertextListExpander;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompactCiphertextList;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactCiphertextList;
}
export class CompactCiphertextListBuilder {
private constructor();
free(): void;
push_u24(value: number): void;
push_u40(value: bigint): void;
push_u48(value: bigint): void;
push_u56(value: bigint): void;
push_u2(value: number): void;
push_u4(value: number): void;
push_u6(value: number): void;
push_u8(value: number): void;
push_u10(value: number): void;
push_u12(value: number): void;
push_u14(value: number): void;
push_u16(value: number): void;
push_u32(value: number): void;
push_u64(value: bigint): void;
push_i24(value: number): void;
push_i40(value: bigint): void;
push_i48(value: bigint): void;
push_i56(value: bigint): void;
push_i2(value: number): void;
push_i4(value: number): void;
push_i6(value: number): void;
push_i8(value: number): void;
push_i10(value: number): void;
push_i12(value: number): void;
push_i14(value: number): void;
push_i16(value: number): void;
push_i32(value: number): void;
push_i64(value: bigint): void;
push_u128(value: any): void;
push_u160(value: any): void;
push_u256(value: any): void;
push_u512(value: any): void;
push_u1024(value: any): void;
push_u2048(value: any): void;
push_i128(value: any): void;
push_i160(value: any): void;
push_i256(value: any): void;
push_i512(value: any): void;
push_i1024(value: any): void;
push_i2048(value: any): void;
push_boolean(value: boolean): void;
build(): CompactCiphertextList;
build_packed(): CompactCiphertextList;
build_with_proof_packed(crs: CompactPkeCrs, metadata: Uint8Array, compute_load: ZkComputeLoad): ProvenCompactCiphertextList;
push_u72(value: any): void;
push_u80(value: any): void;
push_u88(value: any): void;
push_u96(value: any): void;
push_u104(value: any): void;
push_u112(value: any): void;
push_u120(value: any): void;
push_u136(value: any): void;
push_u144(value: any): void;
push_u152(value: any): void;
push_u168(value: any): void;
push_u176(value: any): void;
push_u184(value: any): void;
push_u192(value: any): void;
push_u200(value: any): void;
push_u208(value: any): void;
push_u216(value: any): void;
push_u224(value: any): void;
push_u232(value: any): void;
push_u240(value: any): void;
push_u248(value: any): void;
push_i72(value: any): void;
push_i80(value: any): void;
push_i88(value: any): void;
push_i96(value: any): void;
push_i104(value: any): void;
push_i112(value: any): void;
push_i120(value: any): void;
push_i136(value: any): void;
push_i144(value: any): void;
push_i152(value: any): void;
push_i168(value: any): void;
push_i176(value: any): void;
push_i184(value: any): void;
push_i192(value: any): void;
push_i200(value: any): void;
push_i208(value: any): void;
push_i216(value: any): void;
push_i224(value: any): void;
push_i232(value: any): void;
push_i240(value: any): void;
push_i248(value: any): void;
}
export class CompactCiphertextListExpander {
private constructor();
free(): void;
get_uint24(index: number): FheUint24;
get_uint40(index: number): FheUint40;
get_uint48(index: number): FheUint48;
get_uint56(index: number): FheUint56;
get_uint72(index: number): FheUint72;
get_uint80(index: number): FheUint80;
get_uint88(index: number): FheUint88;
get_uint96(index: number): FheUint96;
get_uint104(index: number): FheUint104;
get_uint112(index: number): FheUint112;
get_uint120(index: number): FheUint120;
get_uint136(index: number): FheUint136;
get_uint144(index: number): FheUint144;
get_uint152(index: number): FheUint152;
get_uint168(index: number): FheUint168;
get_uint176(index: number): FheUint176;
get_uint184(index: number): FheUint184;
get_uint192(index: number): FheUint192;
get_uint200(index: number): FheUint200;
get_uint208(index: number): FheUint208;
get_uint216(index: number): FheUint216;
get_uint224(index: number): FheUint224;
get_uint232(index: number): FheUint232;
get_uint240(index: number): FheUint240;
get_uint248(index: number): FheUint248;
get_uint256(index: number): FheUint256;
get_uint2(index: number): FheUint2;
get_uint4(index: number): FheUint4;
get_uint6(index: number): FheUint6;
get_uint8(index: number): FheUint8;
get_uint10(index: number): FheUint10;
get_uint12(index: number): FheUint12;
get_uint14(index: number): FheUint14;
get_uint16(index: number): FheUint16;
get_uint32(index: number): FheUint32;
get_uint64(index: number): FheUint64;
get_uint128(index: number): FheUint128;
get_uint160(index: number): FheUint160;
get_uint512(index: number): FheUint512;
get_uint1024(index: number): FheUint1024;
get_uint2048(index: number): FheUint2048;
get_int24(index: number): FheInt24;
get_int40(index: number): FheInt40;
get_int48(index: number): FheInt48;
get_int56(index: number): FheInt56;
get_int72(index: number): FheInt72;
get_int80(index: number): FheInt80;
get_int88(index: number): FheInt88;
get_int96(index: number): FheInt96;
get_int104(index: number): FheInt104;
get_int112(index: number): FheInt112;
get_int120(index: number): FheInt120;
get_int136(index: number): FheInt136;
get_int144(index: number): FheInt144;
get_int152(index: number): FheInt152;
get_int168(index: number): FheInt168;
get_int176(index: number): FheInt176;
get_int184(index: number): FheInt184;
get_int192(index: number): FheInt192;
get_int200(index: number): FheInt200;
get_int208(index: number): FheInt208;
get_int216(index: number): FheInt216;
get_int224(index: number): FheInt224;
get_int232(index: number): FheInt232;
get_int240(index: number): FheInt240;
get_int248(index: number): FheInt248;
get_int2(index: number): FheInt2;
get_int4(index: number): FheInt4;
get_int6(index: number): FheInt6;
get_int8(index: number): FheInt8;
get_int10(index: number): FheInt10;
get_int12(index: number): FheInt12;
get_int14(index: number): FheInt14;
get_int16(index: number): FheInt16;
get_int32(index: number): FheInt32;
get_int64(index: number): FheInt64;
get_int128(index: number): FheInt128;
get_int160(index: number): FheInt160;
get_int256(index: number): FheInt256;
get_int512(index: number): FheInt512;
get_int1024(index: number): FheInt1024;
get_int2048(index: number): FheInt2048;
get_bool(index: number): FheBool;
len(): number;
is_empty(): boolean;
get_kind_of(index: number): FheTypes | undefined;
}
export class CompactPkeCrs {
private constructor();
free(): void;
serialize(compress: boolean): Uint8Array;
static deserialize(buffer: Uint8Array): CompactPkeCrs;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompactPkeCrs;
static from_config(config: TfheConfig, max_num_bits: number): CompactPkeCrs;
static deserialize_from_public_params(buffer: Uint8Array): CompactPkeCrs;
static safe_deserialize_from_public_params(buffer: Uint8Array, serialized_size_limit: bigint): CompactPkeCrs;
}
export class CompressedFheBool {
private constructor();
free(): void;
static encrypt_with_client_key(value: boolean, client_key: TfheClientKey): CompressedFheBool;
decompress(): FheBool;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheBool;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheBool;
}
export class CompressedFheInt10 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt10;
decompress(): FheInt10;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt10;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt10;
}
export class CompressedFheInt1024 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt1024;
decompress(): FheInt1024;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt1024;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt1024;
}
export class CompressedFheInt104 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt104;
decompress(): FheInt104;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt104;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt104;
}
export class CompressedFheInt112 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt112;
decompress(): FheInt112;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt112;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt112;
}
export class CompressedFheInt12 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt12;
decompress(): FheInt12;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt12;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt12;
}
export class CompressedFheInt120 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt120;
decompress(): FheInt120;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt120;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt120;
}
export class CompressedFheInt128 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt128;
decompress(): FheInt128;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt128;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt128;
}
export class CompressedFheInt136 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt136;
decompress(): FheInt136;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt136;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt136;
}
export class CompressedFheInt14 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt14;
decompress(): FheInt14;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt14;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt14;
}
export class CompressedFheInt144 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt144;
decompress(): FheInt144;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt144;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt144;
}
export class CompressedFheInt152 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt152;
decompress(): FheInt152;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt152;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt152;
}
export class CompressedFheInt16 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt16;
decompress(): FheInt16;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt16;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt16;
}
export class CompressedFheInt160 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt160;
decompress(): FheInt160;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt160;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt160;
}
export class CompressedFheInt168 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt168;
decompress(): FheInt168;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt168;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt168;
}
export class CompressedFheInt176 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt176;
decompress(): FheInt176;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt176;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt176;
}
export class CompressedFheInt184 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt184;
decompress(): FheInt184;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt184;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt184;
}
export class CompressedFheInt192 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt192;
decompress(): FheInt192;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt192;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt192;
}
export class CompressedFheInt2 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt2;
decompress(): FheInt2;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt2;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt2;
}
export class CompressedFheInt200 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt200;
decompress(): FheInt200;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt200;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt200;
}
export class CompressedFheInt2048 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt2048;
decompress(): FheInt2048;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt2048;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt2048;
}
export class CompressedFheInt208 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt208;
decompress(): FheInt208;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt208;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt208;
}
export class CompressedFheInt216 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt216;
decompress(): FheInt216;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt216;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt216;
}
export class CompressedFheInt224 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt224;
decompress(): FheInt224;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt224;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt224;
}
export class CompressedFheInt232 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt232;
decompress(): FheInt232;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt232;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt232;
}
export class CompressedFheInt24 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt24;
decompress(): FheInt24;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt24;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt24;
}
export class CompressedFheInt240 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt240;
decompress(): FheInt240;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt240;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt240;
}
export class CompressedFheInt248 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt248;
decompress(): FheInt248;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt248;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt248;
}
export class CompressedFheInt256 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt256;
decompress(): FheInt256;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt256;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt256;
}
export class CompressedFheInt32 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt32;
decompress(): FheInt32;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt32;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt32;
}
export class CompressedFheInt4 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt4;
decompress(): FheInt4;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt4;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt4;
}
export class CompressedFheInt40 {
private constructor();
free(): void;
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): CompressedFheInt40;
decompress(): FheInt40;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt40;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt40;
}
export class CompressedFheInt48 {
private constructor();
free(): void;
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): CompressedFheInt48;
decompress(): FheInt48;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt48;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt48;
}
export class CompressedFheInt512 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt512;
decompress(): FheInt512;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt512;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt512;
}
export class CompressedFheInt56 {
private constructor();
free(): void;
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): CompressedFheInt56;
decompress(): FheInt56;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt56;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt56;
}
export class CompressedFheInt6 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt6;
decompress(): FheInt6;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt6;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt6;
}
export class CompressedFheInt64 {
private constructor();
free(): void;
static encrypt_with_client_key(value: bigint, client_key: TfheClientKey): CompressedFheInt64;
decompress(): FheInt64;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt64;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt64;
}
export class CompressedFheInt72 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt72;
decompress(): FheInt72;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt72;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt72;
}
export class CompressedFheInt8 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheInt8;
decompress(): FheInt8;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt8;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt8;
}
export class CompressedFheInt80 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt80;
decompress(): FheInt80;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt80;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt80;
}
export class CompressedFheInt88 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt88;
decompress(): FheInt88;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt88;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt88;
}
export class CompressedFheInt96 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheInt96;
decompress(): FheInt96;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheInt96;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheInt96;
}
export class CompressedFheUint10 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheUint10;
decompress(): FheUint10;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint10;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint10;
}
export class CompressedFheUint1024 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint1024;
decompress(): FheUint1024;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint1024;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint1024;
}
export class CompressedFheUint104 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint104;
decompress(): FheUint104;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint104;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint104;
}
export class CompressedFheUint112 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint112;
decompress(): FheUint112;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint112;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint112;
}
export class CompressedFheUint12 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheUint12;
decompress(): FheUint12;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint12;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint12;
}
export class CompressedFheUint120 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint120;
decompress(): FheUint120;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint120;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint120;
}
export class CompressedFheUint128 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint128;
decompress(): FheUint128;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint128;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint128;
}
export class CompressedFheUint136 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientKey): CompressedFheUint136;
decompress(): FheUint136;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint136;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint136;
}
export class CompressedFheUint14 {
private constructor();
free(): void;
static encrypt_with_client_key(value: number, client_key: TfheClientKey): CompressedFheUint14;
decompress(): FheUint14;
serialize(): Uint8Array;
static deserialize(buffer: Uint8Array): CompressedFheUint14;
safe_serialize(serialized_size_limit: bigint): Uint8Array;
static safe_deserialize(buffer: Uint8Array, serialized_size_limit: bigint): CompressedFheUint14;
}
export class CompressedFheUint144 {
private constructor();
free(): void;
static encrypt_with_client_key(value: any, client_key: TfheClientK