@cofhe/sdk 0.2.0 → 0.3.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/chains/defineChain.ts +2 -2
  3. package/chains/types.ts +3 -3
  4. package/core/baseBuilder.ts +18 -18
  5. package/core/client.test.ts +155 -41
  6. package/core/client.ts +72 -32
  7. package/core/clientTypes.ts +28 -18
  8. package/core/config.test.ts +40 -33
  9. package/core/config.ts +56 -51
  10. package/core/consts.ts +22 -0
  11. package/core/decrypt/{MockQueryDecrypterAbi.ts → MockThresholdNetworkAbi.ts} +71 -21
  12. package/core/decrypt/cofheMocksDecryptForTx.ts +142 -0
  13. package/core/decrypt/{cofheMocksSealOutput.ts → cofheMocksDecryptForView.ts} +12 -14
  14. package/core/decrypt/decryptForTxBuilder.ts +340 -0
  15. package/core/decrypt/{decryptHandleBuilder.ts → decryptForViewBuilder.ts} +75 -42
  16. package/core/decrypt/tnDecrypt.ts +232 -0
  17. package/core/decrypt/tnSealOutputV1.ts +5 -5
  18. package/core/decrypt/tnSealOutputV2.ts +27 -27
  19. package/core/encrypt/cofheMocksZkVerifySign.ts +19 -26
  20. package/core/encrypt/encryptInputsBuilder.test.ts +57 -61
  21. package/core/encrypt/encryptInputsBuilder.ts +65 -42
  22. package/core/encrypt/zkPackProveVerify.ts +11 -11
  23. package/core/error.ts +18 -18
  24. package/core/fetchKeys.test.ts +3 -3
  25. package/core/fetchKeys.ts +3 -3
  26. package/core/index.ts +22 -11
  27. package/core/permits.test.ts +5 -6
  28. package/core/permits.ts +5 -4
  29. package/core/utils.ts +10 -10
  30. package/dist/chains.cjs +4 -7
  31. package/dist/chains.d.cts +12 -12
  32. package/dist/chains.d.ts +12 -12
  33. package/dist/chains.js +1 -1
  34. package/dist/{chunk-WGCRJCBR.js → chunk-2TPSCOW3.js} +820 -224
  35. package/dist/{chunk-UGBVZNRT.js → chunk-NWDKXBIP.js} +309 -189
  36. package/dist/{chunk-WEAZ25JO.js → chunk-TBLR7NNE.js} +4 -7
  37. package/dist/{clientTypes-5_1nwtUe.d.cts → clientTypes-6aTZPQ_4.d.ts} +233 -173
  38. package/dist/{clientTypes-Es7fyi65.d.ts → clientTypes-Bhq7pCSA.d.cts} +233 -173
  39. package/dist/core.cjs +1138 -418
  40. package/dist/core.d.cts +37 -24
  41. package/dist/core.d.ts +37 -24
  42. package/dist/core.js +3 -3
  43. package/dist/node.cjs +1082 -370
  44. package/dist/node.d.cts +12 -12
  45. package/dist/node.d.ts +12 -12
  46. package/dist/node.js +8 -8
  47. package/dist/{permit-fUSe6KKq.d.cts → permit-MZ502UBl.d.cts} +30 -33
  48. package/dist/{permit-fUSe6KKq.d.ts → permit-MZ502UBl.d.ts} +30 -33
  49. package/dist/permits.cjs +305 -187
  50. package/dist/permits.d.cts +111 -812
  51. package/dist/permits.d.ts +111 -812
  52. package/dist/permits.js +1 -1
  53. package/dist/types-YiAC4gig.d.cts +33 -0
  54. package/dist/types-YiAC4gig.d.ts +33 -0
  55. package/dist/web.cjs +1085 -373
  56. package/dist/web.d.cts +13 -13
  57. package/dist/web.d.ts +13 -13
  58. package/dist/web.js +10 -10
  59. package/node/client.test.ts +34 -34
  60. package/node/config.test.ts +11 -11
  61. package/node/encryptInputs.test.ts +29 -29
  62. package/node/index.ts +15 -15
  63. package/package.json +3 -3
  64. package/permits/localstorage.test.ts +9 -13
  65. package/permits/onchain-utils.ts +221 -0
  66. package/permits/permit.test.ts +51 -5
  67. package/permits/permit.ts +28 -74
  68. package/permits/store.test.ts +10 -50
  69. package/permits/store.ts +4 -14
  70. package/permits/test-utils.ts +10 -2
  71. package/permits/types.ts +22 -9
  72. package/permits/utils.ts +0 -4
  73. package/permits/validation.test.ts +29 -32
  74. package/permits/validation.ts +112 -194
  75. package/web/client.web.test.ts +34 -34
  76. package/web/config.web.test.ts +11 -11
  77. package/web/encryptInputs.web.test.ts +29 -29
  78. package/web/index.ts +19 -19
  79. package/web/worker.builder.web.test.ts +28 -28
  80. package/web/worker.config.web.test.ts +47 -47
  81. package/web/worker.output.web.test.ts +10 -10
  82. package/dist/types-KImPrEIe.d.cts +0 -48
  83. package/dist/types-KImPrEIe.d.ts +0 -48
