@fhevm/sdk 1.1.0-alpha.1 → 1.1.0-alpha.2

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 (101) hide show
  1. package/_cjs/core/_version.js +1 -1
  2. package/_cjs/core/actions/base/{canReadPublicValue.js → canDecryptPublicValue.js} +3 -3
  3. package/_cjs/core/actions/base/canDecryptPublicValue.js.map +1 -0
  4. package/_cjs/core/actions/base/{canReadPublicValues.js → canDecryptPublicValues.js} +3 -3
  5. package/_cjs/core/actions/base/canDecryptPublicValues.js.map +1 -0
  6. package/_cjs/core/actions/base/{readPublicValue.js → decryptPublicValue.js} +4 -4
  7. package/_cjs/core/actions/base/decryptPublicValue.js.map +1 -0
  8. package/_cjs/core/actions/base/{readPublicValues.js → decryptPublicValues.js} +4 -4
  9. package/_cjs/core/actions/base/decryptPublicValues.js.map +1 -0
  10. package/_cjs/core/actions/base/{readPublicValuesWithSignatures.js → decryptPublicValuesWithSignatures.js} +4 -4
  11. package/_cjs/core/actions/base/decryptPublicValuesWithSignatures.js.map +1 -0
  12. package/_cjs/core/actions/base/index.js +11 -11
  13. package/_cjs/core/actions/base/index.js.map +1 -1
  14. package/_cjs/core/clients/decorators/base.js +6 -6
  15. package/_cjs/core/clients/decorators/base.js.map +1 -1
  16. package/_cjs/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js +8 -0
  17. package/_cjs/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js.map +1 -1
  18. package/_cjs/wasm/tfhe/TfheApi.d.ts +13 -12
  19. package/_cjs/wasm/tfhe/loadTfheLib.js +1 -1
  20. package/_cjs/wasm/tfhe/loadTfheLib.js.map +2 -2
  21. package/_cjs/wasm/tfhe/v1.5.3/startWorkers.js +3 -3
  22. package/_cjs/wasm/tfhe/v1.5.3/startWorkers.js.map +2 -2
  23. package/_cjs/wasm/tfhe/v1.6.1/startWorkers.js +3 -3
  24. package/_cjs/wasm/tfhe/v1.6.1/startWorkers.js.map +2 -2
  25. package/_cjs/wasm/tkms/KmsLibApi.d.ts +1 -0
  26. package/_cjs/wasm/tkms/loadKmsLib.js +1 -1
  27. package/_cjs/wasm/tkms/loadKmsLib.js.map +2 -2
  28. package/_esm/core/_version.js +1 -1
  29. package/_esm/core/actions/base/{canReadPublicValue.js → canDecryptPublicValue.js} +2 -2
  30. package/_esm/core/actions/base/canDecryptPublicValue.js.map +1 -0
  31. package/_esm/core/actions/base/{canReadPublicValues.js → canDecryptPublicValues.js} +2 -2
  32. package/_esm/core/actions/base/canDecryptPublicValues.js.map +1 -0
  33. package/_esm/core/actions/base/{readPublicValue.js → decryptPublicValue.js} +3 -3
  34. package/_esm/core/actions/base/decryptPublicValue.js.map +1 -0
  35. package/_esm/core/actions/base/{readPublicValues.js → decryptPublicValues.js} +3 -3
  36. package/_esm/core/actions/base/decryptPublicValues.js.map +1 -0
  37. package/_esm/core/actions/base/{readPublicValuesWithSignatures.js → decryptPublicValuesWithSignatures.js} +3 -3
  38. package/_esm/core/actions/base/decryptPublicValuesWithSignatures.js.map +1 -0
  39. package/_esm/core/actions/base/index.js +5 -5
  40. package/_esm/core/actions/base/index.js.map +1 -1
  41. package/_esm/core/clients/decorators/base.js +6 -6
  42. package/_esm/core/clients/decorators/base.js.map +1 -1
  43. package/_esm/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js +10 -0
  44. package/_esm/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js.map +1 -1
  45. package/_esm/wasm/tfhe/TfheApi.d.ts +13 -12
  46. package/_esm/wasm/tfhe/loadTfheLib.js +1 -1
  47. package/_esm/wasm/tfhe/v1.5.3/startWorkers.js +4 -3
  48. package/_esm/wasm/tfhe/v1.6.1/startWorkers.js +4 -3
  49. package/_esm/wasm/tkms/KmsLibApi.d.ts +1 -0
  50. package/_esm/wasm/tkms/loadKmsLib.js +1 -1
  51. package/_types/core/actions/base/canDecryptPublicValue.d.ts +9 -0
  52. package/_types/core/actions/base/canDecryptPublicValue.d.ts.map +1 -0
  53. package/_types/core/actions/base/canDecryptPublicValues.d.ts +9 -0
  54. package/_types/core/actions/base/canDecryptPublicValues.d.ts.map +1 -0
  55. package/_types/core/actions/base/{readPublicValue.d.ts → decryptPublicValue.d.ts} +4 -4
  56. package/_types/core/actions/base/decryptPublicValue.d.ts.map +1 -0
  57. package/_types/core/actions/base/{readPublicValues.d.ts → decryptPublicValues.d.ts} +4 -4
  58. package/_types/core/actions/base/decryptPublicValues.d.ts.map +1 -0
  59. package/_types/core/actions/base/{readPublicValuesWithSignatures.d.ts → decryptPublicValuesWithSignatures.d.ts} +4 -4
  60. package/_types/core/actions/base/decryptPublicValuesWithSignatures.d.ts.map +1 -0
  61. package/_types/core/actions/base/index.d.ts +5 -5
  62. package/_types/core/actions/base/index.d.ts.map +1 -1
  63. package/_types/core/clients/decorators/base.d.ts +16 -16
  64. package/_types/core/clients/decorators/base.d.ts.map +1 -1
  65. package/_types/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.d.ts.map +1 -1
  66. package/_types/wasm/tfhe/TfheApi.d.ts +13 -12
  67. package/_types/wasm/tkms/KmsLibApi.d.ts +1 -0
  68. package/core/_version.ts +1 -1
  69. package/core/actions/base/{canReadPublicValue.ts → canDecryptPublicValue.ts} +5 -5
  70. package/core/actions/base/{canReadPublicValues.ts → canDecryptPublicValues.ts} +5 -5
  71. package/core/actions/base/{readPublicValue.ts → decryptPublicValue.ts} +6 -6
  72. package/core/actions/base/{readPublicValues.ts → decryptPublicValues.ts} +6 -6
  73. package/core/actions/base/{readPublicValuesWithSignatures.ts → decryptPublicValuesWithSignatures.ts} +6 -6
  74. package/core/actions/base/index.ts +21 -17
  75. package/core/clients/decorators/base.ts +30 -30
  76. package/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.ts +15 -0
  77. package/package.json +1 -1
  78. package/wasm/tfhe/TfheApi.d.ts +13 -12
  79. package/wasm/tfhe/loadTfheLib.js +1 -1
  80. package/wasm/tfhe/v1.5.3/startWorkers.js +4 -3
  81. package/wasm/tfhe/v1.6.0-dev/startWorkers.js +4 -3
  82. package/wasm/tfhe/v1.6.1/startWorkers.js +4 -3
  83. package/wasm/tkms/KmsLibApi.d.ts +1 -0
  84. package/wasm/tkms/loadKmsLib.js +1 -1
  85. package/_cjs/core/actions/base/canReadPublicValue.js.map +0 -1
  86. package/_cjs/core/actions/base/canReadPublicValues.js.map +0 -1
  87. package/_cjs/core/actions/base/readPublicValue.js.map +0 -1
  88. package/_cjs/core/actions/base/readPublicValues.js.map +0 -1
  89. package/_cjs/core/actions/base/readPublicValuesWithSignatures.js.map +0 -1
  90. package/_esm/core/actions/base/canReadPublicValue.js.map +0 -1
  91. package/_esm/core/actions/base/canReadPublicValues.js.map +0 -1
  92. package/_esm/core/actions/base/readPublicValue.js.map +0 -1
  93. package/_esm/core/actions/base/readPublicValues.js.map +0 -1
  94. package/_esm/core/actions/base/readPublicValuesWithSignatures.js.map +0 -1
  95. package/_types/core/actions/base/canReadPublicValue.d.ts +0 -9
  96. package/_types/core/actions/base/canReadPublicValue.d.ts.map +0 -1
  97. package/_types/core/actions/base/canReadPublicValues.d.ts +0 -9
  98. package/_types/core/actions/base/canReadPublicValues.d.ts.map +0 -1
  99. package/_types/core/actions/base/readPublicValue.d.ts.map +0 -1
  100. package/_types/core/actions/base/readPublicValues.d.ts.map +0 -1
  101. package/_types/core/actions/base/readPublicValuesWithSignatures.d.ts.map +0 -1
