@inco/js 0.8.0-devnet-29 → 0.8.0-devnet-30
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/dist/cjs/advancedacl/session-key.d.ts +4 -4
- package/dist/cjs/advancedacl/session-key.js +4 -3
- package/dist/cjs/attestedcompute/attested-compute.d.ts +0 -1
- package/dist/cjs/attestedcompute/attested-compute.js +7 -8
- package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +3 -4
- package/dist/cjs/attesteddecrypt/attested-decrypt.js +8 -60
- package/dist/cjs/chain.d.ts +6 -0
- package/dist/cjs/chain.js +15 -2
- package/dist/cjs/eip712/eip712.d.ts +18 -0
- package/dist/cjs/eip712/eip712.js +51 -0
- package/dist/cjs/eip712/index.d.ts +1 -0
- package/dist/cjs/eip712/index.js +8 -0
- package/dist/cjs/elistattesteddecrypt/elist-attested-decrypt.d.ts +49 -0
- package/dist/cjs/elistattesteddecrypt/elist-attested-decrypt.js +94 -0
- package/dist/cjs/elistattesteddecrypt/index.d.ts +2 -0
- package/dist/cjs/elistattesteddecrypt/index.js +22 -0
- package/dist/cjs/elistattesteddecrypt/types.d.ts +31 -0
- package/dist/cjs/elistattesteddecrypt/types.js +16 -0
- package/dist/cjs/generated/abis/lightning.d.ts +0 -39
- package/dist/cjs/generated/abis/lightning.js +1 -39
- package/dist/cjs/generated/abis/test-elist.d.ts +6 -0
- package/dist/cjs/generated/abis/test-elist.js +8 -1
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +0 -34
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.js +35 -40
- package/dist/cjs/generated/lightning.d.ts +29 -0
- package/dist/cjs/generated/lightning.js +30 -1
- package/dist/cjs/handle.d.ts +8 -0
- package/dist/cjs/handle.js +20 -2
- package/dist/cjs/kms/quorumClient.d.ts +17 -4
- package/dist/cjs/kms/quorumClient.js +150 -1
- package/dist/cjs/kms/quorumConsistency.d.ts +25 -1
- package/dist/cjs/kms/quorumConsistency.js +70 -1
- package/dist/cjs/kms/signatureVerification.d.ts +2 -2
- package/dist/cjs/kms/signatureVerification.js +1 -1
- package/dist/cjs/lite/attested-compute.d.ts +2 -2
- package/dist/cjs/lite/attested-compute.js +2 -3
- package/dist/cjs/lite/attested-decrypt.d.ts +2 -2
- package/dist/cjs/lite/attested-decrypt.js +2 -3
- package/dist/cjs/lite/lightning.d.ts +21 -14
- package/dist/cjs/lite/lightning.js +64 -11
- package/dist/cjs/test/mocks.d.ts +5 -1
- package/dist/cjs/test/mocks.js +29 -5
- package/dist/cjs/viem.d.ts +2 -1
- package/dist/cjs/viem.js +1 -1
- package/dist/esm/advancedacl/session-key.d.ts +4 -4
- package/dist/esm/advancedacl/session-key.js +6 -5
- package/dist/esm/attestedcompute/attested-compute.d.ts +0 -1
- package/dist/esm/attestedcompute/attested-compute.js +5 -6
- package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +3 -4
- package/dist/esm/attesteddecrypt/attested-decrypt.js +6 -58
- package/dist/esm/chain.d.ts +6 -0
- package/dist/esm/chain.js +14 -1
- package/dist/esm/eip712/eip712.d.ts +18 -0
- package/dist/esm/eip712/eip712.js +46 -0
- package/dist/esm/eip712/index.d.ts +1 -0
- package/dist/esm/eip712/index.js +2 -0
- package/dist/esm/elistattesteddecrypt/elist-attested-decrypt.d.ts +49 -0
- package/dist/esm/elistattesteddecrypt/elist-attested-decrypt.js +89 -0
- package/dist/esm/elistattesteddecrypt/index.d.ts +2 -0
- package/dist/esm/elistattesteddecrypt/index.js +3 -0
- package/dist/esm/elistattesteddecrypt/types.d.ts +31 -0
- package/dist/esm/elistattesteddecrypt/types.js +12 -0
- package/dist/esm/generated/abis/lightning.d.ts +0 -39
- package/dist/esm/generated/abis/lightning.js +1 -39
- package/dist/esm/generated/abis/test-elist.d.ts +6 -0
- package/dist/esm/generated/abis/test-elist.js +8 -1
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +0 -34
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.js +34 -39
- package/dist/esm/generated/lightning.d.ts +29 -0
- package/dist/esm/generated/lightning.js +30 -1
- package/dist/esm/handle.d.ts +8 -0
- package/dist/esm/handle.js +18 -1
- package/dist/esm/kms/quorumClient.d.ts +17 -4
- package/dist/esm/kms/quorumClient.js +152 -3
- package/dist/esm/kms/quorumConsistency.d.ts +25 -1
- package/dist/esm/kms/quorumConsistency.js +68 -1
- package/dist/esm/kms/signatureVerification.d.ts +2 -2
- package/dist/esm/kms/signatureVerification.js +1 -1
- package/dist/esm/lite/attested-compute.d.ts +2 -2
- package/dist/esm/lite/attested-compute.js +3 -3
- package/dist/esm/lite/attested-decrypt.d.ts +2 -2
- package/dist/esm/lite/attested-decrypt.js +3 -3
- package/dist/esm/lite/lightning.d.ts +21 -14
- package/dist/esm/lite/lightning.js +64 -11
- package/dist/esm/test/mocks.d.ts +5 -1
- package/dist/esm/test/mocks.js +28 -6
- package/dist/esm/viem.d.ts +2 -1
- package/dist/esm/viem.js +1 -1
- package/dist/types/advancedacl/session-key.d.ts +4 -4
- package/dist/types/attestedcompute/attested-compute.d.ts +0 -1
- package/dist/types/attesteddecrypt/attested-decrypt.d.ts +3 -4
- package/dist/types/chain.d.ts +6 -0
- package/dist/types/eip712/eip712.d.ts +18 -0
- package/dist/types/eip712/index.d.ts +1 -0
- package/dist/types/elistattesteddecrypt/elist-attested-decrypt.d.ts +49 -0
- package/dist/types/elistattesteddecrypt/index.d.ts +2 -0
- package/dist/types/elistattesteddecrypt/types.d.ts +31 -0
- package/dist/types/generated/abis/lightning.d.ts +0 -39
- package/dist/types/generated/abis/test-elist.d.ts +6 -0
- package/dist/types/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +0 -34
- package/dist/types/generated/lightning.d.ts +29 -0
- package/dist/types/handle.d.ts +8 -0
- package/dist/types/kms/quorumClient.d.ts +17 -4
- package/dist/types/kms/quorumConsistency.d.ts +25 -1
- package/dist/types/kms/signatureVerification.d.ts +2 -2
- package/dist/types/lite/attested-compute.d.ts +2 -2
- package/dist/types/lite/attested-decrypt.d.ts +2 -2
- package/dist/types/lite/lightning.d.ts +21 -14
- package/dist/types/test/mocks.d.ts +5 -1
- package/dist/types/viem.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
2
2
|
readonly name: "incoLightning_9_0_0__269218568";
|
|
3
3
|
readonly majorVersion: 9;
|
|
4
4
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
5
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
5
6
|
readonly pepper: "devnet";
|
|
6
7
|
readonly executorAddress: "0x6c9132D324231D2F68a1491686b0d4c10ee7d257";
|
|
7
8
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007202d6e9ea2805def71308";
|
|
@@ -22,6 +23,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
22
23
|
readonly name: "incoLightning_8_0_0__985328058";
|
|
23
24
|
readonly majorVersion: 8;
|
|
24
25
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
26
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
25
27
|
readonly pepper: "devnet";
|
|
26
28
|
readonly executorAddress: "0x43119Ad1F673E998CE4f3BB305bB92Bd5ab97E3B";
|
|
27
29
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc009045f766b38e5a773da9ba";
|
|
@@ -42,6 +44,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
42
44
|
readonly name: "incoLightning_7_0_0__24560427";
|
|
43
45
|
readonly majorVersion: 7;
|
|
44
46
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
47
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
45
48
|
readonly pepper: "devnet";
|
|
46
49
|
readonly executorAddress: "0xA2275E60cCEd081fFD7373593c44ebc30E6Efe66";
|
|
47
50
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc0057b7694d1492d2775d132b";
|
|
@@ -62,6 +65,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
62
65
|
readonly name: "incoLightning_6_0_0__281949651";
|
|
63
66
|
readonly majorVersion: 6;
|
|
64
67
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
68
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
65
69
|
readonly pepper: "devnet";
|
|
66
70
|
readonly executorAddress: "0xDF3830489208461f72Df6E45D0e6cbF9DBB74fe1";
|
|
67
71
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc009531587de02194b1b7a9d3";
|
|
@@ -82,6 +86,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
82
86
|
readonly name: "incoLightningPreview_5_0_0__203964628";
|
|
83
87
|
readonly majorVersion: 5;
|
|
84
88
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
89
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
85
90
|
readonly pepper: "devnet";
|
|
86
91
|
readonly executorAddress: "0x8D5D75CC00E2Fc84ec4dE085aE1708223591c6b6";
|
|
87
92
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00c573fb2bf617e75b6210d4";
|
|
@@ -102,6 +107,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
102
107
|
readonly name: "incoLightningPreview_4_0_0__409204766";
|
|
103
108
|
readonly majorVersion: 4;
|
|
104
109
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
110
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
105
111
|
readonly pepper: "devnet";
|
|
106
112
|
readonly executorAddress: "0x4046b737B454b0430FBF29cea070e3337AdE95aD";
|
|
107
113
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003b3f2c4caeb6f787dcce1e";
|
|
@@ -122,6 +128,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
122
128
|
readonly name: "incoLightningPreview_3_0_0__976859633";
|
|
123
129
|
readonly majorVersion: 3;
|
|
124
130
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
131
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
125
132
|
readonly pepper: "devnet";
|
|
126
133
|
readonly executorAddress: "0x4732520194584a04Cac0224e067658619F4086bD";
|
|
127
134
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00ef1fab551c72a93b0637f1";
|
|
@@ -142,6 +149,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
142
149
|
readonly name: "incoLightningPreview_2_0_0__889158349";
|
|
143
150
|
readonly majorVersion: 2;
|
|
144
151
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
152
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
145
153
|
readonly pepper: "testnet";
|
|
146
154
|
readonly executorAddress: "0x168FDc3Ae19A5d5b03614578C58974FF30FCBe92";
|
|
147
155
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc005e0f44aac1a914b715cecd";
|
|
@@ -162,6 +170,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
162
170
|
readonly name: "incoLightningPreview_2_0_0__467437523";
|
|
163
171
|
readonly majorVersion: 2;
|
|
164
172
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
173
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
165
174
|
readonly pepper: "demonet";
|
|
166
175
|
readonly executorAddress: "0xA95EAbCE575f5f1e52605358Ee893F6536166378";
|
|
167
176
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc0071f74686446f14c7b469d3";
|
|
@@ -182,6 +191,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
182
191
|
readonly name: "incoLightningPreview_2_0_0__976644394";
|
|
183
192
|
readonly majorVersion: 2;
|
|
184
193
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
194
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
185
195
|
readonly pepper: "alphanet";
|
|
186
196
|
readonly executorAddress: "0xc0d693DeEF0A91CE39208676b6da09B822abd199";
|
|
187
197
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc000822f11f6e30f933e76d2a";
|
|
@@ -202,6 +212,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
202
212
|
readonly name: "incoLightningPreview_2_0_0__295237520";
|
|
203
213
|
readonly majorVersion: 2;
|
|
204
214
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
215
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
205
216
|
readonly pepper: "devnet";
|
|
206
217
|
readonly executorAddress: "0xC64BB070D6F5aa796e79fA19c1008647ffF736ED";
|
|
207
218
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008d5a963bd519d8493f5190";
|
|
@@ -222,6 +233,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
222
233
|
readonly name: "incoLightningPreview_2_0_0__295237520";
|
|
223
234
|
readonly majorVersion: 2;
|
|
224
235
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
236
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
225
237
|
readonly pepper: "devnet";
|
|
226
238
|
readonly executorAddress: "0xC64BB070D6F5aa796e79fA19c1008647ffF736ED";
|
|
227
239
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008d5a963bd519d8493f5190";
|
|
@@ -242,6 +254,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
242
254
|
readonly name: "incoLightningPreview_1_1_0__725458969";
|
|
243
255
|
readonly majorVersion: 1;
|
|
244
256
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
257
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
245
258
|
readonly pepper: "alphanet";
|
|
246
259
|
readonly executorAddress: "0x28676Cd3b10b03b2FDF105Ba280425b45a674F2A";
|
|
247
260
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc004dfbe338c6966a22bcca19";
|
|
@@ -262,6 +275,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
262
275
|
readonly name: "incoLightningPreview_1_0_2__725458969";
|
|
263
276
|
readonly majorVersion: 1;
|
|
264
277
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
278
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
265
279
|
readonly pepper: "alphanet";
|
|
266
280
|
readonly executorAddress: "0x28676Cd3b10b03b2FDF105Ba280425b45a674F2A";
|
|
267
281
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc004dfbe338c6966a22bcca19";
|
|
@@ -281,6 +295,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
281
295
|
readonly name: "incoLightningPreview_1_0_2__904635675";
|
|
282
296
|
readonly majorVersion: 1;
|
|
283
297
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
298
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
284
299
|
readonly pepper: "devnet";
|
|
285
300
|
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
|
286
301
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007d63c0fdca6698ac7cc51b";
|
|
@@ -300,6 +315,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
300
315
|
readonly name: "incoLightningPreview_1_0_0__904635675";
|
|
301
316
|
readonly majorVersion: 1;
|
|
302
317
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
318
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
303
319
|
readonly pepper: "devnet";
|
|
304
320
|
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
|
305
321
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007d63c0fdca6698ac7cc51b";
|
|
@@ -319,6 +335,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
319
335
|
readonly name: "incoLightning_0_2_0__183408998";
|
|
320
336
|
readonly majorVersion: 0;
|
|
321
337
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
338
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
322
339
|
readonly pepper: "testnet";
|
|
323
340
|
readonly executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd";
|
|
324
341
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66";
|
|
@@ -338,6 +355,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
338
355
|
readonly name: "incoLightning_0_1_29__183408998";
|
|
339
356
|
readonly majorVersion: 0;
|
|
340
357
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
358
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
341
359
|
readonly pepper: "testnet";
|
|
342
360
|
readonly executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd";
|
|
343
361
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66";
|
|
@@ -357,6 +375,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
357
375
|
readonly name: "incoLightning_0_1_29__183408998";
|
|
358
376
|
readonly majorVersion: 0;
|
|
359
377
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
378
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
360
379
|
readonly pepper: "testnet";
|
|
361
380
|
readonly executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd";
|
|
362
381
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66";
|
|
@@ -376,6 +395,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
376
395
|
readonly name: "incoLightning_0_2_0__863421733";
|
|
377
396
|
readonly majorVersion: 0;
|
|
378
397
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
398
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
379
399
|
readonly pepper: "demonet";
|
|
380
400
|
readonly executorAddress: "0xeBAFF6D578733E4603b99CBdbb221482F29a78E1";
|
|
381
401
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00834654f6d289ccc7e5ab25";
|
|
@@ -395,6 +415,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
395
415
|
readonly name: "incoLightning_0_1_29__863421733";
|
|
396
416
|
readonly majorVersion: 0;
|
|
397
417
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
418
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
398
419
|
readonly pepper: "demonet";
|
|
399
420
|
readonly executorAddress: "0xeBAFF6D578733E4603b99CBdbb221482F29a78E1";
|
|
400
421
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00834654f6d289ccc7e5ab25";
|
|
@@ -414,6 +435,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
414
435
|
readonly name: "incoLightningPreview_0_2_1__297966649";
|
|
415
436
|
readonly majorVersion: 0;
|
|
416
437
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
438
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
417
439
|
readonly pepper: "alphanet";
|
|
418
440
|
readonly executorAddress: "0x4651DfD7729aE5568092E7351fAaD872266d4CBd";
|
|
419
441
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc0023f7798f470fdf5e9da639";
|
|
@@ -433,6 +455,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
433
455
|
readonly name: "incoLightningPreview_0_2_0__297966649";
|
|
434
456
|
readonly majorVersion: 0;
|
|
435
457
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
458
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
436
459
|
readonly pepper: "alphanet";
|
|
437
460
|
readonly executorAddress: "0x4651DfD7729aE5568092E7351fAaD872266d4CBd";
|
|
438
461
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc0023f7798f470fdf5e9da639";
|
|
@@ -452,6 +475,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
452
475
|
readonly name: "incoLightningPreview_0_2_1__340846814";
|
|
453
476
|
readonly majorVersion: 0;
|
|
454
477
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
478
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
455
479
|
readonly pepper: "devnet";
|
|
456
480
|
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
|
457
481
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
|
@@ -471,6 +495,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
471
495
|
readonly name: "incoLightning_0_2_1__340846814";
|
|
472
496
|
readonly majorVersion: 0;
|
|
473
497
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
498
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
474
499
|
readonly pepper: "devnet";
|
|
475
500
|
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
|
476
501
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
|
@@ -490,6 +515,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
490
515
|
readonly name: "incoLightningPreview_0_2_1__340846814";
|
|
491
516
|
readonly majorVersion: 0;
|
|
492
517
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
518
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
493
519
|
readonly pepper: "devnet";
|
|
494
520
|
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
|
495
521
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
|
@@ -509,6 +535,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
509
535
|
readonly name: "incoLightning_0_2_0__340846814";
|
|
510
536
|
readonly majorVersion: 0;
|
|
511
537
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
538
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
512
539
|
readonly pepper: "devnet";
|
|
513
540
|
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
|
514
541
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
|
@@ -528,6 +555,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
528
555
|
readonly name: "incoLightning_0_1_29__340846814";
|
|
529
556
|
readonly majorVersion: 0;
|
|
530
557
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
558
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
531
559
|
readonly pepper: "devnet";
|
|
532
560
|
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
|
533
561
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
|
@@ -547,6 +575,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
547
575
|
readonly name: "incoLightning_0_1_29__340846814";
|
|
548
576
|
readonly majorVersion: 0;
|
|
549
577
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
578
|
+
readonly owner: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
550
579
|
readonly pepper: "devnet";
|
|
551
580
|
readonly executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D";
|
|
552
581
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede";
|
package/dist/types/handle.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Schema } from 'effect';
|
|
|
2
2
|
import { HexString } from './binary.js';
|
|
3
3
|
/** Current handle version byte, appended as the last byte of every handle. */
|
|
4
4
|
export declare const HANDLE_VERSION = 0;
|
|
5
|
+
export declare const BYTE_ELIST_ELEMENT_TYPE_INDEX = 29;
|
|
5
6
|
/**
|
|
6
7
|
* Map of ENCRYPTION type names to their integer identifiers (matching tfhe-rs `FheType`).
|
|
7
8
|
*
|
|
@@ -75,6 +76,13 @@ export declare function validateHandle(handle: HexString): void;
|
|
|
75
76
|
* @see {@link https://github.com/Inco-fhevm/inco-monorepo/blob/636756f512ae16535bdcb9a43df76bf14fbd6ba7/pkg/fhe/handle.md Handle format spec}
|
|
76
77
|
*/
|
|
77
78
|
export declare function getHandleType(handle: HexString): FheType;
|
|
79
|
+
/**
|
|
80
|
+
* Extracts the elist element {@link FheType} from byte 29 of a validated handle.
|
|
81
|
+
* @param handle - A 32-byte hex handle string for an elist.
|
|
82
|
+
* @returns The ENCRYPTION type identifier of the elist elements.
|
|
83
|
+
* @throws If the handle is malformed or contains an invalid ENCRYPTION type at byte 29.
|
|
84
|
+
*/
|
|
85
|
+
export declare function getEListElementType(handle: HexString): FheType;
|
|
78
86
|
/**
|
|
79
87
|
* Computes the prehandle hash for an input based on the ciphertext
|
|
80
88
|
*
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Address } from 'viem';
|
|
2
2
|
import type { DecryptionAttestation, EncryptedDecryptionAttestation } from '../attesteddecrypt/types.js';
|
|
3
|
+
import { type EListDecryptionAttestation, type EncryptedEListDecryptionAttestation } from '../elistattesteddecrypt/types.js';
|
|
3
4
|
import type { EncryptionScheme, SupportedFheType } from '../encryption/encryption.js';
|
|
4
|
-
import type { AttestedComputeRequest, AttestedDecryptRequest, AttestedRevealRequest } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
|
5
|
-
import type
|
|
5
|
+
import type { AttestedComputeRequest, AttestedDecryptRequest, AttestedRevealRequest, EListAttestedDecryptRequest, EListAttestedRevealRequest } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
|
6
|
+
import { type XwingKeypair } from '../lite/xwing.js';
|
|
6
7
|
import type { BackoffConfig } from '../retry.js';
|
|
7
8
|
import { type KmsClient } from './client.js';
|
|
8
|
-
import type { ViemClient } from '
|
|
9
|
+
import type { ViemClient } from '../viem.js';
|
|
9
10
|
export declare class KmsQuorumClient {
|
|
10
11
|
private readonly kmss;
|
|
11
12
|
private readonly threshold;
|
|
@@ -33,6 +34,8 @@ export declare class KmsQuorumClient {
|
|
|
33
34
|
attestedDecrypt(request: AttestedDecryptRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<(DecryptionAttestation<EncryptionScheme, SupportedFheType> | EncryptedDecryptionAttestation<EncryptionScheme, SupportedFheType>)[]>;
|
|
34
35
|
attestedCompute(request: AttestedComputeRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<DecryptionAttestation<EncryptionScheme, SupportedFheType> | EncryptedDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
35
36
|
attestedReveal(request: AttestedRevealRequest, backoffConfig?: Partial<BackoffConfig>, executorAddress?: Address, client?: ViemClient): Promise<(DecryptionAttestation<EncryptionScheme, SupportedFheType> | EncryptedDecryptionAttestation<EncryptionScheme, SupportedFheType>)[]>;
|
|
37
|
+
eListAttestedDecrypt(request: EListAttestedDecryptRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedFheType> | EncryptedEListDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
38
|
+
eListAttestedReveal(request: EListAttestedRevealRequest, backoffConfig?: Partial<BackoffConfig>, executorAddress?: Address, client?: ViemClient): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
36
39
|
/**
|
|
37
40
|
* Generic method to execute a KMS operation across all clients with retry and threshold logic.
|
|
38
41
|
* Returns results with both the response and signer address.
|
|
@@ -49,4 +52,14 @@ export declare class KmsQuorumClient {
|
|
|
49
52
|
private buildPlaintextAttestation;
|
|
50
53
|
private buildAggregatedAttestations;
|
|
51
54
|
private buildAggregatedComputeAttestation;
|
|
55
|
+
private buildAggregatedEListAttestation;
|
|
56
|
+
/**
|
|
57
|
+
* Verifies proof hashes at two levels:
|
|
58
|
+
* 1. Aggregate: keccak256(concat(proofHashes)) must equal the attested commitmentProof
|
|
59
|
+
* 2. Per-element:
|
|
60
|
+
* - For plaintext (reveal): proofHash[i] = keccak256(value[i])
|
|
61
|
+
* - For reencryption (decrypt): proofHash[i] = keccak256(commitment[i] || plaintext[i])
|
|
62
|
+
* — requires reencryptKeypair to decrypt the ciphertext first.
|
|
63
|
+
*/
|
|
64
|
+
private verifyElementProofHashes;
|
|
52
65
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
import type { AttestedComputeRequest, AttestedComputeResponse, AttestedDecryptResponse, AttestedRevealResponse, DecryptionAttestation as ProtoDecryptionAttestation } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
|
2
|
+
import type { AttestedComputeRequest, AttestedComputeResponse, AttestedDecryptResponse, AttestedRevealResponse, EListAttestedDecryptResponse, EListAttestedRevealResponse, DecryptionAttestation as ProtoDecryptionAttestation } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
|
3
3
|
import type { XwingKeypair } from '../lite/xwing.js';
|
|
4
4
|
/**
|
|
5
5
|
* Computes a canonical key for a single attestation.
|
|
@@ -43,6 +43,29 @@ export declare function verifyDecryptResponseConsistency<T extends AttestedDecry
|
|
|
43
43
|
signer: Address;
|
|
44
44
|
}>;
|
|
45
45
|
}>;
|
|
46
|
+
type EListResponse = EListAttestedDecryptResponse | EListAttestedRevealResponse;
|
|
47
|
+
/**
|
|
48
|
+
* Validates that all elist responses in a winning bucket have the same
|
|
49
|
+
* number of values and matching indices.
|
|
50
|
+
*/
|
|
51
|
+
export declare function validateEListResponseStructure<T extends EListResponse>(bucket: Array<{
|
|
52
|
+
response: T;
|
|
53
|
+
signer: Address;
|
|
54
|
+
}>): void;
|
|
55
|
+
/**
|
|
56
|
+
* Verifies elist response consistency using hash-bucket voting.
|
|
57
|
+
* Works for both EListAttestedDecryptResponse and EListAttestedRevealResponse.
|
|
58
|
+
*/
|
|
59
|
+
export declare function verifyEListResponseConsistency<T extends EListResponse>(allResults: Array<{
|
|
60
|
+
response: T;
|
|
61
|
+
signer: Address;
|
|
62
|
+
}>, threshold: number, reencryptKeypair?: XwingKeypair): Promise<{
|
|
63
|
+
reference: T;
|
|
64
|
+
winningResults: Array<{
|
|
65
|
+
response: T;
|
|
66
|
+
signer: Address;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
46
69
|
/**
|
|
47
70
|
* Verifies compute response consistency using hash-bucket voting.
|
|
48
71
|
*/
|
|
@@ -56,3 +79,4 @@ export declare function verifyComputeResponseConsistency(allResults: Array<{
|
|
|
56
79
|
signer: Address;
|
|
57
80
|
}>;
|
|
58
81
|
}>;
|
|
82
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
|
+
import { ViemClient } from '../viem.js';
|
|
3
3
|
/**
|
|
4
4
|
* Verifies covalidator signatures for a plaintext DecryptionAttestation
|
|
5
5
|
* by calling `isValidDecryptionAttestation` on the IncoVerifier contract.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ATTESTED_COMPUTE_DOMAIN_NAME,
|
|
1
|
+
import { ATTESTED_COMPUTE_DOMAIN_NAME, type IncoLiteAttestedComputeArgs } from '../attestedcompute/attested-compute.js';
|
|
2
2
|
import type { AttestedCompute, AttestedComputeFnArgs } from '../attestedcompute/types.js';
|
|
3
3
|
import { AttestedComputeSupportedOps } from '../attestedcompute/types.js';
|
|
4
4
|
import type { AttestedDecryptFnArgs } from '../attesteddecrypt/types.js';
|
|
5
|
-
export { ATTESTED_COMPUTE_DOMAIN_NAME, AttestedComputeSupportedOps
|
|
5
|
+
export { ATTESTED_COMPUTE_DOMAIN_NAME, AttestedComputeSupportedOps };
|
|
6
6
|
export type { AttestedCompute, AttestedComputeFnArgs, AttestedDecryptFnArgs, IncoLiteAttestedComputeArgs, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type IncoLiteAttestedDecryptorArgs } from '../attesteddecrypt/attested-decrypt.js';
|
|
2
2
|
export type { IncoLiteAttestedDecryptorArgs };
|
|
3
|
-
import { ATTESTED_DECRYPT_DOMAIN_NAME
|
|
4
|
-
export { ATTESTED_DECRYPT_DOMAIN_NAME
|
|
3
|
+
import { ATTESTED_DECRYPT_DOMAIN_NAME } from '../attesteddecrypt/attested-decrypt.js';
|
|
4
|
+
export { ATTESTED_DECRYPT_DOMAIN_NAME };
|
|
@@ -4,6 +4,7 @@ import { AllowanceVoucherWithSig } from '../advancedacl/types.js';
|
|
|
4
4
|
import { AttestedComputeOP } from '../attestedcompute/types.js';
|
|
5
5
|
import { DecryptionAttestation, EncryptedDecryptionAttestation } from '../attesteddecrypt/index.js';
|
|
6
6
|
import { Address, HexString } from '../binary.js';
|
|
7
|
+
import { EListDecryptionAttestation, EncryptedEListDecryptionAttestation } from '../elistattesteddecrypt/index.js';
|
|
7
8
|
import { EncryptionScheme, SupportedFheType } from '../encryption/encryption.js';
|
|
8
9
|
import { incoVerifierAbi } from '../generated/abis/verifier.js';
|
|
9
10
|
import { lightningDeployments } from '../generated/lightning.js';
|
|
@@ -255,7 +256,6 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
255
256
|
*
|
|
256
257
|
* @param ephemeralAccount Session Account matching the voucher grantee.
|
|
257
258
|
* @param allowanceVoucherWithSig Signed allowance voucher.
|
|
258
|
-
* @param ethClient - A public eth client or eth wallet client used for signing the attested decrypt request
|
|
259
259
|
* @param handles Handles to decrypt.
|
|
260
260
|
* @param opts Optional reencryption/backoff configuration.
|
|
261
261
|
*
|
|
@@ -264,7 +264,6 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
264
264
|
* const attestations = await lightning.attestedDecryptWithVoucher(
|
|
265
265
|
* ephemeralAccount,
|
|
266
266
|
* voucher,
|
|
267
|
-
* ethClient,
|
|
268
267
|
* [handle],
|
|
269
268
|
* );
|
|
270
269
|
* ```
|
|
@@ -274,7 +273,6 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
274
273
|
* const encrypted = await lightning.attestedDecryptWithVoucher(
|
|
275
274
|
* ephemeralAccount,
|
|
276
275
|
* voucher,
|
|
277
|
-
* ethClient,
|
|
278
276
|
* [handle],
|
|
279
277
|
* { reencryptPubKey: delegateKeypair.encodePublicKey() },
|
|
280
278
|
* );
|
|
@@ -285,15 +283,26 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
285
283
|
* const decrypted = await lightning.attestedDecryptWithVoucher(
|
|
286
284
|
* ephemeralAccount,
|
|
287
285
|
* voucher,
|
|
288
|
-
* ethClient,
|
|
289
286
|
* [handle],
|
|
290
287
|
* { reencryptPubKey: keypair.encodePublicKey(), reencryptKeypair: keypair },
|
|
291
288
|
* );
|
|
292
289
|
* ```
|
|
293
290
|
*/
|
|
294
|
-
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig,
|
|
295
|
-
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig,
|
|
296
|
-
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig,
|
|
291
|
+
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts?: AttestedWithVoucherOptsEphemeral): Promise<Array<DecryptionAttestation<EncryptionScheme, SupportedFheType>>>;
|
|
292
|
+
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts: AttestedWithVoucherOptsEncrypted): Promise<Array<EncryptedDecryptionAttestation<EncryptionScheme, SupportedFheType>>>;
|
|
293
|
+
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts: AttestedWithVoucherOptsDecrypted): Promise<Array<DecryptionAttestation<EncryptionScheme, SupportedFheType>>>;
|
|
294
|
+
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts?: AttestedOptsEphemeral): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
295
|
+
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts: AttestedOptsEncrypted): Promise<EncryptedEListDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
296
|
+
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts: AttestedOptsDecrypted): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
297
|
+
/**
|
|
298
|
+
* Reveal a single elist handle without wallet authentication.
|
|
299
|
+
* Returns plaintext values along with an attestation of the checksum.
|
|
300
|
+
*
|
|
301
|
+
* @param handle - The elist handle to reveal
|
|
302
|
+
* @param opts - Optional backoff configuration
|
|
303
|
+
* @returns The elist decryption attestation with plaintext values
|
|
304
|
+
*/
|
|
305
|
+
eListAttestedReveal(handle: HexString, opts?: AttestedRevealOpts): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
297
306
|
/**
|
|
298
307
|
* Get an attested compute for the given wallet client.
|
|
299
308
|
*
|
|
@@ -349,7 +358,6 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
349
358
|
* const attestation = await lightning.attestedComputeWithVoucher(
|
|
350
359
|
* ephemeralAccount,
|
|
351
360
|
* voucher,
|
|
352
|
-
* ethClient,
|
|
353
361
|
* lhsHandle,
|
|
354
362
|
* AttestedComputeSupportedOps.Eq,
|
|
355
363
|
* true,
|
|
@@ -361,7 +369,6 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
361
369
|
* const encrypted = await lightning.attestedComputeWithVoucher(
|
|
362
370
|
* ephemeralAccount,
|
|
363
371
|
* voucher,
|
|
364
|
-
* ethClient,
|
|
365
372
|
* lhsHandle,
|
|
366
373
|
* AttestedComputeSupportedOps.Eq,
|
|
367
374
|
* true,
|
|
@@ -375,7 +382,6 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
375
382
|
* const decrypted = await lightning.attestedComputeWithVoucher(
|
|
376
383
|
* ephemeralAccount,
|
|
377
384
|
* voucher,
|
|
378
|
-
* ethClient,
|
|
379
385
|
* lhsHandle,
|
|
380
386
|
* AttestedComputeSupportedOps.Eq,
|
|
381
387
|
* true,
|
|
@@ -384,9 +390,9 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
384
390
|
* console.log(decrypted.plaintext.value);
|
|
385
391
|
* ```
|
|
386
392
|
*/
|
|
387
|
-
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig,
|
|
388
|
-
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig,
|
|
389
|
-
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig,
|
|
393
|
+
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts?: AttestedWithVoucherOptsEphemeral): Promise<DecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
394
|
+
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedWithVoucherOptsEncrypted): Promise<EncryptedDecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
395
|
+
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedWithVoucherOptsDecrypted): Promise<DecryptionAttestation<EncryptionScheme, SupportedFheType>>;
|
|
390
396
|
/**
|
|
391
397
|
* Get an decryption of publicly revealed handles.
|
|
392
398
|
*
|
|
@@ -406,7 +412,8 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
406
412
|
*/
|
|
407
413
|
static getCovalidatorUrls(deployment: DeploymentSlice & {
|
|
408
414
|
pepper: string;
|
|
409
|
-
|
|
415
|
+
majorVersion: number;
|
|
416
|
+
}, signers: Address[]): string[];
|
|
410
417
|
private static isIdByName;
|
|
411
418
|
private static plaintextFromValue;
|
|
412
419
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Account, Chain, Transport, WalletClient } from 'viem';
|
|
1
|
+
import { Account, Chain, PublicClient, Transport, WalletClient } from 'viem';
|
|
2
2
|
import { vi } from 'vitest';
|
|
3
3
|
import { KmsClient } from '../kms/client.js';
|
|
4
4
|
import { KmsQuorumClient } from '../kms/quorumClient.js';
|
|
@@ -6,11 +6,15 @@ interface MinimalKmsClient {
|
|
|
6
6
|
attestedCompute: ReturnType<typeof vi.fn>;
|
|
7
7
|
attestedDecrypt: ReturnType<typeof vi.fn>;
|
|
8
8
|
attestedReveal: ReturnType<typeof vi.fn>;
|
|
9
|
+
eListAttestedDecrypt: ReturnType<typeof vi.fn>;
|
|
10
|
+
eListAttestedReveal: ReturnType<typeof vi.fn>;
|
|
9
11
|
key: ReturnType<typeof vi.fn>;
|
|
10
12
|
reencrypt: ReturnType<typeof vi.fn>;
|
|
11
13
|
}
|
|
12
14
|
export declare function createMockKmsClient(): MinimalKmsClient & KmsClient;
|
|
13
15
|
export declare function createMockQuorumClient(): KmsQuorumClient;
|
|
14
16
|
export declare function setupMockInQuorumClient(quorumClient: KmsQuorumClient, mockKmsClient: MinimalKmsClient & KmsClient): void;
|
|
17
|
+
export declare function createMockPublicClient(): PublicClient<Transport, Chain>;
|
|
15
18
|
export declare function createTestWalletClient(): WalletClient<Transport, Chain, Account>;
|
|
19
|
+
export declare function createFallbackWalletClient(): WalletClient<Transport, Chain, Account>;
|
|
16
20
|
export {};
|
package/dist/types/viem.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Chain } from 'viem';
|
|
1
|
+
import { Account, Chain, PublicClient, Transport, WalletClient } from 'viem';
|
|
2
2
|
import { Chainish } from './chain.js';
|
|
3
|
+
export type ViemClient = WalletClient<Transport, Chain, Account> | PublicClient<Transport, Chain>;
|
|
3
4
|
/** Map of supported chain short names to their viem chain objects. */
|
|
4
5
|
export declare const chains: {
|
|
5
6
|
sepolia: {
|