package/dist/core.d.cts CHANGED
@@ -1,20 +1,20 @@
1
- import { c as CofhesdkClientConnectionState, a as CofhesdkConfig, d as CofhesdkClientParams, b as CofhesdkClient, F as FheTypes } from './clientTypes-5_1nwtUe.cjs';
2
- export { h as CofhesdkClientPermits, C as CofhesdkInputConfig, f as CofhesdkInternalConfig, X as DecryptHandlesBuilder, W as EncryptInputsBuilder, B as EncryptSetStateFn, M as EncryptStep, D as EncryptStepCallbackContext, J as Encryptable, o as EncryptableAddress, i as EncryptableBool, E as EncryptableItem, z as EncryptableToEncryptedItemInputMap, n as EncryptableUint128, k as EncryptableUint16, l as EncryptableUint32, m as EncryptableUint64, j as EncryptableUint8, x as EncryptedAddressInput, r as EncryptedBoolInput, q as EncryptedItemInput, y as EncryptedItemInputs, p as EncryptedNumber, w as EncryptedUint128Input, t as EncryptedUint16Input, u as EncryptedUint32Input, v as EncryptedUint64Input, s as EncryptedUint8Input, H as FheAllUTypes, R as FheKeyDeserializer, A as FheTypeValue, G as FheUintUTypes, I as IStorage, T as KeysStorage, V as KeysStore, L as LiteralToPrimitive, P as Primitive, U as UnsealedItem, Z as ZkBuilderAndCrsGenerator, Y as ZkProveWorkerFunction, _ as ZkProveWorkerRequest, $ as ZkProveWorkerResponse, O as assertCorrectEncryptedItemInput, e as createCofhesdkConfigBase, S as createKeysStore, Q as fetchKeys, g as getCofhesdkConfigItem, K as isEncryptableItem, N as isLastEncryptionStep, a0 as zkProveWithWorker } from './clientTypes-5_1nwtUe.cjs';
1
+ import { c as CofheClientConnectionState, a as CofheConfig, d as CofheClientParams, b as CofheClient, F as FheTypes } from './clientTypes-Bhq7pCSA.cjs';
2
+ export { h as CofheClientPermits, C as CofheInputConfig, f as CofheInternalConfig, Y as DecryptForTxBuilder, Z as DecryptForTxResult, X as DecryptForViewBuilder, W as EncryptInputsBuilder, B as EncryptSetStateFn, M as EncryptStep, D as EncryptStepCallbackContext, J as Encryptable, o as EncryptableAddress, i as EncryptableBool, E as EncryptableItem, z as EncryptableToEncryptedItemInputMap, n as EncryptableUint128, k as EncryptableUint16, l as EncryptableUint32, m as EncryptableUint64, j as EncryptableUint8, x as EncryptedAddressInput, r as EncryptedBoolInput, q as EncryptedItemInput, y as EncryptedItemInputs, p as EncryptedNumber, w as EncryptedUint128Input, t as EncryptedUint16Input, u as EncryptedUint32Input, v as EncryptedUint64Input, s as EncryptedUint8Input, H as FheAllUTypes, R as FheKeyDeserializer, A as FheTypeValue, G as FheUintUTypes, I as IStorage, T as KeysStorage, V as KeysStore, L as LiteralToPrimitive, P as Primitive, U as UnsealedItem, _ as ZkBuilderAndCrsGenerator, $ as ZkProveWorkerFunction, a0 as ZkProveWorkerRequest, a1 as ZkProveWorkerResponse, O as assertCorrectEncryptedItemInput, e as createCofheConfigBase, S as createKeysStore, Q as fetchKeys, g as getCofheConfigItem, K as isEncryptableItem, N as isLastEncryptionStep, a2 as zkProveWithWorker } from './clientTypes-Bhq7pCSA.cjs';
3
3
  import 'viem';