@@ -9,22 +9,22 @@ import { clearValueToTypedValue } from '../../handle/ClearValue.js';
9
9
 
10
10
  ////////////////////////////////////////////////////////////////////////////////
11
11
 
12
- export type ReadPublicValuesParameters = {
12
+ export type DecryptPublicValuesParameters = {
13
13
  readonly encryptedValues: readonly EncryptedValueLike[];
14
14
  readonly options?: RelayerPublicDecryptOptions | undefined;
15
15
  };
16
16
 
17
- export type ReadPublicValuesReturnType = TypedValue[];
17
+ export type DecryptPublicValuesReturnType = TypedValue[];
18
18
 
19
19
  ////////////////////////////////////////////////////////////////////////////////
20
20
 
21
- export async function readPublicValues(
21
+ export async function decryptPublicValues(
22
22
  fhevm: Fhevm<FhevmChain>,
23
- parameters: ReadPublicValuesParameters,
24
- ): Promise<ReadPublicValuesReturnType> {
23
+ parameters: DecryptPublicValuesParameters,
24
+ ): Promise<DecryptPublicValuesReturnType> {
25
25
  const handles = parameters.encryptedValues.map(toFhevmHandle);
26
26
 
27
- const originToken = Symbol('readPublicValues');
27
+ const originToken = Symbol('decryptPublicValues');
28
28
  const res = await publicDecrypt_(fhevm, { ...parameters, handles, originToken });
29
29
 
30
30
  return res.orderedClearValues.map((cv) => clearValueToTypedValue(cv, originToken));
@@ -11,12 +11,12 @@ import { clearValueToTypedValue } from '../../handle/ClearValue.js';
11
11
 
12
12
  ////////////////////////////////////////////////////////////////////////////////
13
13
 
14
- export type ReadPublicValuesWithSignaturesParameters = {
14
+ export type DecryptPublicValuesWithSignaturesParameters = {
15
15
  readonly encryptedValues: readonly EncryptedValueLike[];
16
16
  readonly options?: RelayerPublicDecryptOptions | undefined;
17
17
  };
18
18
 
19
- export type ReadPublicValuesWithSignaturesReturnType = {
19
+ export type DecryptPublicValuesWithSignaturesReturnType = {
20
20
  readonly clearValues: NonEmptyReadonlyArray<TypedValue>;
21
21
  readonly checkSignaturesArgs: {
22
22
  readonly handlesList: NonEmptyReadonlyArray<HandleBytes32Hex>;
@@ -27,13 +27,13 @@ export type ReadPublicValuesWithSignaturesReturnType = {
27
27
 
28
28
  ////////////////////////////////////////////////////////////////////////////////
29
29
 
30
- export async function readPublicValuesWithSignatures(
30
+ export async function decryptPublicValuesWithSignatures(
31
31
  fhevm: Fhevm<FhevmChain>,
32
- parameters: ReadPublicValuesWithSignaturesParameters,
33
- ): Promise<ReadPublicValuesWithSignaturesReturnType> {
32
+ parameters: DecryptPublicValuesWithSignaturesParameters,
33
+ ): Promise<DecryptPublicValuesWithSignaturesReturnType> {
34
34
  const handles = parameters.encryptedValues.map(toFhevmHandle);
35
35
 
36
- const originToken = Symbol('readPublicValues');
36
+ const originToken = Symbol('decryptPublicValues');
37
37
  const res = await publicDecrypt_(fhevm, { ...parameters, handles, originToken });
38
38
 
39
39
  const typedValues = res.orderedClearValues.map((cv) =>
@@ -1,32 +1,36 @@
1
1
  export { type ReadKmsSignersContextReturnType, readKmsSignersContext } from './readKmsSignersContext.js';
2
2
 
3
- export { type ReadPublicValueParameters, type ReadPublicValueReturnType, readPublicValue } from './readPublicValue.js';
3
+ export {
4
+ type DecryptPublicValueParameters,
5
+ type DecryptPublicValueReturnType,
6
+ decryptPublicValue,
7
+ } from './decryptPublicValue.js';
4
8
 
5
9
  export type { RelayerPublicDecryptOptions, RelayerPublicDecryptProgressArgs } from '../../types/relayer.js';
6
10
 
7
11
  export {
8
- type ReadPublicValuesParameters,
9
- type ReadPublicValuesReturnType,
10
- readPublicValues,
11
- } from './readPublicValues.js';
12
+ type DecryptPublicValuesParameters,
13
+ type DecryptPublicValuesReturnType,
14
+ decryptPublicValues,
15
+ } from './decryptPublicValues.js';
12
16
 
13
17
  export {
14
- type ReadPublicValuesWithSignaturesParameters,
15
- type ReadPublicValuesWithSignaturesReturnType,
16
- readPublicValuesWithSignatures,
17
- } from './readPublicValuesWithSignatures.js';
18
+ type DecryptPublicValuesWithSignaturesParameters,
19
+ type DecryptPublicValuesWithSignaturesReturnType,
20
+ decryptPublicValuesWithSignatures,
21
+ } from './decryptPublicValuesWithSignatures.js';
18
22
 
19
23
  export {
20
- type CanReadPublicValueParameters,
21
- type CanReadPublicValueReturnType,
22
- canReadPublicValue,
23
- } from './canReadPublicValue.js';
24
+ type CanDecryptPublicValueParameters,
25
+ type CanDecryptPublicValueReturnType,
26
+ canDecryptPublicValue,
27
+ } from './canDecryptPublicValue.js';
24
28
 
25
29
  export {
26
- type CanReadPublicValuesParameters,
27
- type CanReadPublicValuesReturnType,
28
- canReadPublicValues,
29
- } from './canReadPublicValues.js';
30
+ type CanDecryptPublicValuesParameters,
31
+ type CanDecryptPublicValuesReturnType,
32
+ canDecryptPublicValues,
33
+ } from './canDecryptPublicValues.js';
30
34
 
31
35
  export {
32
36
  type CreateVerifiedInputProofFromRawBytesParameters,
@@ -36,20 +36,20 @@ import {
36
36
  type ParseSignedDecryptionPermitReturnType,
37
37
  } from '../../actions/chain/parseSignedDecryptionPermit.js';
38
38
  import {
39
- readPublicValue,
40
- type ReadPublicValueParameters,
41
- type ReadPublicValueReturnType,
42
- } from '../../actions/base/readPublicValue.js';
39
+ decryptPublicValue,
40
+ type DecryptPublicValueParameters,
41
+ type DecryptPublicValueReturnType,
42
+ } from '../../actions/base/decryptPublicValue.js';
43
43
  import {
44
- readPublicValues,
45
- type ReadPublicValuesParameters,
46
- type ReadPublicValuesReturnType,
47
- } from '../../actions/base/readPublicValues.js';
44
+ decryptPublicValues,
45
+ type DecryptPublicValuesParameters,
46
+ type DecryptPublicValuesReturnType,
47
+ } from '../../actions/base/decryptPublicValues.js';
48
48
  import {
49
- readPublicValuesWithSignatures,
50
- type ReadPublicValuesWithSignaturesParameters,
51
- type ReadPublicValuesWithSignaturesReturnType,
52
- } from '../../actions/base/readPublicValuesWithSignatures.js';
49
+ decryptPublicValuesWithSignatures,
50
+ type DecryptPublicValuesWithSignaturesParameters,
51
+ type DecryptPublicValuesWithSignaturesReturnType,
52
+ } from '../../actions/base/decryptPublicValuesWithSignatures.js';
53
53
 
54
54
  ////////////////////////////////////////////////////////////////////////////////
55
55
 
@@ -59,30 +59,30 @@ export type BaseActions = {
59
59
  *
60
60
  * By default, encrypted values on-chain can only be decrypted by their owner.
61
61
  * When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
62
- * the value becomes publicly readable. Anyone can then call `readPublicValue`
62
+ * the value becomes publicly readable. Anyone can then call `decryptPublicValue`
63
63
  * to get the clear value — no permit or private key needed.
64
64
  *
65
65
  * @example
66
66
  * ```ts
67
- * const result = await client.readPublicValue({
67
+ * const result = await client.decryptPublicValue({
68
68
  * encryptedValue: "0xabcd..."
69
69
  * });
70
70
  * console.log(result.value); // e.g. 42
71
71
  * console.log(result.type); // e.g. 'uint8'
72
72
  * ```
73
73
  */
74
- readonly readPublicValue: (parameters: ReadPublicValueParameters) => Promise<ReadPublicValueReturnType>;
74
+ readonly decryptPublicValue: (parameters: DecryptPublicValueParameters) => Promise<DecryptPublicValueReturnType>;
75
75
  /**
76
76
  * Reads the decrypted (clear) values of encrypted values that were made public.
77
77
  *
78
78
  * By default, encrypted values on-chain can only be decrypted by their owner.
79
79
  * When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
80
- * a value becomes publicly readable. Anyone can then call `readPublicValues`
80
+ * a value becomes publicly readable. Anyone can then call `decryptPublicValues`
81
81
  * to get the clear values — no permit or private key needed.
82
82
  *
83
83
  * @example
84
84
  * ```ts
85
- * const results = await client.readPublicValues({
85
+ * const results = await client.decryptPublicValues({
86
86
  * encryptedValues: ["0xabcd...", "0xef..."]
87
87
  * });
88
88
  * console.log(results[0].value); // e.g. 42
@@ -91,13 +91,13 @@ export type BaseActions = {
91
91
  * console.log(results[1].type); // e.g. 'uint32'
92
92
  * ```
93
93
  */
94
- readonly readPublicValues: (parameters: ReadPublicValuesParameters) => Promise<ReadPublicValuesReturnType>;
94
+ readonly decryptPublicValues: (parameters: DecryptPublicValuesParameters) => Promise<DecryptPublicValuesReturnType>;
95
95
  /**
96
96
  * Reads the decrypted (clear) value of an encrypted value that was made public.
97
97
  *
98
98
  * By default, encrypted values on-chain can only be decrypted by their owner.
99
99
  * When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
100
- * the value becomes publicly readable. Anyone can then call `readPublicValue`
100
+ * the value becomes publicly readable. Anyone can then call `decryptPublicValue`
101
101
  * to get the clear value — no permit or private key needed.
102
102
  *
103
103
  * Returns both the clear values and a decryption proof. The proof can be
@@ -106,13 +106,13 @@ export type BaseActions = {
106
106
  *
107
107
  * @example
108
108
  * ```ts
109
- * const result = await client.readPublicValuesWithSignatures({
109
+ * const result = await client.decryptPublicValuesWithSignatures({
110
110
  * encryptedValues: ["0xabcd...", "0xef..."]
111
111
  * });
112
- * console.log(results.clearValues[0].value); // e.g. 42
113
- * console.log(results.clearValues[0].type); // e.g. 'uint8'
114
- * console.log(results.clearValues[1].value); // e.g. 123456789
115
- * console.log(results.clearValues[1].type); // e.g. 'uint32'
112
+ * console.log(result.clearValues[0].value); // e.g. 42
113
+ * console.log(result.clearValues[0].type); // e.g. 'uint8'
114
+ * console.log(result.clearValues[1].value); // e.g. 123456789
115
+ * console.log(result.clearValues[1].type); // e.g. 'uint32'
116
116
  *
117
117
  * // Forward the proof on-chain for smart contract verification
118
118
  * // Solidity side:
@@ -123,9 +123,9 @@ export type BaseActions = {
123
123
  * await contract.verify(args.handlesList, args.abiEncodedCleartexts, args.decryptionProof);
124
124
  * ```
125
125
  */
126
- readonly readPublicValuesWithSignatures: (
127
- parameters: ReadPublicValuesWithSignaturesParameters,
128
- ) => Promise<ReadPublicValuesWithSignaturesReturnType>;
126
+ readonly decryptPublicValuesWithSignatures: (
127
+ parameters: DecryptPublicValuesWithSignaturesParameters,
128
+ ) => Promise<DecryptPublicValuesWithSignaturesReturnType>;
129
129
  readonly signDecryptionPermit: {
130
130
  /**
131
131
  * Signs a self decryption permit — Alice decrypts her own encrypted values.
@@ -173,9 +173,9 @@ export type BaseActions = {
173
173
 
174
174
  function _baseActions(fhevm: Fhevm<FhevmChain>): BaseActions {
175
175
  return {
176
- readPublicValue: (parameters) => readPublicValue(fhevm, parameters),
177
- readPublicValues: (parameters) => readPublicValues(fhevm, parameters),
178
- readPublicValuesWithSignatures: (parameters) => readPublicValuesWithSignatures(fhevm, parameters),
176
+ decryptPublicValue: (parameters) => decryptPublicValue(fhevm, parameters),
177
+ decryptPublicValues: (parameters) => decryptPublicValues(fhevm, parameters),
178
+ decryptPublicValuesWithSignatures: (parameters) => decryptPublicValuesWithSignatures(fhevm, parameters),
179
179
  // Preserve the original action overloads on the decorated client API.
180
180
  // Runtime behavior is unchanged: this is a direct pass-through wrapper.
181
181
  signDecryptionPermit: ((parameters: SignSelfDecryptionPermitParameters | SignDelegatedDecryptionPermitParameters) =>
@@ -1,5 +1,6 @@
1
1
  import type { ErrorMetadataParams } from '../../../../base/errors/ErrorBase.js';
2
2
  import type { RelayerResult200UserDecrypt, RelayerUserDecryptSucceeded } from '../../../../types/relayer-p.js';
3
+ import type { BytesHex } from '../../../../types/primitives.js';
3
4
  import { assertRecordBytesHexNo0xProperty, assertRecordBytesHexProperty } from '../../../../base/bytes.js';
4
5
  import { assertRecordArrayProperty, assertRecordNonNullableProperty } from '../../../../base/record.js';
5
6
  import { assertRecordStringProperty } from '../../../../base/string.js';
@@ -72,6 +73,20 @@ function _assertIsRelayerResult200UserDecrypt(
72
73
  // In v11 extraData is optional.
73
74
  const requiredExtraData = false;
74
75
  _assertExtraData(value.result, name, requiredExtraData, options);
76
+
77
+ _patchMissingExtraDataV11(value.result as Array<{ extraData?: BytesHex }>);
78
+ }
79
+
80
+ // In v11 the relayer does not include extraData in response.
81
+ // Put it to '0x' to match the assertion
82
+ function _patchMissingExtraDataV11(
83
+ items: Array<{ extraData?: BytesHex }>,
84
+ ): asserts items is Array<{ extraData: BytesHex }> {
85
+ for (const item of items) {
86
+ if (!Object.prototype.hasOwnProperty.call(item, 'extraData')) {
87
+ item.extraData = '0x' as BytesHex;
88
+ }
89
+ }
75
90
  }
76
91
 
77
92
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fhevm/sdk",
3
3
  "description": "TypeScript Interface for FHEVM",
4
- "version": "1.1.0-alpha.1",
4
+ "version": "1.1.0-alpha.2",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",
@@ -1,7 +1,7 @@
1
1
  // AUTO-GENERATED FROM scripts/wasm/loaders/TfheApi.template.d.ts - DO NOT EDIT.
2
2
  // Generator: scripts/build/codegen-loaders.mjs
3
3
 
4
- // Shared opaque types from tfhe. We pick v1.5.3 as the canonical source.
4
+ // Shared opaque types from tfhe. We pick v1.6.1 as the canonical source.
5
5
  // The per-version `type-check.test.ts` files enforce that every supported
6
6
  // version exposes the same public shape, so any of them would do.
7
7
  //
@@ -15,30 +15,31 @@ export type {
15
15
  ProvenCompactCiphertextList,
16
16
  TfheCompactPublicKey,
17
17
  ZkComputeLoad,
18
- } from './v1.5.3/tfhe.js';
18
+ } from './v1.6.1/tfhe.js';
19
19
 
20
20
  /** The subset you actually use - the runtime contract callers depend on. */
21
21
  export interface TfheLibApi {
22
- initAsync: typeof import('./v1.5.3/tfhe.js').initAsync;
22
+ initAsync: typeof import('./v1.6.1/tfhe.js').initAsync;
23
23
 
24
24
  // --- Free functions used by encrypt/init-p.ts -----------------------------
25
- init_panic_hook: typeof import('./v1.5.3/tfhe.js').init_panic_hook;
26
- initThreadPool: typeof import('./v1.5.3/tfhe.js').initThreadPool;
27
- setWorkerUrlConfig: typeof import('./v1.5.3/tfhe.js').setWorkerUrlConfig;
28
- getWasmInfo: typeof import('./v1.5.3/tfhe.js').getWasmInfo;
25
+ init_panic_hook: typeof import('./v1.6.1/tfhe.js').init_panic_hook;
26
+ initThreadPool: typeof import('./v1.6.1/tfhe.js').initThreadPool;
27
+ setWorkerUrlConfig: typeof import('./v1.6.1/tfhe.js').setWorkerUrlConfig;
28
+ getWasmInfo: typeof import('./v1.6.1/tfhe.js').getWasmInfo;
29
29
 
30
30
  // --- Class constructors used as values in encrypt/api-p.ts ----------------
31
31
  // These are imported as runtime values: instanceof checks, static methods
32
32
  // (safe_deserialize), factory calls (CompactCiphertextList.builder()).
33
- CompactCiphertextList: typeof import('./v1.5.3/tfhe.js').CompactCiphertextList;
34
- CompactPkeCrs: typeof import('./v1.5.3/tfhe.js').CompactPkeCrs;
35
- ProvenCompactCiphertextList: typeof import('./v1.5.3/tfhe.js').ProvenCompactCiphertextList;
36
- TfheCompactPublicKey: typeof import('./v1.5.3/tfhe.js').TfheCompactPublicKey;
33
+ CompactCiphertextList: typeof import('./v1.6.1/tfhe.js').CompactCiphertextList;
34
+ CompactPkeCrs: typeof import('./v1.6.1/tfhe.js').CompactPkeCrs;
35
+ ProvenCompactCiphertextList: typeof import('./v1.6.1/tfhe.js').ProvenCompactCiphertextList;
36
+ TfheCompactPublicKey: typeof import('./v1.6.1/tfhe.js').TfheCompactPublicKey;
37
37
 
38
38
  // --- Enum used as a value (e.g. ZkComputeLoad.Verify) ---------------------
39
- ZkComputeLoad: typeof import('./v1.5.3/tfhe.js').ZkComputeLoad;
39
+ ZkComputeLoad: typeof import('./v1.6.1/tfhe.js').ZkComputeLoad;
40
40
  }
41
41
 
42
+ // Default version
42
43
  export type TfheVersion = '1.5.3' | '1.6.1';
43
44
 
44
45
  export type TfheWasmBase64 = {
@@ -9,7 +9,7 @@
9
9
  ////////////////////////////////////////////////////////////////////////////////
10
10
 
11
11
  export const TFHE_VERSIONS = Object.freeze(['1.5.3', '1.6.1']);
12
- export const DEFAULT_TFHE_VERSION = '1.5.3';
12
+ export const DEFAULT_TFHE_VERSION = '1.6.1';
13
13
 
14
14
  const _loaders = {
15
15
  '1.5.3': () => import('./v1.5.3/tfhe.js'),
@@ -108,14 +108,15 @@ async function __sha256(bytes) {
108
108
  * Verifies that worker bytes match the expected SHA-256 digest.
109
109
  * @param {ArrayBuffer | Uint8Array} bytes Worker bytes to verify.
110
110
  * @param {string} expectedSha256 Expected lowercase hex digest without a `0x` prefix.
111
+ * @param {string} url Url to verify.
111
112
  * @returns {Promise<void>} Resolves when the digest matches.
112
113
  * @throws {Error} Throws a `Sha256MismatchError` when the digest does not match.
113
114
  */
114
- async function __verifySha256(bytes, expectedSha256) {
115
+ async function __verifySha256(bytes, expectedSha256, url) {
115
116
  const actualSha256 = await __sha256(bytes);
116
117
 
117
118
  if (actualSha256 !== expectedSha256) {
118
- const error = new Error(`SHA-256 mismatch: expected ${expectedSha256}, got ${actualSha256}`);
119
+ const error = new Error(`SHA-256 mismatch: expected ${expectedSha256}, got ${actualSha256}. url=${url}`);
119
120
  error.name = 'Sha256MismatchError';
120
121
  throw error;
121
122
  }
@@ -138,7 +139,7 @@ function __isSha256MismatchError(error) {
138
139
  async function __fetchAndVerifyWorkerUrlBytes(url, expectedSha256) {
139
140
  const bytes = await __readWorkerUrlBytes(url);
140
141
 
141
- await __verifySha256(bytes, expectedSha256);
142
+ await __verifySha256(bytes, expectedSha256, url);
142
143
 
143
144
  return bytes;
144
145
  }
@@ -108,14 +108,15 @@ async function __sha256(bytes) {
108
108
  * Verifies that worker bytes match the expected SHA-256 digest.
109
109
  * @param {ArrayBuffer | Uint8Array} bytes Worker bytes to verify.
110
110
  * @param {string} expectedSha256 Expected lowercase hex digest without a `0x` prefix.
111
+ * @param {string} url Url to verify.
111
112
  * @returns {Promise<void>} Resolves when the digest matches.
112
113
  * @throws {Error} Throws a `Sha256MismatchError` when the digest does not match.
113
114
  */
114
- async function __verifySha256(bytes, expectedSha256) {
115
+ async function __verifySha256(bytes, expectedSha256, url) {
115
116
  const actualSha256 = await __sha256(bytes);
116
117
 
117
118
  if (actualSha256 !== expectedSha256) {
118
- const error = new Error(`SHA-256 mismatch: expected ${expectedSha256}, got ${actualSha256}`);
119
+ const error = new Error(`SHA-256 mismatch: expected ${expectedSha256}, got ${actualSha256}. url=${url}`);
119
120
  error.name = 'Sha256MismatchError';
120
121
  throw error;
121
122
  }
@@ -138,7 +139,7 @@ function __isSha256MismatchError(error) {
138
139
  async function __fetchAndVerifyWorkerUrlBytes(url, expectedSha256) {
139
140
  const bytes = await __readWorkerUrlBytes(url);
140
141
 
141
- await __verifySha256(bytes, expectedSha256);
142
+ await __verifySha256(bytes, expectedSha256, url);
142
143
 
143
144
  return bytes;
144
145
  }
@@ -108,14 +108,15 @@ async function __sha256(bytes) {
108
108
  * Verifies that worker bytes match the expected SHA-256 digest.
109
109
  * @param {ArrayBuffer | Uint8Array} bytes Worker bytes to verify.
110
110
  * @param {string} expectedSha256 Expected lowercase hex digest without a `0x` prefix.
111
+ * @param {string} url Url to verify.
111
112
  * @returns {Promise<void>} Resolves when the digest matches.
112
113
  * @throws {Error} Throws a `Sha256MismatchError` when the digest does not match.
113
114
  */
114
- async function __verifySha256(bytes, expectedSha256) {
115
+ async function __verifySha256(bytes, expectedSha256, url) {
115
116
  const actualSha256 = await __sha256(bytes);
116
117
 
117
118
  if (actualSha256 !== expectedSha256) {
118
- const error = new Error(`SHA-256 mismatch: expected ${expectedSha256}, got ${actualSha256}`);
119
+ const error = new Error(`SHA-256 mismatch: expected ${expectedSha256}, got ${actualSha256}. url=${url}`);
119
120
  error.name = 'Sha256MismatchError';
120
121
  throw error;
121
122
  }
@@ -138,7 +139,7 @@ function __isSha256MismatchError(error) {
138
139
  async function __fetchAndVerifyWorkerUrlBytes(url, expectedSha256) {
139
140
  const bytes = await __readWorkerUrlBytes(url);
140
141
 
141
- await __verifySha256(bytes, expectedSha256);
142
+ await __verifySha256(bytes, expectedSha256, url);
142
143
 
143
144
  return bytes;
144
145
  }
@@ -30,6 +30,7 @@ export interface KmsLibApi {
30
30
  u8vec_to_ml_kem_pke_sk: typeof import('./v0.13.10/kms_lib.js').u8vec_to_ml_kem_pke_sk;
31
31
  }
32
32
 
33
+ // Default version
33
34
  export type TkmsVersion = '0.13.10' | '0.13.20-0';
34
35
 
35
36
  export type TkmsWasmBase64 = {
@@ -9,7 +9,7 @@
9
9
  ////////////////////////////////////////////////////////////////////////////////
10
10
 
11
11
  export const KMS_VERSIONS = Object.freeze(['0.13.10', '0.13.20-0']);
12
- export const DEFAULT_TKMS_VERSION = '0.13.10';
12
+ export const DEFAULT_TKMS_VERSION = '0.13.20-0';
13
13
 
14
14
  const _loaders = {
15
15
  '0.13.10': () => import('./v0.13.10/kms_lib.js'),
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":";;AAiBA,gDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,OAAO,GAAG,MAAM,IAAA,kDAAsB,EAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":";;AAiBA,kDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,OAAO,IAAA,kDAAsB,EAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":";;AAoBA,0CAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,eAAe,CACnC,KAAwB,EACxB,UAAqC;IAErC,MAAM,MAAM,GAAG,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,IAAA,sCAAsB,EAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":";;AAoBA,4CAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,gBAAgB,CACpC,KAAwB,EACxB,UAAsC;IAEtC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":";;AA6BA,wEAuBC;AA7CD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAoB7D,KAAK,UAAU,8BAA8B,CAClD,KAAwB,EACxB,UAAoD;IAEpD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,OAAO,GAAG,MAAM,sBAAsB,CAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,OAAO,sBAAsB,CAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAwB,EACxB,UAAqC;IAErC,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAwB,EACxB,UAAsC;IAEtC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAkBpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,KAAwB,EACxB,UAAoD;IAEpD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
2
- import type { Fhevm } from '../../types/coreFhevmClient.js';
3
- import type { FhevmChain } from '../../types/fhevmChain.js';
4
- export type CanReadPublicValueParameters = {
5
- readonly encryptedValue: EncryptedValueLike;
6
- };
7
- export type CanReadPublicValueReturnType = boolean;
8
- export declare function canReadPublicValue(fhevm: Fhevm<FhevmChain>, parameters: CanReadPublicValueParameters): Promise<CanReadPublicValueReturnType>;
9
- //# sourceMappingURL=canReadPublicValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5D,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC;AAInD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,4BAA4B,GACvC,OAAO,CAAC,4BAA4B,CAAC,CAOvC"}
@@ -1,9 +0,0 @@
1
- import type { Fhevm } from '../../types/coreFhevmClient.js';
2
- import type { FhevmChain } from '../../types/fhevmChain.js';
3
- import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
4
- export type CanReadPublicValuesParameters = {
5
- readonly encryptedValues: readonly EncryptedValueLike[];
6
- };
7
- export type CanReadPublicValuesReturnType = readonly boolean[];
8
- export declare function canReadPublicValues(fhevm: Fhevm<FhevmChain>, parameters: CanReadPublicValuesParameters): Promise<CanReadPublicValuesReturnType>;
9
- //# sourceMappingURL=canReadPublicValues.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canReadPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMxE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,SAAS,OAAO,EAAE,CAAC;AAI/D,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,6BAA6B,CAAC,CAOxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC;AAInD,wBAAsB,eAAe,CACnC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CAOpC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,UAAU,EAAE,CAAC;AAItD,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,0BAA0B,GACrC,OAAO,CAAC,0BAA0B,CAAC,CAOrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readPublicValuesWithSignatures.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAOlE,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACxD,QAAQ,CAAC,mBAAmB,EAAE;QAC5B,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QAC9D,QAAQ,CAAC,oBAAoB,EAAE,QAAQ,CAAC;QACxC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC;KACpC,CAAC;CACH,CAAC;AAIF,wBAAsB,8BAA8B,CAClD,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,wCAAwC,GACnD,OAAO,CAAC,wCAAwC,CAAC,CAoBnD"}