@inco/js 0.8.0-devnet-26 → 0.8.0-devnet-27
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/generated/es/inco/covalidator/compute/v1/server_pb.js +1 -1
- package/dist/cjs/generated/es/inco/covalidator/compute/v1/types_pb.js +1 -1
- package/dist/cjs/generated/es/inco/helioswrapper/v1/helioswrapper_pb.js +1 -1
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +1 -1
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.js +1 -1
- package/dist/cjs/generated/es/inco/sealingfetcher/v1/sealingfetcher_pb.js +1 -1
- package/dist/cjs/lite/lightning.d.ts +2 -2
- package/dist/cjs/lite/lightning.js +2 -2
- package/dist/cjs/lite/xwing.d.ts +2 -2
- package/dist/cjs/lite/xwing.js +2 -2
- package/dist/esm/generated/es/inco/covalidator/compute/v1/server_pb.js +1 -1
- package/dist/esm/generated/es/inco/covalidator/compute/v1/types_pb.js +1 -1
- package/dist/esm/generated/es/inco/helioswrapper/v1/helioswrapper_pb.js +1 -1
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +1 -1
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +1 -1
- package/dist/esm/generated/es/inco/sealingfetcher/v1/sealingfetcher_pb.js +1 -1
- package/dist/esm/lite/lightning.d.ts +2 -2
- package/dist/esm/lite/lightning.js +2 -2
- package/dist/esm/lite/xwing.d.ts +2 -2
- package/dist/esm/lite/xwing.js +2 -2
- package/dist/types/lite/lightning.d.ts +2 -2
- package/dist/types/lite/xwing.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file inco/covalidator/compute/v1/server.proto (package inco.covalidator.compute.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file inco/covalidator/compute/v1/types.proto (package inco.covalidator.compute.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file inco/helioswrapper/v1/helioswrapper.proto (package inco.helioswrapper.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file inco/kms/lite/v1/kms_service.proto (package inco.kms.lite.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file inco/kms/lite/v1/types.proto (package inco.kms.lite.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
3
3
|
// @generated from file inco/sealingfetcher/v1/sealingfetcher.proto (package inco.sealingfetcher.v1, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -66,7 +66,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
66
66
|
private getEncryptor;
|
|
67
67
|
/**
|
|
68
68
|
* Get the encryption scheme version used by this Lightning instance.
|
|
69
|
-
* Returns
|
|
69
|
+
* Returns the X-Wing encryption scheme identifier.
|
|
70
70
|
* This is a convenience method to get the encryption scheme used by this Lightning instance.
|
|
71
71
|
*/
|
|
72
72
|
getEncryptionScheme(): Promise<EncryptionScheme>;
|
|
@@ -129,7 +129,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
129
129
|
/** Returns a shallow copy of the deployment configuration this Lightning instance is bound to. */
|
|
130
130
|
get deployment(): T;
|
|
131
131
|
/**
|
|
132
|
-
* Encrypt a value using the network's public key (
|
|
132
|
+
* Encrypt a value using the network's public key (X-Wing).
|
|
133
133
|
* The encryption scheme is automatically detected based on the public key length.
|
|
134
134
|
*
|
|
135
135
|
* @param value a boolean or numeric value to encrypt
|
|
@@ -71,7 +71,7 @@ class Lightning {
|
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Get the encryption scheme version used by this Lightning instance.
|
|
74
|
-
* Returns
|
|
74
|
+
* Returns the X-Wing encryption scheme identifier.
|
|
75
75
|
* This is a convenience method to get the encryption scheme used by this Lightning instance.
|
|
76
76
|
*/
|
|
77
77
|
async getEncryptionScheme() {
|
|
@@ -225,7 +225,7 @@ class Lightning {
|
|
|
225
225
|
return { ...this._deployment };
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
|
-
* Encrypt a value using the network's public key (
|
|
228
|
+
* Encrypt a value using the network's public key (X-Wing).
|
|
229
229
|
* The encryption scheme is automatically detected based on the public key length.
|
|
230
230
|
*
|
|
231
231
|
* @param value a boolean or numeric value to encrypt
|
package/dist/cjs/lite/xwing.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export type XwingDecryptorArgs = {
|
|
|
97
97
|
/**
|
|
98
98
|
* Encrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
99
99
|
*
|
|
100
|
-
* Output format: encappedKey (
|
|
100
|
+
* Output format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
101
101
|
*
|
|
102
102
|
* @param pubKeyA - Recipient's public key
|
|
103
103
|
* @param msg - Message to encrypt
|
|
@@ -109,7 +109,7 @@ export declare function encrypt(pubKeyA: CryptoKey, msg: Uint8Array, aad?: Uint8
|
|
|
109
109
|
/**
|
|
110
110
|
* Decrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
111
111
|
*
|
|
112
|
-
* Input format: encappedKey (
|
|
112
|
+
* Input format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
113
113
|
*
|
|
114
114
|
* @param privKeyA - Recipient's private key
|
|
115
115
|
* @param encryptedData - Encrypted data (encappedKey || ciphertext)
|
package/dist/cjs/lite/xwing.js
CHANGED
|
@@ -171,7 +171,7 @@ async function encodeXwingPublicKey(publicKey) {
|
|
|
171
171
|
/**
|
|
172
172
|
* Encrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
173
173
|
*
|
|
174
|
-
* Output format: encappedKey (
|
|
174
|
+
* Output format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
175
175
|
*
|
|
176
176
|
* @param pubKeyA - Recipient's public key
|
|
177
177
|
* @param msg - Message to encrypt
|
|
@@ -203,7 +203,7 @@ async function encrypt(pubKeyA, msg, aad = new Uint8Array(0), info = new Uint8Ar
|
|
|
203
203
|
/**
|
|
204
204
|
* Decrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
205
205
|
*
|
|
206
|
-
* Input format: encappedKey (
|
|
206
|
+
* Input format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
207
207
|
*
|
|
208
208
|
* @param privKeyA - Recipient's private key
|
|
209
209
|
* @param encryptedData - Encrypted data (encappedKey || ciphertext)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file inco/covalidator/compute/v1/server.proto (package inco.covalidator.compute.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file inco/covalidator/compute/v1/types.proto (package inco.covalidator.compute.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file inco/helioswrapper/v1/helioswrapper.proto (package inco.helioswrapper.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file inco/kms/lite/v1/kms_service.proto (package inco.kms.lite.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file inco/kms/lite/v1/types.proto (package inco.kms.lite.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file inco/sealingfetcher/v1/sealingfetcher.proto (package inco.sealingfetcher.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -66,7 +66,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
66
66
|
private getEncryptor;
|
|
67
67
|
/**
|
|
68
68
|
* Get the encryption scheme version used by this Lightning instance.
|
|
69
|
-
* Returns
|
|
69
|
+
* Returns the X-Wing encryption scheme identifier.
|
|
70
70
|
* This is a convenience method to get the encryption scheme used by this Lightning instance.
|
|
71
71
|
*/
|
|
72
72
|
getEncryptionScheme(): Promise<EncryptionScheme>;
|
|
@@ -129,7 +129,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
129
129
|
/** Returns a shallow copy of the deployment configuration this Lightning instance is bound to. */
|
|
130
130
|
get deployment(): T;
|
|
131
131
|
/**
|
|
132
|
-
* Encrypt a value using the network's public key (
|
|
132
|
+
* Encrypt a value using the network's public key (X-Wing).
|
|
133
133
|
* The encryption scheme is automatically detected based on the public key length.
|
|
134
134
|
*
|
|
135
135
|
* @param value a boolean or numeric value to encrypt
|
|
@@ -68,7 +68,7 @@ export class Lightning {
|
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Get the encryption scheme version used by this Lightning instance.
|
|
71
|
-
* Returns
|
|
71
|
+
* Returns the X-Wing encryption scheme identifier.
|
|
72
72
|
* This is a convenience method to get the encryption scheme used by this Lightning instance.
|
|
73
73
|
*/
|
|
74
74
|
async getEncryptionScheme() {
|
|
@@ -222,7 +222,7 @@ export class Lightning {
|
|
|
222
222
|
return { ...this._deployment };
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* Encrypt a value using the network's public key (
|
|
225
|
+
* Encrypt a value using the network's public key (X-Wing).
|
|
226
226
|
* The encryption scheme is automatically detected based on the public key length.
|
|
227
227
|
*
|
|
228
228
|
* @param value a boolean or numeric value to encrypt
|
package/dist/esm/lite/xwing.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export type XwingDecryptorArgs = {
|
|
|
97
97
|
/**
|
|
98
98
|
* Encrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
99
99
|
*
|
|
100
|
-
* Output format: encappedKey (
|
|
100
|
+
* Output format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
101
101
|
*
|
|
102
102
|
* @param pubKeyA - Recipient's public key
|
|
103
103
|
* @param msg - Message to encrypt
|
|
@@ -109,7 +109,7 @@ export declare function encrypt(pubKeyA: CryptoKey, msg: Uint8Array, aad?: Uint8
|
|
|
109
109
|
/**
|
|
110
110
|
* Decrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
111
111
|
*
|
|
112
|
-
* Input format: encappedKey (
|
|
112
|
+
* Input format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
113
113
|
*
|
|
114
114
|
* @param privKeyA - Recipient's private key
|
|
115
115
|
* @param encryptedData - Encrypted data (encappedKey || ciphertext)
|
package/dist/esm/lite/xwing.js
CHANGED
|
@@ -156,7 +156,7 @@ export async function encodeXwingPublicKey(publicKey) {
|
|
|
156
156
|
/**
|
|
157
157
|
* Encrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
158
158
|
*
|
|
159
|
-
* Output format: encappedKey (
|
|
159
|
+
* Output format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
160
160
|
*
|
|
161
161
|
* @param pubKeyA - Recipient's public key
|
|
162
162
|
* @param msg - Message to encrypt
|
|
@@ -188,7 +188,7 @@ export async function encrypt(pubKeyA, msg, aad = new Uint8Array(0), info = new
|
|
|
188
188
|
/**
|
|
189
189
|
* Decrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
190
190
|
*
|
|
191
|
-
* Input format: encappedKey (
|
|
191
|
+
* Input format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
192
192
|
*
|
|
193
193
|
* @param privKeyA - Recipient's private key
|
|
194
194
|
* @param encryptedData - Encrypted data (encappedKey || ciphertext)
|
|
@@ -66,7 +66,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
66
66
|
private getEncryptor;
|
|
67
67
|
/**
|
|
68
68
|
* Get the encryption scheme version used by this Lightning instance.
|
|
69
|
-
* Returns
|
|
69
|
+
* Returns the X-Wing encryption scheme identifier.
|
|
70
70
|
* This is a convenience method to get the encryption scheme used by this Lightning instance.
|
|
71
71
|
*/
|
|
72
72
|
getEncryptionScheme(): Promise<EncryptionScheme>;
|
|
@@ -129,7 +129,7 @@ export declare class Lightning<T extends DeploymentSlice = DeploymentSlice> {
|
|
|
129
129
|
/** Returns a shallow copy of the deployment configuration this Lightning instance is bound to. */
|
|
130
130
|
get deployment(): T;
|
|
131
131
|
/**
|
|
132
|
-
* Encrypt a value using the network's public key (
|
|
132
|
+
* Encrypt a value using the network's public key (X-Wing).
|
|
133
133
|
* The encryption scheme is automatically detected based on the public key length.
|
|
134
134
|
*
|
|
135
135
|
* @param value a boolean or numeric value to encrypt
|
|
@@ -97,7 +97,7 @@ export type XwingDecryptorArgs = {
|
|
|
97
97
|
/**
|
|
98
98
|
* Encrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
99
99
|
*
|
|
100
|
-
* Output format: encappedKey (
|
|
100
|
+
* Output format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
101
101
|
*
|
|
102
102
|
* @param pubKeyA - Recipient's public key
|
|
103
103
|
* @param msg - Message to encrypt
|
|
@@ -109,7 +109,7 @@ export declare function encrypt(pubKeyA: CryptoKey, msg: Uint8Array, aad?: Uint8
|
|
|
109
109
|
/**
|
|
110
110
|
* Decrypt using X-Wing HPKE (RFC 9180) with ChaCha20-Poly1305 AEAD.
|
|
111
111
|
*
|
|
112
|
-
* Input format: encappedKey (
|
|
112
|
+
* Input format: encappedKey (1120 bytes) || ciphertext (variable length)
|
|
113
113
|
*
|
|
114
114
|
* @param privKeyA - Recipient's private key
|
|
115
115
|
* @param encryptedData - Encrypted data (encappedKey || ciphertext)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inco/js",
|
|
3
|
-
"version": "0.8.0-devnet-
|
|
3
|
+
"version": "0.8.0-devnet-27",
|
|
4
4
|
"repository": "https://github.com/Inco-fhevm/inco-monorepo",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@hpke/hybridkem-x-wing": "0.6.1",
|
|
89
89
|
"@hpke/core": "1.7.5",
|
|
90
90
|
"@hpke/chacha20poly1305": "1.7.1",
|
|
91
|
-
"effect": "3.
|
|
91
|
+
"effect": "3.21.0",
|
|
92
92
|
"sha3": "2.1.4",
|
|
93
93
|
"viem": "2.39.3"
|
|
94
94
|
},
|