4
- import './types-KImPrEIe.cjs';
4
+ import './types-YiAC4gig.cjs';
5
5
  import 'zod';
6
- import './permit-fUSe6KKq.cjs';
6
+ import './permit-MZ502UBl.cjs';
7
7
  import 'zustand/vanilla';
8
8
 
9
- declare const InitialConnectStore: CofhesdkClientConnectionState;
9
+ declare const InitialConnectStore: CofheClientConnectionState;
10
10
  /**
11
- * Creates a CoFHE SDK client instance (base implementation)
12
- * @param {CofhesdkClientParams} opts - Initialization options including config and platform-specific serializers
13
- * @returns {CofhesdkClient} - The CoFHE SDK client instance
11
+ * Creates a CoFHE client instance (base implementation)
12
+ * @param {CofheClientParams} opts - Initialization options including config and platform-specific serializers
13
+ * @returns {CofheClient} - The CoFHE client instance
14
14
  */
15
- declare function createCofhesdkClientBase<TConfig extends CofhesdkConfig>(opts: CofhesdkClientParams<TConfig>): CofhesdkClient<TConfig>;
15
+ declare function createCofheClientBase<TConfig extends CofheConfig>(opts: CofheClientParams<TConfig>): CofheClient<TConfig>;
16
16
 
