@inco/js 0.7.9 → 0.7.10
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/es/inco/covalidator/compute/v1/server_pb.d.ts +1 -376
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.js +3 -34
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +20 -26
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.js +11 -12
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +139 -3
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +112 -12
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.d.ts +1 -94
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.js +3 -97
- package/dist/cjs/lite/ecies.js +9 -2
- package/dist/cjs/lite/hadu.js +18 -8
- package/dist/esm/attestedcompute/types.d.ts +1 -1
- package/dist/esm/attestedcompute/types.js +2 -2
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +1 -376
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.js +2 -33
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +20 -26
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.js +10 -11
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +139 -3
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +112 -12
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.d.ts +1 -94
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +3 -97
- package/dist/esm/lite/ecies.js +9 -2
- package/dist/esm/lite/hadu.js +18 -8
- package/dist/types/attestedcompute/types.d.ts +1 -1
- package/dist/types/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +1 -376
- package/dist/types/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +20 -26
- package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +139 -3
- package/dist/types/generated/es/inco/kms/lite/v1/types_pb.d.ts +1 -94
- package/package.json +1 -1
|
@@ -1,10 +1,47 @@
|
|
|
1
|
-
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { ACLProof,
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { ACLProof, ECIESKeyset, HandleWithProof } 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>;
|
|
8
45
|
/**
|
|
9
46
|
* AttestedDecryptRequest is the request type for the KmsService/AttestedDecrypt RPC method.
|
|
10
47
|
*
|
|
@@ -372,6 +409,95 @@ export type DecryptionAttestation = Message<"inco.kms.lite.v1.DecryptionAttestat
|
|
|
372
409
|
* Use `create(DecryptionAttestationSchema)` to create a new message.
|
|
373
410
|
*/
|
|
374
411
|
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>;
|
|
375
501
|
/**
|
|
376
502
|
* KmsService is the service for the IncoLite KMS, which will run
|
|
377
503
|
* inside the TEE.
|
|
@@ -379,6 +505,16 @@ export declare const DecryptionAttestationSchema: GenMessage<DecryptionAttestati
|
|
|
379
505
|
* @generated from service inco.kms.lite.v1.KmsService
|
|
380
506
|
*/
|
|
381
507
|
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
|
+
};
|
|
382
518
|
/**
|
|
383
519
|
* AttestedDecrypt decrypts multiple ciphertexts and provides an attestation
|
|
384
520
|
* that the decryption was performed correctly.
|
|
@@ -392,7 +528,7 @@ export declare const KmsService: GenService<{
|
|
|
392
528
|
output: typeof AttestedDecryptResponseSchema;
|
|
393
529
|
};
|
|
394
530
|
/**
|
|
395
|
-
* AttestedCompute decrypts the result of a scalar binary operation on a handle and
|
|
531
|
+
* AttestedCompute decrypts the result of a scalar binary operation on a handle and privides an attestation
|
|
396
532
|
* that the computation and decryption were performed correctly.
|
|
397
533
|
*
|
|
398
534
|
* @generated from rpc inco.kms.lite.v1.KmsService.AttestedCompute
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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,96 +210,3 @@ 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>;
|