@inco/js 0.11.0-testnet-3 → 1.0.0-devnet-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.
- package/dist/cjs/advancedacl/session-key.d.ts +4 -3
- package/dist/cjs/advancedacl/session-key.js +16 -9
- package/dist/cjs/advancedacl/types.d.ts +1 -0
- package/dist/cjs/attestedcompute/attested-compute.d.ts +4 -4
- package/dist/cjs/attestedcompute/types.d.ts +9 -9
- package/dist/cjs/attestedcompute/types.js +20 -20
- package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +4 -4
- package/dist/cjs/attesteddecrypt/types.d.ts +5 -5
- package/dist/cjs/attestedreveal/attested-reveal.d.ts +2 -2
- package/dist/cjs/elistattesteddecrypt/elist-attested-decrypt.d.ts +5 -5
- package/dist/cjs/elistattesteddecrypt/types.d.ts +5 -5
- package/dist/cjs/encryption/encryption.d.ts +19 -16
- package/dist/cjs/encryption/encryption.js +6 -6
- package/dist/cjs/encryption/index.d.ts +1 -1
- package/dist/cjs/encryption/index.js +4 -4
- package/dist/cjs/generated/abis/lightning.d.ts +166 -1
- package/dist/cjs/generated/abis/lightning.js +141 -2
- package/dist/cjs/generated/abis/verifier.d.ts +62 -0
- package/dist/cjs/generated/abis/verifier.js +53 -1
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +101 -107
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.js +93 -93
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +6 -0
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.js +2 -2
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.d.ts +48 -41
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.js +43 -43
- package/dist/cjs/generated/lightning.d.ts +98 -0
- package/dist/cjs/generated/lightning.js +118 -18
- package/dist/cjs/generated/local-node.d.ts +7 -7
- package/dist/cjs/generated/local-node.js +7 -7
- package/dist/cjs/handle.d.ts +17 -15
- package/dist/cjs/handle.js +32 -19
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/kms/quorumClient.d.ts +6 -6
- package/dist/cjs/lite/lightning.d.ts +20 -20
- package/dist/cjs/lite/lightning.js +4 -2
- package/dist/cjs/lite/xwing.js +1 -1
- package/dist/cjs/reencryption/types.d.ts +3 -3
- package/dist/esm/advancedacl/session-key.d.ts +4 -3
- package/dist/esm/advancedacl/session-key.js +15 -9
- package/dist/esm/advancedacl/types.d.ts +1 -0
- package/dist/esm/attestedcompute/attested-compute.d.ts +4 -4
- package/dist/esm/attestedcompute/types.d.ts +9 -9
- package/dist/esm/attestedcompute/types.js +20 -20
- package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +4 -4
- package/dist/esm/attesteddecrypt/types.d.ts +5 -5
- package/dist/esm/attestedreveal/attested-reveal.d.ts +2 -2
- package/dist/esm/elistattesteddecrypt/elist-attested-decrypt.d.ts +5 -5
- package/dist/esm/elistattesteddecrypt/types.d.ts +5 -5
- package/dist/esm/encryption/encryption.d.ts +19 -16
- package/dist/esm/encryption/encryption.js +5 -5
- package/dist/esm/encryption/index.d.ts +1 -1
- package/dist/esm/encryption/index.js +1 -1
- package/dist/esm/generated/abis/lightning.d.ts +166 -1
- package/dist/esm/generated/abis/lightning.js +141 -2
- package/dist/esm/generated/abis/verifier.d.ts +62 -0
- package/dist/esm/generated/abis/verifier.js +53 -1
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +101 -107
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.js +92 -92
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +6 -0
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.js +2 -2
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.d.ts +48 -41
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +43 -43
- package/dist/esm/generated/lightning.d.ts +98 -0
- package/dist/esm/generated/lightning.js +118 -18
- package/dist/esm/generated/local-node.d.ts +7 -7
- package/dist/esm/generated/local-node.js +7 -7
- package/dist/esm/handle.d.ts +17 -15
- package/dist/esm/handle.js +31 -18
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kms/quorumClient.d.ts +6 -6
- package/dist/esm/lite/lightning.d.ts +20 -20
- package/dist/esm/lite/lightning.js +4 -2
- package/dist/esm/lite/xwing.js +2 -2
- package/dist/esm/reencryption/types.d.ts +3 -3
- package/dist/types/advancedacl/session-key.d.ts +4 -3
- package/dist/types/advancedacl/types.d.ts +1 -0
- package/dist/types/attestedcompute/attested-compute.d.ts +4 -4
- package/dist/types/attestedcompute/types.d.ts +9 -9
- package/dist/types/attesteddecrypt/attested-decrypt.d.ts +4 -4
- package/dist/types/attesteddecrypt/types.d.ts +5 -5
- package/dist/types/attestedreveal/attested-reveal.d.ts +2 -2
- package/dist/types/elistattesteddecrypt/elist-attested-decrypt.d.ts +5 -5
- package/dist/types/elistattesteddecrypt/types.d.ts +5 -5
- package/dist/types/encryption/encryption.d.ts +19 -16
- package/dist/types/encryption/index.d.ts +1 -1
- package/dist/types/generated/abis/lightning.d.ts +166 -1
- package/dist/types/generated/abis/verifier.d.ts +62 -0
- package/dist/types/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +101 -107
- package/dist/types/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +6 -0
- package/dist/types/generated/es/inco/kms/lite/v1/types_pb.d.ts +48 -41
- package/dist/types/generated/lightning.d.ts +98 -0
- package/dist/types/generated/local-node.d.ts +7 -7
- package/dist/types/handle.d.ts +17 -15
- package/dist/types/index.d.ts +1 -1
- package/dist/types/kms/quorumClient.d.ts +6 -6
- package/dist/types/lite/lightning.d.ts +20 -20
- package/dist/types/reencryption/types.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
export declare const lightningDeployments: readonly [{
|
|
2
|
+
readonly name: "incoLightning_12_0_0__873394282";
|
|
3
|
+
readonly majorVersion: 12;
|
|
4
|
+
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
5
|
+
readonly owner: "0x8E0860785c9B9c99B17DCd8c1da89548dA140299";
|
|
6
|
+
readonly pepper: "devnet";
|
|
7
|
+
readonly executorAddress: "0xB3C06f0Ed967a7E366ba31C67927DDf93d7c1154";
|
|
8
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00f5bad44b2a772fe6ca626a";
|
|
9
|
+
readonly verifierAddress: "0x75dE330840A8ff79C8a71b0b9bA2cAd635D1Fd88";
|
|
10
|
+
readonly chainId: 84532;
|
|
11
|
+
readonly chainName: "Base Sepolia";
|
|
12
|
+
readonly version: {
|
|
13
|
+
readonly major: 12;
|
|
14
|
+
readonly minor: 0;
|
|
15
|
+
readonly patch: 0;
|
|
16
|
+
readonly shortSalt: "873394282";
|
|
17
|
+
};
|
|
18
|
+
readonly blockNumber: 41405367;
|
|
19
|
+
readonly deployDate: "2026-05-12T09:43:45.656Z";
|
|
20
|
+
readonly commit: "v0.11.0-demonet-7-12-g82837bd9";
|
|
21
|
+
readonly active: true;
|
|
22
|
+
readonly includesPreviewFeatures: false;
|
|
23
|
+
readonly executorImpl: "0x4cdaa0d9f13AeA039673f4c5be50e6C37631f3Fd";
|
|
24
|
+
readonly verifierImpl: "0xaa8F2FaD6b695fAB9D21FA00f74148038496aDa1";
|
|
25
|
+
}, {
|
|
2
26
|
readonly name: "incoLightning_11_0_0__340321378";
|
|
3
27
|
readonly majorVersion: 11;
|
|
4
28
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
@@ -6,6 +30,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
6
30
|
readonly pepper: "testnet";
|
|
7
31
|
readonly executorAddress: "0x3cC345Eaa5bEe457AF9C0C3183335a67b62b0066";
|
|
8
32
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00af1f4ec3705e21d9e36c62";
|
|
33
|
+
readonly verifierAddress: "0x856802c3c762ddfAbDe9eaFb7aba66124AA97b4e";
|
|
9
34
|
readonly chainId: 84532;
|
|
10
35
|
readonly chainName: "Base Sepolia";
|
|
11
36
|
readonly version: {
|
|
@@ -19,6 +44,32 @@ export declare const lightningDeployments: readonly [{
|
|
|
19
44
|
readonly commit: "v0.10.0-devnet-2-12-gfac57f53-dirty";
|
|
20
45
|
readonly active: true;
|
|
21
46
|
readonly includesPreviewFeatures: false;
|
|
47
|
+
readonly executorImpl: "0x3c120ea08303ada9abdf7d68f490d375d88c816c";
|
|
48
|
+
readonly verifierImpl: "0x12d09b2b7224368e49a3a5b394af945ab08ac01b";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "incoLightning_11_0_1__473256067";
|
|
51
|
+
readonly majorVersion: 11;
|
|
52
|
+
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
53
|
+
readonly owner: "0x8E0860785c9B9c99B17DCd8c1da89548dA140299";
|
|
54
|
+
readonly pepper: "demonet";
|
|
55
|
+
readonly executorAddress: "0xad9Af2e804FbF14d69391167F1FCDf918A3980fb";
|
|
56
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00056195a8d84ba47a58b683";
|
|
57
|
+
readonly verifierAddress: "0xD5dc612b26c09724F568Bf5A0f1275bd258805d9";
|
|
58
|
+
readonly chainId: 84532;
|
|
59
|
+
readonly chainName: "Base Sepolia";
|
|
60
|
+
readonly version: {
|
|
61
|
+
readonly major: 11;
|
|
62
|
+
readonly minor: 0;
|
|
63
|
+
readonly patch: 1;
|
|
64
|
+
readonly shortSalt: "473256067";
|
|
65
|
+
};
|
|
66
|
+
readonly blockNumber: 40887358;
|
|
67
|
+
readonly deployDate: "2026-04-30T09:56:46.927Z";
|
|
68
|
+
readonly commit: "v0.11.0-testnet-3-10-g6b4bb85b";
|
|
69
|
+
readonly active: true;
|
|
70
|
+
readonly includesPreviewFeatures: false;
|
|
71
|
+
readonly executorImpl: "0x9db0b06f1717d5c77c3157d30a95b62d0a6f0349";
|
|
72
|
+
readonly verifierImpl: "0x3592bc475fe2a1c63849f2b3af46647b7402bd2c";
|
|
22
73
|
}, {
|
|
23
74
|
readonly name: "incoLightning_10_0_0__266391127";
|
|
24
75
|
readonly majorVersion: 10;
|
|
@@ -27,6 +78,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
27
78
|
readonly pepper: "devnet";
|
|
28
79
|
readonly executorAddress: "0x9C6b74dff47644956e712B301aa3701b3141fF9C";
|
|
29
80
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc0012dea2b242c4d3b620c657";
|
|
81
|
+
readonly verifierAddress: "0x15282A3136320a6C11d2468079DB1F26Fa9Ac001";
|
|
30
82
|
readonly chainId: 84532;
|
|
31
83
|
readonly chainName: "Base Sepolia";
|
|
32
84
|
readonly version: {
|
|
@@ -40,6 +92,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
40
92
|
readonly commit: "v0.8.0-devnet-32-6-ge1e857cf0-dirty";
|
|
41
93
|
readonly active: true;
|
|
42
94
|
readonly includesPreviewFeatures: false;
|
|
95
|
+
readonly executorImpl: "0x362c2f6792e2fe328fc9565949ca8f186f88773a";
|
|
96
|
+
readonly verifierImpl: "0x0233e1facb84bc1c76114b7df635cb2d889a4eea";
|
|
43
97
|
}, {
|
|
44
98
|
readonly name: "incoLightning_9_0_0__269218568";
|
|
45
99
|
readonly majorVersion: 9;
|
|
@@ -48,6 +102,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
48
102
|
readonly pepper: "devnet";
|
|
49
103
|
readonly executorAddress: "0x6c9132D324231D2F68a1491686b0d4c10ee7d257";
|
|
50
104
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007202d6e9ea2805def71308";
|
|
105
|
+
readonly verifierAddress: "0x0c03069f9632B016bc5d39EFf09EcdA100Be8424";
|
|
51
106
|
readonly chainId: 84532;
|
|
52
107
|
readonly chainName: "Base Sepolia";
|
|
53
108
|
readonly version: {
|
|
@@ -61,6 +116,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
61
116
|
readonly commit: "v0.8.0-devnet-13-40-gc1ceef103-dirty";
|
|
62
117
|
readonly active: true;
|
|
63
118
|
readonly includesPreviewFeatures: false;
|
|
119
|
+
readonly executorImpl: "0x2f2f5bce9dfc3c759ddd9337230bede594bbe428";
|
|
120
|
+
readonly verifierImpl: "0xc8dfe7e295c7641984685f87a66247139eeb7582";
|
|
64
121
|
}, {
|
|
65
122
|
readonly name: "incoLightning_8_0_0__985328058";
|
|
66
123
|
readonly majorVersion: 8;
|
|
@@ -90,6 +147,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
90
147
|
readonly pepper: "devnet";
|
|
91
148
|
readonly executorAddress: "0xA2275E60cCEd081fFD7373593c44ebc30E6Efe66";
|
|
92
149
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc0057b7694d1492d2775d132b";
|
|
150
|
+
readonly verifierAddress: "0xe2Dc8809100770771a0AA5B4eCe545CA9bC10195";
|
|
93
151
|
readonly chainId: 84532;
|
|
94
152
|
readonly chainName: "Base Sepolia";
|
|
95
153
|
readonly version: {
|
|
@@ -103,6 +161,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
103
161
|
readonly commit: "v0.8.0-devnet-13-38-g52b1dfef3";
|
|
104
162
|
readonly active: true;
|
|
105
163
|
readonly includesPreviewFeatures: false;
|
|
164
|
+
readonly executorImpl: "0x7f875aec5795a2c4f74522df134aad81cc7ded35";
|
|
106
165
|
}, {
|
|
107
166
|
readonly name: "incoLightning_6_0_0__281949651";
|
|
108
167
|
readonly majorVersion: 6;
|
|
@@ -111,6 +170,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
111
170
|
readonly pepper: "devnet";
|
|
112
171
|
readonly executorAddress: "0xDF3830489208461f72Df6E45D0e6cbF9DBB74fe1";
|
|
113
172
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc009531587de02194b1b7a9d3";
|
|
173
|
+
readonly verifierAddress: "0xDAC31F2fbf1DB86e7A26099C199b4c092851080f";
|
|
114
174
|
readonly chainId: 84532;
|
|
115
175
|
readonly chainName: "Base Sepolia";
|
|
116
176
|
readonly version: {
|
|
@@ -124,6 +184,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
124
184
|
readonly commit: "v0.8.0-devnet-9-13-ge2ba2377";
|
|
125
185
|
readonly active: true;
|
|
126
186
|
readonly includesPreviewFeatures: false;
|
|
187
|
+
readonly executorImpl: "0x7af45d96b9ec580d59319c33b75af6f535b32e5a";
|
|
188
|
+
readonly verifierImpl: "0x2fca8caca9851fcee07913eb014636aef4aa3584";
|
|
127
189
|
}, {
|
|
128
190
|
readonly name: "incoLightningPreview_5_0_0__203964628";
|
|
129
191
|
readonly majorVersion: 5;
|
|
@@ -132,6 +194,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
132
194
|
readonly pepper: "devnet";
|
|
133
195
|
readonly executorAddress: "0x8D5D75CC00E2Fc84ec4dE085aE1708223591c6b6";
|
|
134
196
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00c573fb2bf617e75b6210d4";
|
|
197
|
+
readonly verifierAddress: "0xA06766200a27838DE02Ec9AF0125CBC4779b194d";
|
|
135
198
|
readonly chainId: 84532;
|
|
136
199
|
readonly chainName: "Base Sepolia";
|
|
137
200
|
readonly version: {
|
|
@@ -145,6 +208,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
145
208
|
readonly commit: "v0.8.0-devnet-8-8-ge2e37e00";
|
|
146
209
|
readonly active: true;
|
|
147
210
|
readonly includesPreviewFeatures: true;
|
|
211
|
+
readonly executorImpl: "0x75e2db9f74fc1086290199de9e68ff473574d828";
|
|
212
|
+
readonly verifierImpl: "0xb5a51782dad58abb611e06543c1db54a242b72b1";
|
|
148
213
|
}, {
|
|
149
214
|
readonly name: "incoLightningPreview_4_0_0__409204766";
|
|
150
215
|
readonly majorVersion: 4;
|
|
@@ -153,6 +218,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
153
218
|
readonly pepper: "devnet";
|
|
154
219
|
readonly executorAddress: "0x4046b737B454b0430FBF29cea070e3337AdE95aD";
|
|
155
220
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003b3f2c4caeb6f787dcce1e";
|
|
221
|
+
readonly verifierAddress: "0x4756FBd1E0B0243FF6D2952FebD7B2C25C481f05";
|
|
156
222
|
readonly chainId: 84532;
|
|
157
223
|
readonly chainName: "Base Sepolia";
|
|
158
224
|
readonly version: {
|
|
@@ -166,6 +232,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
166
232
|
readonly commit: "v0.8.0-devnet-4-1-g48f40565-dirty";
|
|
167
233
|
readonly active: true;
|
|
168
234
|
readonly includesPreviewFeatures: true;
|
|
235
|
+
readonly executorImpl: "0xffd0555386f1b7618da4e1b10d3a78ff03bdb5f8";
|
|
236
|
+
readonly verifierImpl: "0x4d98f77b10b79df02a3657d208f5ef49b6bd6675";
|
|
169
237
|
}, {
|
|
170
238
|
readonly name: "incoLightningPreview_3_0_0__976859633";
|
|
171
239
|
readonly majorVersion: 3;
|
|
@@ -174,6 +242,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
174
242
|
readonly pepper: "devnet";
|
|
175
243
|
readonly executorAddress: "0x4732520194584a04Cac0224e067658619F4086bD";
|
|
176
244
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00ef1fab551c72a93b0637f1";
|
|
245
|
+
readonly verifierAddress: "0xc5687F93B8558DAB2e838B538D4f5Cb28bf062F1";
|
|
177
246
|
readonly chainId: 84532;
|
|
178
247
|
readonly chainName: "Base Sepolia";
|
|
179
248
|
readonly version: {
|
|
@@ -187,6 +256,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
187
256
|
readonly commit: "v0.7.9-7-g63b3d823-dirty";
|
|
188
257
|
readonly active: true;
|
|
189
258
|
readonly includesPreviewFeatures: true;
|
|
259
|
+
readonly executorImpl: "0x7662b6f0982dfb02fb5a176aa5406e2038fd0413";
|
|
260
|
+
readonly verifierImpl: "0x306656e5c1cf2526a685a08037194c08c0850399";
|
|
190
261
|
}, {
|
|
191
262
|
readonly name: "incoLightningPreview_2_0_0__889158349";
|
|
192
263
|
readonly majorVersion: 2;
|
|
@@ -195,6 +266,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
195
266
|
readonly pepper: "testnet";
|
|
196
267
|
readonly executorAddress: "0x168FDc3Ae19A5d5b03614578C58974FF30FCBe92";
|
|
197
268
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc005e0f44aac1a914b715cecd";
|
|
269
|
+
readonly verifierAddress: "0x4507d21774b152479D354FE7A6058A85193EFed0";
|
|
198
270
|
readonly chainId: 84532;
|
|
199
271
|
readonly chainName: "Base Sepolia";
|
|
200
272
|
readonly version: {
|
|
@@ -208,6 +280,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
208
280
|
readonly commit: "v0.7.5-1-g770d7d08-dirty";
|
|
209
281
|
readonly active: true;
|
|
210
282
|
readonly includesPreviewFeatures: true;
|
|
283
|
+
readonly executorImpl: "0x8ed6876106cb635c0cee4c4529b09cbddc9881af";
|
|
284
|
+
readonly verifierImpl: "0x161acaa1eece74d35ac838f7eb0c4c1a6be20094";
|
|
211
285
|
}, {
|
|
212
286
|
readonly name: "incoLightningPreview_2_0_0__467437523";
|
|
213
287
|
readonly majorVersion: 2;
|
|
@@ -216,6 +290,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
216
290
|
readonly pepper: "demonet";
|
|
217
291
|
readonly executorAddress: "0xA95EAbCE575f5f1e52605358Ee893F6536166378";
|
|
218
292
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc0071f74686446f14c7b469d3";
|
|
293
|
+
readonly verifierAddress: "0x07B483c571F147f91b8C3a16AF813D70954A3371";
|
|
219
294
|
readonly chainId: 84532;
|
|
220
295
|
readonly chainName: "Base Sepolia";
|
|
221
296
|
readonly version: {
|
|
@@ -229,6 +304,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
229
304
|
readonly commit: "v0.7.6-testnet-1-dirty";
|
|
230
305
|
readonly active: true;
|
|
231
306
|
readonly includesPreviewFeatures: true;
|
|
307
|
+
readonly executorImpl: "0x9738f9cf0cdb50363bf973a7cd3587972eda97f5";
|
|
308
|
+
readonly verifierImpl: "0xfd66b8aa69215550904fea3cc1ddb1ad92145a33";
|
|
232
309
|
}, {
|
|
233
310
|
readonly name: "incoLightningPreview_2_0_0__976644394";
|
|
234
311
|
readonly majorVersion: 2;
|
|
@@ -237,6 +314,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
237
314
|
readonly pepper: "alphanet";
|
|
238
315
|
readonly executorAddress: "0xc0d693DeEF0A91CE39208676b6da09B822abd199";
|
|
239
316
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc000822f11f6e30f933e76d2a";
|
|
317
|
+
readonly verifierAddress: "0x88D1bEbCbEf8E9035d9b86Cb9eDBA10F06BDf49D";
|
|
240
318
|
readonly chainId: 84532;
|
|
241
319
|
readonly chainName: "Base Sepolia";
|
|
242
320
|
readonly version: {
|
|
@@ -250,6 +328,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
250
328
|
readonly commit: "v0.6.9-17-g217794f3-dirty";
|
|
251
329
|
readonly active: true;
|
|
252
330
|
readonly includesPreviewFeatures: true;
|
|
331
|
+
readonly executorImpl: "0xd3822728e4c6e284a3ac2236aa17e151f182701a";
|
|
332
|
+
readonly verifierImpl: "0x7c5645de301e2ffd73dfb8e3414415d10dc6ca3b";
|
|
253
333
|
}, {
|
|
254
334
|
readonly name: "incoLightningPreview_2_0_0__295237520";
|
|
255
335
|
readonly majorVersion: 2;
|
|
@@ -258,6 +338,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
258
338
|
readonly pepper: "devnet";
|
|
259
339
|
readonly executorAddress: "0xC64BB070D6F5aa796e79fA19c1008647ffF736ED";
|
|
260
340
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008d5a963bd519d8493f5190";
|
|
341
|
+
readonly verifierAddress: "0x8eAD8084Bcd620eC3c692296906394D799B467ec";
|
|
261
342
|
readonly chainId: 9746;
|
|
262
343
|
readonly chainName: "Plasma Testnet";
|
|
263
344
|
readonly version: {
|
|
@@ -271,6 +352,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
271
352
|
readonly commit: "v0.7.4-dirty";
|
|
272
353
|
readonly active: true;
|
|
273
354
|
readonly includesPreviewFeatures: true;
|
|
355
|
+
readonly executorImpl: "0xaa19da35487c659eadd204ee7f70b4c74735e868";
|
|
356
|
+
readonly verifierImpl: "0x9fddae8044ffbc60359d08cc97b2a9ae6d006e6c";
|
|
274
357
|
}, {
|
|
275
358
|
readonly name: "incoLightningPreview_2_0_0__295237520";
|
|
276
359
|
readonly majorVersion: 2;
|
|
@@ -279,6 +362,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
279
362
|
readonly pepper: "devnet";
|
|
280
363
|
readonly executorAddress: "0xC64BB070D6F5aa796e79fA19c1008647ffF736ED";
|
|
281
364
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008d5a963bd519d8493f5190";
|
|
365
|
+
readonly verifierAddress: "0x8eAD8084Bcd620eC3c692296906394D799B467ec";
|
|
282
366
|
readonly chainId: 84532;
|
|
283
367
|
readonly chainName: "Base Sepolia";
|
|
284
368
|
readonly version: {
|
|
@@ -292,6 +376,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
292
376
|
readonly commit: "v0.7.2-3-g4d31fa62-dirty";
|
|
293
377
|
readonly active: true;
|
|
294
378
|
readonly includesPreviewFeatures: true;
|
|
379
|
+
readonly executorImpl: "0x69513b81756bd942dabe24bd9d175ac42f1f1282";
|
|
380
|
+
readonly verifierImpl: "0xdb096d4a543731f9ff5091eac94a32bf2fc8550d";
|
|
295
381
|
}, {
|
|
296
382
|
readonly name: "incoLightningPreview_1_1_0__725458969";
|
|
297
383
|
readonly majorVersion: 1;
|
|
@@ -300,6 +386,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
300
386
|
readonly pepper: "alphanet";
|
|
301
387
|
readonly executorAddress: "0x28676Cd3b10b03b2FDF105Ba280425b45a674F2A";
|
|
302
388
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc004dfbe338c6966a22bcca19";
|
|
389
|
+
readonly verifierAddress: "0x6F6a198141e304dD9c977b07f45dbef1686e4705";
|
|
303
390
|
readonly chainId: 84532;
|
|
304
391
|
readonly chainName: "Base Sepolia";
|
|
305
392
|
readonly version: {
|
|
@@ -313,6 +400,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
313
400
|
readonly commit: "v0.6.9-16-g428d1837-dirty";
|
|
314
401
|
readonly active: true;
|
|
315
402
|
readonly includesPreviewFeatures: true;
|
|
403
|
+
readonly executorImpl: "0x0e2a5225f65268840f0f49e7093d5918be5a9cc3";
|
|
404
|
+
readonly verifierImpl: "0x418f089b9ac222d6eff2c25dd55af432e7b788e7";
|
|
316
405
|
}, {
|
|
317
406
|
readonly name: "incoLightningPreview_1_0_2__725458969";
|
|
318
407
|
readonly majorVersion: 1;
|
|
@@ -321,6 +410,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
321
410
|
readonly pepper: "alphanet";
|
|
322
411
|
readonly executorAddress: "0x28676Cd3b10b03b2FDF105Ba280425b45a674F2A";
|
|
323
412
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc004dfbe338c6966a22bcca19";
|
|
413
|
+
readonly verifierAddress: "0x6F6a198141e304dD9c977b07f45dbef1686e4705";
|
|
324
414
|
readonly chainId: 84532;
|
|
325
415
|
readonly chainName: "Base Sepolia";
|
|
326
416
|
readonly version: {
|
|
@@ -333,6 +423,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
333
423
|
readonly deployDate: "2025-10-09T13:55:42.997Z";
|
|
334
424
|
readonly commit: "v0.5.3-10-ga4f2312d";
|
|
335
425
|
readonly active: true;
|
|
426
|
+
readonly executorImpl: "0x0e2a5225f65268840f0f49e7093d5918be5a9cc3";
|
|
427
|
+
readonly verifierImpl: "0x418f089b9ac222d6eff2c25dd55af432e7b788e7";
|
|
336
428
|
}, {
|
|
337
429
|
readonly name: "incoLightningPreview_1_0_2__904635675";
|
|
338
430
|
readonly majorVersion: 1;
|
|
@@ -341,6 +433,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
341
433
|
readonly pepper: "devnet";
|
|
342
434
|
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
|
343
435
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007d63c0fdca6698ac7cc51b";
|
|
436
|
+
readonly verifierAddress: "0xda5B164c6eD4D170e95184c24A4C97dE85D9688A";
|
|
344
437
|
readonly chainId: 9746;
|
|
345
438
|
readonly chainName: "Plasma Testnet";
|
|
346
439
|
readonly version: {
|
|
@@ -353,6 +446,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
353
446
|
readonly deployDate: "2025-10-03T13:24:44.682Z";
|
|
354
447
|
readonly commit: "v0.5.3-6-g8db0f27f-dirty";
|
|
355
448
|
readonly active: true;
|
|
449
|
+
readonly executorImpl: "0xa5e54313d736805e225bd26de0809bb6084a8366";
|
|
450
|
+
readonly verifierImpl: "0x04d0963a96e3c40acc3f6f540123910c0f05251f";
|
|
356
451
|
}, {
|
|
357
452
|
readonly name: "incoLightningPreview_1_0_0__904635675";
|
|
358
453
|
readonly majorVersion: 1;
|
|
@@ -361,6 +456,7 @@ export declare const lightningDeployments: readonly [{
|
|
|
361
456
|
readonly pepper: "devnet";
|
|
362
457
|
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
|
363
458
|
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc007d63c0fdca6698ac7cc51b";
|
|
459
|
+
readonly verifierAddress: "0xda5B164c6eD4D170e95184c24A4C97dE85D9688A";
|
|
364
460
|
readonly chainId: 9746;
|
|
365
461
|
readonly chainName: "Plasma Testnet";
|
|
366
462
|
readonly version: {
|
|
@@ -373,6 +469,8 @@ export declare const lightningDeployments: readonly [{
|
|
|
373
469
|
readonly deployDate: "2025-09-29T11:14:02.599Z";
|
|
374
470
|
readonly commit: "v0.5.1-5-g4135c790-dirty";
|
|
375
471
|
readonly active: true;
|
|
472
|
+
readonly executorImpl: "0xa5e54313d736805e225bd26de0809bb6084a8366";
|
|
473
|
+
readonly verifierImpl: "0x04d0963a96e3c40acc3f6f540123910c0f05251f";
|
|
376
474
|
}, {
|
|
377
475
|
readonly name: "incoLightning_0_2_0__183408998";
|
|
378
476
|
readonly majorVersion: 0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const localNodeLightningConfig: {
|
|
2
2
|
readonly demonet: {
|
|
3
|
-
readonly executorAddress: "
|
|
3
|
+
readonly executorAddress: "0xad9Af2e804FbF14d69391167F1FCDf918A3980fb";
|
|
4
4
|
readonly chainId: 31337;
|
|
5
5
|
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
6
|
-
readonly signers: readonly ["
|
|
6
|
+
readonly signers: readonly ["0x9cDbDc8E83F84B9D6d3c19356B8C590f0CE1F549"];
|
|
7
7
|
readonly hostChainRpcUrls: readonly ["http://localhost:8545"];
|
|
8
|
-
readonly senderPrivateKey: "
|
|
8
|
+
readonly senderPrivateKey: "0x8e6681c7870f0adc53511b6f38515a5b0f4e3a3fa62a62505f58c61e64c92497";
|
|
9
9
|
};
|
|
10
10
|
readonly testnet: {
|
|
11
11
|
readonly executorAddress: "0x3cC345Eaa5bEe457AF9C0C3183335a67b62b0066";
|
|
@@ -16,12 +16,12 @@ export declare const localNodeLightningConfig: {
|
|
|
16
16
|
readonly senderPrivateKey: "0x744c3c747a32ffbacc4864c6405878e80fb98196389ef1b4dcb565ac7afe3aa9";
|
|
17
17
|
};
|
|
18
18
|
readonly devnet: {
|
|
19
|
-
readonly executorAddress: "
|
|
19
|
+
readonly executorAddress: "0xB3C06f0Ed967a7E366ba31C67927DDf93d7c1154";
|
|
20
20
|
readonly chainId: 31337;
|
|
21
21
|
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
22
|
-
readonly signers: readonly ["
|
|
22
|
+
readonly signers: readonly ["0x9bd3cD583feC55c80436722dCEFA7A372Cb06bD8"];
|
|
23
23
|
readonly hostChainRpcUrls: readonly ["http://localhost:8545"];
|
|
24
|
-
readonly senderPrivateKey: "
|
|
24
|
+
readonly senderPrivateKey: "0xdc3395e716a960dbc48172b4d004c9bcd4aee97cd56ba89afa49f083179f5462";
|
|
25
25
|
};
|
|
26
26
|
readonly alphanet: {
|
|
27
27
|
readonly executorAddress: "0xc0d693DeEF0A91CE39208676b6da09B822abd199";
|
|
@@ -32,7 +32,7 @@ export declare const localNodeLightningConfig: {
|
|
|
32
32
|
readonly senderPrivateKey: "0x279c172cf3638a79642daa5f7666c600befde318550d7579cf96280920e318b6";
|
|
33
33
|
};
|
|
34
34
|
readonly scratch: {
|
|
35
|
-
readonly executorAddress: "
|
|
35
|
+
readonly executorAddress: "0xb390b23b8fa1761a85035E7C135bf93713d1d4d1";
|
|
36
36
|
readonly chainId: 31337;
|
|
37
37
|
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
38
38
|
readonly signers: readonly ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"];
|
package/dist/types/handle.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { HexString } from './binary.js';
|
|
|
4
4
|
export declare const HANDLE_VERSION = 0;
|
|
5
5
|
/**
|
|
6
6
|
* Domain separators for handle derivation. Must be kept in sync with Solidity
|
|
7
|
-
* (contracts/lightning/src/Types.sol) and Go (pkg/
|
|
7
|
+
* (contracts/lightning/src/Types.sol) and Go (pkg/hostchain/handle.go). Prefixing every
|
|
8
8
|
* keccak256 preimage with a unique constant string makes cross-derivation-path
|
|
9
9
|
* collision resistance structural rather than incidental.
|
|
10
10
|
*/
|
|
@@ -14,7 +14,7 @@ export declare const SEP_OP_RESULT = "inco/handle/op-result";
|
|
|
14
14
|
export declare const SEP_ELIST_OP_RESULT = "inco/handle/elist-result";
|
|
15
15
|
export declare const BYTE_ELIST_ELEMENT_TYPE_INDEX = 29;
|
|
16
16
|
/**
|
|
17
|
-
* Map of ENCRYPTION type names to their integer identifiers
|
|
17
|
+
* Map of ENCRYPTION type names to their integer identifiers.
|
|
18
18
|
*
|
|
19
19
|
* Keys provide a semantic interpretation over the underlying integral type.
|
|
20
20
|
* For example, `ebool` interprets a `uint16` as a boolean, `ebytes64` interprets
|
|
@@ -41,13 +41,13 @@ export type HandleTypeName = typeof HandleTypeName.Type;
|
|
|
41
41
|
/** The typeof {@link handleTypes} — mapping from ENCRYPTION type names to integer IDs. */
|
|
42
42
|
export type HandleTypes = typeof handleTypes;
|
|
43
43
|
/** Integer identifier of an ENCRYPTION type (0–11), corresponding to a {@link HandleTypeName}. */
|
|
44
|
-
export type
|
|
44
|
+
export type TeeType = HandleTypes[keyof HandleTypes];
|
|
45
45
|
/**
|
|
46
|
-
* Type guard that checks whether a number is a valid {@link
|
|
46
|
+
* Type guard that checks whether a number is a valid {@link TeeType} identifier.
|
|
47
47
|
* @param value - The number to check.
|
|
48
48
|
* @returns `true` if `value` is a known ENCRYPTION type integer (0–11).
|
|
49
49
|
*/
|
|
50
|
-
export declare function
|
|
50
|
+
export declare function isTeeType(value: number): value is TeeType;
|
|
51
51
|
/** Schema for the context required to compute a deterministic ENCRYPTION handle. */
|
|
52
52
|
export declare const InputContext: Schema.Struct<{
|
|
53
53
|
hostChainId: typeof Schema.BigInt;
|
|
@@ -55,15 +55,16 @@ export declare const InputContext: Schema.Struct<{
|
|
|
55
55
|
userAddress: Schema.TemplateLiteral<`0x${string}`>;
|
|
56
56
|
contractAddress: Schema.TemplateLiteral<`0x${string}`>;
|
|
57
57
|
version: typeof Schema.Number;
|
|
58
|
+
inputType: typeof Schema.Number;
|
|
58
59
|
}>;
|
|
59
|
-
/** Context fields (chain ID, ACL address, user/contract addresses, version) used to derive a deterministic handle. */
|
|
60
|
+
/** Context fields (chain ID, ACL address, user/contract addresses, version, on-chain inputType) used to derive a deterministic handle. */
|
|
60
61
|
export type InputContext = typeof InputContext.Type;
|
|
61
62
|
/**
|
|
62
63
|
* A 32-byte hex string representing an ENCRYPTION ciphertext handle.
|
|
63
64
|
*
|
|
64
65
|
* Format: `keccak_hash[0:29] || index_handle || handle_type || handle_version`
|
|
65
66
|
*
|
|
66
|
-
* @see
|
|
67
|
+
* @see pkg/hostchain/handle.md for the handle format spec.
|
|
67
68
|
*/
|
|
68
69
|
export type Handle = HexString;
|
|
69
70
|
/**
|
|
@@ -73,26 +74,26 @@ export type Handle = HexString;
|
|
|
73
74
|
export declare const HANDLE_LENGTH_BYTES = 32;
|
|
74
75
|
/**
|
|
75
76
|
* Validates handle integrity by checking format, length, and version.
|
|
76
|
-
* Matches the validation in Go's HandleFromBytes (pkg/
|
|
77
|
+
* Matches the validation in Go's HandleFromBytes (pkg/hostchain/handle.go).
|
|
77
78
|
* @param handle - The handle to validate
|
|
78
79
|
* @throws Error if handle is malformed (wrong format, length, or unsupported version)
|
|
79
80
|
*/
|
|
80
81
|
export declare function validateHandle(handle: HexString): void;
|
|
81
82
|
/**
|
|
82
|
-
* Extracts the {@link
|
|
83
|
+
* Extracts the {@link TeeType} from byte 30 of a validated handle.
|
|
83
84
|
* @param handle - A 32-byte hex handle string.
|
|
84
85
|
* @returns The ENCRYPTION type identifier stored in the handle.
|
|
85
86
|
* @throws If the handle is malformed or contains an invalid ENCRYPTION type.
|
|
86
|
-
* @see
|
|
87
|
+
* @see pkg/hostchain/handle.md for the handle format spec.
|
|
87
88
|
*/
|
|
88
|
-
export declare function getHandleType(handle: HexString):
|
|
89
|
+
export declare function getHandleType(handle: HexString): TeeType;
|
|
89
90
|
/**
|
|
90
|
-
* Extracts the elist element {@link
|
|
91
|
+
* Extracts the elist element {@link TeeType} from byte 29 of a validated handle.
|
|
91
92
|
* @param handle - A 32-byte hex handle string for an elist.
|
|
92
93
|
* @returns The ENCRYPTION type identifier of the elist elements.
|
|
93
94
|
* @throws If the handle is malformed or contains an invalid ENCRYPTION type at byte 29.
|
|
94
95
|
*/
|
|
95
|
-
export declare function getEListElementType(handle: HexString):
|
|
96
|
+
export declare function getEListElementType(handle: HexString): TeeType;
|
|
96
97
|
/**
|
|
97
98
|
* Computes the final handle for an input based on the ciphertext and the input context, matches the handle generation
|
|
98
99
|
* in Go and Solidity.
|
|
@@ -106,14 +107,15 @@ export declare function getEListElementType(handle: HexString): FheType;
|
|
|
106
107
|
export declare function computeHandle({ ciphertext, indexHandle, handleType, handleVersion, context, }: {
|
|
107
108
|
ciphertext: Uint8Array;
|
|
108
109
|
indexHandle: number;
|
|
109
|
-
handleType:
|
|
110
|
+
handleType: TeeType;
|
|
110
111
|
handleVersion: number;
|
|
111
112
|
context: InputContext;
|
|
112
113
|
}): Buffer;
|
|
113
114
|
/**
|
|
114
115
|
* Computes the Keccak-256 hash of an ABI-packed {@link InputContext}.
|
|
115
116
|
*
|
|
116
|
-
* The context is packed as: `
|
|
117
|
+
* The context is packed as: `"evm/" || SEP_INPUT_CONTEXT || HANDLE_VERSION || inputType ||
|
|
118
|
+
* chainId || aclAddress || userAddress || contractAddress || version`.
|
|
117
119
|
*
|
|
118
120
|
* @param context - The input context to hash.
|
|
119
121
|
* @returns A 32-byte `Buffer` containing the Keccak-256 digest.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './binary.js';
|
|
2
2
|
export * from './chain.js';
|
|
3
|
-
export { HANDLE_LENGTH_BYTES, HANDLE_VERSION, HandleTypeName, InputContext, getHandleType, handleTypes,
|
|
3
|
+
export { HANDLE_LENGTH_BYTES, HANDLE_VERSION, HandleTypeName, InputContext, getHandleType, handleTypes, isTeeType, validateHandle, type Handle, type HandleTypes, type TeeType, } from './handle.js';
|
|
4
4
|
export * from './schema.js';
|
|
5
5
|
export * from './viem.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Address } from 'viem';
|
|
2
2
|
import type { DecryptionAttestation, EncryptedDecryptionAttestation } from '../attesteddecrypt/types.js';
|
|
3
3
|
import { type EListDecryptionAttestation, type EncryptedEListDecryptionAttestation } from '../elistattesteddecrypt/types.js';
|
|
4
|
-
import type { EncryptionScheme,
|
|
4
|
+
import type { EncryptionScheme, SupportedTeeType } from '../encryption/encryption.js';
|
|
5
5
|
import type { AttestedComputeRequest, AttestedDecryptRequest, AttestedRevealRequest, EListAttestedDecryptRequest, EListAttestedRevealRequest } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
|
6
6
|
import { type XwingKeypair } from '../lite/xwing.js';
|
|
7
7
|
import type { BackoffConfig } from '../retry.js';
|
|
@@ -31,11 +31,11 @@ export declare class KmsQuorumClient {
|
|
|
31
31
|
* @throws {Error} If KMS clients array is empty or threshold is invalid
|
|
32
32
|
*/
|
|
33
33
|
static fromKmsClients(kmsClients: KmsClient[], threshold: number): KmsQuorumClient;
|
|
34
|
-
attestedDecrypt(request: AttestedDecryptRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<(DecryptionAttestation<EncryptionScheme,
|
|
35
|
-
attestedCompute(request: AttestedComputeRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<DecryptionAttestation<EncryptionScheme,
|
|
36
|
-
attestedReveal(request: AttestedRevealRequest, backoffConfig?: Partial<BackoffConfig>, executorAddress?: Address, client?: ViemClient): Promise<(DecryptionAttestation<EncryptionScheme,
|
|
37
|
-
eListAttestedDecrypt(request: EListAttestedDecryptRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<EListDecryptionAttestation<EncryptionScheme,
|
|
38
|
-
eListAttestedReveal(request: EListAttestedRevealRequest, backoffConfig?: Partial<BackoffConfig>, executorAddress?: Address, client?: ViemClient): Promise<EListDecryptionAttestation<EncryptionScheme,
|
|
34
|
+
attestedDecrypt(request: AttestedDecryptRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<(DecryptionAttestation<EncryptionScheme, SupportedTeeType> | EncryptedDecryptionAttestation<EncryptionScheme, SupportedTeeType>)[]>;
|
|
35
|
+
attestedCompute(request: AttestedComputeRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<DecryptionAttestation<EncryptionScheme, SupportedTeeType> | EncryptedDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
36
|
+
attestedReveal(request: AttestedRevealRequest, backoffConfig?: Partial<BackoffConfig>, executorAddress?: Address, client?: ViemClient): Promise<(DecryptionAttestation<EncryptionScheme, SupportedTeeType> | EncryptedDecryptionAttestation<EncryptionScheme, SupportedTeeType>)[]>;
|
|
37
|
+
eListAttestedDecrypt(request: EListAttestedDecryptRequest, backoffConfig?: Partial<BackoffConfig>, reencryptKeypair?: XwingKeypair, executorAddress?: Address, client?: ViemClient): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedTeeType> | EncryptedEListDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
38
|
+
eListAttestedReveal(request: EListAttestedRevealRequest, backoffConfig?: Partial<BackoffConfig>, executorAddress?: Address, client?: ViemClient): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
39
39
|
/**
|
|
40
40
|
* Generic method to execute a KMS operation across all clients with retry and threshold logic.
|
|
41
41
|
* Returns results with both the response and signer address.
|
|
@@ -5,11 +5,11 @@ import { AttestedComputeOP } from '../attestedcompute/types.js';
|
|
|
5
5
|
import { DecryptionAttestation, EncryptedDecryptionAttestation } from '../attesteddecrypt/index.js';
|
|
6
6
|
import { Address, HexString } from '../binary.js';
|
|
7
7
|
import { EListDecryptionAttestation, EncryptedEListDecryptionAttestation } from '../elistattesteddecrypt/index.js';
|
|
8
|
-
import { EncryptionScheme,
|
|
8
|
+
import { EncryptionScheme, SupportedTeeType } from '../encryption/encryption.js';
|
|
9
9
|
import { incoVerifierAbi } from '../generated/abis/verifier.js';
|
|
10
10
|
import { lightningDeployments } from '../generated/lightning.js';
|
|
11
11
|
import { localNodeLightningConfig } from '../generated/local-node.js';
|
|
12
|
-
import {
|
|
12
|
+
import { TeeType } from '../handle.js';
|
|
13
13
|
import { LocalNodeEnv } from '../local/index.js';
|
|
14
14
|
import type { AttestedOptsDecrypted, AttestedOptsEncrypted, AttestedOptsEphemeral, AttestedRevealOpts, AttestedWithVoucherOptsDecrypted, AttestedWithVoucherOptsEncrypted, AttestedWithVoucherOptsEphemeral } from './types.js';
|
|
15
15
|
type TupleToUnion<T> = T extends readonly unknown[] ? T[number] : never;
|
|
@@ -25,7 +25,7 @@ export type SupportedNativeType = boolean | bigint | number;
|
|
|
25
25
|
export type EncryptionContext = {
|
|
26
26
|
accountAddress: string;
|
|
27
27
|
dappAddress: string;
|
|
28
|
-
handleType:
|
|
28
|
+
handleType: TeeType;
|
|
29
29
|
};
|
|
30
30
|
export type DeploymentSlice = {
|
|
31
31
|
executorAddress: string;
|
|
@@ -248,9 +248,9 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
248
248
|
* console.log(decrypted[0].plaintext.value);
|
|
249
249
|
* ```
|
|
250
250
|
*/
|
|
251
|
-
attestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handles: HexString[], opts?: AttestedOptsEphemeral): Promise<Array<DecryptionAttestation<EncryptionScheme,
|
|
252
|
-
attestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handles: HexString[], opts: AttestedOptsEncrypted): Promise<Array<EncryptedDecryptionAttestation<EncryptionScheme,
|
|
253
|
-
attestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handles: HexString[], opts: AttestedOptsDecrypted): Promise<Array<DecryptionAttestation<EncryptionScheme,
|
|
251
|
+
attestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handles: HexString[], opts?: AttestedOptsEphemeral): Promise<Array<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>>;
|
|
252
|
+
attestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handles: HexString[], opts: AttestedOptsEncrypted): Promise<Array<EncryptedDecryptionAttestation<EncryptionScheme, SupportedTeeType>>>;
|
|
253
|
+
attestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handles: HexString[], opts: AttestedOptsDecrypted): Promise<Array<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>>;
|
|
254
254
|
/**
|
|
255
255
|
* Requests attested decrypts using a voucher-backed session key.
|
|
256
256
|
*
|
|
@@ -288,12 +288,12 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
288
288
|
* );
|
|
289
289
|
* ```
|
|
290
290
|
*/
|
|
291
|
-
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts?: AttestedWithVoucherOptsEphemeral): Promise<Array<DecryptionAttestation<EncryptionScheme,
|
|
292
|
-
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts: AttestedWithVoucherOptsEncrypted): Promise<Array<EncryptedDecryptionAttestation<EncryptionScheme,
|
|
293
|
-
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts: AttestedWithVoucherOptsDecrypted): Promise<Array<DecryptionAttestation<EncryptionScheme,
|
|
294
|
-
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts?: AttestedOptsEphemeral): Promise<EListDecryptionAttestation<EncryptionScheme,
|
|
295
|
-
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts: AttestedOptsEncrypted): Promise<EncryptedEListDecryptionAttestation<EncryptionScheme,
|
|
296
|
-
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts: AttestedOptsDecrypted): Promise<EListDecryptionAttestation<EncryptionScheme,
|
|
291
|
+
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts?: AttestedWithVoucherOptsEphemeral): Promise<Array<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>>;
|
|
292
|
+
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts: AttestedWithVoucherOptsEncrypted): Promise<Array<EncryptedDecryptionAttestation<EncryptionScheme, SupportedTeeType>>>;
|
|
293
|
+
attestedDecryptWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, handles: HexString[], opts: AttestedWithVoucherOptsDecrypted): Promise<Array<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>>;
|
|
294
|
+
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts?: AttestedOptsEphemeral): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
295
|
+
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts: AttestedOptsEncrypted): Promise<EncryptedEListDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
296
|
+
eListAttestedDecrypt(walletClient: WalletClient<Transport, Chain, Account>, handle: HexString, opts: AttestedOptsDecrypted): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
297
297
|
/**
|
|
298
298
|
* Reveal a single elist handle without wallet authentication.
|
|
299
299
|
* Returns plaintext values along with an attestation of the checksum.
|
|
@@ -302,7 +302,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
302
302
|
* @param opts - Optional backoff configuration
|
|
303
303
|
* @returns The elist decryption attestation with plaintext values
|
|
304
304
|
*/
|
|
305
|
-
eListAttestedReveal(handle: HexString, opts?: AttestedRevealOpts): Promise<EListDecryptionAttestation<EncryptionScheme,
|
|
305
|
+
eListAttestedReveal(handle: HexString, opts?: AttestedRevealOpts): Promise<EListDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
306
306
|
/**
|
|
307
307
|
* Get an attested compute for the given wallet client.
|
|
308
308
|
*
|
|
@@ -347,9 +347,9 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
347
347
|
* console.log(decrypted.plaintext.value);
|
|
348
348
|
* ```
|
|
349
349
|
*/
|
|
350
|
-
attestedCompute(walletClient: WalletClient<Transport, Chain, Account>, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts?: AttestedOptsEphemeral): Promise<DecryptionAttestation<EncryptionScheme,
|
|
351
|
-
attestedCompute(walletClient: WalletClient<Transport, Chain, Account>, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedOptsEncrypted): Promise<EncryptedDecryptionAttestation<EncryptionScheme,
|
|
352
|
-
attestedCompute(walletClient: WalletClient<Transport, Chain, Account>, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedOptsDecrypted): Promise<DecryptionAttestation<EncryptionScheme,
|
|
350
|
+
attestedCompute(walletClient: WalletClient<Transport, Chain, Account>, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts?: AttestedOptsEphemeral): Promise<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
351
|
+
attestedCompute(walletClient: WalletClient<Transport, Chain, Account>, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedOptsEncrypted): Promise<EncryptedDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
352
|
+
attestedCompute(walletClient: WalletClient<Transport, Chain, Account>, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedOptsDecrypted): Promise<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
353
353
|
/**
|
|
354
354
|
* Performs attested compute via a voucher-backed session key.
|
|
355
355
|
*
|
|
@@ -390,9 +390,9 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
390
390
|
* console.log(decrypted.plaintext.value);
|
|
391
391
|
* ```
|
|
392
392
|
*/
|
|
393
|
-
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts?: AttestedWithVoucherOptsEphemeral): Promise<DecryptionAttestation<EncryptionScheme,
|
|
394
|
-
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedWithVoucherOptsEncrypted): Promise<EncryptedDecryptionAttestation<EncryptionScheme,
|
|
395
|
-
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedWithVoucherOptsDecrypted): Promise<DecryptionAttestation<EncryptionScheme,
|
|
393
|
+
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts?: AttestedWithVoucherOptsEphemeral): Promise<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
394
|
+
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedWithVoucherOptsEncrypted): Promise<EncryptedDecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
395
|
+
attestedComputeWithVoucher(ephemeralAccount: PrivateKeyAccount, allowanceVoucherWithSig: AllowanceVoucherWithSig, lhsHandle: HexString, op: AttestedComputeOP, rhsPlaintext: bigint | boolean, opts: AttestedWithVoucherOptsDecrypted): Promise<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>;
|
|
396
396
|
/**
|
|
397
397
|
* Get an decryption of publicly revealed handles.
|
|
398
398
|
*
|
|
@@ -406,7 +406,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
406
406
|
* const { plaintext, covalidatorSignature } = response[0];
|
|
407
407
|
* ```
|
|
408
408
|
*/
|
|
409
|
-
attestedReveal(handles: HexString[], opts?: AttestedRevealOpts): Promise<Array<DecryptionAttestation<EncryptionScheme,
|
|
409
|
+
attestedReveal(handles: HexString[], opts?: AttestedRevealOpts): Promise<Array<DecryptionAttestation<EncryptionScheme, SupportedTeeType>>>;
|
|
410
410
|
/**
|
|
411
411
|
* Get the GRPC endpoint for the covalidator that services this deployment.
|
|
412
412
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
2
|
import { HexString } from '../binary.js';
|
|
3
|
-
import { CiphertextOf, EncryptionScheme, PlaintextOf,
|
|
3
|
+
import { CiphertextOf, EncryptionScheme, PlaintextOf, SupportedTeeType } from '../encryption/encryption.js';
|
|
4
4
|
import { Handle } from '../handle.js';
|
|
5
5
|
import type { XwingKeypair } from '../lite/xwing.js';
|
|
6
6
|
import type { BackoffConfig } from '../retry.js';
|
|
@@ -10,7 +10,7 @@ import type { BackoffConfig } from '../retry.js';
|
|
|
10
10
|
*
|
|
11
11
|
* @typeParam S - The encryption scheme (e.g. X-Wing).
|
|
12
12
|
*/
|
|
13
|
-
export type Reencryptor<S extends EncryptionScheme> = <T extends
|
|
13
|
+
export type Reencryptor<S extends EncryptionScheme> = <T extends SupportedTeeType>(args: ReencryptFnArgs<S, T>, backoffConfig?: Partial<BackoffConfig>) => Promise<PlaintextOf<S, T>>;
|
|
14
14
|
/** Arguments required to construct a {@link Reencryptor}. */
|
|
15
15
|
export interface ReencryptorArgs {
|
|
16
16
|
chainId: bigint;
|
|
@@ -21,7 +21,7 @@ export interface ReencryptorArgs {
|
|
|
21
21
|
* @typeParam S - The encryption scheme.
|
|
22
22
|
* @typeParam T - The ENCRYPTION type of the ciphertext.
|
|
23
23
|
*/
|
|
24
|
-
export type ReencryptFnArgs<S extends EncryptionScheme, T extends
|
|
24
|
+
export type ReencryptFnArgs<S extends EncryptionScheme, T extends SupportedTeeType> = {
|
|
25
25
|
handle: Handle;
|
|
26
26
|
/**
|
|
27
27
|
* Optional ciphertext hint. If provided, the reencrypt endpoint may use it directly
|