@cofhe/sdk 0.7.1 → 0.8.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/CHANGELOG.md +35 -0
- package/acps/acp.ts +10 -1
- package/acps/index.ts +11 -0
- package/acps/onchain-utils.ts +188 -49
- package/acps/registry.ts +73 -0
- package/acps/test/onchainAccessStatus.test.ts +116 -0
- package/acps/types.ts +16 -0
- package/chains/chains/arbitrum.ts +14 -0
- package/chains/chains/ethereum.ts +14 -0
- package/chains/index.ts +5 -1
- package/chains/test/chains.test.ts +24 -3
- package/core/acps.ts +51 -143
- package/core/client.ts +13 -8
- package/core/clientTypes.ts +29 -4
- package/core/config.ts +25 -1
- package/core/consts.ts +14 -2
- package/core/decrypt/verifyDecryptResult.ts +4 -3
- package/core/encrypt/encryptInputsBuilder.ts +6 -0
- package/core/encrypt/zkPackProveVerify.ts +7 -1
- package/core/error.ts +1 -0
- package/core/fetchKeys.ts +2 -2
- package/core/index.ts +9 -1
- package/core/keyStore.ts +23 -10
- package/core/taskManager.ts +48 -0
- package/core/test/acps.test.ts +91 -1
- package/core/test/client.test.ts +41 -0
- package/core/test/config.test.ts +16 -0
- package/core/test/decrypt.test.ts +11 -4
- package/core/test/encryptInputsBuilder.test.ts +1 -1
- package/core/test/fetchKeys.test.ts +23 -2
- package/core/test/keyStore.test.ts +18 -6
- package/core/test/taskManager.test.ts +57 -0
- package/core/types.ts +8 -0
- package/dist/acps.cjs +314 -35
- package/dist/acps.d.cts +251 -4
- package/dist/acps.d.ts +251 -4
- package/dist/acps.js +2 -2
- package/dist/chains.cjs +26 -0
- package/dist/chains.d.cts +45 -1
- package/dist/chains.d.ts +45 -1
- package/dist/chains.js +1 -1
- package/dist/{chunk-43USWPEH.js → chunk-GGI7Y6AW.js} +59 -264
- package/dist/chunk-KSOV5B4B.js +50 -0
- package/dist/{chunk-ESMZCFJY.js → chunk-NMKMCAI3.js} +4 -2
- package/dist/{chunk-Q7CBWGQX.js → chunk-UJYOBHYA.js} +374 -37
- package/dist/{chunk-N6IDQRRU.js → chunk-UKQAJK4N.js} +25 -1
- package/dist/{clientTypes-BN3nbzYM.d.ts → clientTypes-5YPPR16m.d.ts} +77 -14
- package/dist/{clientTypes-CYZjFznO.d.cts → clientTypes-D3aIXmUp.d.cts} +77 -14
- package/dist/core.cjs +271 -136
- package/dist/core.d.cts +29 -8
- package/dist/core.d.ts +29 -8
- package/dist/core.js +4 -4
- package/dist/node.cjs +266 -136
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +5 -5
- package/dist/{acp-Wi6isVQI.d.cts → onchain-utils-CUAK8glx.d.cts} +31 -1
- package/dist/{acp-Wi6isVQI.d.ts → onchain-utils-CUAK8glx.d.ts} +31 -1
- package/dist/web.cjs +360 -150
- package/dist/web.d.cts +49 -3
- package/dist/web.d.ts +49 -3
- package/dist/web.js +51 -20
- package/dist/zkProve.worker.cjs +69 -15
- package/dist/zkProve.worker.js +23 -17
- package/node/storage.ts +2 -2
- package/node/test/inherited.test.ts +5 -1
- package/node/test/storage-memory-fallback.test.ts +47 -0
- package/package.json +5 -3
- package/web/index.ts +100 -26
- package/web/test/countingZkProveWorker.ts +31 -0
- package/web/test/inherited.web.test.ts +5 -1
- package/web/test/mainThreadPool.web.test.ts +174 -0
- package/web/test/threadPoolBenchHelper.ts +140 -0
- package/web/test/threadPoolOff.web.test.ts +17 -0
- package/web/test/threadPoolOn.web.test.ts +80 -0
- package/web/test/workerInitRace.web.test.ts +79 -0
- package/web/tfheThreadPool.ts +140 -0
- package/web/workerManager.ts +4 -2
- package/web/zkProve.worker.ts +42 -17
package/dist/core.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as CofheConfig, c as CofheClientParams, b as CofheClient, d as CofheClientConnectionState, F as FheTypes } from './clientTypes-
|
|
2
|
-
export { A as AnyExternalHash, i as CofheClientACPs, C as CofheInputConfig, h as CofheInternalConfig, K as DecryptEndpoint,
|
|
3
|
-
import {
|
|
1
|
+
import { a as CofheConfig, c as CofheClientParams, b as CofheClient, d as CofheClientConnectionState, F as FheTypes } from './clientTypes-D3aIXmUp.cjs';
|
|
2
|
+
export { A as AnyExternalHash, i as CofheClientACPs, C as CofheInputConfig, h as CofheInternalConfig, K as DecryptEndpoint, a4 as DecryptForTxBuilder, a5 as DecryptForTxResult, a3 as DecryptForViewBuilder, J as DecryptPollCallbackContext, G as DecryptPollCallbackFunction, a1 as EncryptInputsBuilder, a2 as EncryptInputsBuilderUnset, M as EncryptSetStateFn, W as EncryptStep, N as EncryptStepCallbackContext, S as Encryptable, p as EncryptableAddress, j as EncryptableBool, E as EncryptableItem, B as EncryptableToExternalHashMap, o as EncryptableUint128, l as EncryptableUint16, m as EncryptableUint32, n as EncryptableUint64, k as EncryptableUint8, q as EncryptedNumber, y as ExternalAddressHash, s as ExternalBoolHash, z as ExternalHashProof, D as ExternalItemHashes, x as ExternalUint128Hash, u as ExternalUint16Hash, v as ExternalUint32Hash, w as ExternalUint64Hash, t as ExternalUint8Hash, R as FheAllUTypes, Z as FheKeyDeserializer, r as FheTypeValue, Q as FheUintUTypes, H as HashPlusProofResult, I as IStorage, $ as KeysStorage, a0 as KeysStore, L as LiteralToPrimitive, P as Primitive, T as TfheInitializer, O as TfheThreadsSetting, U as UnsealedItem, a6 as ZkBuilderAndCrsGenerator, a7 as ZkProveWorkerFunction, a8 as ZkProveWorkerRequest, a9 as ZkProveWorkerResponse, f as assertNoRenamedConfigKeys, e as createCofheConfigBase, _ as createKeysStore, Y as fetchKeys, g as getCofheConfigItem, V as isEncryptableItem, X as isLastEncryptionStep, aa as zkProveWithWorker } from './clientTypes-D3aIXmUp.cjs';
|
|
3
|
+
import { PublicClient, Address, Hex } from 'viem';
|
|
4
4
|
import './types-C07FK-cL.cjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './
|
|
6
|
+
import './onchain-utils-CUAK8glx.cjs';
|
|
7
7
|
import 'zustand/vanilla';
|
|
8
8
|
|
|
9
9
|
declare const InitialConnectStore: CofheClientConnectionState;
|
|
@@ -82,6 +82,7 @@ declare enum CofheErrorCode {
|
|
|
82
82
|
PublicWalletGetChainIdFailed = "PUBLIC_WALLET_GET_CHAIN_ID_FAILED",
|
|
83
83
|
PublicWalletGetAddressesFailed = "PUBLIC_WALLET_GET_ADDRESSES_FAILED",
|
|
84
84
|
RehydrateKeysStoreFailed = "REHYDRATE_KEYS_STORE_FAILED",
|
|
85
|
+
TaskManagerUnresolved = "TASK_MANAGER_UNRESOLVED",
|
|
85
86
|
BadRequest = "BAD_REQUEST",
|
|
86
87
|
UnknownChain = "UNKNOWN_CHAIN",
|
|
87
88
|
ACPMalformed = "ACP_MALFORMED",
|
|
@@ -145,8 +146,18 @@ declare class CofheError extends Error {
|
|
|
145
146
|
}
|
|
146
147
|
declare const isCofheError: (error: unknown) => error is CofheError;
|
|
147
148
|
|
|
148
|
-
/**
|
|
149
|
-
|
|
149
|
+
/**
|
|
150
|
+
* CoFHEAddressBook contract address - the same on every chain. Resolves `TASK_MANAGER_ID` to the
|
|
151
|
+
* chain's Task Manager. Keep in sync with `COFHE_ADDRESS_BOOK` in `@fhenixprotocol/cofhe-contracts/FHE.sol`.
|
|
152
|
+
*/
|
|
153
|
+
declare const COFHE_ADDRESS_BOOK_ADDRESS: "0xC0F4e00E531a2B086492Ae3DCC1515038307196b";
|
|
154
|
+
/** Id of the Task Manager in the CoFHEAddressBook. Keep in sync with `TASK_MANAGER_ID` in FHE.sol */
|
|
155
|
+
declare const TASK_MANAGER_ID = 1n;
|
|
156
|
+
/**
|
|
157
|
+
* Mock Task Manager contract address (used for testing). Registered in the mock CoFHEAddressBook;
|
|
158
|
+
* SDK reads still resolve the Task Manager through the book.
|
|
159
|
+
*/
|
|
160
|
+
declare const MOCKS_TASK_MANAGER_ADDRESS: "0x0000000000000000000000000000000000005000";
|
|
150
161
|
/** Mock ZK Verifier contract address (used for testing) */
|
|
151
162
|
declare const MOCKS_ZK_VERIFIER_ADDRESS: "0x0000000000000000000000000000000000005001";
|
|
152
163
|
/** Mock Threshold Network contract address (used for testing) */
|
|
@@ -162,6 +173,15 @@ declare const TFHE_RS_ZK_MAX_BITS: 2048;
|
|
|
162
173
|
/** Size limit for safe_serialize/safe_deserialize (1 GB) */
|
|
163
174
|
declare const TFHE_RS_SAFE_SERIALIZATION_SIZE_LIMIT: bigint;
|
|
164
175
|
|
|
176
|
+
/**
|
|
177
|
+
* The chain's Task Manager, resolved through the CoFHEAddressBook
|
|
178
|
+
* (`getTm(TASK_MANAGER_ID)`) - the same lookup FHE.sol performs on every call.
|
|
179
|
+
*
|
|
180
|
+
* Resolutions are cached per chainId. A failed resolution (network error, no
|
|
181
|
+
* CoFHE deployment, id unset) is NOT cached, so a later call retries.
|
|
182
|
+
*/
|
|
183
|
+
declare const getTaskManagerAddress: (publicClient: PublicClient, chainId?: number) => Promise<Address>;
|
|
184
|
+
|
|
165
185
|
/**
|
|
166
186
|
* Verifies a decrypt result signature **locally** (no `ctHash`/plaintext sent over RPC).
|
|
167
187
|
*
|
|
@@ -170,7 +190,8 @@ declare const TFHE_RS_SAFE_SERIALIZATION_SIZE_LIMIT: bigint;
|
|
|
170
190
|
* This mirrors the TaskManager decrypt-result hash format:
|
|
171
191
|
* `keccak256(abi.encodePacked(result, encType, chainId, ctHash))`
|
|
172
192
|
*
|
|
173
|
-
* The only on-chain
|
|
193
|
+
* The only on-chain reads performed are the Task Manager lookup in the CoFHEAddressBook (cached
|
|
194
|
+
* per chain) and `TaskManager.decryptResultSigner()` (via `eth_call`).
|
|
174
195
|
*
|
|
175
196
|
* Works with both production and mock deployments.
|
|
176
197
|
*/
|
|
@@ -182,4 +203,4 @@ declare function verifyDecryptResult(handle: bigint | string, cleartext: bigint,
|
|
|
182
203
|
*/
|
|
183
204
|
declare function fheTypeToString(utype: FheTypes): string;
|
|
184
205
|
|
|
185
|
-
export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofheClient, CofheClientConnectionState, CofheClientParams, CofheConfig, type CofheDebugInterceptors, CofheError, CofheErrorCode, type CofheErrorParams, type CofheOnRequest, type CofheOnResponse, type CofheRequestContext, type CofheRequestOverride, FheTypes, MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY, MOCKS_THRESHOLD_NETWORK_ADDRESS, MOCKS_ZK_VERIFIER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY,
|
|
206
|
+
export { COFHE_ADDRESS_BOOK_ADDRESS, InitialConnectStore as CONNECT_STORE_DEFAULTS, CofheClient, CofheClientConnectionState, CofheClientParams, CofheConfig, type CofheDebugInterceptors, CofheError, CofheErrorCode, type CofheErrorParams, type CofheOnRequest, type CofheOnResponse, type CofheRequestContext, type CofheRequestOverride, FheTypes, MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY, MOCKS_TASK_MANAGER_ADDRESS, MOCKS_THRESHOLD_NETWORK_ADDRESS, MOCKS_ZK_VERIFIER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY, TASK_MANAGER_ID, TFHE_RS_SAFE_SERIALIZATION_SIZE_LIMIT, TFHE_RS_ZK_MAX_BITS, cofheFetch, createCofheClientBase, fheTypeToString, getCofheDebugInterceptors, getTaskManagerAddress, isCofheError, setCofheDebugInterceptors, verifyDecryptResult };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as CofheConfig, c as CofheClientParams, b as CofheClient, d as CofheClientConnectionState, F as FheTypes } from './clientTypes-
|
|
2
|
-
export { A as AnyExternalHash, i as CofheClientACPs, C as CofheInputConfig, h as CofheInternalConfig, K as DecryptEndpoint,
|
|
3
|
-
import {
|
|
1
|
+
import { a as CofheConfig, c as CofheClientParams, b as CofheClient, d as CofheClientConnectionState, F as FheTypes } from './clientTypes-5YPPR16m.js';
|
|
2
|
+
export { A as AnyExternalHash, i as CofheClientACPs, C as CofheInputConfig, h as CofheInternalConfig, K as DecryptEndpoint, a4 as DecryptForTxBuilder, a5 as DecryptForTxResult, a3 as DecryptForViewBuilder, J as DecryptPollCallbackContext, G as DecryptPollCallbackFunction, a1 as EncryptInputsBuilder, a2 as EncryptInputsBuilderUnset, M as EncryptSetStateFn, W as EncryptStep, N as EncryptStepCallbackContext, S as Encryptable, p as EncryptableAddress, j as EncryptableBool, E as EncryptableItem, B as EncryptableToExternalHashMap, o as EncryptableUint128, l as EncryptableUint16, m as EncryptableUint32, n as EncryptableUint64, k as EncryptableUint8, q as EncryptedNumber, y as ExternalAddressHash, s as ExternalBoolHash, z as ExternalHashProof, D as ExternalItemHashes, x as ExternalUint128Hash, u as ExternalUint16Hash, v as ExternalUint32Hash, w as ExternalUint64Hash, t as ExternalUint8Hash, R as FheAllUTypes, Z as FheKeyDeserializer, r as FheTypeValue, Q as FheUintUTypes, H as HashPlusProofResult, I as IStorage, $ as KeysStorage, a0 as KeysStore, L as LiteralToPrimitive, P as Primitive, T as TfheInitializer, O as TfheThreadsSetting, U as UnsealedItem, a6 as ZkBuilderAndCrsGenerator, a7 as ZkProveWorkerFunction, a8 as ZkProveWorkerRequest, a9 as ZkProveWorkerResponse, f as assertNoRenamedConfigKeys, e as createCofheConfigBase, _ as createKeysStore, Y as fetchKeys, g as getCofheConfigItem, V as isEncryptableItem, X as isLastEncryptionStep, aa as zkProveWithWorker } from './clientTypes-5YPPR16m.js';
|
|
3
|
+
import { PublicClient, Address, Hex } from 'viem';
|
|
4
4
|
import './types-C07FK-cL.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './
|
|
6
|
+
import './onchain-utils-CUAK8glx.js';
|
|
7
7
|
import 'zustand/vanilla';
|
|
8
8
|
|
|
9
9
|
declare const InitialConnectStore: CofheClientConnectionState;
|
|
@@ -82,6 +82,7 @@ declare enum CofheErrorCode {
|
|
|
82
82
|
PublicWalletGetChainIdFailed = "PUBLIC_WALLET_GET_CHAIN_ID_FAILED",
|
|
83
83
|
PublicWalletGetAddressesFailed = "PUBLIC_WALLET_GET_ADDRESSES_FAILED",
|
|
84
84
|
RehydrateKeysStoreFailed = "REHYDRATE_KEYS_STORE_FAILED",
|
|
85
|
+
TaskManagerUnresolved = "TASK_MANAGER_UNRESOLVED",
|
|
85
86
|
BadRequest = "BAD_REQUEST",
|
|
86
87
|
UnknownChain = "UNKNOWN_CHAIN",
|
|
87
88
|
ACPMalformed = "ACP_MALFORMED",
|
|
@@ -145,8 +146,18 @@ declare class CofheError extends Error {
|
|
|
145
146
|
}
|
|
146
147
|
declare const isCofheError: (error: unknown) => error is CofheError;
|
|
147
148
|
|
|
148
|
-
/**
|
|
149
|
-
|
|
149
|
+
/**
|
|
150
|
+
* CoFHEAddressBook contract address - the same on every chain. Resolves `TASK_MANAGER_ID` to the
|
|
151
|
+
* chain's Task Manager. Keep in sync with `COFHE_ADDRESS_BOOK` in `@fhenixprotocol/cofhe-contracts/FHE.sol`.
|
|
152
|
+
*/
|
|
153
|
+
declare const COFHE_ADDRESS_BOOK_ADDRESS: "0xC0F4e00E531a2B086492Ae3DCC1515038307196b";
|
|
154
|
+
/** Id of the Task Manager in the CoFHEAddressBook. Keep in sync with `TASK_MANAGER_ID` in FHE.sol */
|
|
155
|
+
declare const TASK_MANAGER_ID = 1n;
|
|
156
|
+
/**
|
|
157
|
+
* Mock Task Manager contract address (used for testing). Registered in the mock CoFHEAddressBook;
|
|
158
|
+
* SDK reads still resolve the Task Manager through the book.
|
|
159
|
+
*/
|
|
160
|
+
declare const MOCKS_TASK_MANAGER_ADDRESS: "0x0000000000000000000000000000000000005000";
|
|
150
161
|
/** Mock ZK Verifier contract address (used for testing) */
|
|
151
162
|
declare const MOCKS_ZK_VERIFIER_ADDRESS: "0x0000000000000000000000000000000000005001";
|
|
152
163
|
/** Mock Threshold Network contract address (used for testing) */
|
|
@@ -162,6 +173,15 @@ declare const TFHE_RS_ZK_MAX_BITS: 2048;
|
|
|
162
173
|
/** Size limit for safe_serialize/safe_deserialize (1 GB) */
|
|
163
174
|
declare const TFHE_RS_SAFE_SERIALIZATION_SIZE_LIMIT: bigint;
|
|
164
175
|
|
|
176
|
+
/**
|
|
177
|
+
* The chain's Task Manager, resolved through the CoFHEAddressBook
|
|
178
|
+
* (`getTm(TASK_MANAGER_ID)`) - the same lookup FHE.sol performs on every call.
|
|
179
|
+
*
|
|
180
|
+
* Resolutions are cached per chainId. A failed resolution (network error, no
|
|
181
|
+
* CoFHE deployment, id unset) is NOT cached, so a later call retries.
|
|
182
|
+
*/
|
|
183
|
+
declare const getTaskManagerAddress: (publicClient: PublicClient, chainId?: number) => Promise<Address>;
|
|
184
|
+
|
|
165
185
|
/**
|
|
166
186
|
* Verifies a decrypt result signature **locally** (no `ctHash`/plaintext sent over RPC).
|
|
167
187
|
*
|
|
@@ -170,7 +190,8 @@ declare const TFHE_RS_SAFE_SERIALIZATION_SIZE_LIMIT: bigint;
|
|
|
170
190
|
* This mirrors the TaskManager decrypt-result hash format:
|
|
171
191
|
* `keccak256(abi.encodePacked(result, encType, chainId, ctHash))`
|
|
172
192
|
*
|
|
173
|
-
* The only on-chain
|
|
193
|
+
* The only on-chain reads performed are the Task Manager lookup in the CoFHEAddressBook (cached
|
|
194
|
+
* per chain) and `TaskManager.decryptResultSigner()` (via `eth_call`).
|
|
174
195
|
*
|
|
175
196
|
* Works with both production and mock deployments.
|
|
176
197
|
*/
|
|
@@ -182,4 +203,4 @@ declare function verifyDecryptResult(handle: bigint | string, cleartext: bigint,
|
|
|
182
203
|
*/
|
|
183
204
|
declare function fheTypeToString(utype: FheTypes): string;
|
|
184
205
|
|
|
185
|
-
export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofheClient, CofheClientConnectionState, CofheClientParams, CofheConfig, type CofheDebugInterceptors, CofheError, CofheErrorCode, type CofheErrorParams, type CofheOnRequest, type CofheOnResponse, type CofheRequestContext, type CofheRequestOverride, FheTypes, MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY, MOCKS_THRESHOLD_NETWORK_ADDRESS, MOCKS_ZK_VERIFIER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY,
|
|
206
|
+
export { COFHE_ADDRESS_BOOK_ADDRESS, InitialConnectStore as CONNECT_STORE_DEFAULTS, CofheClient, CofheClientConnectionState, CofheClientParams, CofheConfig, type CofheDebugInterceptors, CofheError, CofheErrorCode, type CofheErrorParams, type CofheOnRequest, type CofheOnResponse, type CofheRequestContext, type CofheRequestOverride, FheTypes, MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY, MOCKS_TASK_MANAGER_ADDRESS, MOCKS_THRESHOLD_NETWORK_ADDRESS, MOCKS_ZK_VERIFIER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY, TASK_MANAGER_ID, TFHE_RS_SAFE_SERIALIZATION_SIZE_LIMIT, TFHE_RS_ZK_MAX_BITS, cofheFetch, createCofheClientBase, fheTypeToString, getCofheDebugInterceptors, getTaskManagerAddress, isCofheError, setCofheDebugInterceptors, verifyDecryptResult };
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { InitialConnectStore as CONNECT_STORE_DEFAULTS,
|
|
2
|
-
import './chunk-
|
|
3
|
-
|
|
4
|
-
export { MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY, MOCKS_THRESHOLD_NETWORK_ADDRESS, MOCKS_ZK_VERIFIER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY,
|
|
1
|
+
export { InitialConnectStore as CONNECT_STORE_DEFAULTS, DecryptForTxBuilder, DecryptForViewBuilder, EncryptInputsBuilder, EncryptStep, Encryptable, FheAllUTypes, FheTypes, FheUintUTypes, assertNoRenamedConfigKeys, cofheFetch, createCofheClientBase, createCofheConfigBase, createKeysStore, fetchKeys, fheTypeToString, getCofheConfigItem, getCofheDebugInterceptors, isEncryptableItem, isLastEncryptionStep, setCofheDebugInterceptors, verifyDecryptResult, zkProveWithWorker } from './chunk-GGI7Y6AW.js';
|
|
2
|
+
import './chunk-UKQAJK4N.js';
|
|
3
|
+
export { CofheError, CofheErrorCode, getTaskManagerAddress, isCofheError } from './chunk-UJYOBHYA.js';
|
|
4
|
+
export { COFHE_ADDRESS_BOOK_ADDRESS, MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY, MOCKS_TASK_MANAGER_ADDRESS, MOCKS_THRESHOLD_NETWORK_ADDRESS, MOCKS_ZK_VERIFIER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY, TASK_MANAGER_ID, TFHE_RS_SAFE_SERIALIZATION_SIZE_LIMIT, TFHE_RS_ZK_MAX_BITS } from './chunk-NMKMCAI3.js';
|