17
- declare enum CofhesdkErrorCode {
17
+ declare enum CofheErrorCode {
18
18
  InternalError = "INTERNAL_ERROR",
19
19
  UnknownEnvironment = "UNKNOWN_ENVIRONMENT",
20
20
  InitTfheFailed = "INIT_TFHE_FAILED",
@@ -59,36 +59,36 @@ declare enum CofhesdkErrorCode {
59
59
  PublicWalletGetAddressesFailed = "PUBLIC_WALLET_GET_ADDRESSES_FAILED",
60
60
  RehydrateKeysStoreFailed = "REHYDRATE_KEYS_STORE_FAILED"
61
61
  }
62
- type CofhesdkErrorParams = {
63
- code: CofhesdkErrorCode;
62
+ type CofheErrorParams = {
63
+ code: CofheErrorCode;
64
64
  message: string;
65
65
  cause?: Error;
66
66
  hint?: string;
67
67
  context?: Record<string, unknown>;
68
68
  };
69
69
  /**
70
- * CofhesdkError class
70
+ * CofheError class
71
71
  * This class is used to create errors that are specific to the CoFHE SDK
72
72
  * It extends the Error class and adds a code, cause, hint, and context
73
73
  * The code is used to identify the type of error
74
- * The cause is used to indicate the inner error that caused the CofhesdkError
74
+ * The cause is used to indicate the inner error that caused the CofheError
75
75
  * The hint is used to provide a hint about how to fix the error
76
76
  * The context is used to provide additional context about the state that caused the error
77
77
  * The serialize method is used to serialize the error to a JSON string
78
78
  * The toString method is used to provide a human-readable string representation of the error
79
79
  */
80
- declare class CofhesdkError extends Error {
81
- readonly code: CofhesdkErrorCode;
80
+ declare class CofheError extends Error {
81
+ readonly code: CofheErrorCode;
82
82
  readonly cause?: Error;
83
83
  readonly hint?: string;
84
84
  readonly context?: Record<string, unknown>;
85
- constructor({ code, message, cause, hint, context }: CofhesdkErrorParams);
85
+ constructor({ code, message, cause, hint, context }: CofheErrorParams);
86
86
  /**
87
- * Creates a CofhesdkError from an unknown error
88
- * If the error is a CofhesdkError, it is returned unchanged, else a new CofhesdkError is created
89
- * If a wrapperError is provided, it is used to create the new CofhesdkError, else a default is used
87
+ * Creates a CofheError from an unknown error
88
+ * If the error is a CofheError, it is returned unchanged, else a new CofheError is created
89
+ * If a wrapperError is provided, it is used to create the new CofheError, else a default is used
90
90
  */
91
- static fromError(error: unknown, wrapperError?: CofhesdkErrorParams): CofhesdkError;
91
+ static fromError(error: unknown, wrapperError?: CofheErrorParams): CofheError;
92
92
  /**
93
93
  * Serializes the error to JSON string with proper handling of Error objects
94
94
  */
@@ -98,9 +98,22 @@ declare class CofhesdkError extends Error {
98
98
  */
99
99
  toString(): string;
100
100
  }
101
- declare const isCofhesdkError: (error: unknown) => error is CofhesdkError;
101
+ declare const isCofheError: (error: unknown) => error is CofheError;
102
102
 
103
- declare const MOCKS_ZK_VERIFIER_SIGNER_ADDRESS = "0x6E12D8C87503D4287c294f2Fdef96ACd9DFf6bd2";
103
+ /** Main Task Manager contract address */
104
+ declare const TASK_MANAGER_ADDRESS: "0xeA30c4B8b44078Bbf8a6ef5b9f1eC1626C7848D9";
105
+ /** Mock ZK Verifier contract address (used for testing) */
106
+ declare const MOCKS_ZK_VERIFIER_ADDRESS: "0x0000000000000000000000000000000000005001";
107
+ /** Mock Threshold Network contract address (used for testing) */
108
+ declare const MOCKS_THRESHOLD_NETWORK_ADDRESS: "0x0000000000000000000000000000000000005002";
109
+ /** Test Bed contract address (used for testing) */
110
+ declare const TEST_BED_ADDRESS: "0x0000000000000000000000000000000000005003";
111
+ /** Private key for the Mock ZK Verifier signer account */
112
+ declare const MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY: "0x6C8D7F768A6BB4AAFE85E8A2F5A9680355239C7E14646ED62B044E39DE154512";
113
+ /** Address for the Mock ZK Verifier signer account */
114
+ declare const MOCKS_ZK_VERIFIER_SIGNER_ADDRESS: "0x6E12D8C87503D4287c294f2Fdef96ACd9DFf6bd2";
115
+ /** Private key for the Mock decrypt result signer account */
116
+ declare const MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY: "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d";
104
117
 
105
118
  /**
106
119
  * Converts FheTypes enum to string representation for serialization
@@ -108,4 +121,4 @@ declare const MOCKS_ZK_VERIFIER_SIGNER_ADDRESS = "0x6E12D8C87503D4287c294f2Fdef9
108
121
  */
109
122
  declare function fheTypeToString(utype: FheTypes): string;
110
123
 
111
- export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofhesdkClient, CofhesdkClientConnectionState, CofhesdkClientParams, CofhesdkConfig, CofhesdkError, CofhesdkErrorCode, type CofhesdkErrorParams, FheTypes, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, createCofhesdkClientBase, fheTypeToString, isCofhesdkError };
124
+ export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofheClient, CofheClientConnectionState, CofheClientParams, CofheConfig, CofheError, CofheErrorCode, type CofheErrorParams, 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, TASK_MANAGER_ADDRESS, TEST_BED_ADDRESS, createCofheClientBase, fheTypeToString, isCofheError };
package/dist/core.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import { c as CofhesdkClientConnectionState, a as CofhesdkConfig, d as CofhesdkClientParams, b as CofhesdkClient, F as FheTypes } from './clientTypes-Es7fyi65.js';
2
- export { h as CofhesdkClientPermits, C as CofhesdkInputConfig, f as CofhesdkInternalConfig, X as DecryptHandlesBuilder, W as EncryptInputsBuilder, B as EncryptSetStateFn, M as EncryptStep, D as EncryptStepCallbackContext, J as Encryptable, o as EncryptableAddress, i as EncryptableBool, E as EncryptableItem, z as EncryptableToEncryptedItemInputMap, n as EncryptableUint128, k as EncryptableUint16, l as EncryptableUint32, m as EncryptableUint64, j as EncryptableUint8, x as EncryptedAddressInput, r as EncryptedBoolInput, q as EncryptedItemInput, y as EncryptedItemInputs, p as EncryptedNumber, w as EncryptedUint128Input, t as EncryptedUint16Input, u as EncryptedUint32Input, v as EncryptedUint64Input, s as EncryptedUint8Input, H as FheAllUTypes, R as FheKeyDeserializer, A as FheTypeValue, G as FheUintUTypes, I as IStorage, T as KeysStorage, V as KeysStore, L as LiteralToPrimitive, P as Primitive, U as UnsealedItem, Z as ZkBuilderAndCrsGenerator, Y as ZkProveWorkerFunction, _ as ZkProveWorkerRequest, $ as ZkProveWorkerResponse, O as assertCorrectEncryptedItemInput, e as createCofhesdkConfigBase, S as createKeysStore, Q as fetchKeys, g as getCofhesdkConfigItem, K as isEncryptableItem, N as isLastEncryptionStep, a0 as zkProveWithWorker } from './clientTypes-Es7fyi65.js';
1
+ import { c as CofheClientConnectionState, a as CofheConfig, d as CofheClientParams, b as CofheClient, F as FheTypes } from './clientTypes-6aTZPQ_4.js';
2
+ export { h as CofheClientPermits, C as CofheInputConfig, f as CofheInternalConfig, Y as DecryptForTxBuilder, Z as DecryptForTxResult, X as DecryptForViewBuilder, W as EncryptInputsBuilder, B as EncryptSetStateFn, M as EncryptStep, D as EncryptStepCallbackContext, J as Encryptable, o as EncryptableAddress, i as EncryptableBool, E as EncryptableItem, z as EncryptableToEncryptedItemInputMap, n as EncryptableUint128, k as EncryptableUint16, l as EncryptableUint32, m as EncryptableUint64, j as EncryptableUint8, x as EncryptedAddressInput, r as EncryptedBoolInput, q as EncryptedItemInput, y as EncryptedItemInputs, p as EncryptedNumber, w as EncryptedUint128Input, t as EncryptedUint16Input, u as EncryptedUint32Input, v as EncryptedUint64Input, s as EncryptedUint8Input, H as FheAllUTypes, R as FheKeyDeserializer, A as FheTypeValue, G as FheUintUTypes, I as IStorage, T as KeysStorage, V as KeysStore, L as LiteralToPrimitive, P as Primitive, U as UnsealedItem, _ as ZkBuilderAndCrsGenerator, $ as ZkProveWorkerFunction, a0 as ZkProveWorkerRequest, a1 as ZkProveWorkerResponse, O as assertCorrectEncryptedItemInput, e as createCofheConfigBase, S as createKeysStore, Q as fetchKeys, g as getCofheConfigItem, K as isEncryptableItem, N as isLastEncryptionStep, a2 as zkProveWithWorker } from './clientTypes-6aTZPQ_4.js';
3
3
  import 'viem';
4
- import './types-KImPrEIe.js';
4
+ import './types-YiAC4gig.js';
5
5
  import 'zod';
6
- import './permit-fUSe6KKq.js';
6
+ import './permit-MZ502UBl.js';
7
7
  import 'zustand/vanilla';
8
8
 
9
- declare const InitialConnectStore: CofhesdkClientConnectionState;
9
+ declare const InitialConnectStore: CofheClientConnectionState;
10
10
  /**
11
- * Creates a CoFHE SDK client instance (base implementation)
12
- * @param {CofhesdkClientParams} opts - Initialization options including config and platform-specific serializers
13
- * @returns {CofhesdkClient} - The CoFHE SDK client instance
11
+ * Creates a CoFHE client instance (base implementation)
12
+ * @param {CofheClientParams} opts - Initialization options including config and platform-specific serializers
13
+ * @returns {CofheClient} - The CoFHE client instance
14
14
  */
15
- declare function createCofhesdkClientBase<TConfig extends CofhesdkConfig>(opts: CofhesdkClientParams<TConfig>): CofhesdkClient<TConfig>;
15
+ declare function createCofheClientBase<TConfig extends CofheConfig>(opts: CofheClientParams<TConfig>): CofheClient<TConfig>;
16
16
 
17
- declare enum CofhesdkErrorCode {
17
+ declare enum CofheErrorCode {
18
18
  InternalError = "INTERNAL_ERROR",
19
19
  UnknownEnvironment = "UNKNOWN_ENVIRONMENT",
20
20
  InitTfheFailed = "INIT_TFHE_FAILED",
@@ -59,36 +59,36 @@ declare enum CofhesdkErrorCode {
59
59
  PublicWalletGetAddressesFailed = "PUBLIC_WALLET_GET_ADDRESSES_FAILED",
60
60
  RehydrateKeysStoreFailed = "REHYDRATE_KEYS_STORE_FAILED"
61
61
  }
62
- type CofhesdkErrorParams = {
63
- code: CofhesdkErrorCode;
62
+ type CofheErrorParams = {
63
+ code: CofheErrorCode;
64
64
  message: string;
65
65
  cause?: Error;
66
66
  hint?: string;
67
67
  context?: Record<string, unknown>;
68
68
  };
69
69
  /**
70
- * CofhesdkError class
70
+ * CofheError class
71
71
  * This class is used to create errors that are specific to the CoFHE SDK
72
72
  * It extends the Error class and adds a code, cause, hint, and context
73
73
  * The code is used to identify the type of error
74
- * The cause is used to indicate the inner error that caused the CofhesdkError
74
+ * The cause is used to indicate the inner error that caused the CofheError
75
75
  * The hint is used to provide a hint about how to fix the error
76
76
  * The context is used to provide additional context about the state that caused the error
77
77
  * The serialize method is used to serialize the error to a JSON string
78
78
  * The toString method is used to provide a human-readable string representation of the error
79
79
  */
80
- declare class CofhesdkError extends Error {
81
- readonly code: CofhesdkErrorCode;
80
+ declare class CofheError extends Error {
81
+ readonly code: CofheErrorCode;
82
82
  readonly cause?: Error;
83
83
  readonly hint?: string;
84
84
  readonly context?: Record<string, unknown>;
85
- constructor({ code, message, cause, hint, context }: CofhesdkErrorParams);
85
+ constructor({ code, message, cause, hint, context }: CofheErrorParams);
86
86
  /**
87
- * Creates a CofhesdkError from an unknown error
88
- * If the error is a CofhesdkError, it is returned unchanged, else a new CofhesdkError is created
89
- * If a wrapperError is provided, it is used to create the new CofhesdkError, else a default is used
87
+ * Creates a CofheError from an unknown error
88
+ * If the error is a CofheError, it is returned unchanged, else a new CofheError is created
89
+ * If a wrapperError is provided, it is used to create the new CofheError, else a default is used
90
90
  */
91
- static fromError(error: unknown, wrapperError?: CofhesdkErrorParams): CofhesdkError;
91
+ static fromError(error: unknown, wrapperError?: CofheErrorParams): CofheError;
92
92
  /**
93
93
  * Serializes the error to JSON string with proper handling of Error objects
94
94
  */
@@ -98,9 +98,22 @@ declare class CofhesdkError extends Error {
98
98
  */
99
99
  toString(): string;
100
100
  }
101
- declare const isCofhesdkError: (error: unknown) => error is CofhesdkError;
101
+ declare const isCofheError: (error: unknown) => error is CofheError;
102
102
 
103
- declare const MOCKS_ZK_VERIFIER_SIGNER_ADDRESS = "0x6E12D8C87503D4287c294f2Fdef96ACd9DFf6bd2";
103
+ /** Main Task Manager contract address */
104
+ declare const TASK_MANAGER_ADDRESS: "0xeA30c4B8b44078Bbf8a6ef5b9f1eC1626C7848D9";
105
+ /** Mock ZK Verifier contract address (used for testing) */
106
+ declare const MOCKS_ZK_VERIFIER_ADDRESS: "0x0000000000000000000000000000000000005001";
107
+ /** Mock Threshold Network contract address (used for testing) */
108
+ declare const MOCKS_THRESHOLD_NETWORK_ADDRESS: "0x0000000000000000000000000000000000005002";
109
+ /** Test Bed contract address (used for testing) */
110
+ declare const TEST_BED_ADDRESS: "0x0000000000000000000000000000000000005003";
111
+ /** Private key for the Mock ZK Verifier signer account */
112
+ declare const MOCKS_ZK_VERIFIER_SIGNER_PRIVATE_KEY: "0x6C8D7F768A6BB4AAFE85E8A2F5A9680355239C7E14646ED62B044E39DE154512";
113
+ /** Address for the Mock ZK Verifier signer account */
114
+ declare const MOCKS_ZK_VERIFIER_SIGNER_ADDRESS: "0x6E12D8C87503D4287c294f2Fdef96ACd9DFf6bd2";
115
+ /** Private key for the Mock decrypt result signer account */
116
+ declare const MOCKS_DECRYPT_RESULT_SIGNER_PRIVATE_KEY: "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d";
104
117
 
105
118
  /**
106
119
  * Converts FheTypes enum to string representation for serialization
@@ -108,4 +121,4 @@ declare const MOCKS_ZK_VERIFIER_SIGNER_ADDRESS = "0x6E12D8C87503D4287c294f2Fdef9
108
121
  */
109
122
  declare function fheTypeToString(utype: FheTypes): string;
110
123
 
111
- export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofhesdkClient, CofhesdkClientConnectionState, CofhesdkClientParams, CofhesdkConfig, CofhesdkError, CofhesdkErrorCode, type CofhesdkErrorParams, FheTypes, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, createCofhesdkClientBase, fheTypeToString, isCofhesdkError };
124
+ export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofheClient, CofheClientConnectionState, CofheClientParams, CofheConfig, CofheError, CofheErrorCode, type CofheErrorParams, 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, TASK_MANAGER_ADDRESS, TEST_BED_ADDRESS, createCofheClientBase, fheTypeToString, isCofheError };
package/dist/core.js CHANGED
@@ -1,3 +1,3 @@
1
- export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofhesdkError, CofhesdkErrorCode, DecryptHandlesBuilder, EncryptInputsBuilder, EncryptStep, Encryptable, FheAllUTypes, FheTypes, FheUintUTypes, MOCKS_ZK_VERIFIER_SIGNER_ADDRESS, assertCorrectEncryptedItemInput, createCofhesdkClientBase, createCofhesdkConfigBase, createKeysStore, fetchKeys, fheTypeToString, getCofhesdkConfigItem, isCofhesdkError, isEncryptableItem, isLastEncryptionStep, zkProveWithWorker } from './chunk-WGCRJCBR.js';
2
- import './chunk-WEAZ25JO.js';
3
- import './chunk-UGBVZNRT.js';
1
+ export { InitialConnectStore as CONNECT_STORE_DEFAULTS, CofheError, CofheErrorCode, DecryptForTxBuilder, DecryptForViewBuilder, EncryptInputsBuilder, EncryptStep, Encryptable, FheAllUTypes, FheTypes, FheUintUTypes, assertCorrectEncryptedItemInput, createCofheClientBase, createCofheConfigBase, createKeysStore, fetchKeys, fheTypeToString, getCofheConfigItem, isCofheError, isEncryptableItem, isLastEncryptionStep, zkProveWithWorker } from './chunk-2TPSCOW3.js';
2
+ import './chunk-TBLR7NNE.js';
3
+ 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, TASK_MANAGER_ADDRESS, TEST_BED_ADDRESS } from './chunk-NWDKXBIP.js';