@inco/js 0.6.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/cjs/advancedacl/session-key.d.ts +39 -19
- package/dist/cjs/advancedacl/session-key.js +59 -108
- package/dist/cjs/attestedcompute/attested-compute.d.ts +6 -6
- package/dist/cjs/attestedcompute/attested-compute.js +5 -28
- package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +68 -16
- package/dist/cjs/attesteddecrypt/attested-decrypt.js +108 -66
- package/dist/cjs/attesteddecrypt/types.d.ts +8 -3
- package/dist/cjs/attesteddecrypt/types.js +1 -1
- package/dist/cjs/encryption/encryption.d.ts +8 -10
- package/dist/cjs/encryption/encryption.js +6 -6
- package/dist/cjs/generated/abis/add-two.d.ts +1 -1
- package/dist/cjs/generated/abis/add-two.js +1 -1
- package/dist/cjs/generated/abis/lightning-preview.d.ts +40 -0
- package/dist/cjs/generated/abis/lightning-preview.js +29 -1
- package/dist/cjs/generated/abis/lightning.d.ts +1 -1
- package/dist/cjs/generated/abis/lightning.js +1 -1
- package/dist/cjs/generated/abis/verifier.d.ts +126 -67
- package/dist/cjs/generated/abis/verifier.js +108 -54
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +15 -1
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.js +1 -1
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +87 -132
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +21 -27
- package/dist/cjs/generated/lightning.d.ts +40 -32
- package/dist/cjs/generated/lightning.js +43 -33
- package/dist/cjs/generated/local-node.d.ts +11 -11
- package/dist/cjs/generated/local-node.js +28 -12
- package/dist/cjs/kms/client.d.ts +8 -4
- package/dist/cjs/kms/client.js +9 -4
- package/dist/cjs/kms/quorumClient.d.ts +58 -0
- package/dist/cjs/kms/quorumClient.js +378 -0
- package/dist/cjs/kms/thresholdPromises.d.ts +7 -0
- package/dist/cjs/kms/thresholdPromises.js +52 -0
- package/dist/cjs/lite/deployments.d.ts +20 -2
- package/dist/cjs/lite/deployments.js +1 -1
- package/dist/cjs/lite/index.d.ts +1 -2
- package/dist/cjs/lite/index.js +1 -2
- package/dist/cjs/lite/lightning.d.ts +109 -77
- package/dist/cjs/lite/lightning.js +279 -112
- package/dist/cjs/local/local-node.d.ts +1 -2
- package/dist/cjs/local/local-node.js +2 -3
- package/dist/cjs/test/mocks.d.ts +15 -0
- package/dist/cjs/test/mocks.js +45 -0
- package/dist/cjs/viem.d.ts +1 -1
- package/dist/esm/advancedacl/session-key.d.ts +39 -19
- package/dist/esm/advancedacl/session-key.js +52 -100
- package/dist/esm/attestedcompute/attested-compute.d.ts +6 -6
- package/dist/esm/attestedcompute/attested-compute.js +6 -29
- package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +68 -16
- package/dist/esm/attesteddecrypt/attested-decrypt.js +109 -68
- package/dist/esm/attesteddecrypt/types.d.ts +8 -3
- package/dist/esm/attesteddecrypt/types.js +1 -1
- package/dist/esm/encryption/encryption.d.ts +8 -10
- package/dist/esm/encryption/encryption.js +6 -6
- package/dist/esm/generated/abis/add-two.d.ts +1 -1
- package/dist/esm/generated/abis/add-two.js +1 -1
- package/dist/esm/generated/abis/lightning-preview.d.ts +40 -0
- package/dist/esm/generated/abis/lightning-preview.js +29 -1
- package/dist/esm/generated/abis/lightning.d.ts +1 -1
- package/dist/esm/generated/abis/lightning.js +1 -1
- package/dist/esm/generated/abis/verifier.d.ts +126 -67
- package/dist/esm/generated/abis/verifier.js +108 -54
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +15 -1
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.js +1 -1
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +87 -132
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +19 -25
- package/dist/esm/generated/lightning.d.ts +40 -32
- package/dist/esm/generated/lightning.js +43 -33
- package/dist/esm/generated/local-node.d.ts +11 -11
- package/dist/esm/generated/local-node.js +28 -12
- package/dist/esm/kms/client.d.ts +8 -4
- package/dist/esm/kms/client.js +8 -4
- package/dist/esm/kms/quorumClient.d.ts +58 -0
- package/dist/esm/kms/quorumClient.js +374 -0
- package/dist/esm/kms/thresholdPromises.d.ts +7 -0
- package/dist/esm/kms/thresholdPromises.js +49 -0
- package/dist/esm/lite/deployments.d.ts +20 -2
- package/dist/esm/lite/deployments.js +1 -1
- package/dist/esm/lite/index.d.ts +1 -2
- package/dist/esm/lite/index.js +1 -2
- package/dist/esm/lite/lightning.d.ts +109 -77
- package/dist/esm/lite/lightning.js +278 -111
- package/dist/esm/local/local-node.d.ts +1 -2
- package/dist/esm/local/local-node.js +2 -3
- package/dist/esm/test/mocks.d.ts +15 -0
- package/dist/esm/test/mocks.js +39 -0
- package/dist/esm/viem.d.ts +1 -1
- package/dist/types/advancedacl/session-key.d.ts +39 -19
- package/dist/types/attestedcompute/attested-compute.d.ts +6 -6
- package/dist/types/attesteddecrypt/attested-decrypt.d.ts +68 -16
- package/dist/types/attesteddecrypt/types.d.ts +8 -3
- package/dist/types/encryption/encryption.d.ts +8 -10
- package/dist/types/generated/abis/add-two.d.ts +1 -1
- package/dist/types/generated/abis/lightning-preview.d.ts +40 -0
- package/dist/types/generated/abis/lightning.d.ts +1 -1
- package/dist/types/generated/abis/verifier.d.ts +126 -67
- package/dist/types/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +15 -1
- package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +87 -132
- package/dist/types/generated/lightning.d.ts +40 -32
- package/dist/types/generated/local-node.d.ts +11 -11
- package/dist/types/kms/client.d.ts +8 -4
- package/dist/types/kms/quorumClient.d.ts +58 -0
- package/dist/types/kms/thresholdPromises.d.ts +7 -0
- package/dist/types/lite/deployments.d.ts +20 -2
- package/dist/types/lite/index.d.ts +1 -2
- package/dist/types/lite/lightning.d.ts +109 -77
- package/dist/types/local/local-node.d.ts +1 -2
- package/dist/types/test/mocks.d.ts +15 -0
- package/dist/types/viem.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cjs/attestedreveal/attested-reveal.d.ts +0 -21
- package/dist/cjs/attestedreveal/attested-reveal.js +0 -67
- package/dist/cjs/attestedreveal/index.d.ts +0 -1
- package/dist/cjs/attestedreveal/index.js +0 -18
- package/dist/cjs/attestedreveal/types.d.ts +0 -7
- package/dist/cjs/attestedreveal/types.js +0 -16
- package/dist/cjs/generated/es/cosmos_proto/cosmos_pb.d.ts +0 -174
- package/dist/cjs/generated/es/cosmos_proto/cosmos_pb.js +0 -118
- package/dist/cjs/generated/es/inco/fhe/v1/types_pb.d.ts +0 -419
- package/dist/cjs/generated/es/inco/fhe/v1/types_pb.js +0 -136
- package/dist/cjs/lite/reencrypt.d.ts +0 -23
- package/dist/cjs/lite/reencrypt.js +0 -131
- package/dist/esm/attestedreveal/attested-reveal.d.ts +0 -21
- package/dist/esm/attestedreveal/attested-reveal.js +0 -64
- package/dist/esm/attestedreveal/index.d.ts +0 -1
- package/dist/esm/attestedreveal/index.js +0 -2
- package/dist/esm/attestedreveal/types.d.ts +0 -7
- package/dist/esm/attestedreveal/types.js +0 -12
- package/dist/esm/generated/es/cosmos_proto/cosmos_pb.d.ts +0 -174
- package/dist/esm/generated/es/cosmos_proto/cosmos_pb.js +0 -115
- package/dist/esm/generated/es/inco/fhe/v1/types_pb.d.ts +0 -419
- package/dist/esm/generated/es/inco/fhe/v1/types_pb.js +0 -133
- package/dist/esm/lite/reencrypt.d.ts +0 -23
- package/dist/esm/lite/reencrypt.js +0 -122
- package/dist/types/attestedreveal/attested-reveal.d.ts +0 -21
- package/dist/types/attestedreveal/index.d.ts +0 -1
- package/dist/types/attestedreveal/types.d.ts +0 -7
- package/dist/types/generated/es/cosmos_proto/cosmos_pb.d.ts +0 -174
- package/dist/types/generated/es/inco/fhe/v1/types_pb.d.ts +0 -419
- package/dist/types/lite/reencrypt.d.ts +0 -23
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
export declare const lightningDeployments: readonly [{
|
|
2
|
+
readonly name: "incoLightningPreview_2_0_0__976644394";
|
|
3
|
+
readonly majorVersion: 2;
|
|
4
|
+
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
5
|
+
readonly pepper: "alphanet";
|
|
6
|
+
readonly executorAddress: "0xc0d693DeEF0A91CE39208676b6da09B822abd199";
|
|
7
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc000822f11f6e30f933e76d2a";
|
|
8
|
+
readonly chainId: 84532;
|
|
9
|
+
readonly chainName: "Base Sepolia";
|
|
10
|
+
readonly version: {
|
|
11
|
+
readonly major: 2;
|
|
12
|
+
readonly minor: 0;
|
|
13
|
+
readonly patch: 0;
|
|
14
|
+
readonly shortSalt: "976644394";
|
|
15
|
+
};
|
|
16
|
+
readonly blockNumber: 34459258;
|
|
17
|
+
readonly deployDate: "2025-12-02T14:46:46.026Z";
|
|
18
|
+
readonly commit: "v0.6.9-17-g217794f3-dirty";
|
|
19
|
+
readonly active: true;
|
|
20
|
+
readonly includesPreviewFeatures: true;
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "incoLightningPreview_1_1_0__725458969";
|
|
23
|
+
readonly majorVersion: 1;
|
|
24
|
+
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
25
|
+
readonly pepper: "alphanet";
|
|
26
|
+
readonly executorAddress: "0x28676Cd3b10b03b2FDF105Ba280425b45a674F2A";
|
|
27
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc004dfbe338c6966a22bcca19";
|
|
28
|
+
readonly chainId: 84532;
|
|
29
|
+
readonly chainName: "Base Sepolia";
|
|
30
|
+
readonly version: {
|
|
31
|
+
readonly major: 1;
|
|
32
|
+
readonly minor: 1;
|
|
33
|
+
readonly patch: 0;
|
|
34
|
+
readonly shortSalt: "725458969";
|
|
35
|
+
};
|
|
36
|
+
readonly blockNumber: 34456535;
|
|
37
|
+
readonly deployDate: "2025-12-02T13:16:00.594Z";
|
|
38
|
+
readonly commit: "v0.6.9-16-g428d1837-dirty";
|
|
39
|
+
readonly active: true;
|
|
40
|
+
readonly includesPreviewFeatures: true;
|
|
41
|
+
}, {
|
|
2
42
|
readonly name: "incoLightningPreview_1_0_2__725458969";
|
|
3
43
|
readonly majorVersion: 1;
|
|
4
44
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
@@ -13,8 +53,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
13
53
|
readonly patch: 2;
|
|
14
54
|
readonly shortSalt: "725458969";
|
|
15
55
|
};
|
|
16
|
-
readonly decryptSigner: "0x4736F8CE685760017eEc130AC3FFc6187f5A1F95";
|
|
17
|
-
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
|
18
56
|
readonly blockNumber: 32124925;
|
|
19
57
|
readonly deployDate: "2025-10-09T13:55:42.997Z";
|
|
20
58
|
readonly commit: "v0.5.3-10-ga4f2312d";
|
|
@@ -34,8 +72,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
34
72
|
readonly patch: 2;
|
|
35
73
|
readonly shortSalt: "904635675";
|
|
36
74
|
};
|
|
37
|
-
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
|
38
|
-
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
|
39
75
|
readonly blockNumber: 3696905;
|
|
40
76
|
readonly deployDate: "2025-10-03T13:24:44.682Z";
|
|
41
77
|
readonly commit: "v0.5.3-6-g8db0f27f-dirty";
|
|
@@ -55,8 +91,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
55
91
|
readonly patch: 0;
|
|
56
92
|
readonly shortSalt: "904635675";
|
|
57
93
|
};
|
|
58
|
-
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
|
59
|
-
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
|
60
94
|
readonly blockNumber: 3344310;
|
|
61
95
|
readonly deployDate: "2025-09-29T11:14:02.599Z";
|
|
62
96
|
readonly commit: "v0.5.1-5-g4135c790-dirty";
|
|
@@ -76,8 +110,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
76
110
|
readonly patch: 0;
|
|
77
111
|
readonly shortSalt: "183408998";
|
|
78
112
|
};
|
|
79
|
-
readonly decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0";
|
|
80
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
81
113
|
readonly blockNumber: 26296576;
|
|
82
114
|
readonly deployDate: "2025-05-27T15:57:24.175Z";
|
|
83
115
|
readonly commit: "v5-3-gec8b6aae-dirty";
|
|
@@ -97,8 +129,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
97
129
|
readonly patch: 29;
|
|
98
130
|
readonly shortSalt: "183408998";
|
|
99
131
|
};
|
|
100
|
-
readonly decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0";
|
|
101
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
102
132
|
readonly blockNumber: 13464615;
|
|
103
133
|
readonly deployDate: "2025-04-22T16:01:14.380Z";
|
|
104
134
|
readonly commit: "v3-28-g93c05a49-dirty";
|
|
@@ -118,8 +148,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
118
148
|
readonly patch: 29;
|
|
119
149
|
readonly shortSalt: "183408998";
|
|
120
150
|
};
|
|
121
|
-
readonly decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0";
|
|
122
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
123
151
|
readonly blockNumber: 24784654;
|
|
124
152
|
readonly deployDate: "2025-04-22T16:00:02.028Z";
|
|
125
153
|
readonly commit: "v3-28-g93c05a49-dirty";
|
|
@@ -139,8 +167,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
139
167
|
readonly patch: 0;
|
|
140
168
|
readonly shortSalt: "863421733";
|
|
141
169
|
};
|
|
142
|
-
readonly decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0";
|
|
143
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
144
170
|
readonly blockNumber: 25737175;
|
|
145
171
|
readonly deployDate: "2025-05-14T17:10:44.285Z";
|
|
146
172
|
readonly commit: "v4-11-g4a1f413a-dirty";
|
|
@@ -160,8 +186,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
160
186
|
readonly patch: 29;
|
|
161
187
|
readonly shortSalt: "863421733";
|
|
162
188
|
};
|
|
163
|
-
readonly decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0";
|
|
164
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
165
189
|
readonly blockNumber: 25719113;
|
|
166
190
|
readonly deployDate: "2025-05-14T07:08:39.059Z";
|
|
167
191
|
readonly commit: "v4";
|
|
@@ -181,8 +205,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
181
205
|
readonly patch: 1;
|
|
182
206
|
readonly shortSalt: "297966649";
|
|
183
207
|
};
|
|
184
|
-
readonly decryptSigner: "0x4736F8CE685760017eEc130AC3FFc6187f5A1F95";
|
|
185
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
186
208
|
readonly blockNumber: 27543410;
|
|
187
209
|
readonly deployDate: "2025-06-25T12:38:32.856Z";
|
|
188
210
|
readonly commit: "v5-17-ga03e4b32-dirty";
|
|
@@ -202,8 +224,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
202
224
|
readonly patch: 0;
|
|
203
225
|
readonly shortSalt: "297966649";
|
|
204
226
|
};
|
|
205
|
-
readonly decryptSigner: "0x4736F8CE685760017eEc130AC3FFc6187f5A1F95";
|
|
206
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
207
227
|
readonly blockNumber: 26894782;
|
|
208
228
|
readonly deployDate: "2025-06-10T12:17:35.790Z";
|
|
209
229
|
readonly commit: "v5-13-gd6b19c10-dirty";
|
|
@@ -223,8 +243,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
223
243
|
readonly patch: 1;
|
|
224
244
|
readonly shortSalt: "340846814";
|
|
225
245
|
};
|
|
226
|
-
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
|
227
|
-
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
|
228
246
|
readonly blockNumber: 1718868;
|
|
229
247
|
readonly deployDate: "2025-09-10T15:20:25.654Z";
|
|
230
248
|
readonly commit: "v6-7-gf96f358e-dirty";
|
|
@@ -244,8 +262,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
244
262
|
readonly patch: 1;
|
|
245
263
|
readonly shortSalt: "340846814";
|
|
246
264
|
};
|
|
247
|
-
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
|
248
|
-
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
|
249
265
|
readonly blockNumber: 1717229;
|
|
250
266
|
readonly deployDate: "2025-09-10T14:53:07.218Z";
|
|
251
267
|
readonly commit: "v6-7-gf96f358e-dirty";
|
|
@@ -265,8 +281,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
265
281
|
readonly patch: 1;
|
|
266
282
|
readonly shortSalt: "340846814";
|
|
267
283
|
};
|
|
268
|
-
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
|
269
|
-
readonly eciesPublicKey: "0x038a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1";
|
|
270
284
|
readonly blockNumber: 17365942;
|
|
271
285
|
readonly deployDate: "2025-08-15T17:35:15.208Z";
|
|
272
286
|
readonly commit: "v0.2.17-35-g8cca6b4e-dirty";
|
|
@@ -286,8 +300,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
286
300
|
readonly patch: 0;
|
|
287
301
|
readonly shortSalt: "340846814";
|
|
288
302
|
};
|
|
289
|
-
readonly decryptSigner: "0x138AcbDC1FA02b955949d8Da09E546Ea7748710f";
|
|
290
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
291
303
|
readonly blockNumber: 26122863;
|
|
292
304
|
readonly deployDate: "2025-05-23T15:26:57.031Z";
|
|
293
305
|
readonly commit: "v5-2-g8957c16b-dirty";
|
|
@@ -307,8 +319,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
307
319
|
readonly patch: 29;
|
|
308
320
|
readonly shortSalt: "340846814";
|
|
309
321
|
};
|
|
310
|
-
readonly decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0";
|
|
311
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
312
322
|
readonly blockNumber: 13464197;
|
|
313
323
|
readonly deployDate: "2025-04-22T15:57:26.862Z";
|
|
314
324
|
readonly commit: "v3-28-g93c05a49-dirty";
|
|
@@ -328,8 +338,6 @@ export declare const lightningDeployments: readonly [{
|
|
|
328
338
|
readonly patch: 29;
|
|
329
339
|
readonly shortSalt: "340846814";
|
|
330
340
|
};
|
|
331
|
-
readonly decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0";
|
|
332
|
-
readonly eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235";
|
|
333
341
|
readonly blockNumber: 24784527;
|
|
334
342
|
readonly deployDate: "2025-04-22T15:55:47.828Z";
|
|
335
343
|
readonly commit: "v3-28-g93c05a49-dirty";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
export declare const localNodeLightningConfig: {
|
|
2
2
|
readonly testnet: {
|
|
3
3
|
readonly executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd";
|
|
4
|
-
readonly eciesPublicKey: "0x0235692e009a07315b5505fbfb44144553b2b163e0d9eddc705a1c49ba4d0dcb91";
|
|
5
4
|
readonly chainId: 31337;
|
|
6
|
-
readonly
|
|
5
|
+
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
6
|
+
readonly signers: readonly ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"];
|
|
7
7
|
readonly hostChainRpcUrl: "http://localhost:8545";
|
|
8
8
|
readonly senderPrivateKey: "0x78a25e2a0b5148290cc4d93ae12338dabd6ccd6dd98276514c4168dc4100df7c";
|
|
9
9
|
};
|
|
10
10
|
readonly devnet: {
|
|
11
11
|
readonly executorAddress: "0x3473820DcAa71Af8157b93C7f2bf1c676A2A39A6";
|
|
12
|
-
readonly eciesPublicKey: "0x0232aae7e5deffacd4e682821a95f4200d4327b7ac1e288d147cfa343f751e3f61";
|
|
13
12
|
readonly chainId: 31337;
|
|
14
|
-
readonly
|
|
13
|
+
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
14
|
+
readonly signers: readonly ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"];
|
|
15
15
|
readonly hostChainRpcUrl: "http://localhost:8545";
|
|
16
16
|
readonly senderPrivateKey: "0x6f2539401f377d76bafd39b580e0f95b9bf7d39dec8fd3ada4abe41ad2ae1e18";
|
|
17
17
|
};
|
|
18
18
|
readonly alphanet: {
|
|
19
|
-
readonly executorAddress: "
|
|
20
|
-
readonly eciesPublicKey: "0x034bc20c48ff1b8e86563dff8dd2ec3936bdea0ab570986780971cdc4c3871fe09";
|
|
19
|
+
readonly executorAddress: "0xc0d693DeEF0A91CE39208676b6da09B822abd199";
|
|
21
20
|
readonly chainId: 31337;
|
|
22
|
-
readonly
|
|
21
|
+
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
22
|
+
readonly signers: readonly ["0x8E873085348a3406A07907E5d1465B9824bA07cd"];
|
|
23
23
|
readonly hostChainRpcUrl: "http://localhost:8545";
|
|
24
|
-
readonly senderPrivateKey: "
|
|
24
|
+
readonly senderPrivateKey: "0x279c172cf3638a79642daa5f7666c600befde318550d7579cf96280920e318b6";
|
|
25
25
|
};
|
|
26
26
|
readonly scratch: {
|
|
27
|
-
readonly executorAddress: "
|
|
28
|
-
readonly eciesPublicKey: "0x02516bda9e68a1c3dce74dc1b6ed7d91a91d51c1e1933947f06331cef59631e9eb";
|
|
27
|
+
readonly executorAddress: "0x230b8fb0201E621Be3612ab7387d164f8AdC863f";
|
|
29
28
|
readonly chainId: 31337;
|
|
30
|
-
readonly
|
|
29
|
+
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
30
|
+
readonly signers: readonly ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"];
|
|
31
31
|
readonly hostChainRpcUrl: "http://127.0.0.1:8567";
|
|
32
32
|
readonly senderPrivateKey: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
|
|
33
33
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { Client } from '@connectrpc/connect';
|
|
2
|
-
import {
|
|
1
|
+
import { type Client } from '@connectrpc/connect';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
import type { SupportedChain } from '../chain.js';
|
|
3
4
|
import { KmsService } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
5
|
+
export declare const DEFAULT_COVALIDATOR_SIGNER: Address;
|
|
6
|
+
export type KmsClient = Client<typeof KmsService> & {
|
|
7
|
+
signerAddress: Address;
|
|
8
|
+
};
|
|
9
|
+
export declare function getKmsClient(kmsConnectRpcEndpointOrClient: string | KmsClient, signerAddress: Address): KmsClient;
|
|
6
10
|
export declare function defaultCovalidatorGrpc(chain: SupportedChain): string;
|
|
7
11
|
export declare function lightningDevnetCovalidatorGrpc(chain: SupportedChain): string;
|
|
8
12
|
export declare function lightningTestnetCovalidatorGrpc(chain: SupportedChain): string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
|
+
import type { DecryptionAttestation, EncryptedDecryptionAttestation } from '../attesteddecrypt/types.js';
|
|
3
|
+
import type { EciesScheme, 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 { BackoffConfig } from '../retry.js';
|
|
6
|
+
import { type KmsClient } from './client.js';
|
|
7
|
+
export declare class KmsQuorumClient {
|
|
8
|
+
private readonly kmss;
|
|
9
|
+
private readonly threshold;
|
|
10
|
+
private constructor();
|
|
11
|
+
private constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Creates a KmsQuorumClient from an array of URLs.
|
|
14
|
+
* Requires signer addresses and threshold to be explicitly provided.
|
|
15
|
+
*
|
|
16
|
+
* @param urls - Array of KMS endpoint URLs
|
|
17
|
+
* @param signers - Array of signer addresses, must match the length of URLs
|
|
18
|
+
* @param threshold - Number of successful responses required (must be between 1 and urls.length)
|
|
19
|
+
* @throws {Error} If URLs array is empty, signers length doesn't match URLs length, or threshold is invalid
|
|
20
|
+
*/
|
|
21
|
+
static fromUrls(urls: string[], signers: Address[], threshold: number): KmsQuorumClient;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a KmsQuorumClient from an array of KmsClient instances.
|
|
24
|
+
* Each KmsClient must have a signerAddress property.
|
|
25
|
+
*
|
|
26
|
+
* @param kmsClients - Array of KMS client instances
|
|
27
|
+
* @param threshold - Number of successful responses required (must be between 1 and kmsClients.length)
|
|
28
|
+
* @throws {Error} If KMS clients array is empty or threshold is invalid
|
|
29
|
+
*/
|
|
30
|
+
static fromKmsClients(kmsClients: KmsClient[], threshold: number): KmsQuorumClient;
|
|
31
|
+
attestedDecrypt(request: AttestedDecryptRequest, backoffConfig?: Partial<BackoffConfig>): Promise<(DecryptionAttestation<EciesScheme, SupportedFheType> | EncryptedDecryptionAttestation<EciesScheme, SupportedFheType>)[]>;
|
|
32
|
+
attestedCompute(request: AttestedComputeRequest, backoffConfig?: Partial<BackoffConfig>): Promise<DecryptionAttestation<EciesScheme, SupportedFheType>>;
|
|
33
|
+
attestedReveal(request: AttestedRevealRequest, backoffConfig?: Partial<BackoffConfig>): Promise<(DecryptionAttestation<EciesScheme, SupportedFheType> | EncryptedDecryptionAttestation<EciesScheme, SupportedFheType>)[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Generic method to execute a KMS operation across all clients with retry and threshold logic.
|
|
36
|
+
* Returns results with both the response and signer address.
|
|
37
|
+
*/
|
|
38
|
+
private executeKmsOperationWithThreshold;
|
|
39
|
+
/**
|
|
40
|
+
* Collects signatures from responses and sorts them by signer address (ascending).
|
|
41
|
+
* This is required by SignatureVerifier.
|
|
42
|
+
*/
|
|
43
|
+
private collectAndSortSignatures;
|
|
44
|
+
/**
|
|
45
|
+
* Builds a plaintext attestation from a DecryptionAttestation proto message.
|
|
46
|
+
*/
|
|
47
|
+
private buildPlaintextAttestation;
|
|
48
|
+
private buildAggregatedAttestations;
|
|
49
|
+
private buildAggregatedComputeAttestation;
|
|
50
|
+
private verifyResponseConsistency;
|
|
51
|
+
private verifyComputeResponseConsistency;
|
|
52
|
+
/**
|
|
53
|
+
* Verifies that two plaintext byte arrays are identical.
|
|
54
|
+
*/
|
|
55
|
+
private verifyPlaintextBytesConsistency;
|
|
56
|
+
private verifyPlaintextConsistency;
|
|
57
|
+
private verifyCiphertextConsistency;
|
|
58
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executes promises and returns results as soon as threshold is reached
|
|
3
|
+
* @param promises Array of promises to execute
|
|
4
|
+
* @param threshold Number of successful responses needed
|
|
5
|
+
* @returns Promise that resolves with threshold number of results
|
|
6
|
+
*/
|
|
7
|
+
export declare function executeWithThreshold<T>(promises: Promise<T>[], threshold: number): Promise<T[]>;
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { Chainish } from '../chain.js';
|
|
2
|
-
import { lightningDeployments } from '../generated/lightning.js';
|
|
3
2
|
export type Address = `0x${string}`;
|
|
4
|
-
export type IncoLiteDeployment =
|
|
3
|
+
export type IncoLiteDeployment = {
|
|
4
|
+
active: boolean;
|
|
5
|
+
blockNumber: number;
|
|
6
|
+
chainId: number;
|
|
7
|
+
chainName: string;
|
|
8
|
+
commit: string;
|
|
9
|
+
deployDate: string;
|
|
10
|
+
deployer: string;
|
|
11
|
+
executorAddress: string;
|
|
12
|
+
majorVersion: number;
|
|
13
|
+
name: string;
|
|
14
|
+
pepper: string;
|
|
15
|
+
salt: string;
|
|
16
|
+
version: {
|
|
17
|
+
major: number;
|
|
18
|
+
minor: number;
|
|
19
|
+
patch: number;
|
|
20
|
+
shortSalt: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
5
23
|
export declare function getActiveLightningDeployment(chain: Chainish): IncoLiteDeployment;
|
|
6
24
|
export declare function getLightningDeployments(chainId: Chainish): readonly IncoLiteDeployment[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from '../generated/abis/lightning.js';
|
|
2
|
-
export type { AttestedComputeRequest, AttestedDecryptRequest, KmsService,
|
|
2
|
+
export type { AttestedComputeRequest, AttestedDecryptRequest, KmsService, } from '../generated/es/inco/kms/lite/v1/kms_service_pb.js';
|
|
3
3
|
export type { HandleWithProof } from '../generated/es/inco/kms/lite/v1/types_pb.js';
|
|
4
4
|
export * from './attested-compute.js';
|
|
5
5
|
export * from './attested-decrypt.js';
|
|
@@ -7,4 +7,3 @@ export * from './deployments.js';
|
|
|
7
7
|
export * from './ecies.js';
|
|
8
8
|
export * from './hadu.js';
|
|
9
9
|
export * from './lightning.js';
|
|
10
|
-
export * from './reencrypt.js';
|