@inco/js 0.7.10 → 0.8.0-devnet
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/attestedcompute/types.d.ts +1 -1
- package/dist/cjs/attestedcompute/types.js +8 -8
- package/dist/cjs/generated/abis/verifier.d.ts +13 -13
- package/dist/cjs/generated/abis/verifier.js +11 -11
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +376 -1
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.js +34 -3
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +26 -20
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.js +12 -11
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +3 -139
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +12 -112
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.d.ts +94 -24
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.js +103 -14
- package/dist/cjs/generated/lightning.d.ts +20 -0
- package/dist/cjs/generated/lightning.js +22 -1
- package/dist/cjs/generated/local-node.d.ts +4 -4
- package/dist/cjs/generated/local-node.js +4 -4
- package/dist/cjs/lite/ecies.d.ts +2 -2
- package/dist/cjs/lite/ecies.js +6 -12
- package/dist/cjs/lite/hadu.js +8 -18
- package/dist/cjs/lite/lightning.d.ts +5 -5
- package/dist/cjs/lite/lightning.js +47 -16
- package/dist/cjs/local/local-node.d.ts +2 -2
- package/dist/cjs/local/local-node.js +3 -3
- package/dist/esm/attestedcompute/types.d.ts +1 -1
- package/dist/esm/attestedcompute/types.js +2 -2
- package/dist/esm/generated/abis/verifier.d.ts +13 -13
- package/dist/esm/generated/abis/verifier.js +11 -11
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +376 -1
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.js +33 -2
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +26 -20
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.js +11 -10
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +3 -139
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +12 -112
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.d.ts +94 -24
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +103 -14
- package/dist/esm/generated/lightning.d.ts +20 -0
- package/dist/esm/generated/lightning.js +22 -1
- package/dist/esm/generated/local-node.d.ts +4 -4
- package/dist/esm/generated/local-node.js +4 -4
- package/dist/esm/lite/ecies.d.ts +2 -2
- package/dist/esm/lite/ecies.js +5 -11
- package/dist/esm/lite/hadu.js +8 -18
- package/dist/esm/lite/lightning.d.ts +5 -5
- package/dist/esm/lite/lightning.js +48 -17
- package/dist/esm/local/local-node.d.ts +2 -2
- package/dist/esm/local/local-node.js +3 -3
- package/dist/types/attestedcompute/types.d.ts +1 -1
- package/dist/types/generated/abis/verifier.d.ts +13 -13
- package/dist/types/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +376 -1
- package/dist/types/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +26 -20
- package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +3 -139
- package/dist/types/generated/es/inco/kms/lite/v1/types_pb.d.ts +94 -24
- package/dist/types/generated/lightning.d.ts +20 -0
- package/dist/types/generated/local-node.d.ts +4 -4
- package/dist/types/lite/ecies.d.ts +2 -2
- package/dist/types/lite/lightning.d.ts +5 -5
- package/dist/types/local/local-node.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,47 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ACLProof,
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { ACLProof, HandleWithProof, SupportedScalarBinaryOp } from "./types_pb";
|
|
3
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
5
5
|
* Describes the file inco/kms/lite/v1/kms_service.proto.
|
|
6
6
|
*/
|
|
7
7
|
export declare const file_inco_kms_lite_v1_kms_service: GenFile;
|
|
8
|
-
/**
|
|
9
|
-
* KeyRequest is the request type for the KmsService/Keys RPC method.
|
|
10
|
-
*
|
|
11
|
-
* @generated from message inco.kms.lite.v1.KeyRequest
|
|
12
|
-
*/
|
|
13
|
-
export type KeyRequest = Message<"inco.kms.lite.v1.KeyRequest"> & {};
|
|
14
|
-
/**
|
|
15
|
-
* Describes the message inco.kms.lite.v1.KeyRequest.
|
|
16
|
-
* Use `create(KeyRequestSchema)` to create a new message.
|
|
17
|
-
*/
|
|
18
|
-
export declare const KeyRequestSchema: GenMessage<KeyRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* KeyResponse is the response type for the KmsService/Keys RPC method.
|
|
21
|
-
*
|
|
22
|
-
* @generated from message inco.kms.lite.v1.KeyResponse
|
|
23
|
-
*/
|
|
24
|
-
export type KeyResponse = Message<"inco.kms.lite.v1.KeyResponse"> & {
|
|
25
|
-
/**
|
|
26
|
-
* keyset is the keyset for the IncoLite KMS.
|
|
27
|
-
*
|
|
28
|
-
* @generated from field: inco.kms.lite.v1.ECIESKeyset keyset = 1;
|
|
29
|
-
*/
|
|
30
|
-
keyset?: ECIESKeyset;
|
|
31
|
-
/**
|
|
32
|
-
* signing_address is the Ethereum EOA signing address of the KMS, encoded
|
|
33
|
-
* as a 0x-prefixed hex string.
|
|
34
|
-
* TODO scalar annotation.
|
|
35
|
-
*
|
|
36
|
-
* @generated from field: string signing_address = 2;
|
|
37
|
-
*/
|
|
38
|
-
signingAddress: string;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Describes the message inco.kms.lite.v1.KeyResponse.
|
|
42
|
-
* Use `create(KeyResponseSchema)` to create a new message.
|
|
43
|
-
*/
|
|
44
|
-
export declare const KeyResponseSchema: GenMessage<KeyResponse>;
|
|
45
8
|
/**
|
|
46
9
|
* AttestedDecryptRequest is the request type for the KmsService/AttestedDecrypt RPC method.
|
|
47
10
|
*
|
|
@@ -409,95 +372,6 @@ export type DecryptionAttestation = Message<"inco.kms.lite.v1.DecryptionAttestat
|
|
|
409
372
|
* Use `create(DecryptionAttestationSchema)` to create a new message.
|
|
410
373
|
*/
|
|
411
374
|
export declare const DecryptionAttestationSchema: GenMessage<DecryptionAttestation>;
|
|
412
|
-
/**
|
|
413
|
-
* @generated from enum inco.kms.lite.v1.SupportedScalarBinaryOp
|
|
414
|
-
*/
|
|
415
|
-
export declare enum SupportedScalarBinaryOp {
|
|
416
|
-
/**
|
|
417
|
-
* @generated from enum value: FHE_ADD = 0;
|
|
418
|
-
*/
|
|
419
|
-
FHE_ADD = 0,
|
|
420
|
-
/**
|
|
421
|
-
* @generated from enum value: FHE_SUB = 1;
|
|
422
|
-
*/
|
|
423
|
-
FHE_SUB = 1,
|
|
424
|
-
/**
|
|
425
|
-
* @generated from enum value: FHE_MUL = 2;
|
|
426
|
-
*/
|
|
427
|
-
FHE_MUL = 2,
|
|
428
|
-
/**
|
|
429
|
-
* @generated from enum value: FHE_DIV = 3;
|
|
430
|
-
*/
|
|
431
|
-
FHE_DIV = 3,
|
|
432
|
-
/**
|
|
433
|
-
* @generated from enum value: FHE_REM = 4;
|
|
434
|
-
*/
|
|
435
|
-
FHE_REM = 4,
|
|
436
|
-
/**
|
|
437
|
-
* @generated from enum value: FHE_BIT_AND = 5;
|
|
438
|
-
*/
|
|
439
|
-
FHE_BIT_AND = 5,
|
|
440
|
-
/**
|
|
441
|
-
* @generated from enum value: FHE_BIT_OR = 6;
|
|
442
|
-
*/
|
|
443
|
-
FHE_BIT_OR = 6,
|
|
444
|
-
/**
|
|
445
|
-
* @generated from enum value: FHE_BIT_XOR = 7;
|
|
446
|
-
*/
|
|
447
|
-
FHE_BIT_XOR = 7,
|
|
448
|
-
/**
|
|
449
|
-
* @generated from enum value: FHE_SHL = 8;
|
|
450
|
-
*/
|
|
451
|
-
FHE_SHL = 8,
|
|
452
|
-
/**
|
|
453
|
-
* @generated from enum value: FHE_SHR = 9;
|
|
454
|
-
*/
|
|
455
|
-
FHE_SHR = 9,
|
|
456
|
-
/**
|
|
457
|
-
* @generated from enum value: FHE_ROTL = 10;
|
|
458
|
-
*/
|
|
459
|
-
FHE_ROTL = 10,
|
|
460
|
-
/**
|
|
461
|
-
* @generated from enum value: FHE_ROTR = 11;
|
|
462
|
-
*/
|
|
463
|
-
FHE_ROTR = 11,
|
|
464
|
-
/**
|
|
465
|
-
* @generated from enum value: FHE_EQ = 12;
|
|
466
|
-
*/
|
|
467
|
-
FHE_EQ = 12,
|
|
468
|
-
/**
|
|
469
|
-
* @generated from enum value: FHE_NE = 13;
|
|
470
|
-
*/
|
|
471
|
-
FHE_NE = 13,
|
|
472
|
-
/**
|
|
473
|
-
* @generated from enum value: FHE_GE = 14;
|
|
474
|
-
*/
|
|
475
|
-
FHE_GE = 14,
|
|
476
|
-
/**
|
|
477
|
-
* @generated from enum value: FHE_GT = 15;
|
|
478
|
-
*/
|
|
479
|
-
FHE_GT = 15,
|
|
480
|
-
/**
|
|
481
|
-
* @generated from enum value: FHE_LE = 16;
|
|
482
|
-
*/
|
|
483
|
-
FHE_LE = 16,
|
|
484
|
-
/**
|
|
485
|
-
* @generated from enum value: FHE_LT = 17;
|
|
486
|
-
*/
|
|
487
|
-
FHE_LT = 17,
|
|
488
|
-
/**
|
|
489
|
-
* @generated from enum value: FHE_MIN = 18;
|
|
490
|
-
*/
|
|
491
|
-
FHE_MIN = 18,
|
|
492
|
-
/**
|
|
493
|
-
* @generated from enum value: FHE_MAX = 19;
|
|
494
|
-
*/
|
|
495
|
-
FHE_MAX = 19
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* Describes the enum inco.kms.lite.v1.SupportedScalarBinaryOp.
|
|
499
|
-
*/
|
|
500
|
-
export declare const SupportedScalarBinaryOpSchema: GenEnum<SupportedScalarBinaryOp>;
|
|
501
375
|
/**
|
|
502
376
|
* KmsService is the service for the IncoLite KMS, which will run
|
|
503
377
|
* inside the TEE.
|
|
@@ -505,16 +379,6 @@ export declare const SupportedScalarBinaryOpSchema: GenEnum<SupportedScalarBinar
|
|
|
505
379
|
* @generated from service inco.kms.lite.v1.KmsService
|
|
506
380
|
*/
|
|
507
381
|
export declare const KmsService: GenService<{
|
|
508
|
-
/**
|
|
509
|
-
* Key returns the public keys exposed by the KMS.
|
|
510
|
-
*
|
|
511
|
-
* @generated from rpc inco.kms.lite.v1.KmsService.Key
|
|
512
|
-
*/
|
|
513
|
-
key: {
|
|
514
|
-
methodKind: "unary";
|
|
515
|
-
input: typeof KeyRequestSchema;
|
|
516
|
-
output: typeof KeyResponseSchema;
|
|
517
|
-
};
|
|
518
382
|
/**
|
|
519
383
|
* AttestedDecrypt decrypts multiple ciphertexts and provides an attestation
|
|
520
384
|
* that the decryption was performed correctly.
|
|
@@ -528,7 +392,7 @@ export declare const KmsService: GenService<{
|
|
|
528
392
|
output: typeof AttestedDecryptResponseSchema;
|
|
529
393
|
};
|
|
530
394
|
/**
|
|
531
|
-
* AttestedCompute decrypts the result of a scalar binary operation on a handle and
|
|
395
|
+
* AttestedCompute decrypts the result of a scalar binary operation on a handle and provides an attestation
|
|
532
396
|
* that the computation and decryption were performed correctly.
|
|
533
397
|
*
|
|
534
398
|
* @generated from rpc inco.kms.lite.v1.KmsService.AttestedCompute
|
|
@@ -1,32 +1,9 @@
|
|
|
1
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { Message } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* Describes the file inco/kms/lite/v1/types.proto.
|
|
5
5
|
*/
|
|
6
6
|
export declare const file_inco_kms_lite_v1_types: GenFile;
|
|
7
|
-
/**
|
|
8
|
-
* ECIESKeyset contains the network secp256k1 public key. This key is used to
|
|
9
|
-
* negotiate a shared secret with the client's secp256k1 private key using the
|
|
10
|
-
* ECDH key exchange protocol. The shared secret is then used to derive a shared
|
|
11
|
-
* symmetric key, which is used to encrypt and decrypt the data.
|
|
12
|
-
*
|
|
13
|
-
* @generated from message inco.kms.lite.v1.ECIESKeyset
|
|
14
|
-
*/
|
|
15
|
-
export type ECIESKeyset = Message<"inco.kms.lite.v1.ECIESKeyset"> & {
|
|
16
|
-
/**
|
|
17
|
-
* pk is the network public key of the KMS, used for ECIES encryption. This
|
|
18
|
-
* key is a secp256k1 public key. However, it is the same across all TEEs,
|
|
19
|
-
* and is different from each TEE's EVM signing key (also a secp256k1 key).
|
|
20
|
-
*
|
|
21
|
-
* @generated from field: bytes pk = 1;
|
|
22
|
-
*/
|
|
23
|
-
pk: Uint8Array;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Describes the message inco.kms.lite.v1.ECIESKeyset.
|
|
27
|
-
* Use `create(ECIESKeysetSchema)` to create a new message.
|
|
28
|
-
*/
|
|
29
|
-
export declare const ECIESKeysetSchema: GenMessage<ECIESKeyset>;
|
|
30
7
|
/**
|
|
31
8
|
* ACLProof is the proof a given user (outside of the scope of this proto
|
|
32
9
|
* message) has ACL permission on a given handle (also outside of the scope of
|
|
@@ -210,3 +187,96 @@ export type IncoLiteAdvancedACLProof = Message<"inco.kms.lite.v1.IncoLiteAdvance
|
|
|
210
187
|
* Use `create(IncoLiteAdvancedACLProofSchema)` to create a new message.
|
|
211
188
|
*/
|
|
212
189
|
export declare const IncoLiteAdvancedACLProofSchema: GenMessage<IncoLiteAdvancedACLProof>;
|
|
190
|
+
/**
|
|
191
|
+
* SupportedScalarBinaryOp enumerates the binary operations supported in attested compute.
|
|
192
|
+
* It's distinct from inco.covalidator.compute.v1.FheOperation since only a subset of
|
|
193
|
+
* operations are supported.
|
|
194
|
+
*
|
|
195
|
+
* @generated from enum inco.kms.lite.v1.SupportedScalarBinaryOp
|
|
196
|
+
*/
|
|
197
|
+
export declare enum SupportedScalarBinaryOp {
|
|
198
|
+
/**
|
|
199
|
+
* @generated from enum value: FHE_ADD = 0;
|
|
200
|
+
*/
|
|
201
|
+
FHE_ADD = 0,
|
|
202
|
+
/**
|
|
203
|
+
* @generated from enum value: FHE_SUB = 1;
|
|
204
|
+
*/
|
|
205
|
+
FHE_SUB = 1,
|
|
206
|
+
/**
|
|
207
|
+
* @generated from enum value: FHE_MUL = 2;
|
|
208
|
+
*/
|
|
209
|
+
FHE_MUL = 2,
|
|
210
|
+
/**
|
|
211
|
+
* @generated from enum value: FHE_DIV = 3;
|
|
212
|
+
*/
|
|
213
|
+
FHE_DIV = 3,
|
|
214
|
+
/**
|
|
215
|
+
* @generated from enum value: FHE_REM = 4;
|
|
216
|
+
*/
|
|
217
|
+
FHE_REM = 4,
|
|
218
|
+
/**
|
|
219
|
+
* @generated from enum value: FHE_BIT_AND = 5;
|
|
220
|
+
*/
|
|
221
|
+
FHE_BIT_AND = 5,
|
|
222
|
+
/**
|
|
223
|
+
* @generated from enum value: FHE_BIT_OR = 6;
|
|
224
|
+
*/
|
|
225
|
+
FHE_BIT_OR = 6,
|
|
226
|
+
/**
|
|
227
|
+
* @generated from enum value: FHE_BIT_XOR = 7;
|
|
228
|
+
*/
|
|
229
|
+
FHE_BIT_XOR = 7,
|
|
230
|
+
/**
|
|
231
|
+
* @generated from enum value: FHE_SHL = 8;
|
|
232
|
+
*/
|
|
233
|
+
FHE_SHL = 8,
|
|
234
|
+
/**
|
|
235
|
+
* @generated from enum value: FHE_SHR = 9;
|
|
236
|
+
*/
|
|
237
|
+
FHE_SHR = 9,
|
|
238
|
+
/**
|
|
239
|
+
* @generated from enum value: FHE_ROTL = 10;
|
|
240
|
+
*/
|
|
241
|
+
FHE_ROTL = 10,
|
|
242
|
+
/**
|
|
243
|
+
* @generated from enum value: FHE_ROTR = 11;
|
|
244
|
+
*/
|
|
245
|
+
FHE_ROTR = 11,
|
|
246
|
+
/**
|
|
247
|
+
* @generated from enum value: FHE_EQ = 12;
|
|
248
|
+
*/
|
|
249
|
+
FHE_EQ = 12,
|
|
250
|
+
/**
|
|
251
|
+
* @generated from enum value: FHE_NE = 13;
|
|
252
|
+
*/
|
|
253
|
+
FHE_NE = 13,
|
|
254
|
+
/**
|
|
255
|
+
* @generated from enum value: FHE_GE = 14;
|
|
256
|
+
*/
|
|
257
|
+
FHE_GE = 14,
|
|
258
|
+
/**
|
|
259
|
+
* @generated from enum value: FHE_GT = 15;
|
|
260
|
+
*/
|
|
261
|
+
FHE_GT = 15,
|
|
262
|
+
/**
|
|
263
|
+
* @generated from enum value: FHE_LE = 16;
|
|
264
|
+
*/
|
|
265
|
+
FHE_LE = 16,
|
|
266
|
+
/**
|
|
267
|
+
* @generated from enum value: FHE_LT = 17;
|
|
268
|
+
*/
|
|
269
|
+
FHE_LT = 17,
|
|
270
|
+
/**
|
|
271
|
+
* @generated from enum value: FHE_MIN = 18;
|
|
272
|
+
*/
|
|
273
|
+
FHE_MIN = 18,
|
|
274
|
+
/**
|
|
275
|
+
* @generated from enum value: FHE_MAX = 19;
|
|
276
|
+
*/
|
|
277
|
+
FHE_MAX = 19
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Describes the enum inco.kms.lite.v1.SupportedScalarBinaryOp.
|
|
281
|
+
*/
|
|
282
|
+
export declare const SupportedScalarBinaryOpSchema: GenEnum<SupportedScalarBinaryOp>;
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
export declare const lightningDeployments: readonly [{
|
|
2
|
+
readonly name: "incoLightningPreview_3_0_0__976859633";
|
|
3
|
+
readonly majorVersion: 3;
|
|
4
|
+
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
5
|
+
readonly pepper: "devnet";
|
|
6
|
+
readonly executorAddress: "0x4732520194584a04Cac0224e067658619F4086bD";
|
|
7
|
+
readonly salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00ef1fab551c72a93b0637f1";
|
|
8
|
+
readonly chainId: 84532;
|
|
9
|
+
readonly chainName: "Base Sepolia";
|
|
10
|
+
readonly version: {
|
|
11
|
+
readonly major: 3;
|
|
12
|
+
readonly minor: 0;
|
|
13
|
+
readonly patch: 0;
|
|
14
|
+
readonly shortSalt: "976859633";
|
|
15
|
+
};
|
|
16
|
+
readonly blockNumber: 36099996;
|
|
17
|
+
readonly deployDate: "2026-01-09T14:18:04.212Z";
|
|
18
|
+
readonly commit: "v0.7.9-7-g63b3d823-dirty";
|
|
19
|
+
readonly active: true;
|
|
20
|
+
readonly includesPreviewFeatures: true;
|
|
21
|
+
}, {
|
|
2
22
|
readonly name: "incoLightningPreview_2_0_0__889158349";
|
|
3
23
|
readonly majorVersion: 2;
|
|
4
24
|
readonly deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC";
|
|
@@ -16,12 +16,12 @@ export declare const localNodeLightningConfig: {
|
|
|
16
16
|
readonly senderPrivateKey: "0x3ff395b755c4dc09837d0672dd421915e9b9835a4733edf63d8fd12b3fe4475c";
|
|
17
17
|
};
|
|
18
18
|
readonly devnet: {
|
|
19
|
-
readonly executorAddress: "
|
|
19
|
+
readonly executorAddress: "0x4732520194584a04Cac0224e067658619F4086bD";
|
|
20
20
|
readonly chainId: 31337;
|
|
21
21
|
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
22
|
-
readonly signers: readonly ["
|
|
22
|
+
readonly signers: readonly ["0xD8cF6baD71Bb4c8c4488d893436276f0CAfBaBe3"];
|
|
23
23
|
readonly hostChainRpcUrl: "http://localhost:8545";
|
|
24
|
-
readonly senderPrivateKey: "
|
|
24
|
+
readonly senderPrivateKey: "0x6f1fb30de0c1f1f9d4ca583a09f6885ca76aa2a0817f30e9f8fc112486d79bcd";
|
|
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: "0x7e344a29071fE868411feBa6bd12E70EFF0E71ed";
|
|
36
36
|
readonly chainId: 31337;
|
|
37
37
|
readonly covalidatorUrls: readonly ["http://localhost:50055"];
|
|
38
38
|
readonly signers: readonly ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as ellipticPkg from 'elliptic';
|
|
2
2
|
import { Decryptor, EciesScheme, Encryptor } from '../encryption/encryption.js';
|
|
3
3
|
import { PubKeyEncodable } from '../reencryption/index.js';
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const TEST_NETWORK_PUBKEY = "0x02516bda9e68a1c3dce74dc1b6ed7d91a91d51c1e1933947f06331cef59631e9eb";
|
|
5
|
+
export declare const TEST_NETWORK_PRIVATE_KEY = "0x384a707568ab63ad2ad9f10135faa0699801db3174f33f7846badc11affb8f57";
|
|
6
6
|
export interface Secp256k1Keypair extends PubKeyEncodable {
|
|
7
7
|
scheme: EciesScheme;
|
|
8
8
|
kp: ellipticPkg.ec.KeyPair;
|
|
@@ -42,7 +42,7 @@ export type CustomDeployment = DeploymentSlice & CustomConfig;
|
|
|
42
42
|
export type IncoVerifierConfig = {
|
|
43
43
|
threshold: number;
|
|
44
44
|
signers: Address[];
|
|
45
|
-
|
|
45
|
+
networkPubkey: HexString;
|
|
46
46
|
};
|
|
47
47
|
type LocalNodeEnvFileSource = {
|
|
48
48
|
filePath: string;
|
|
@@ -56,7 +56,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
56
56
|
private readonly covalidatorUrls;
|
|
57
57
|
private readonly signers;
|
|
58
58
|
private readonly threshold;
|
|
59
|
-
private readonly
|
|
59
|
+
private readonly networkPubkey;
|
|
60
60
|
readonly executorAddress: Address;
|
|
61
61
|
readonly chainId: bigint;
|
|
62
62
|
private readonly ephemeralKeypair;
|
|
@@ -77,7 +77,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
77
77
|
* See the sample docker-compose file here: https://github.com/Inco-fhevm/lightning-rod/blob/main/docker-compose.yaml
|
|
78
78
|
*
|
|
79
79
|
* @param env either a Pepper such as 'testnet', 'devnet', 'alphanet' or a LocalNodeEnv object containing the
|
|
80
|
-
* executorAddress,
|
|
80
|
+
* executorAddress, networkPubkey, chainId, covalidatorUrl and senderPrivateKey. If none is provided, it defaults to
|
|
81
81
|
* the 'testnet' Pepper. This produces allows connection to a local node running against a state dump of the
|
|
82
82
|
* corresponding Pepper.
|
|
83
83
|
*
|
|
@@ -98,7 +98,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
98
98
|
/**
|
|
99
99
|
* Get a Lightning deployment for a local or custom node
|
|
100
100
|
*
|
|
101
|
-
* @param config this is an object containing the executorAddress,
|
|
101
|
+
* @param config this is an object containing the executorAddress, networkPubkey, chainId and covalidatorUrl.
|
|
102
102
|
* additional fields past will be made available as part of the `deployment` property.
|
|
103
103
|
*/
|
|
104
104
|
static custom<T extends CustomConfig>(config: T): Promise<Lightning<DeploymentSlice & T>>;
|
|
@@ -348,7 +348,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
348
348
|
}, threshold: number): string[];
|
|
349
349
|
private static isIdByName;
|
|
350
350
|
private static plaintextFromValue;
|
|
351
|
-
static
|
|
351
|
+
static getNetworkPubkey(client: PublicClient, executorAddress: Address): Promise<HexString>;
|
|
352
352
|
static getIncoVerifierContract(client: PublicClient, executorAddress: Address): Promise<GetContractReturnType<typeof incoVerifierAbi, PublicClient, Address>>;
|
|
353
353
|
/**
|
|
354
354
|
* Retrieves the verifier contract details including threshold, signers, and ECIES public key from the Inco Verifier contract.
|
|
@@ -3,12 +3,12 @@ export declare const LocalNodeEnv: Schema.Struct<{
|
|
|
3
3
|
DEPLOYER_ADDRESS: Schema.brand<Schema.filter<Schema.TemplateLiteral<`0x${string}`>>, "Address">;
|
|
4
4
|
STATE_DUMP: typeof Schema.String;
|
|
5
5
|
EXECUTOR_ADDRESS: Schema.brand<Schema.filter<Schema.TemplateLiteral<`0x${string}`>>, "Address">;
|
|
6
|
-
|
|
6
|
+
NETWORK_PUBKEY: Schema.TemplateLiteral<`0x${string}`>;
|
|
7
7
|
SENDER_ADDRESS: Schema.brand<Schema.filter<Schema.TemplateLiteral<`0x${string}`>>, "Address">;
|
|
8
8
|
SENDER_PRIVATE_KEY: Schema.TemplateLiteral<`0x${string}`>;
|
|
9
9
|
EIP712_SIGNER_ADDRESS: Schema.optional<Schema.TemplateLiteral<`0x${string}`>>;
|
|
10
10
|
PEPPER: typeof Schema.String;
|
|
11
|
-
|
|
11
|
+
COVALIDATOR_NETWORK_PRIVATE_KEY: Schema.TemplateLiteral<`0x${string}`>;
|
|
12
12
|
COVALIDATOR_EIP712_PRIVATE_SIGNING_KEY: Schema.TemplateLiteral<`0x${string}`>;
|
|
13
13
|
COVALIDATOR_INCO_EXECUTOR_ADDR: Schema.brand<Schema.filter<Schema.TemplateLiteral<`0x${string}`>>, "Address">;
|
|
14
14
|
COVALIDATOR_HOST_CHAIN_ID: Schema.optional<typeof Schema.String>;
|