@inco/js 0.7.6 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/cjs/attestedcompute/types.d.ts +1 -1
  2. package/dist/cjs/attestedcompute/types.js +8 -8
  3. package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +376 -1
  4. package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.js +34 -3
  5. package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +26 -20
  6. package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.js +12 -11
  7. package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +3 -139
  8. package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +12 -112
  9. package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.d.ts +94 -1
  10. package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.js +97 -3
  11. package/dist/cjs/generated/local-node.d.ts +8 -0
  12. package/dist/cjs/generated/local-node.js +13 -1
  13. package/dist/cjs/lite/ecies.js +2 -9
  14. package/dist/cjs/lite/hadu.js +8 -18
  15. package/dist/cjs/lite/lightning.js +1 -3
  16. package/dist/esm/attestedcompute/types.d.ts +1 -1
  17. package/dist/esm/attestedcompute/types.js +2 -2
  18. package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +376 -1
  19. package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.js +33 -2
  20. package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +26 -20
  21. package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.js +11 -10
  22. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +3 -139
  23. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +12 -112
  24. package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.d.ts +94 -1
  25. package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +97 -3
  26. package/dist/esm/generated/local-node.d.ts +8 -0
  27. package/dist/esm/generated/local-node.js +13 -1
  28. package/dist/esm/lite/ecies.js +2 -9
  29. package/dist/esm/lite/hadu.js +8 -18
  30. package/dist/esm/lite/lightning.js +1 -3
  31. package/dist/types/attestedcompute/types.d.ts +1 -1
  32. package/dist/types/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +376 -1
  33. package/dist/types/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +26 -20
  34. package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +3 -139
  35. package/dist/types/generated/es/inco/kms/lite/v1/types_pb.d.ts +94 -1
  36. package/dist/types/generated/local-node.d.ts +8 -0
  37. package/package.json +1 -1
@@ -1,47 +1,10 @@
1
- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
- import type { ACLProof, ECIESKeyset, HandleWithProof } from "./types_pb";
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 privides an attestation
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,4 +1,4 @@
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.
@@ -210,3 +210,96 @@ export type IncoLiteAdvancedACLProof = Message<"inco.kms.lite.v1.IncoLiteAdvance
210
210
  * Use `create(IncoLiteAdvancedACLProofSchema)` to create a new message.
211
211
  */
212
212
  export declare const IncoLiteAdvancedACLProofSchema: GenMessage<IncoLiteAdvancedACLProof>;
213
+ /**
214
+ * SupportedScalarBinaryOp enumerates the binary operations supported in attested compute.
215
+ * It's distinct from inco.covalidator.compute.v1.FheOperation since only a subset of
216
+ * operations are supported.
217
+ *
218
+ * @generated from enum inco.kms.lite.v1.SupportedScalarBinaryOp
219
+ */
220
+ export declare enum SupportedScalarBinaryOp {
221
+ /**
222
+ * @generated from enum value: FHE_ADD = 0;
223
+ */
224
+ FHE_ADD = 0,
225
+ /**
226
+ * @generated from enum value: FHE_SUB = 1;
227
+ */
228
+ FHE_SUB = 1,
229
+ /**
230
+ * @generated from enum value: FHE_MUL = 2;
231
+ */
232
+ FHE_MUL = 2,
233
+ /**
234
+ * @generated from enum value: FHE_DIV = 3;
235
+ */
236
+ FHE_DIV = 3,
237
+ /**
238
+ * @generated from enum value: FHE_REM = 4;
239
+ */
240
+ FHE_REM = 4,
241
+ /**
242
+ * @generated from enum value: FHE_BIT_AND = 5;
243
+ */
244
+ FHE_BIT_AND = 5,
245
+ /**
246
+ * @generated from enum value: FHE_BIT_OR = 6;
247
+ */
248
+ FHE_BIT_OR = 6,
249
+ /**
250
+ * @generated from enum value: FHE_BIT_XOR = 7;
251
+ */
252
+ FHE_BIT_XOR = 7,
253
+ /**
254
+ * @generated from enum value: FHE_SHL = 8;
255
+ */
256
+ FHE_SHL = 8,
257
+ /**
258
+ * @generated from enum value: FHE_SHR = 9;
259
+ */
260
+ FHE_SHR = 9,
261
+ /**
262
+ * @generated from enum value: FHE_ROTL = 10;
263
+ */
264
+ FHE_ROTL = 10,
265
+ /**
266
+ * @generated from enum value: FHE_ROTR = 11;
267
+ */
268
+ FHE_ROTR = 11,
269
+ /**
270
+ * @generated from enum value: FHE_EQ = 12;
271
+ */
272
+ FHE_EQ = 12,
273
+ /**
274
+ * @generated from enum value: FHE_NE = 13;
275
+ */
276
+ FHE_NE = 13,
277
+ /**
278
+ * @generated from enum value: FHE_GE = 14;
279
+ */
280
+ FHE_GE = 14,
281
+ /**
282
+ * @generated from enum value: FHE_GT = 15;
283
+ */
284
+ FHE_GT = 15,
285
+ /**
286
+ * @generated from enum value: FHE_LE = 16;
287
+ */
288
+ FHE_LE = 16,
289
+ /**
290
+ * @generated from enum value: FHE_LT = 17;
291
+ */
292
+ FHE_LT = 17,
293
+ /**
294
+ * @generated from enum value: FHE_MIN = 18;
295
+ */
296
+ FHE_MIN = 18,
297
+ /**
298
+ * @generated from enum value: FHE_MAX = 19;
299
+ */
300
+ FHE_MAX = 19
301
+ }
302
+ /**
303
+ * Describes the enum inco.kms.lite.v1.SupportedScalarBinaryOp.
304
+ */
305
+ export declare const SupportedScalarBinaryOpSchema: GenEnum<SupportedScalarBinaryOp>;
@@ -1,4 +1,12 @@
1
1
  export declare const localNodeLightningConfig: {
2
+ readonly demonet: {
3
+ readonly executorAddress: "0xA95EAbCE575f5f1e52605358Ee893F6536166378";
4
+ readonly chainId: 31337;
5
+ readonly covalidatorUrls: readonly ["http://localhost:50055"];
6
+ readonly signers: readonly ["0xa3968E59A2659F33CB8deFEFa713512C800fbc77"];
7
+ readonly hostChainRpcUrl: "http://localhost:8545";
8
+ readonly senderPrivateKey: "0xde4526e9059cddb3eb8511fcefc2daa1dcaf2475ec76ff6ae63bfc7eb3405a1b";
9
+ };
2
10
  readonly testnet: {
3
11
  readonly executorAddress: "0x168FDc3Ae19A5d5b03614578C58974FF30FCBe92";
4
12
  readonly chainId: 31337;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inco/js",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "repository": "https://github.com/Inco-fhevm/inco-monorepo",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,