@inco/lightning-js 0.0.0-bootstrap.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/LICENSE +201 -0
- package/README.md +587 -0
- package/dist/cjs/advancedacl/index.d.ts +2 -0
- package/dist/cjs/advancedacl/index.js +19 -0
- package/dist/cjs/advancedacl/session-key.d.ts +95 -0
- package/dist/cjs/advancedacl/session-key.js +376 -0
- package/dist/cjs/advancedacl/types.d.ts +16 -0
- package/dist/cjs/advancedacl/types.js +3 -0
- package/dist/cjs/attestedcompute/attested-compute.d.ts +65 -0
- package/dist/cjs/attestedcompute/attested-compute.js +80 -0
- package/dist/cjs/attestedcompute/types.d.ts +35 -0
- package/dist/cjs/attestedcompute/types.js +46 -0
- package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +61 -0
- package/dist/cjs/attesteddecrypt/attested-decrypt.js +118 -0
- package/dist/cjs/attesteddecrypt/index.d.ts +1 -0
- package/dist/cjs/attesteddecrypt/index.js +18 -0
- package/dist/cjs/attesteddecrypt/types.d.ts +27 -0
- package/dist/cjs/attesteddecrypt/types.js +16 -0
- package/dist/cjs/attestedreveal/attested-reveal.d.ts +21 -0
- package/dist/cjs/attestedreveal/attested-reveal.js +31 -0
- package/dist/cjs/attestedreveal/index.d.ts +2 -0
- package/dist/cjs/attestedreveal/index.js +21 -0
- package/dist/cjs/attestedreveal/types.d.ts +4 -0
- package/dist/cjs/attestedreveal/types.js +13 -0
- package/dist/cjs/binary.d.ts +104 -0
- package/dist/cjs/binary.js +171 -0
- package/dist/cjs/chain.d.ts +50 -0
- package/dist/cjs/chain.js +62 -0
- package/dist/cjs/eip712/eip712.d.ts +18 -0
- package/dist/cjs/eip712/eip712.js +51 -0
- package/dist/cjs/eip712/index.d.ts +1 -0
- package/dist/cjs/eip712/index.js +8 -0
- package/dist/cjs/elistattesteddecrypt/elist-attested-decrypt.d.ts +51 -0
- package/dist/cjs/elistattesteddecrypt/elist-attested-decrypt.js +94 -0
- package/dist/cjs/elistattesteddecrypt/index.d.ts +2 -0
- package/dist/cjs/elistattesteddecrypt/index.js +22 -0
- package/dist/cjs/elistattesteddecrypt/types.d.ts +31 -0
- package/dist/cjs/elistattesteddecrypt/types.js +16 -0
- package/dist/cjs/encryption/encryption.d.ts +235 -0
- package/dist/cjs/encryption/encryption.js +226 -0
- package/dist/cjs/encryption/index.d.ts +1 -0
- package/dist/cjs/encryption/index.js +19 -0
- package/dist/cjs/generated/abis/add-two.d.ts +117 -0
- package/dist/cjs/generated/abis/add-two.js +80 -0
- package/dist/cjs/generated/abis/lightning.d.ts +3362 -0
- package/dist/cjs/generated/abis/lightning.js +2445 -0
- package/dist/cjs/generated/abis/test-elist.d.ts +276 -0
- package/dist/cjs/generated/abis/test-elist.js +168 -0
- package/dist/cjs/generated/abis/verifier.d.ts +1353 -0
- package/dist/cjs/generated/abis/verifier.js +954 -0
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +1494 -0
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/server_pb.js +395 -0
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +247 -0
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.js +80 -0
- package/dist/cjs/generated/es/inco/helioswrapper/v1/helioswrapper_pb.d.ts +77 -0
- package/dist/cjs/generated/es/inco/helioswrapper/v1/helioswrapper_pb.js +28 -0
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +685 -0
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +100 -0
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.d.ts +289 -0
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.js +136 -0
- package/dist/cjs/generated/es/inco/sealingfetcher/v1/sealingfetcher_pb.d.ts +371 -0
- package/dist/cjs/generated/es/inco/sealingfetcher/v1/sealingfetcher_pb.js +88 -0
- package/dist/cjs/generated/lightning.d.ts +830 -0
- package/dist/cjs/generated/lightning.js +872 -0
- package/dist/cjs/generated/local-node.d.ts +50 -0
- package/dist/cjs/generated/local-node.js +107 -0
- package/dist/cjs/handle.d.ts +123 -0
- package/dist/cjs/handle.js +221 -0
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.js +31 -0
- package/dist/cjs/kms/client.d.ts +12 -0
- package/dist/cjs/kms/client.js +47 -0
- package/dist/cjs/kms/quorumClient.d.ts +65 -0
- package/dist/cjs/kms/quorumClient.js +463 -0
- package/dist/cjs/kms/quorumConsistency.d.ts +82 -0
- package/dist/cjs/kms/quorumConsistency.js +269 -0
- package/dist/cjs/kms/signatureVerification.d.ts +35 -0
- package/dist/cjs/kms/signatureVerification.js +88 -0
- package/dist/cjs/kms/thresholdPromises.d.ts +8 -0
- package/dist/cjs/kms/thresholdPromises.js +62 -0
- package/dist/cjs/lite/attested-compute.d.ts +6 -0
- package/dist/cjs/lite/attested-compute.js +8 -0
- package/dist/cjs/lite/attested-decrypt.d.ts +4 -0
- package/dist/cjs/lite/attested-decrypt.js +6 -0
- package/dist/cjs/lite/deployments.d.ts +24 -0
- package/dist/cjs/lite/deployments.js +21 -0
- package/dist/cjs/lite/hadu.d.ts +4 -0
- package/dist/cjs/lite/hadu.js +28 -0
- package/dist/cjs/lite/index.d.ts +13 -0
- package/dist/cjs/lite/index.js +31 -0
- package/dist/cjs/lite/lightning.d.ts +459 -0
- package/dist/cjs/lite/lightning.js +696 -0
- package/dist/cjs/lite/types.d.ts +47 -0
- package/dist/cjs/lite/types.js +3 -0
- package/dist/cjs/lite/xwing.d.ts +154 -0
- package/dist/cjs/lite/xwing.js +326 -0
- package/dist/cjs/local/index.d.ts +1 -0
- package/dist/cjs/local/index.js +18 -0
- package/dist/cjs/local/local-node.d.ts +37 -0
- package/dist/cjs/local/local-node.js +80 -0
- package/dist/cjs/reencryption/eip712.d.ts +56 -0
- package/dist/cjs/reencryption/eip712.js +90 -0
- package/dist/cjs/reencryption/index.d.ts +2 -0
- package/dist/cjs/reencryption/index.js +19 -0
- package/dist/cjs/reencryption/types.d.ts +48 -0
- package/dist/cjs/reencryption/types.js +3 -0
- package/dist/cjs/retry.d.ts +30 -0
- package/dist/cjs/retry.js +87 -0
- package/dist/cjs/schema.d.ts +4 -0
- package/dist/cjs/schema.js +19 -0
- package/dist/cjs/test/mocks.d.ts +20 -0
- package/dist/cjs/test/mocks.js +72 -0
- package/dist/cjs/viem.d.ts +1141 -0
- package/dist/cjs/viem.js +36 -0
- package/dist/esm/advancedacl/index.d.ts +2 -0
- package/dist/esm/advancedacl/index.js +3 -0
- package/dist/esm/advancedacl/session-key.d.ts +95 -0
- package/dist/esm/advancedacl/session-key.js +367 -0
- package/dist/esm/advancedacl/types.d.ts +16 -0
- package/dist/esm/advancedacl/types.js +2 -0
- package/dist/esm/attestedcompute/attested-compute.d.ts +65 -0
- package/dist/esm/attestedcompute/attested-compute.js +76 -0
- package/dist/esm/attestedcompute/types.d.ts +35 -0
- package/dist/esm/attestedcompute/types.js +42 -0
- package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +61 -0
- package/dist/esm/attesteddecrypt/attested-decrypt.js +112 -0
- package/dist/esm/attesteddecrypt/index.d.ts +1 -0
- package/dist/esm/attesteddecrypt/index.js +2 -0
- package/dist/esm/attesteddecrypt/types.d.ts +27 -0
- package/dist/esm/attesteddecrypt/types.js +12 -0
- package/dist/esm/attestedreveal/attested-reveal.d.ts +21 -0
- package/dist/esm/attestedreveal/attested-reveal.js +28 -0
- package/dist/esm/attestedreveal/index.d.ts +2 -0
- package/dist/esm/attestedreveal/index.js +3 -0
- package/dist/esm/attestedreveal/types.d.ts +4 -0
- package/dist/esm/attestedreveal/types.js +9 -0
- package/dist/esm/binary.d.ts +104 -0
- package/dist/esm/binary.js +155 -0
- package/dist/esm/chain.d.ts +50 -0
- package/dist/esm/chain.js +58 -0
- package/dist/esm/eip712/eip712.d.ts +18 -0
- package/dist/esm/eip712/eip712.js +46 -0
- package/dist/esm/eip712/index.d.ts +1 -0
- package/dist/esm/eip712/index.js +2 -0
- package/dist/esm/elistattesteddecrypt/elist-attested-decrypt.d.ts +51 -0
- package/dist/esm/elistattesteddecrypt/elist-attested-decrypt.js +89 -0
- package/dist/esm/elistattesteddecrypt/index.d.ts +2 -0
- package/dist/esm/elistattesteddecrypt/index.js +3 -0
- package/dist/esm/elistattesteddecrypt/types.d.ts +31 -0
- package/dist/esm/elistattesteddecrypt/types.js +12 -0
- package/dist/esm/encryption/encryption.d.ts +235 -0
- package/dist/esm/encryption/encryption.js +214 -0
- package/dist/esm/encryption/index.d.ts +1 -0
- package/dist/esm/encryption/index.js +2 -0
- package/dist/esm/generated/abis/add-two.d.ts +117 -0
- package/dist/esm/generated/abis/add-two.js +77 -0
- package/dist/esm/generated/abis/lightning.d.ts +3362 -0
- package/dist/esm/generated/abis/lightning.js +2442 -0
- package/dist/esm/generated/abis/test-elist.d.ts +276 -0
- package/dist/esm/generated/abis/test-elist.js +165 -0
- package/dist/esm/generated/abis/verifier.d.ts +1353 -0
- package/dist/esm/generated/abis/verifier.js +951 -0
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +1494 -0
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.js +392 -0
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +247 -0
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.js +77 -0
- package/dist/esm/generated/es/inco/helioswrapper/v1/helioswrapper_pb.d.ts +77 -0
- package/dist/esm/generated/es/inco/helioswrapper/v1/helioswrapper_pb.js +25 -0
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +685 -0
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +97 -0
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.d.ts +289 -0
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +133 -0
- package/dist/esm/generated/es/inco/sealingfetcher/v1/sealingfetcher_pb.d.ts +371 -0
- package/dist/esm/generated/es/inco/sealingfetcher/v1/sealingfetcher_pb.js +85 -0
- package/dist/esm/generated/lightning.d.ts +830 -0
- package/dist/esm/generated/lightning.js +869 -0
- package/dist/esm/generated/local-node.d.ts +50 -0
- package/dist/esm/generated/local-node.js +104 -0
- package/dist/esm/handle.d.ts +123 -0
- package/dist/esm/handle.js +212 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/kms/client.d.ts +12 -0
- package/dist/esm/kms/client.js +40 -0
- package/dist/esm/kms/quorumClient.d.ts +65 -0
- package/dist/esm/kms/quorumClient.js +459 -0
- package/dist/esm/kms/quorumConsistency.d.ts +82 -0
- package/dist/esm/kms/quorumConsistency.js +260 -0
- package/dist/esm/kms/signatureVerification.d.ts +35 -0
- package/dist/esm/kms/signatureVerification.js +84 -0
- package/dist/esm/kms/thresholdPromises.d.ts +8 -0
- package/dist/esm/kms/thresholdPromises.js +59 -0
- package/dist/esm/lite/attested-compute.d.ts +6 -0
- package/dist/esm/lite/attested-compute.js +4 -0
- package/dist/esm/lite/attested-decrypt.d.ts +4 -0
- package/dist/esm/lite/attested-decrypt.js +3 -0
- package/dist/esm/lite/deployments.d.ts +24 -0
- package/dist/esm/lite/deployments.js +17 -0
- package/dist/esm/lite/hadu.d.ts +4 -0
- package/dist/esm/lite/hadu.js +24 -0
- package/dist/esm/lite/index.d.ts +13 -0
- package/dist/esm/lite/index.js +10 -0
- package/dist/esm/lite/lightning.d.ts +459 -0
- package/dist/esm/lite/lightning.js +692 -0
- package/dist/esm/lite/types.d.ts +47 -0
- package/dist/esm/lite/types.js +2 -0
- package/dist/esm/lite/xwing.d.ts +154 -0
- package/dist/esm/lite/xwing.js +311 -0
- package/dist/esm/local/index.d.ts +1 -0
- package/dist/esm/local/index.js +2 -0
- package/dist/esm/local/local-node.d.ts +37 -0
- package/dist/esm/local/local-node.js +76 -0
- package/dist/esm/reencryption/eip712.d.ts +56 -0
- package/dist/esm/reencryption/eip712.js +87 -0
- package/dist/esm/reencryption/index.d.ts +2 -0
- package/dist/esm/reencryption/index.js +3 -0
- package/dist/esm/reencryption/types.d.ts +48 -0
- package/dist/esm/reencryption/types.js +2 -0
- package/dist/esm/retry.d.ts +30 -0
- package/dist/esm/retry.js +82 -0
- package/dist/esm/schema.d.ts +4 -0
- package/dist/esm/schema.js +15 -0
- package/dist/esm/test/mocks.d.ts +20 -0
- package/dist/esm/test/mocks.js +64 -0
- package/dist/esm/viem.d.ts +1141 -0
- package/dist/esm/viem.js +32 -0
- package/dist/types/advancedacl/index.d.ts +2 -0
- package/dist/types/advancedacl/session-key.d.ts +95 -0
- package/dist/types/advancedacl/types.d.ts +16 -0
- package/dist/types/attestedcompute/attested-compute.d.ts +65 -0
- package/dist/types/attestedcompute/types.d.ts +35 -0
- package/dist/types/attesteddecrypt/attested-decrypt.d.ts +61 -0
- package/dist/types/attesteddecrypt/index.d.ts +1 -0
- package/dist/types/attesteddecrypt/types.d.ts +27 -0
- package/dist/types/attestedreveal/attested-reveal.d.ts +21 -0
- package/dist/types/attestedreveal/index.d.ts +2 -0
- package/dist/types/attestedreveal/types.d.ts +4 -0
- package/dist/types/binary.d.ts +104 -0
- package/dist/types/chain.d.ts +50 -0
- package/dist/types/eip712/eip712.d.ts +18 -0
- package/dist/types/eip712/index.d.ts +1 -0
- package/dist/types/elistattesteddecrypt/elist-attested-decrypt.d.ts +51 -0
- package/dist/types/elistattesteddecrypt/index.d.ts +2 -0
- package/dist/types/elistattesteddecrypt/types.d.ts +31 -0
- package/dist/types/encryption/encryption.d.ts +235 -0
- package/dist/types/encryption/index.d.ts +1 -0
- package/dist/types/generated/abis/add-two.d.ts +117 -0
- package/dist/types/generated/abis/lightning.d.ts +3362 -0
- package/dist/types/generated/abis/test-elist.d.ts +276 -0
- package/dist/types/generated/abis/verifier.d.ts +1353 -0
- package/dist/types/generated/es/inco/covalidator/compute/v1/server_pb.d.ts +1494 -0
- package/dist/types/generated/es/inco/covalidator/compute/v1/types_pb.d.ts +247 -0
- package/dist/types/generated/es/inco/helioswrapper/v1/helioswrapper_pb.d.ts +77 -0
- package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +685 -0
- package/dist/types/generated/es/inco/kms/lite/v1/types_pb.d.ts +289 -0
- package/dist/types/generated/es/inco/sealingfetcher/v1/sealingfetcher_pb.d.ts +371 -0
- package/dist/types/generated/lightning.d.ts +830 -0
- package/dist/types/generated/local-node.d.ts +50 -0
- package/dist/types/handle.d.ts +123 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/kms/client.d.ts +12 -0
- package/dist/types/kms/quorumClient.d.ts +65 -0
- package/dist/types/kms/quorumConsistency.d.ts +82 -0
- package/dist/types/kms/signatureVerification.d.ts +35 -0
- package/dist/types/kms/thresholdPromises.d.ts +8 -0
- package/dist/types/lite/attested-compute.d.ts +6 -0
- package/dist/types/lite/attested-decrypt.d.ts +4 -0
- package/dist/types/lite/deployments.d.ts +24 -0
- package/dist/types/lite/hadu.d.ts +4 -0
- package/dist/types/lite/index.d.ts +13 -0
- package/dist/types/lite/lightning.d.ts +459 -0
- package/dist/types/lite/types.d.ts +47 -0
- package/dist/types/lite/xwing.d.ts +154 -0
- package/dist/types/local/index.d.ts +1 -0
- package/dist/types/local/local-node.d.ts +37 -0
- package/dist/types/reencryption/eip712.d.ts +56 -0
- package/dist/types/reencryption/index.d.ts +2 -0
- package/dist/types/reencryption/types.d.ts +48 -0
- package/dist/types/retry.d.ts +30 -0
- package/dist/types/schema.d.ts +4 -0
- package/dist/types/test/mocks.d.ts +20 -0
- package/dist/types/viem.d.ts +1141 -0
- package/package.json +129 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file inco/kms/lite/v1/types.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_inco_kms_lite_v1_types: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* ACLProof is the proof a given user (outside of the scope of this proto
|
|
9
|
+
* message) has ACL permission on a given handle (also outside of the scope of
|
|
10
|
+
* this proto message).
|
|
11
|
+
*
|
|
12
|
+
* @generated from message inco.kms.lite.v1.ACLProof
|
|
13
|
+
*/
|
|
14
|
+
export type ACLProof = Message<"inco.kms.lite.v1.ACLProof"> & {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from oneof inco.kms.lite.v1.ACLProof.proof
|
|
17
|
+
*/
|
|
18
|
+
proof: {
|
|
19
|
+
/**
|
|
20
|
+
* inco_lite_basic_acl_proof is used when the ACL proof is performed by
|
|
21
|
+
* the light client inside the TEE calling the `isAllowed` function on
|
|
22
|
+
* the BaseAccessControlList.sol contract.
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: inco.kms.lite.v1.IncoLiteBasicACLProof inco_lite_basic_acl_proof = 10;
|
|
25
|
+
*/
|
|
26
|
+
value: IncoLiteBasicACLProof;
|
|
27
|
+
case: "incoLiteBasicAclProof";
|
|
28
|
+
} | {
|
|
29
|
+
/**
|
|
30
|
+
* inco_lite_advanced_acl_proof is used when the ACL proof is performed
|
|
31
|
+
* by the light client inside the TEE calling the `isAllowed` function
|
|
32
|
+
* on the AdvancedAccessControl.sol contract.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: inco.kms.lite.v1.IncoLiteAdvancedACLProof inco_lite_advanced_acl_proof = 11;
|
|
35
|
+
*/
|
|
36
|
+
value: IncoLiteAdvancedACLProof;
|
|
37
|
+
case: "incoLiteAdvancedAclProof";
|
|
38
|
+
} | {
|
|
39
|
+
case: undefined;
|
|
40
|
+
value?: undefined;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message inco.kms.lite.v1.ACLProof.
|
|
45
|
+
* Use `create(ACLProofSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export declare const ACLProofSchema: GenMessage<ACLProof>;
|
|
48
|
+
/**
|
|
49
|
+
* HandleWithProof contains a handle and the ACL proof that the user has access
|
|
50
|
+
* to the handle.
|
|
51
|
+
*
|
|
52
|
+
* @generated from message inco.kms.lite.v1.HandleWithProof
|
|
53
|
+
*/
|
|
54
|
+
export type HandleWithProof = Message<"inco.kms.lite.v1.HandleWithProof"> & {
|
|
55
|
+
/**
|
|
56
|
+
* handle is the handle of the ciphertext to get, encoded as a non-prefixed
|
|
57
|
+
* hex string.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string handle = 1;
|
|
60
|
+
*/
|
|
61
|
+
handle: string;
|
|
62
|
+
/**
|
|
63
|
+
* acl_proof is the proof that the user has access to the handle.
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: inco.kms.lite.v1.ACLProof acl_proof = 2;
|
|
66
|
+
*/
|
|
67
|
+
aclProof?: ACLProof | undefined;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message inco.kms.lite.v1.HandleWithProof.
|
|
71
|
+
* Use `create(HandleWithProofSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export declare const HandleWithProofSchema: GenMessage<HandleWithProof>;
|
|
74
|
+
/**
|
|
75
|
+
* IncoLiteBasicACLProof is the proof of the ACL for the compute ciphertext
|
|
76
|
+
* when the ACL proof is performed by the light client inside the TEE calling
|
|
77
|
+
* the `isAllowed` function on the BaseAccessControlList.sol contract.
|
|
78
|
+
*
|
|
79
|
+
* @generated from message inco.kms.lite.v1.IncoLiteBasicACLProof
|
|
80
|
+
*/
|
|
81
|
+
export type IncoLiteBasicACLProof = Message<"inco.kms.lite.v1.IncoLiteBasicACLProof"> & {};
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message inco.kms.lite.v1.IncoLiteBasicACLProof.
|
|
84
|
+
* Use `create(IncoLiteBasicACLProofSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export declare const IncoLiteBasicACLProofSchema: GenMessage<IncoLiteBasicACLProof>;
|
|
87
|
+
/**
|
|
88
|
+
* AllowanceVoucher can be for arbitrary handles to arbitrary accounts
|
|
89
|
+
* signed by the account sharing its read access. See AdvancedAccessControl.sol
|
|
90
|
+
* for more details.
|
|
91
|
+
*
|
|
92
|
+
* @generated from message inco.kms.lite.v1.AllowanceVoucher
|
|
93
|
+
*/
|
|
94
|
+
export type AllowanceVoucher = Message<"inco.kms.lite.v1.AllowanceVoucher"> & {
|
|
95
|
+
/**
|
|
96
|
+
* verifying_contract is the contract address to call to verify the allowance.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: string verifying_contract = 1;
|
|
99
|
+
*/
|
|
100
|
+
verifyingContract: string;
|
|
101
|
+
/**
|
|
102
|
+
* call_function is the function selector on the verifying contract to call
|
|
103
|
+
* to verify the allowance.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: bytes call_function = 2;
|
|
106
|
+
*/
|
|
107
|
+
callFunction: Uint8Array;
|
|
108
|
+
/**
|
|
109
|
+
* sharer_arg_data is the ABI-encoded data to pass to the function above as the
|
|
110
|
+
* sharer argument.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: bytes sharer_arg_data = 3;
|
|
113
|
+
*/
|
|
114
|
+
sharerArgData: Uint8Array;
|
|
115
|
+
/**
|
|
116
|
+
* session_nonce is the session nonce of the allowance voucher. It is encoded
|
|
117
|
+
* as a 32-byte array on the Solidity side.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: bytes session_nonce = 4;
|
|
120
|
+
*/
|
|
121
|
+
sessionNonce: Uint8Array;
|
|
122
|
+
/**
|
|
123
|
+
* warning is the human-readable warning message displayed to users at signing
|
|
124
|
+
* time, included in the EIP-712 struct so wallets render it prominently.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string warning = 5;
|
|
127
|
+
*/
|
|
128
|
+
warning: string;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Describes the message inco.kms.lite.v1.AllowanceVoucher.
|
|
132
|
+
* Use `create(AllowanceVoucherSchema)` to create a new message.
|
|
133
|
+
*/
|
|
134
|
+
export declare const AllowanceVoucherSchema: GenMessage<AllowanceVoucher>;
|
|
135
|
+
/**
|
|
136
|
+
* AllowanceProof is the proof of the allowance voucher. See AdvancedAccessControl.sol
|
|
137
|
+
* for more details.
|
|
138
|
+
*
|
|
139
|
+
* @generated from message inco.kms.lite.v1.AllowanceProof
|
|
140
|
+
*/
|
|
141
|
+
export type AllowanceProof = Message<"inco.kms.lite.v1.AllowanceProof"> & {
|
|
142
|
+
/**
|
|
143
|
+
* sharer is the address of the account that is sharing its read access.
|
|
144
|
+
* This account must have persisted permission on the handle.
|
|
145
|
+
* TODO scalar type.
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: string sharer = 1;
|
|
148
|
+
*/
|
|
149
|
+
sharer: string;
|
|
150
|
+
/**
|
|
151
|
+
* voucher is the voucher of the allowance.
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: inco.kms.lite.v1.AllowanceVoucher voucher = 2;
|
|
154
|
+
*/
|
|
155
|
+
voucher?: AllowanceVoucher | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* voucher_signature is the signature of the voucher by the sharer of the
|
|
158
|
+
* allowance voucher digest. See AdvancedAccessControl.sol#allowanceVoucherDigest
|
|
159
|
+
* for how the digest is computed.
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: bytes voucher_signature = 3;
|
|
162
|
+
*/
|
|
163
|
+
voucherSignature: Uint8Array;
|
|
164
|
+
/**
|
|
165
|
+
* requester_arg_data is the ABI-encoded data to pass to the function above as the
|
|
166
|
+
* requester argument.
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: bytes requester_arg_data = 4;
|
|
169
|
+
*/
|
|
170
|
+
requesterArgData: Uint8Array;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Describes the message inco.kms.lite.v1.AllowanceProof.
|
|
174
|
+
* Use `create(AllowanceProofSchema)` to create a new message.
|
|
175
|
+
*/
|
|
176
|
+
export declare const AllowanceProofSchema: GenMessage<AllowanceProof>;
|
|
177
|
+
/**
|
|
178
|
+
* IncoLiteAdvancedACLProof is the proof of the ACL for the compute ciphertext
|
|
179
|
+
* when the ACL proof is performed by the light client inside the TEE calling
|
|
180
|
+
* the `isAllowed` function on the AdvancedAccessControl.sol contract.
|
|
181
|
+
*
|
|
182
|
+
* @generated from message inco.kms.lite.v1.IncoLiteAdvancedACLProof
|
|
183
|
+
*/
|
|
184
|
+
export type IncoLiteAdvancedACLProof = Message<"inco.kms.lite.v1.IncoLiteAdvancedACLProof"> & {
|
|
185
|
+
/**
|
|
186
|
+
* allowance_proof is the proof of the allowance voucher.
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: inco.kms.lite.v1.AllowanceProof allowance_proof = 1;
|
|
189
|
+
*/
|
|
190
|
+
allowanceProof?: AllowanceProof | undefined;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Describes the message inco.kms.lite.v1.IncoLiteAdvancedACLProof.
|
|
194
|
+
* Use `create(IncoLiteAdvancedACLProofSchema)` to create a new message.
|
|
195
|
+
*/
|
|
196
|
+
export declare const IncoLiteAdvancedACLProofSchema: GenMessage<IncoLiteAdvancedACLProof>;
|
|
197
|
+
/**
|
|
198
|
+
* SupportedScalarBinaryOp enumerates the binary operations supported in attested compute.
|
|
199
|
+
* It's distinct from inco.covalidator.compute.v1.TeeOperation since only a subset of
|
|
200
|
+
* operations are supported.
|
|
201
|
+
*
|
|
202
|
+
* @generated from enum inco.kms.lite.v1.SupportedScalarBinaryOp
|
|
203
|
+
*/
|
|
204
|
+
export declare enum SupportedScalarBinaryOp {
|
|
205
|
+
/**
|
|
206
|
+
* @generated from enum value: TEE_ADD = 0;
|
|
207
|
+
*/
|
|
208
|
+
TEE_ADD = 0,
|
|
209
|
+
/**
|
|
210
|
+
* @generated from enum value: TEE_SUB = 1;
|
|
211
|
+
*/
|
|
212
|
+
TEE_SUB = 1,
|
|
213
|
+
/**
|
|
214
|
+
* @generated from enum value: TEE_MUL = 2;
|
|
215
|
+
*/
|
|
216
|
+
TEE_MUL = 2,
|
|
217
|
+
/**
|
|
218
|
+
* @generated from enum value: TEE_DIV = 3;
|
|
219
|
+
*/
|
|
220
|
+
TEE_DIV = 3,
|
|
221
|
+
/**
|
|
222
|
+
* @generated from enum value: TEE_REM = 4;
|
|
223
|
+
*/
|
|
224
|
+
TEE_REM = 4,
|
|
225
|
+
/**
|
|
226
|
+
* @generated from enum value: TEE_BIT_AND = 5;
|
|
227
|
+
*/
|
|
228
|
+
TEE_BIT_AND = 5,
|
|
229
|
+
/**
|
|
230
|
+
* @generated from enum value: TEE_BIT_OR = 6;
|
|
231
|
+
*/
|
|
232
|
+
TEE_BIT_OR = 6,
|
|
233
|
+
/**
|
|
234
|
+
* @generated from enum value: TEE_BIT_XOR = 7;
|
|
235
|
+
*/
|
|
236
|
+
TEE_BIT_XOR = 7,
|
|
237
|
+
/**
|
|
238
|
+
* @generated from enum value: TEE_SHL = 8;
|
|
239
|
+
*/
|
|
240
|
+
TEE_SHL = 8,
|
|
241
|
+
/**
|
|
242
|
+
* @generated from enum value: TEE_SHR = 9;
|
|
243
|
+
*/
|
|
244
|
+
TEE_SHR = 9,
|
|
245
|
+
/**
|
|
246
|
+
* @generated from enum value: TEE_ROTL = 10;
|
|
247
|
+
*/
|
|
248
|
+
TEE_ROTL = 10,
|
|
249
|
+
/**
|
|
250
|
+
* @generated from enum value: TEE_ROTR = 11;
|
|
251
|
+
*/
|
|
252
|
+
TEE_ROTR = 11,
|
|
253
|
+
/**
|
|
254
|
+
* @generated from enum value: TEE_EQ = 12;
|
|
255
|
+
*/
|
|
256
|
+
TEE_EQ = 12,
|
|
257
|
+
/**
|
|
258
|
+
* @generated from enum value: TEE_NE = 13;
|
|
259
|
+
*/
|
|
260
|
+
TEE_NE = 13,
|
|
261
|
+
/**
|
|
262
|
+
* @generated from enum value: TEE_GE = 14;
|
|
263
|
+
*/
|
|
264
|
+
TEE_GE = 14,
|
|
265
|
+
/**
|
|
266
|
+
* @generated from enum value: TEE_GT = 15;
|
|
267
|
+
*/
|
|
268
|
+
TEE_GT = 15,
|
|
269
|
+
/**
|
|
270
|
+
* @generated from enum value: TEE_LE = 16;
|
|
271
|
+
*/
|
|
272
|
+
TEE_LE = 16,
|
|
273
|
+
/**
|
|
274
|
+
* @generated from enum value: TEE_LT = 17;
|
|
275
|
+
*/
|
|
276
|
+
TEE_LT = 17,
|
|
277
|
+
/**
|
|
278
|
+
* @generated from enum value: TEE_MIN = 18;
|
|
279
|
+
*/
|
|
280
|
+
TEE_MIN = 18,
|
|
281
|
+
/**
|
|
282
|
+
* @generated from enum value: TEE_MAX = 19;
|
|
283
|
+
*/
|
|
284
|
+
TEE_MAX = 19
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Describes the enum inco.kms.lite.v1.SupportedScalarBinaryOp.
|
|
288
|
+
*/
|
|
289
|
+
export declare const SupportedScalarBinaryOpSchema: GenEnum<SupportedScalarBinaryOp>;
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file inco/sealingfetcher/v1/sealingfetcher.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_inco_sealingfetcher_v1_sealingfetcher: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* StartBackupRequest is the request type of StartBackup rpc.
|
|
9
|
+
* This request backs up all TEE keys (EOA, Network, and Storage keys).
|
|
10
|
+
*
|
|
11
|
+
* @generated from message inco.sealingfetcher.v1.StartBackupRequest
|
|
12
|
+
*/
|
|
13
|
+
export type StartBackupRequest = Message<"inco.sealingfetcher.v1.StartBackupRequest"> & {
|
|
14
|
+
/**
|
|
15
|
+
* The Sealing Provider to backup the TEE keys to.
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: inco.sealingfetcher.v1.RATlsServer sealing_provider = 1;
|
|
18
|
+
*/
|
|
19
|
+
sealingProvider?: RATlsServer | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The TEE keys to backup. All three keys (EOA, Network, and Storage) should be provided.
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: inco.sealingfetcher.v1.TeeKeys tee_keys = 2;
|
|
24
|
+
*/
|
|
25
|
+
teeKeys?: TeeKeys | undefined;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message inco.sealingfetcher.v1.StartBackupRequest.
|
|
29
|
+
* Use `create(StartBackupRequestSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export declare const StartBackupRequestSchema: GenMessage<StartBackupRequest>;
|
|
32
|
+
/**
|
|
33
|
+
* RATlsServer is the information on how to connect to the RA-TLS secured server.
|
|
34
|
+
*
|
|
35
|
+
* @generated from message inco.sealingfetcher.v1.RATlsServer
|
|
36
|
+
*/
|
|
37
|
+
export type RATlsServer = Message<"inco.sealingfetcher.v1.RATlsServer"> & {
|
|
38
|
+
/**
|
|
39
|
+
* tls_service_url is the URL of the TLS server that is a secured using RA-TLS.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: string tls_service_url = 1;
|
|
42
|
+
*/
|
|
43
|
+
tlsServiceUrl: string;
|
|
44
|
+
/**
|
|
45
|
+
* cert_service_url is the URL of the certificate service to get the certificate for the RA-TLS gRPC server.
|
|
46
|
+
* It is not necessarily a secure channel.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: string cert_service_url = 2;
|
|
49
|
+
*/
|
|
50
|
+
certServiceUrl: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message inco.sealingfetcher.v1.RATlsServer.
|
|
54
|
+
* Use `create(RATlsServerSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export declare const RATlsServerSchema: GenMessage<RATlsServer>;
|
|
57
|
+
/**
|
|
58
|
+
* StartBackupEOARequest is the request type of StartBackupEOA rpc.
|
|
59
|
+
* This request backs up only the EOA private key.
|
|
60
|
+
*
|
|
61
|
+
* @generated from message inco.sealingfetcher.v1.StartBackupEOARequest
|
|
62
|
+
*/
|
|
63
|
+
export type StartBackupEOARequest = Message<"inco.sealingfetcher.v1.StartBackupEOARequest"> & {
|
|
64
|
+
/**
|
|
65
|
+
* The Sealing Provider to backup the EOA key to.
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: inco.sealingfetcher.v1.RATlsServer sealing_provider = 1;
|
|
68
|
+
*/
|
|
69
|
+
sealingProvider?: RATlsServer | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* The EOA private key to backup.
|
|
72
|
+
* The private key is encoded as an unsigned 256-bit big-endian integer in
|
|
73
|
+
* the range [0, N-1], where N is the order of the curve.
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: bytes eoa_privkey = 2;
|
|
76
|
+
*/
|
|
77
|
+
eoaPrivkey: Uint8Array;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Describes the message inco.sealingfetcher.v1.StartBackupEOARequest.
|
|
81
|
+
* Use `create(StartBackupEOARequestSchema)` to create a new message.
|
|
82
|
+
*/
|
|
83
|
+
export declare const StartBackupEOARequestSchema: GenMessage<StartBackupEOARequest>;
|
|
84
|
+
/**
|
|
85
|
+
* StartBackupEOAResponse is the response type of StartBackupEOA rpc.
|
|
86
|
+
*
|
|
87
|
+
* @generated from message inco.sealingfetcher.v1.StartBackupEOAResponse
|
|
88
|
+
*/
|
|
89
|
+
export type StartBackupEOAResponse = Message<"inco.sealingfetcher.v1.StartBackupEOAResponse"> & {};
|
|
90
|
+
/**
|
|
91
|
+
* Describes the message inco.sealingfetcher.v1.StartBackupEOAResponse.
|
|
92
|
+
* Use `create(StartBackupEOAResponseSchema)` to create a new message.
|
|
93
|
+
*/
|
|
94
|
+
export declare const StartBackupEOAResponseSchema: GenMessage<StartBackupEOAResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* TeeKeys is a struct containing all the TEE keys, unsealed.
|
|
97
|
+
*
|
|
98
|
+
* @generated from message inco.sealingfetcher.v1.TeeKeys
|
|
99
|
+
*/
|
|
100
|
+
export type TeeKeys = Message<"inco.sealingfetcher.v1.TeeKeys"> & {
|
|
101
|
+
/**
|
|
102
|
+
* The EOA private key belonging to that TEE
|
|
103
|
+
* The private key is encoded as an unsigned 256-bit big-endian integer in
|
|
104
|
+
* the range [0, N-1], where N is the order of the curve.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: bytes eoa_privkey = 1;
|
|
107
|
+
*/
|
|
108
|
+
eoaPrivkey: Uint8Array;
|
|
109
|
+
/**
|
|
110
|
+
* The Network private key (X-Wing) that the TEE generated during the bootstrap process.
|
|
111
|
+
* This is a 32-byte seed used to derive the X-Wing keypair for input encryption.
|
|
112
|
+
* X-Wing is a post-quantum hybrid KEM combining ML-KEM-768 and X25519.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: bytes network_privkey = 2;
|
|
115
|
+
*/
|
|
116
|
+
networkPrivkey: Uint8Array;
|
|
117
|
+
/**
|
|
118
|
+
* The storage private key belonging to that TEE
|
|
119
|
+
* This is simply a 32-byte array, that can be used as-is as a 256-bit
|
|
120
|
+
* ChaCha20-Poly1305 secret key.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: bytes storage_privkey = 3;
|
|
123
|
+
*/
|
|
124
|
+
storagePrivkey: Uint8Array;
|
|
125
|
+
/**
|
|
126
|
+
* The 32-byte seed used for Lightning's RNG. Generated at bootstrap and
|
|
127
|
+
* distinct from the network private key.
|
|
128
|
+
*
|
|
129
|
+
* @generated from field: bytes rand_seed = 4;
|
|
130
|
+
*/
|
|
131
|
+
randSeed: Uint8Array;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Describes the message inco.sealingfetcher.v1.TeeKeys.
|
|
135
|
+
* Use `create(TeeKeysSchema)` to create a new message.
|
|
136
|
+
*/
|
|
137
|
+
export declare const TeeKeysSchema: GenMessage<TeeKeys>;
|
|
138
|
+
/**
|
|
139
|
+
* StartBackupResponse is the response type of StartBackup rpc.
|
|
140
|
+
*
|
|
141
|
+
* @generated from message inco.sealingfetcher.v1.StartBackupResponse
|
|
142
|
+
*/
|
|
143
|
+
export type StartBackupResponse = Message<"inco.sealingfetcher.v1.StartBackupResponse"> & {};
|
|
144
|
+
/**
|
|
145
|
+
* Describes the message inco.sealingfetcher.v1.StartBackupResponse.
|
|
146
|
+
* Use `create(StartBackupResponseSchema)` to create a new message.
|
|
147
|
+
*/
|
|
148
|
+
export declare const StartBackupResponseSchema: GenMessage<StartBackupResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* HasTEEKeysRequest is the request type of HasTEEKeys rpc.
|
|
151
|
+
*
|
|
152
|
+
* @generated from message inco.sealingfetcher.v1.HasTEEKeysRequest
|
|
153
|
+
*/
|
|
154
|
+
export type HasTEEKeysRequest = Message<"inco.sealingfetcher.v1.HasTEEKeysRequest"> & {};
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message inco.sealingfetcher.v1.HasTEEKeysRequest.
|
|
157
|
+
* Use `create(HasTEEKeysRequestSchema)` to create a new message.
|
|
158
|
+
*/
|
|
159
|
+
export declare const HasTEEKeysRequestSchema: GenMessage<HasTEEKeysRequest>;
|
|
160
|
+
/**
|
|
161
|
+
* HasTEEKeysResponse is the response type of HasTEEKeys rpc.
|
|
162
|
+
*
|
|
163
|
+
* @generated from message inco.sealingfetcher.v1.HasTEEKeysResponse
|
|
164
|
+
*/
|
|
165
|
+
export type HasTEEKeysResponse = Message<"inco.sealingfetcher.v1.HasTEEKeysResponse"> & {
|
|
166
|
+
/**
|
|
167
|
+
* True if the TEE keys are present in the sealing fetcher's memory.
|
|
168
|
+
*
|
|
169
|
+
* @generated from field: bool has_tee_keys = 1;
|
|
170
|
+
*/
|
|
171
|
+
hasTeeKeys: boolean;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Describes the message inco.sealingfetcher.v1.HasTEEKeysResponse.
|
|
175
|
+
* Use `create(HasTEEKeysResponseSchema)` to create a new message.
|
|
176
|
+
*/
|
|
177
|
+
export declare const HasTEEKeysResponseSchema: GenMessage<HasTEEKeysResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* GetTEEKeysRequest is the request type of GetTEEKeys rpc.
|
|
180
|
+
*
|
|
181
|
+
* @generated from message inco.sealingfetcher.v1.GetTEEKeysRequest
|
|
182
|
+
*/
|
|
183
|
+
export type GetTEEKeysRequest = Message<"inco.sealingfetcher.v1.GetTEEKeysRequest"> & {};
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message inco.sealingfetcher.v1.GetTEEKeysRequest.
|
|
186
|
+
* Use `create(GetTEEKeysRequestSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export declare const GetTEEKeysRequestSchema: GenMessage<GetTEEKeysRequest>;
|
|
189
|
+
/**
|
|
190
|
+
* GetTEEKeysResponse is the response type of GetTEEKeys rpc.
|
|
191
|
+
*
|
|
192
|
+
* @generated from message inco.sealingfetcher.v1.GetTEEKeysResponse
|
|
193
|
+
*/
|
|
194
|
+
export type GetTEEKeysResponse = Message<"inco.sealingfetcher.v1.GetTEEKeysResponse"> & {
|
|
195
|
+
/**
|
|
196
|
+
* The TEE keys.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: inco.sealingfetcher.v1.TeeKeys tee_keys = 1;
|
|
199
|
+
*/
|
|
200
|
+
teeKeys?: TeeKeys | undefined;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Describes the message inco.sealingfetcher.v1.GetTEEKeysResponse.
|
|
204
|
+
* Use `create(GetTEEKeysResponseSchema)` to create a new message.
|
|
205
|
+
*/
|
|
206
|
+
export declare const GetTEEKeysResponseSchema: GenMessage<GetTEEKeysResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* RecoverTEEKeysRequest is the request type of RecoverTEEKeys rpc.
|
|
209
|
+
*
|
|
210
|
+
* @generated from message inco.sealingfetcher.v1.RecoverTEEKeysRequest
|
|
211
|
+
*/
|
|
212
|
+
export type RecoverTEEKeysRequest = Message<"inco.sealingfetcher.v1.RecoverTEEKeysRequest"> & {
|
|
213
|
+
/**
|
|
214
|
+
* The Sealing Providers to recover the TEE keys from.
|
|
215
|
+
* The sealing fetcher will try each provider in order until one succeeds.
|
|
216
|
+
*
|
|
217
|
+
* @generated from field: repeated inco.sealingfetcher.v1.RATlsServer sealing_providers = 1;
|
|
218
|
+
*/
|
|
219
|
+
sealingProviders: RATlsServer[];
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Describes the message inco.sealingfetcher.v1.RecoverTEEKeysRequest.
|
|
223
|
+
* Use `create(RecoverTEEKeysRequestSchema)` to create a new message.
|
|
224
|
+
*/
|
|
225
|
+
export declare const RecoverTEEKeysRequestSchema: GenMessage<RecoverTEEKeysRequest>;
|
|
226
|
+
/**
|
|
227
|
+
* RecoverTEEKeysResponse is the response type of RecoverTEEKeys rpc.
|
|
228
|
+
*
|
|
229
|
+
* @generated from message inco.sealingfetcher.v1.RecoverTEEKeysResponse
|
|
230
|
+
*/
|
|
231
|
+
export type RecoverTEEKeysResponse = Message<"inco.sealingfetcher.v1.RecoverTEEKeysResponse"> & {
|
|
232
|
+
/**
|
|
233
|
+
* The TEE keys.
|
|
234
|
+
*
|
|
235
|
+
* @generated from field: inco.sealingfetcher.v1.TeeKeys tee_keys = 1;
|
|
236
|
+
*/
|
|
237
|
+
teeKeys?: TeeKeys | undefined;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* Describes the message inco.sealingfetcher.v1.RecoverTEEKeysResponse.
|
|
241
|
+
* Use `create(RecoverTEEKeysResponseSchema)` to create a new message.
|
|
242
|
+
*/
|
|
243
|
+
export declare const RecoverTEEKeysResponseSchema: GenMessage<RecoverTEEKeysResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* RecoverEOAKeyRequest is the request type of RecoverEOAKey rpc.
|
|
246
|
+
*
|
|
247
|
+
* @generated from message inco.sealingfetcher.v1.RecoverEOAKeyRequest
|
|
248
|
+
*/
|
|
249
|
+
export type RecoverEOAKeyRequest = Message<"inco.sealingfetcher.v1.RecoverEOAKeyRequest"> & {
|
|
250
|
+
/**
|
|
251
|
+
* The Sealing Providers to recover the EOA key from.
|
|
252
|
+
* The sealing fetcher will try each provider in order until one succeeds.
|
|
253
|
+
*
|
|
254
|
+
* @generated from field: repeated inco.sealingfetcher.v1.RATlsServer sealing_providers = 1;
|
|
255
|
+
*/
|
|
256
|
+
sealingProviders: RATlsServer[];
|
|
257
|
+
/**
|
|
258
|
+
* The EOA address (checksummed or lowercase, 0x-prefixed) to construct the filename.
|
|
259
|
+
* The filename will be addnode_eoa_{eoa_address_lowercase}.json
|
|
260
|
+
*
|
|
261
|
+
* @generated from field: string eoa = 2;
|
|
262
|
+
*/
|
|
263
|
+
eoa: string;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Describes the message inco.sealingfetcher.v1.RecoverEOAKeyRequest.
|
|
267
|
+
* Use `create(RecoverEOAKeyRequestSchema)` to create a new message.
|
|
268
|
+
*/
|
|
269
|
+
export declare const RecoverEOAKeyRequestSchema: GenMessage<RecoverEOAKeyRequest>;
|
|
270
|
+
/**
|
|
271
|
+
* RecoverEOAKeyResponse is the response type of RecoverEOAKey rpc.
|
|
272
|
+
*
|
|
273
|
+
* @generated from message inco.sealingfetcher.v1.RecoverEOAKeyResponse
|
|
274
|
+
*/
|
|
275
|
+
export type RecoverEOAKeyResponse = Message<"inco.sealingfetcher.v1.RecoverEOAKeyResponse"> & {
|
|
276
|
+
/**
|
|
277
|
+
* The EOA private key.
|
|
278
|
+
* The private key is encoded as an unsigned 256-bit big-endian integer in
|
|
279
|
+
* the range [0, N-1], where N is the order of the curve.
|
|
280
|
+
*
|
|
281
|
+
* @generated from field: bytes eoa_privkey = 1;
|
|
282
|
+
*/
|
|
283
|
+
eoaPrivkey: Uint8Array;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Describes the message inco.sealingfetcher.v1.RecoverEOAKeyResponse.
|
|
287
|
+
* Use `create(RecoverEOAKeyResponseSchema)` to create a new message.
|
|
288
|
+
*/
|
|
289
|
+
export declare const RecoverEOAKeyResponseSchema: GenMessage<RecoverEOAKeyResponse>;
|
|
290
|
+
/**
|
|
291
|
+
* SealingFetcherService contains all RPC endpoints for the Sealing fetcher.
|
|
292
|
+
*
|
|
293
|
+
* @generated from service inco.sealingfetcher.v1.SealingFetcherService
|
|
294
|
+
*/
|
|
295
|
+
export declare const SealingFetcherService: GenService<{
|
|
296
|
+
/**
|
|
297
|
+
* StartBackup starts the backup process for the sealing provider.
|
|
298
|
+
* This RPC backs up all TEE keys (EOA, Network, and Storage keys) to the sealing provider.
|
|
299
|
+
* It stores the keys in the sealing fetcher's memory and seals all three keys to the sealing provider.
|
|
300
|
+
* Use this during bootstrap and upgrade flows when all keys are available.
|
|
301
|
+
*
|
|
302
|
+
* @generated from rpc inco.sealingfetcher.v1.SealingFetcherService.StartBackup
|
|
303
|
+
*/
|
|
304
|
+
startBackup: {
|
|
305
|
+
methodKind: "unary";
|
|
306
|
+
input: typeof StartBackupRequestSchema;
|
|
307
|
+
output: typeof StartBackupResponseSchema;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* StartBackupEOA starts the backup process for only the EOA key.
|
|
311
|
+
* This RPC backs up only the EOA private key to the sealing provider, without backing up
|
|
312
|
+
* the Network or Storage keys. It stores the EOA key in the sealing provider.
|
|
313
|
+
* Use this during the Add Node flow when only the EOA key has been generated, before
|
|
314
|
+
* the Network and Storage keys are populated.
|
|
315
|
+
*
|
|
316
|
+
* @generated from rpc inco.sealingfetcher.v1.SealingFetcherService.StartBackupEOA
|
|
317
|
+
*/
|
|
318
|
+
startBackupEOA: {
|
|
319
|
+
methodKind: "unary";
|
|
320
|
+
input: typeof StartBackupEOARequestSchema;
|
|
321
|
+
output: typeof StartBackupEOAResponseSchema;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* HasTEEKeys checks if the TEE keys are present in the sealing fetcher's memory.
|
|
325
|
+
* If not, then RecoverTEEKeys should be called first
|
|
326
|
+
*
|
|
327
|
+
* @generated from rpc inco.sealingfetcher.v1.SealingFetcherService.HasTEEKeys
|
|
328
|
+
*/
|
|
329
|
+
hasTEEKeys: {
|
|
330
|
+
methodKind: "unary";
|
|
331
|
+
input: typeof HasTEEKeysRequestSchema;
|
|
332
|
+
output: typeof HasTEEKeysResponseSchema;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* GetTEEKeys returns the set of network key, EOA key and storage key
|
|
336
|
+
* that the TEE can access.
|
|
337
|
+
* If the TEE keys are not present in the sealing fetcher's memory, then
|
|
338
|
+
* this rpc will return an error.
|
|
339
|
+
*
|
|
340
|
+
* @generated from rpc inco.sealingfetcher.v1.SealingFetcherService.GetTEEKeys
|
|
341
|
+
*/
|
|
342
|
+
getTEEKeys: {
|
|
343
|
+
methodKind: "unary";
|
|
344
|
+
input: typeof GetTEEKeysRequestSchema;
|
|
345
|
+
output: typeof GetTEEKeysResponseSchema;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* RecoverTEEKeys recovers the TEE keys from the sealed TEE keys, and stores
|
|
349
|
+
* them in the sealing fetcher's memory.
|
|
350
|
+
*
|
|
351
|
+
* @generated from rpc inco.sealingfetcher.v1.SealingFetcherService.RecoverTEEKeys
|
|
352
|
+
*/
|
|
353
|
+
recoverTEEKeys: {
|
|
354
|
+
methodKind: "unary";
|
|
355
|
+
input: typeof RecoverTEEKeysRequestSchema;
|
|
356
|
+
output: typeof RecoverTEEKeysResponseSchema;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* RecoverEOAKey recovers only the EOA private key from the sealing provider.
|
|
360
|
+
* This is used during the Add Node flow to retrieve the EOA key that was
|
|
361
|
+
* previously backed up via StartBackupEOA. The EOA key is stored with filename
|
|
362
|
+
* addnode_eoa_{eoa_address_lowercase}.json in the sealing provider.
|
|
363
|
+
*
|
|
364
|
+
* @generated from rpc inco.sealingfetcher.v1.SealingFetcherService.RecoverEOAKey
|
|
365
|
+
*/
|
|
366
|
+
recoverEOAKey: {
|
|
367
|
+
methodKind: "unary";
|
|
368
|
+
input: typeof RecoverEOAKeyRequestSchema;
|
|
369
|
+
output: typeof RecoverEOAKeyResponseSchema;
|
|
370
|
+
};
|
|
371
|
+
}>;
|