@fhevm/sdk 1.0.0-alpha.6 → 1.0.0-alpha.7
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/_cjs/core/_version.js +1 -1
- package/_cjs/core/actions/base/{canReadPublicValue.js → canDecryptPublicValue.js} +3 -3
- package/_cjs/core/actions/base/canDecryptPublicValue.js.map +1 -0
- package/_cjs/core/actions/base/{canReadPublicValues.js → canDecryptPublicValues.js} +3 -3
- package/_cjs/core/actions/base/canDecryptPublicValues.js.map +1 -0
- package/_cjs/core/actions/base/{readPublicValue.js → decryptPublicValue.js} +4 -4
- package/_cjs/core/actions/base/decryptPublicValue.js.map +1 -0
- package/_cjs/core/actions/base/{readPublicValues.js → decryptPublicValues.js} +4 -4
- package/_cjs/core/actions/base/decryptPublicValues.js.map +1 -0
- package/_cjs/core/actions/base/{readPublicValuesWithSignatures.js → decryptPublicValuesWithSignatures.js} +4 -4
- package/_cjs/core/actions/base/decryptPublicValuesWithSignatures.js.map +1 -0
- package/_cjs/core/actions/base/index.js +11 -11
- package/_cjs/core/actions/base/index.js.map +1 -1
- package/_cjs/core/clients/decorators/base.js +6 -6
- package/_cjs/core/clients/decorators/base.js.map +1 -1
- package/_esm/core/_version.js +1 -1
- package/_esm/core/actions/base/{canReadPublicValue.js → canDecryptPublicValue.js} +2 -2
- package/_esm/core/actions/base/canDecryptPublicValue.js.map +1 -0
- package/_esm/core/actions/base/{canReadPublicValues.js → canDecryptPublicValues.js} +2 -2
- package/_esm/core/actions/base/canDecryptPublicValues.js.map +1 -0
- package/_esm/core/actions/base/{readPublicValue.js → decryptPublicValue.js} +3 -3
- package/_esm/core/actions/base/decryptPublicValue.js.map +1 -0
- package/_esm/core/actions/base/{readPublicValues.js → decryptPublicValues.js} +3 -3
- package/_esm/core/actions/base/decryptPublicValues.js.map +1 -0
- package/_esm/core/actions/base/{readPublicValuesWithSignatures.js → decryptPublicValuesWithSignatures.js} +3 -3
- package/_esm/core/actions/base/decryptPublicValuesWithSignatures.js.map +1 -0
- package/_esm/core/actions/base/index.js +5 -5
- package/_esm/core/actions/base/index.js.map +1 -1
- package/_esm/core/clients/decorators/base.js +6 -6
- package/_esm/core/clients/decorators/base.js.map +1 -1
- package/_types/core/actions/base/canDecryptPublicValue.d.ts +9 -0
- package/_types/core/actions/base/canDecryptPublicValue.d.ts.map +1 -0
- package/_types/core/actions/base/canDecryptPublicValues.d.ts +9 -0
- package/_types/core/actions/base/canDecryptPublicValues.d.ts.map +1 -0
- package/_types/core/actions/base/{readPublicValue.d.ts → decryptPublicValue.d.ts} +4 -4
- package/_types/core/actions/base/decryptPublicValue.d.ts.map +1 -0
- package/_types/core/actions/base/{readPublicValues.d.ts → decryptPublicValues.d.ts} +4 -4
- package/_types/core/actions/base/decryptPublicValues.d.ts.map +1 -0
- package/_types/core/actions/base/{readPublicValuesWithSignatures.d.ts → decryptPublicValuesWithSignatures.d.ts} +4 -4
- package/_types/core/actions/base/decryptPublicValuesWithSignatures.d.ts.map +1 -0
- package/_types/core/actions/base/index.d.ts +5 -5
- package/_types/core/actions/base/index.d.ts.map +1 -1
- package/_types/core/clients/decorators/base.d.ts +16 -16
- package/_types/core/clients/decorators/base.d.ts.map +1 -1
- package/core/_version.ts +1 -1
- package/core/actions/base/{canReadPublicValue.ts → canDecryptPublicValue.ts} +5 -5
- package/core/actions/base/{canReadPublicValues.ts → canDecryptPublicValues.ts} +5 -5
- package/core/actions/base/{readPublicValue.ts → decryptPublicValue.ts} +6 -6
- package/core/actions/base/{readPublicValues.ts → decryptPublicValues.ts} +6 -6
- package/core/actions/base/{readPublicValuesWithSignatures.ts → decryptPublicValuesWithSignatures.ts} +6 -6
- package/core/actions/base/index.ts +21 -17
- package/core/clients/decorators/base.ts +30 -30
- package/package.json +1 -1
- package/_cjs/core/actions/base/canReadPublicValue.js.map +0 -1
- package/_cjs/core/actions/base/canReadPublicValues.js.map +0 -1
- package/_cjs/core/actions/base/readPublicValue.js.map +0 -1
- package/_cjs/core/actions/base/readPublicValues.js.map +0 -1
- package/_cjs/core/actions/base/readPublicValuesWithSignatures.js.map +0 -1
- package/_esm/core/actions/base/canReadPublicValue.js.map +0 -1
- package/_esm/core/actions/base/canReadPublicValues.js.map +0 -1
- package/_esm/core/actions/base/readPublicValue.js.map +0 -1
- package/_esm/core/actions/base/readPublicValues.js.map +0 -1
- package/_esm/core/actions/base/readPublicValuesWithSignatures.js.map +0 -1
- package/_types/core/actions/base/canReadPublicValue.d.ts +0 -9
- package/_types/core/actions/base/canReadPublicValue.d.ts.map +0 -1
- package/_types/core/actions/base/canReadPublicValues.d.ts +0 -9
- package/_types/core/actions/base/canReadPublicValues.d.ts.map +0 -1
- package/_types/core/actions/base/readPublicValue.d.ts.map +0 -1
- package/_types/core/actions/base/readPublicValues.d.ts.map +0 -1
- package/_types/core/actions/base/readPublicValuesWithSignatures.d.ts.map +0 -1
package/_cjs/core/_version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sdkName = exports.version = void 0;
|
|
4
|
-
exports.version = '1.0.0-alpha.
|
|
4
|
+
exports.version = '1.0.0-alpha.7';
|
|
5
5
|
exports.sdkName = '@fhevm/sdk';
|
|
6
6
|
//# sourceMappingURL=_version.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.canDecryptPublicValue = canDecryptPublicValue;
|
|
4
4
|
const isAllowedForDecryption_js_1 = require("../../host-contracts/isAllowedForDecryption.js");
|
|
5
5
|
const FhevmHandle_js_1 = require("../../handle/FhevmHandle.js");
|
|
6
|
-
async function
|
|
6
|
+
async function canDecryptPublicValue(fhevm, parameters) {
|
|
7
7
|
const results = await (0, isAllowedForDecryption_js_1.isAllowedForDecryption)(fhevm, {
|
|
8
8
|
address: fhevm.chain.fhevm.contracts.acl.address,
|
|
9
9
|
handles: [(0, FhevmHandle_js_1.toFhevmHandle)(parameters.encryptedValue)],
|
|
10
10
|
});
|
|
11
11
|
return results[0] === true;
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=canDecryptPublicValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canDecryptPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canDecryptPublicValue.ts"],"names":[],"mappings":";;AAiBA,sDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,qBAAqB,CACzC,KAAwB,EACxB,UAA2C;IAE3C,MAAM,OAAO,GAAG,MAAM,IAAA,kDAAsB,EAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.canDecryptPublicValues = canDecryptPublicValues;
|
|
4
4
|
const isAllowedForDecryption_js_1 = require("../../host-contracts/isAllowedForDecryption.js");
|
|
5
5
|
const FhevmHandle_js_1 = require("../../handle/FhevmHandle.js");
|
|
6
|
-
async function
|
|
6
|
+
async function canDecryptPublicValues(fhevm, parameters) {
|
|
7
7
|
const handles = parameters.encryptedValues.map(FhevmHandle_js_1.toFhevmHandle);
|
|
8
8
|
return (0, isAllowedForDecryption_js_1.isAllowedForDecryption)(fhevm, {
|
|
9
9
|
address: fhevm.chain.fhevm.contracts.acl.address,
|
|
10
10
|
handles,
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=canDecryptPublicValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canDecryptPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canDecryptPublicValues.ts"],"names":[],"mappings":";;AAiBA,wDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,sBAAsB,CAC1C,KAAwB,EACxB,UAA4C;IAE5C,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,OAAO,IAAA,kDAAsB,EAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.decryptPublicValue = decryptPublicValue;
|
|
4
4
|
const FhevmHandle_js_1 = require("../../handle/FhevmHandle.js");
|
|
5
5
|
const publicDecrypt_js_1 = require("../../kms/publicDecrypt.js");
|
|
6
6
|
const ClearValue_js_1 = require("../../handle/ClearValue.js");
|
|
7
|
-
async function
|
|
7
|
+
async function decryptPublicValue(fhevm, parameters) {
|
|
8
8
|
const handle = (0, FhevmHandle_js_1.toFhevmHandle)(parameters.encryptedValue);
|
|
9
|
-
const originToken = Symbol('
|
|
9
|
+
const originToken = Symbol('decryptPublicValues');
|
|
10
10
|
const res = await (0, publicDecrypt_js_1.publicDecrypt)(fhevm, { ...parameters, handles: [handle], originToken });
|
|
11
11
|
return (0, ClearValue_js_1.clearValueToTypedValue)(res.orderedClearValues[0], originToken);
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=decryptPublicValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValue.ts"],"names":[],"mappings":";;AAoBA,gDAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,MAAM,GAAG,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,IAAA,sCAAsB,EAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.decryptPublicValues = decryptPublicValues;
|
|
4
4
|
const FhevmHandle_js_1 = require("../../handle/FhevmHandle.js");
|
|
5
5
|
const publicDecrypt_js_1 = require("../../kms/publicDecrypt.js");
|
|
6
6
|
const ClearValue_js_1 = require("../../handle/ClearValue.js");
|
|
7
|
-
async function
|
|
7
|
+
async function decryptPublicValues(fhevm, parameters) {
|
|
8
8
|
const handles = parameters.encryptedValues.map(FhevmHandle_js_1.toFhevmHandle);
|
|
9
|
-
const originToken = Symbol('
|
|
9
|
+
const originToken = Symbol('decryptPublicValues');
|
|
10
10
|
const res = await (0, publicDecrypt_js_1.publicDecrypt)(fhevm, { ...parameters, handles, originToken });
|
|
11
11
|
return res.orderedClearValues.map((cv) => (0, ClearValue_js_1.clearValueToTypedValue)(cv, originToken));
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=decryptPublicValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValues.ts"],"names":[],"mappings":";;AAoBA,kDAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.decryptPublicValuesWithSignatures = decryptPublicValuesWithSignatures;
|
|
4
4
|
const FhevmHandle_js_1 = require("../../handle/FhevmHandle.js");
|
|
5
5
|
const publicDecrypt_js_1 = require("../../kms/publicDecrypt.js");
|
|
6
6
|
const ClearValue_js_1 = require("../../handle/ClearValue.js");
|
|
7
|
-
async function
|
|
7
|
+
async function decryptPublicValuesWithSignatures(fhevm, parameters) {
|
|
8
8
|
const handles = parameters.encryptedValues.map(FhevmHandle_js_1.toFhevmHandle);
|
|
9
|
-
const originToken = Symbol('
|
|
9
|
+
const originToken = Symbol('decryptPublicValues');
|
|
10
10
|
const res = await (0, publicDecrypt_js_1.publicDecrypt)(fhevm, { ...parameters, handles, originToken });
|
|
11
11
|
const typedValues = res.orderedClearValues.map((cv) => (0, ClearValue_js_1.clearValueToTypedValue)(cv, originToken));
|
|
12
12
|
return Object.freeze({
|
|
@@ -18,4 +18,4 @@ async function readPublicValuesWithSignatures(fhevm, parameters) {
|
|
|
18
18
|
}),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
//# sourceMappingURL=
|
|
21
|
+
//# sourceMappingURL=decryptPublicValuesWithSignatures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValuesWithSignatures.ts"],"names":[],"mappings":";;AA6BA,8EAuBC;AA7CD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAoB7D,KAAK,UAAU,iCAAiC,CACrD,KAAwB,EACxB,UAAuD;IAEvD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.verifyHandlesCoprocessorSignatures = exports.fetchKmsSignedcryptedShares = exports.verifyZkProofCoprocessorSignatures = exports.fetchEncryptedValues = exports.fetchVerifiedInputProof = exports.verifyInputProof = exports.readCoprocessorSignersContext = exports.createVerifiedInputProofFromRawBytes = exports.
|
|
3
|
+
exports.verifyHandlesCoprocessorSignatures = exports.fetchKmsSignedcryptedShares = exports.verifyZkProofCoprocessorSignatures = exports.fetchEncryptedValues = exports.fetchVerifiedInputProof = exports.verifyInputProof = exports.readCoprocessorSignersContext = exports.createVerifiedInputProofFromRawBytes = exports.canDecryptPublicValues = exports.canDecryptPublicValue = exports.decryptPublicValuesWithSignatures = exports.decryptPublicValues = exports.decryptPublicValue = exports.readKmsSignersContext = void 0;
|
|
4
4
|
var readKmsSignersContext_js_1 = require("./readKmsSignersContext.js");
|
|
5
5
|
Object.defineProperty(exports, "readKmsSignersContext", { enumerable: true, get: function () { return readKmsSignersContext_js_1.readKmsSignersContext; } });
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
var
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
-
var
|
|
13
|
-
Object.defineProperty(exports, "
|
|
14
|
-
var
|
|
15
|
-
Object.defineProperty(exports, "
|
|
6
|
+
var decryptPublicValue_js_1 = require("./decryptPublicValue.js");
|
|
7
|
+
Object.defineProperty(exports, "decryptPublicValue", { enumerable: true, get: function () { return decryptPublicValue_js_1.decryptPublicValue; } });
|
|
8
|
+
var decryptPublicValues_js_1 = require("./decryptPublicValues.js");
|
|
9
|
+
Object.defineProperty(exports, "decryptPublicValues", { enumerable: true, get: function () { return decryptPublicValues_js_1.decryptPublicValues; } });
|
|
10
|
+
var decryptPublicValuesWithSignatures_js_1 = require("./decryptPublicValuesWithSignatures.js");
|
|
11
|
+
Object.defineProperty(exports, "decryptPublicValuesWithSignatures", { enumerable: true, get: function () { return decryptPublicValuesWithSignatures_js_1.decryptPublicValuesWithSignatures; } });
|
|
12
|
+
var canDecryptPublicValue_js_1 = require("./canDecryptPublicValue.js");
|
|
13
|
+
Object.defineProperty(exports, "canDecryptPublicValue", { enumerable: true, get: function () { return canDecryptPublicValue_js_1.canDecryptPublicValue; } });
|
|
14
|
+
var canDecryptPublicValues_js_1 = require("./canDecryptPublicValues.js");
|
|
15
|
+
Object.defineProperty(exports, "canDecryptPublicValues", { enumerable: true, get: function () { return canDecryptPublicValues_js_1.canDecryptPublicValues; } });
|
|
16
16
|
var createVerifiedInputProofFromRawBytes_js_1 = require("./createVerifiedInputProofFromRawBytes.js");
|
|
17
17
|
Object.defineProperty(exports, "createVerifiedInputProofFromRawBytes", { enumerable: true, get: function () { return createVerifiedInputProofFromRawBytes_js_1.createVerifiedInputProofFromRawBytes; } });
|
|
18
18
|
var readCoprocessorSignersContext_js_1 = require("./readCoprocessorSignersContext.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/actions/base/index.ts"],"names":[],"mappings":";;;AAAA,uEAAyG;AAA1D,iIAAA,qBAAqB,OAAA;AAEpE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/actions/base/index.ts"],"names":[],"mappings":";;;AAAA,uEAAyG;AAA1D,iIAAA,qBAAqB,OAAA;AAEpE,iEAIiC;AAD/B,2HAAA,kBAAkB,OAAA;AAKpB,mEAIkC;AADhC,6HAAA,mBAAmB,OAAA;AAGrB,+FAIgD;AAD9C,yJAAA,iCAAiC,OAAA;AAGnC,uEAIoC;AADlC,iIAAA,qBAAqB,OAAA;AAGvB,yEAIqC;AADnC,mIAAA,sBAAsB,OAAA;AAGxB,qGAImD;AADjD,+JAAA,oCAAoC,OAAA;AAGtC,uFAG4C;AAD1C,iJAAA,6BAA6B,OAAA;AAG/B,6DAI+B;AAD7B,uHAAA,gBAAgB,OAAA;AAGlB,2EAIsC;AADpC,qIAAA,uBAAuB,OAAA;AAGzB,qEAImC;AADjC,+HAAA,oBAAoB,OAAA;AAGtB,iGAGiD;AAD/C,2JAAA,kCAAkC,OAAA;AAGpC,mFAK0C;AADxC,6IAAA,2BAA2B,OAAA;AAG7B,iGAGiD;AAD/C,2JAAA,kCAAkC,OAAA"}
|
|
@@ -8,14 +8,14 @@ const fetchFheEncryptionKeyBytes_js_1 = require("../../actions/chain/fetchFheEnc
|
|
|
8
8
|
const serializeTransportKeyPair_js_1 = require("../../actions/chain/serializeTransportKeyPair.js");
|
|
9
9
|
const serializeSignedDecryptionPermit_js_1 = require("../../actions/chain/serializeSignedDecryptionPermit.js");
|
|
10
10
|
const parseSignedDecryptionPermit_js_1 = require("../../actions/chain/parseSignedDecryptionPermit.js");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const decryptPublicValue_js_1 = require("../../actions/base/decryptPublicValue.js");
|
|
12
|
+
const decryptPublicValues_js_1 = require("../../actions/base/decryptPublicValues.js");
|
|
13
|
+
const decryptPublicValuesWithSignatures_js_1 = require("../../actions/base/decryptPublicValuesWithSignatures.js");
|
|
14
14
|
function _baseActions(fhevm) {
|
|
15
15
|
return {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
decryptPublicValue: (parameters) => (0, decryptPublicValue_js_1.decryptPublicValue)(fhevm, parameters),
|
|
17
|
+
decryptPublicValues: (parameters) => (0, decryptPublicValues_js_1.decryptPublicValues)(fhevm, parameters),
|
|
18
|
+
decryptPublicValuesWithSignatures: (parameters) => (0, decryptPublicValuesWithSignatures_js_1.decryptPublicValuesWithSignatures)(fhevm, parameters),
|
|
19
19
|
signDecryptionPermit: ((parameters) => (0, signDecryptionPermit_js_1.signDecryptionPermit)(fhevm, parameters)),
|
|
20
20
|
parseTransportKeyPair: (parameters) => (0, parseTransportKeyPair_js_1.parseTransportKeyPair)(fhevm, parameters),
|
|
21
21
|
serializeTransportKeyPair: (parameters) => (0, serializeTransportKeyPair_js_1.serializeTransportKeyPair)(fhevm, parameters),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../core/clients/decorators/base.ts"],"names":[],"mappings":";;AAmMA,kCAOC;AAhMD,iEAAuE;AACvE,wFAIoD;AACpD,2FAIsD;AACtD,qGAI2D;AAC3D,mGAA6F;AAC7F,+GAIgE;AAChE,uGAI4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../core/clients/decorators/base.ts"],"names":[],"mappings":";;AAmMA,kCAOC;AAhMD,iEAAuE;AACvE,wFAIoD;AACpD,2FAIsD;AACtD,qGAI2D;AAC3D,mGAA6F;AAC7F,+GAIgE;AAChE,uGAI4D;AAC5D,oFAIkD;AAClD,sFAImD;AACnD,kHAIiE;AA0HjE,SAAS,YAAY,CAAC,KAAwB;IAC5C,OAAO;QACL,kBAAkB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,0CAAkB,EAAC,KAAK,EAAE,UAAU,CAAC;QACzE,mBAAmB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,4CAAmB,EAAC,KAAK,EAAE,UAAU,CAAC;QAC3E,iCAAiC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,wEAAiC,EAAC,KAAK,EAAE,UAAU,CAAC;QAGvG,oBAAoB,EAAE,CAAC,CAAC,UAAwF,EAAE,EAAE,CAClH,IAAA,8CAAoB,EAClB,KAAK,EACL,UAAgD,CACjD,CAAwC;QAC3C,qBAAqB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,gDAAqB,EAAC,KAAK,EAAE,UAAU,CAAC;QAC/E,yBAAyB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,wDAAyB,EAAC,KAAK,EAAE,UAAU,CAAC;QACvF,+BAA+B,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,oEAA+B,EAAC,KAAK,EAAE,UAAU,CAAC;QACnG,2BAA2B,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,4DAA2B,EAAC,KAAK,EAAE,UAAU,CAAC;QAC3F,0BAA0B,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,0DAA0B,EAAC,KAAK,EAAE,UAAU,CAAC;KAC1F,CAAC;AACJ,CAAC;AAID,SAAgB,WAAW,CAAC,KAA4B;IACtD,IAAA,wCAAuB,EAAC,KAAK,CAAC,CAAC;IAC/B,OAAO;QACL,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC;QAC5B,OAAO,EAAE,KAAK,CAAC,OAAO;KAEvB,CAAC;AACJ,CAAC"}
|
package/_esm/core/_version.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isAllowedForDecryption } from '../../host-contracts/isAllowedForDecryption.js';
|
|
2
2
|
import { toFhevmHandle } from '../../handle/FhevmHandle.js';
|
|
3
3
|
////////////////////////////////////////////////////////////////////////////////
|
|
4
|
-
export async function
|
|
4
|
+
export async function canDecryptPublicValue(fhevm, parameters) {
|
|
5
5
|
const results = await isAllowedForDecryption(fhevm, {
|
|
6
6
|
address: fhevm.chain.fhevm.contracts.acl.address,
|
|
7
7
|
handles: [toFhevmHandle(parameters.encryptedValue)],
|
|
8
8
|
});
|
|
9
9
|
return results[0] === true;
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=canDecryptPublicValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canDecryptPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canDecryptPublicValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,KAAwB,EACxB,UAA2C;IAE3C,MAAM,OAAO,GAAG,MAAM,sBAAsB,CAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isAllowedForDecryption } from '../../host-contracts/isAllowedForDecryption.js';
|
|
2
2
|
import { toFhevmHandle } from '../../handle/FhevmHandle.js';
|
|
3
3
|
////////////////////////////////////////////////////////////////////////////////
|
|
4
|
-
export async function
|
|
4
|
+
export async function canDecryptPublicValues(fhevm, parameters) {
|
|
5
5
|
const handles = parameters.encryptedValues.map(toFhevmHandle);
|
|
6
6
|
return isAllowedForDecryption(fhevm, {
|
|
7
7
|
address: fhevm.chain.fhevm.contracts.acl.address,
|
|
8
8
|
handles,
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=canDecryptPublicValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canDecryptPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canDecryptPublicValues.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,KAAwB,EACxB,UAA4C;IAE5C,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,OAAO,sBAAsB,CAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { toFhevmHandle } from '../../handle/FhevmHandle.js';
|
|
|
2
2
|
import { publicDecrypt as publicDecrypt_ } from '../../kms/publicDecrypt.js';
|
|
3
3
|
import { clearValueToTypedValue } from '../../handle/ClearValue.js';
|
|
4
4
|
////////////////////////////////////////////////////////////////////////////////
|
|
5
|
-
export async function
|
|
5
|
+
export async function decryptPublicValue(fhevm, parameters) {
|
|
6
6
|
const handle = toFhevmHandle(parameters.encryptedValue);
|
|
7
|
-
const originToken = Symbol('
|
|
7
|
+
const originToken = Symbol('decryptPublicValues');
|
|
8
8
|
const res = await publicDecrypt_(fhevm, { ...parameters, handles: [handle], originToken });
|
|
9
9
|
return clearValueToTypedValue(res.orderedClearValues[0], originToken);
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=decryptPublicValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { toFhevmHandle } from '../../handle/FhevmHandle.js';
|
|
|
2
2
|
import { publicDecrypt as publicDecrypt_ } from '../../kms/publicDecrypt.js';
|
|
3
3
|
import { clearValueToTypedValue } from '../../handle/ClearValue.js';
|
|
4
4
|
////////////////////////////////////////////////////////////////////////////////
|
|
5
|
-
export async function
|
|
5
|
+
export async function decryptPublicValues(fhevm, parameters) {
|
|
6
6
|
const handles = parameters.encryptedValues.map(toFhevmHandle);
|
|
7
|
-
const originToken = Symbol('
|
|
7
|
+
const originToken = Symbol('decryptPublicValues');
|
|
8
8
|
const res = await publicDecrypt_(fhevm, { ...parameters, handles, originToken });
|
|
9
9
|
return res.orderedClearValues.map((cv) => clearValueToTypedValue(cv, originToken));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=decryptPublicValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValues.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -2,9 +2,9 @@ import { toFhevmHandle } from '../../handle/FhevmHandle.js';
|
|
|
2
2
|
import { publicDecrypt as publicDecrypt_ } from '../../kms/publicDecrypt.js';
|
|
3
3
|
import { clearValueToTypedValue } from '../../handle/ClearValue.js';
|
|
4
4
|
////////////////////////////////////////////////////////////////////////////////
|
|
5
|
-
export async function
|
|
5
|
+
export async function decryptPublicValuesWithSignatures(fhevm, parameters) {
|
|
6
6
|
const handles = parameters.encryptedValues.map(toFhevmHandle);
|
|
7
|
-
const originToken = Symbol('
|
|
7
|
+
const originToken = Symbol('decryptPublicValues');
|
|
8
8
|
const res = await publicDecrypt_(fhevm, { ...parameters, handles, originToken });
|
|
9
9
|
const typedValues = res.orderedClearValues.map((cv) => clearValueToTypedValue(cv, originToken));
|
|
10
10
|
return Object.freeze({
|
|
@@ -16,4 +16,4 @@ export async function readPublicValuesWithSignatures(fhevm, parameters) {
|
|
|
16
16
|
}),
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=decryptPublicValuesWithSignatures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAkBpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACrD,KAAwB,EACxB,UAAuD;IAEvD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { readKmsSignersContext } from './readKmsSignersContext.js';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
2
|
+
export { decryptPublicValue, } from './decryptPublicValue.js';
|
|
3
|
+
export { decryptPublicValues, } from './decryptPublicValues.js';
|
|
4
|
+
export { decryptPublicValuesWithSignatures, } from './decryptPublicValuesWithSignatures.js';
|
|
5
|
+
export { canDecryptPublicValue, } from './canDecryptPublicValue.js';
|
|
6
|
+
export { canDecryptPublicValues, } from './canDecryptPublicValues.js';
|
|
7
7
|
export { createVerifiedInputProofFromRawBytes, } from './createVerifiedInputProofFromRawBytes.js';
|
|
8
8
|
export { readCoprocessorSignersContext, } from './readCoprocessorSignersContext.js';
|
|
9
9
|
export { verifyInputProof, } from './verifyInputProof.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/actions/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzG,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../core/actions/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzG,OAAO,EAGL,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAGL,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAGL,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAGL,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAGL,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAGL,oCAAoC,GACrC,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAEL,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAGL,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAGL,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAGL,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAEL,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAIL,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,kCAAkC,GACnC,MAAM,yCAAyC,CAAC"}
|
|
@@ -5,15 +5,15 @@ import { fetchFheEncryptionKeyBytes, } from '../../actions/chain/fetchFheEncrypt
|
|
|
5
5
|
import { serializeTransportKeyPair } from '../../actions/chain/serializeTransportKeyPair.js';
|
|
6
6
|
import { serializeSignedDecryptionPermit, } from '../../actions/chain/serializeSignedDecryptionPermit.js';
|
|
7
7
|
import { parseSignedDecryptionPermit, } from '../../actions/chain/parseSignedDecryptionPermit.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { decryptPublicValue, } from '../../actions/base/decryptPublicValue.js';
|
|
9
|
+
import { decryptPublicValues, } from '../../actions/base/decryptPublicValues.js';
|
|
10
|
+
import { decryptPublicValuesWithSignatures, } from '../../actions/base/decryptPublicValuesWithSignatures.js';
|
|
11
11
|
////////////////////////////////////////////////////////////////////////////////
|
|
12
12
|
function _baseActions(fhevm) {
|
|
13
13
|
return {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
decryptPublicValue: (parameters) => decryptPublicValue(fhevm, parameters),
|
|
15
|
+
decryptPublicValues: (parameters) => decryptPublicValues(fhevm, parameters),
|
|
16
|
+
decryptPublicValuesWithSignatures: (parameters) => decryptPublicValuesWithSignatures(fhevm, parameters),
|
|
17
17
|
// Preserve the original action overloads on the decorated client API.
|
|
18
18
|
// Runtime behavior is unchanged: this is a direct pass-through wrapper.
|
|
19
19
|
signDecryptionPermit: ((parameters) => signDecryptionPermit(fhevm, parameters)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../core/clients/decorators/base.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,oBAAoB,GAGrB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,qBAAqB,GAGtB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,0BAA0B,GAG3B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EACL,+BAA+B,GAGhC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,2BAA2B,GAG5B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../core/clients/decorators/base.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,oBAAoB,GAGrB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,qBAAqB,GAGtB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,0BAA0B,GAG3B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EACL,+BAA+B,GAGhC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,2BAA2B,GAG5B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,kBAAkB,GAGnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,GAGpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,iCAAiC,GAGlC,MAAM,yDAAyD,CAAC;AAwHjE,gFAAgF;AAEhF,SAAS,YAAY,CAAC,KAAwB;IAC5C,OAAO;QACL,kBAAkB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,EAAE,UAAU,CAAC;QACzE,mBAAmB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC;QAC3E,iCAAiC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,EAAE,UAAU,CAAC;QACvG,sEAAsE;QACtE,wEAAwE;QACxE,oBAAoB,EAAE,CAAC,CAAC,UAAwF,EAAE,EAAE,CAClH,oBAAoB,CAClB,KAAK,EACL,UAAgD,CACjD,CAAwC;QAC3C,qBAAqB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,EAAE,UAAU,CAAC;QAC/E,yBAAyB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,EAAE,UAAU,CAAC;QACvF,+BAA+B,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,EAAE,UAAU,CAAC;QACnG,2BAA2B,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,EAAE,UAAU,CAAC;QAC3F,0BAA0B,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,EAAE,UAAU,CAAC;KAC1F,CAAC;AACJ,CAAC;AAED,gFAAgF;AAEhF,MAAM,UAAU,WAAW,CAAC,KAA4B;IACtD,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC/B,OAAO;QACL,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC;QAC5B,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,4HAA4H;KAC7H,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
2
|
+
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
3
|
+
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
|
+
export type CanDecryptPublicValueParameters = {
|
|
5
|
+
readonly encryptedValue: EncryptedValueLike;
|
|
6
|
+
};
|
|
7
|
+
export type CanDecryptPublicValueReturnType = boolean;
|
|
8
|
+
export declare function canDecryptPublicValue(fhevm: Fhevm<FhevmChain>, parameters: CanDecryptPublicValueParameters): Promise<CanDecryptPublicValueReturnType>;
|
|
9
|
+
//# sourceMappingURL=canDecryptPublicValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canDecryptPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canDecryptPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,OAAO,CAAC;AAItD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,+BAA+B,GAC1C,OAAO,CAAC,+BAA+B,CAAC,CAO1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
2
|
+
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
|
+
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
4
|
+
export type CanDecryptPublicValuesParameters = {
|
|
5
|
+
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
6
|
+
};
|
|
7
|
+
export type CanDecryptPublicValuesReturnType = readonly boolean[];
|
|
8
|
+
export declare function canDecryptPublicValues(fhevm: Fhevm<FhevmChain>, parameters: CanDecryptPublicValuesParameters): Promise<CanDecryptPublicValuesReturnType>;
|
|
9
|
+
//# sourceMappingURL=canDecryptPublicValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canDecryptPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canDecryptPublicValues.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMxE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,SAAS,OAAO,EAAE,CAAC;AAIlE,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,gCAAgC,GAC3C,OAAO,CAAC,gCAAgC,CAAC,CAO3C"}
|
|
@@ -3,10 +3,10 @@ import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
|
3
3
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
4
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
5
5
|
import type { TypedValue } from '../../types/primitives.js';
|
|
6
|
-
export type
|
|
6
|
+
export type DecryptPublicValueParameters = {
|
|
7
7
|
readonly encryptedValue: EncryptedValueLike;
|
|
8
8
|
readonly options?: RelayerPublicDecryptOptions | undefined;
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
11
|
-
export declare function
|
|
12
|
-
//# sourceMappingURL=
|
|
10
|
+
export type DecryptPublicValueReturnType = TypedValue;
|
|
11
|
+
export declare function decryptPublicValue(fhevm: Fhevm<FhevmChain>, parameters: DecryptPublicValueParameters): Promise<DecryptPublicValueReturnType>;
|
|
12
|
+
//# sourceMappingURL=decryptPublicValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC;AAItD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,4BAA4B,GACvC,OAAO,CAAC,4BAA4B,CAAC,CAOvC"}
|
|
@@ -3,10 +3,10 @@ import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
|
3
3
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
4
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
5
5
|
import type { TypedValue } from '../../types/primitives.js';
|
|
6
|
-
export type
|
|
6
|
+
export type DecryptPublicValuesParameters = {
|
|
7
7
|
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
8
8
|
readonly options?: RelayerPublicDecryptOptions | undefined;
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
11
|
-
export declare function
|
|
12
|
-
//# sourceMappingURL=
|
|
10
|
+
export type DecryptPublicValuesReturnType = TypedValue[];
|
|
11
|
+
export declare function decryptPublicValues(fhevm: Fhevm<FhevmChain>, parameters: DecryptPublicValuesParameters): Promise<DecryptPublicValuesReturnType>;
|
|
12
|
+
//# sourceMappingURL=decryptPublicValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,UAAU,EAAE,CAAC;AAIzD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,6BAA6B,CAAC,CAOxC"}
|
|
@@ -5,11 +5,11 @@ import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
|
5
5
|
import type { BytesHex, TypedValue } from '../../types/primitives.js';
|
|
6
6
|
import type { HandleBytes32Hex } from '../../types/encryptedTypes-p.js';
|
|
7
7
|
import type { NonEmptyReadonlyArray } from '../../types/utils.js';
|
|
8
|
-
export type
|
|
8
|
+
export type DecryptPublicValuesWithSignaturesParameters = {
|
|
9
9
|
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
10
10
|
readonly options?: RelayerPublicDecryptOptions | undefined;
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
12
|
+
export type DecryptPublicValuesWithSignaturesReturnType = {
|
|
13
13
|
readonly clearValues: NonEmptyReadonlyArray<TypedValue>;
|
|
14
14
|
readonly checkSignaturesArgs: {
|
|
15
15
|
readonly handlesList: NonEmptyReadonlyArray<HandleBytes32Hex>;
|
|
@@ -17,5 +17,5 @@ export type ReadPublicValuesWithSignaturesReturnType = {
|
|
|
17
17
|
readonly decryptionProof: BytesHex;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
export declare function
|
|
21
|
-
//# sourceMappingURL=
|
|
20
|
+
export declare function decryptPublicValuesWithSignatures(fhevm: Fhevm<FhevmChain>, parameters: DecryptPublicValuesWithSignaturesParameters): Promise<DecryptPublicValuesWithSignaturesReturnType>;
|
|
21
|
+
//# sourceMappingURL=decryptPublicValuesWithSignatures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decryptPublicValuesWithSignatures.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/decryptPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAOlE,MAAM,MAAM,2CAA2C,GAAG;IACxD,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACxD,QAAQ,CAAC,mBAAmB,EAAE;QAC5B,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QAC9D,QAAQ,CAAC,oBAAoB,EAAE,QAAQ,CAAC;QACxC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC;KACpC,CAAC;CACH,CAAC;AAIF,wBAAsB,iCAAiC,CACrD,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,2CAA2C,GACtD,OAAO,CAAC,2CAA2C,CAAC,CAoBtD"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { type ReadKmsSignersContextReturnType, readKmsSignersContext } from './readKmsSignersContext.js';
|
|
2
|
-
export { type
|
|
2
|
+
export { type DecryptPublicValueParameters, type DecryptPublicValueReturnType, decryptPublicValue, } from './decryptPublicValue.js';
|
|
3
3
|
export type { RelayerPublicDecryptOptions, RelayerPublicDecryptProgressArgs } from '../../types/relayer.js';
|
|
4
|
-
export { type
|
|
5
|
-
export { type
|
|
6
|
-
export { type
|
|
7
|
-
export { type
|
|
4
|
+
export { type DecryptPublicValuesParameters, type DecryptPublicValuesReturnType, decryptPublicValues, } from './decryptPublicValues.js';
|
|
5
|
+
export { type DecryptPublicValuesWithSignaturesParameters, type DecryptPublicValuesWithSignaturesReturnType, decryptPublicValuesWithSignatures, } from './decryptPublicValuesWithSignatures.js';
|
|
6
|
+
export { type CanDecryptPublicValueParameters, type CanDecryptPublicValueReturnType, canDecryptPublicValue, } from './canDecryptPublicValue.js';
|
|
7
|
+
export { type CanDecryptPublicValuesParameters, type CanDecryptPublicValuesReturnType, canDecryptPublicValues, } from './canDecryptPublicValues.js';
|
|
8
8
|
export { type CreateVerifiedInputProofFromRawBytesParameters, type CreateVerifiedInputProofFromRawBytesReturnType, createVerifiedInputProofFromRawBytes, } from './createVerifiedInputProofFromRawBytes.js';
|
|
9
9
|
export { type ReadCoprocessorSignersContextReturnType, readCoprocessorSignersContext, } from './readCoprocessorSignersContext.js';
|
|
10
10
|
export { type VerifyInputProofParameters, type VerifyInputProofReturnType, verifyInputProof, } from './verifyInputProof.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,+BAA+B,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzG,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,+BAA+B,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzG,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE5G,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,KAAK,8CAA8C,EACnD,KAAK,8CAA8C,EACnD,oCAAoC,GACrC,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EACL,KAAK,uCAAuC,EAC5C,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,KAAK,4CAA4C,EACjD,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EACL,KAAK,yCAAyC,EAC9C,KAAK,8CAA8C,EACnD,KAAK,qCAAqC,EAC1C,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,KAAK,4CAA4C,EACjD,kCAAkC,GACnC,MAAM,yCAAyC,CAAC"}
|
|
@@ -7,39 +7,39 @@ import { type ParseTransportKeyPairParameters, type ParseTransportKeyPairReturnT
|
|
|
7
7
|
import { type FetchFheEncryptionKeyBytesParameters, type FetchFheEncryptionKeyBytesReturnType } from '../../actions/chain/fetchFheEncryptionKeyBytes.js';
|
|
8
8
|
import { type SerializeSignedDecryptionPermitParameters, type SerializeSignedDecryptionPermitReturnType } from '../../actions/chain/serializeSignedDecryptionPermit.js';
|
|
9
9
|
import { type ParseSignedDecryptionPermitParameters, type ParseSignedDecryptionPermitReturnType } from '../../actions/chain/parseSignedDecryptionPermit.js';
|
|
10
|
-
import { type
|
|
11
|
-
import { type
|
|
12
|
-
import { type
|
|
10
|
+
import { type DecryptPublicValueParameters, type DecryptPublicValueReturnType } from '../../actions/base/decryptPublicValue.js';
|
|
11
|
+
import { type DecryptPublicValuesParameters, type DecryptPublicValuesReturnType } from '../../actions/base/decryptPublicValues.js';
|
|
12
|
+
import { type DecryptPublicValuesWithSignaturesParameters, type DecryptPublicValuesWithSignaturesReturnType } from '../../actions/base/decryptPublicValuesWithSignatures.js';
|
|
13
13
|
export type BaseActions = {
|
|
14
14
|
/**
|
|
15
15
|
* Reads the decrypted (clear) value of an encrypted value that was made public.
|
|
16
16
|
*
|
|
17
17
|
* By default, encrypted values on-chain can only be decrypted by their owner.
|
|
18
18
|
* When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
|
|
19
|
-
* the value becomes publicly readable. Anyone can then call `
|
|
19
|
+
* the value becomes publicly readable. Anyone can then call `decryptPublicValue`
|
|
20
20
|
* to get the clear value — no permit or private key needed.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
24
|
-
* const result = await client.
|
|
24
|
+
* const result = await client.decryptPublicValue({
|
|
25
25
|
* encryptedValue: "0xabcd..."
|
|
26
26
|
* });
|
|
27
27
|
* console.log(result.value); // e.g. 42
|
|
28
28
|
* console.log(result.type); // e.g. 'uint8'
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
readonly
|
|
31
|
+
readonly decryptPublicValue: (parameters: DecryptPublicValueParameters) => Promise<DecryptPublicValueReturnType>;
|
|
32
32
|
/**
|
|
33
33
|
* Reads the decrypted (clear) values of encrypted values that were made public.
|
|
34
34
|
*
|
|
35
35
|
* By default, encrypted values on-chain can only be decrypted by their owner.
|
|
36
36
|
* When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
|
|
37
|
-
* a value becomes publicly readable. Anyone can then call `
|
|
37
|
+
* a value becomes publicly readable. Anyone can then call `decryptPublicValues`
|
|
38
38
|
* to get the clear values — no permit or private key needed.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
42
|
-
* const results = await client.
|
|
42
|
+
* const results = await client.decryptPublicValues({
|
|
43
43
|
* encryptedValues: ["0xabcd...", "0xef..."]
|
|
44
44
|
* });
|
|
45
45
|
* console.log(results[0].value); // e.g. 42
|
|
@@ -48,13 +48,13 @@ export type BaseActions = {
|
|
|
48
48
|
* console.log(results[1].type); // e.g. 'uint32'
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
readonly
|
|
51
|
+
readonly decryptPublicValues: (parameters: DecryptPublicValuesParameters) => Promise<DecryptPublicValuesReturnType>;
|
|
52
52
|
/**
|
|
53
53
|
* Reads the decrypted (clear) value of an encrypted value that was made public.
|
|
54
54
|
*
|
|
55
55
|
* By default, encrypted values on-chain can only be decrypted by their owner.
|
|
56
56
|
* When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
|
|
57
|
-
* the value becomes publicly readable. Anyone can then call `
|
|
57
|
+
* the value becomes publicly readable. Anyone can then call `decryptPublicValue`
|
|
58
58
|
* to get the clear value — no permit or private key needed.
|
|
59
59
|
*
|
|
60
60
|
* Returns both the clear values and a decryption proof. The proof can be
|
|
@@ -63,13 +63,13 @@ export type BaseActions = {
|
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```ts
|
|
66
|
-
* const result = await client.
|
|
66
|
+
* const result = await client.decryptPublicValuesWithSignatures({
|
|
67
67
|
* encryptedValues: ["0xabcd...", "0xef..."]
|
|
68
68
|
* });
|
|
69
|
-
* console.log(
|
|
70
|
-
* console.log(
|
|
71
|
-
* console.log(
|
|
72
|
-
* console.log(
|
|
69
|
+
* console.log(result.clearValues[0].value); // e.g. 42
|
|
70
|
+
* console.log(result.clearValues[0].type); // e.g. 'uint8'
|
|
71
|
+
* console.log(result.clearValues[1].value); // e.g. 123456789
|
|
72
|
+
* console.log(result.clearValues[1].type); // e.g. 'uint32'
|
|
73
73
|
*
|
|
74
74
|
* // Forward the proof on-chain for smart contract verification
|
|
75
75
|
* // Solidity side:
|
|
@@ -80,7 +80,7 @@ export type BaseActions = {
|
|
|
80
80
|
* await contract.verify(args.handlesList, args.abiEncodedCleartexts, args.decryptionProof);
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
readonly
|
|
83
|
+
readonly decryptPublicValuesWithSignatures: (parameters: DecryptPublicValuesWithSignaturesParameters) => Promise<DecryptPublicValuesWithSignaturesReturnType>;
|
|
84
84
|
readonly signDecryptionPermit: {
|
|
85
85
|
/**
|
|
86
86
|
* Signs a self decryption permit — Alice decrypts her own encrypted values.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../core/clients/decorators/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,SAAS,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EACV,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,mCAAmC,EACnC,mCAAmC,EACpC,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAEL,KAAK,kCAAkC,EACvC,KAAK,uCAAuC,EAC7C,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACrC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EAC1C,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EAEL,KAAK,yCAAyC,EAC9C,KAAK,yCAAyC,EAC/C,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAEL,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC3C,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../core/clients/decorators/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,SAAS,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EACV,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,mCAAmC,EACnC,mCAAmC,EACpC,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAEL,KAAK,kCAAkC,EACvC,KAAK,uCAAuC,EAC7C,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACrC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EAC1C,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EAEL,KAAK,yCAAyC,EAC9C,KAAK,yCAAyC,EAC/C,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAEL,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC3C,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAEL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAClC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EACnC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEL,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EACjD,MAAM,yDAAyD,CAAC;AAIjE,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,kBAAkB,EAAE,CAAC,UAAU,EAAE,4BAA4B,KAAK,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACjH;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CAAC,mBAAmB,EAAE,CAAC,UAAU,EAAE,6BAA6B,KAAK,OAAO,CAAC,6BAA6B,CAAC,CAAC;IACpH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,iCAAiC,EAAE,CAC1C,UAAU,EAAE,2CAA2C,KACpD,OAAO,CAAC,2CAA2C,CAAC,CAAC;IAC1D,QAAQ,CAAC,oBAAoB,EAAE;QAC7B;;;;;;;;WAQG;QACH,CAAC,UAAU,EAAE,kCAAkC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;QACtF;;;;;;;WAOG;QACH,CAAC,UAAU,EAAE,uCAAuC,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;KACjG,CAAC;IACF,+FAA+F;IAC/F,QAAQ,CAAC,qBAAqB,EAAE,CAC9B,UAAU,EAAE,+BAA+B,KACxC,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC9C,uEAAuE;IACvE,QAAQ,CAAC,yBAAyB,EAAE,CAClC,UAAU,EAAE,mCAAmC,KAC5C,mCAAmC,CAAC;IACzC,2FAA2F;IAC3F,QAAQ,CAAC,+BAA+B,EAAE,CACxC,UAAU,EAAE,yCAAyC,KAClD,yCAAyC,CAAC;IAC/C,4EAA4E;IAC5E,QAAQ,CAAC,2BAA2B,EAAE,CACpC,UAAU,EAAE,qCAAqC,KAC9C,OAAO,CAAC,qCAAqC,CAAC,CAAC;IACpD,kFAAkF;IAClF,QAAQ,CAAC,0BAA0B,EAAE,CACnC,UAAU,CAAC,EAAE,oCAAoC,KAC9C,OAAO,CAAC,oCAAoC,CAAC,CAAC;CACpD,CAAC;AA0BF,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,CAOrF"}
|
package/core/_version.ts
CHANGED
|
@@ -7,18 +7,18 @@ import { toFhevmHandle } from '../../handle/FhevmHandle.js';
|
|
|
7
7
|
|
|
8
8
|
////////////////////////////////////////////////////////////////////////////////
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type CanDecryptPublicValueParameters = {
|
|
11
11
|
readonly encryptedValue: EncryptedValueLike;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type CanDecryptPublicValueReturnType = boolean;
|
|
15
15
|
|
|
16
16
|
////////////////////////////////////////////////////////////////////////////////
|
|
17
17
|
|
|
18
|
-
export async function
|
|
18
|
+
export async function canDecryptPublicValue(
|
|
19
19
|
fhevm: Fhevm<FhevmChain>,
|
|
20
|
-
parameters:
|
|
21
|
-
): Promise<
|
|
20
|
+
parameters: CanDecryptPublicValueParameters,
|
|
21
|
+
): Promise<CanDecryptPublicValueReturnType> {
|
|
22
22
|
const results = await isAllowedForDecryption(fhevm, {
|
|
23
23
|
address: fhevm.chain.fhevm.contracts.acl.address as ChecksummedAddress,
|
|
24
24
|
handles: [toFhevmHandle(parameters.encryptedValue)],
|
|
@@ -7,18 +7,18 @@ import { toFhevmHandle } from '../../handle/FhevmHandle.js';
|
|
|
7
7
|
|
|
8
8
|
////////////////////////////////////////////////////////////////////////////////
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type CanDecryptPublicValuesParameters = {
|
|
11
11
|
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type CanDecryptPublicValuesReturnType = readonly boolean[];
|
|
15
15
|
|
|
16
16
|
////////////////////////////////////////////////////////////////////////////////
|
|
17
17
|
|
|
18
|
-
export async function
|
|
18
|
+
export async function canDecryptPublicValues(
|
|
19
19
|
fhevm: Fhevm<FhevmChain>,
|
|
20
|
-
parameters:
|
|
21
|
-
): Promise<
|
|
20
|
+
parameters: CanDecryptPublicValuesParameters,
|
|
21
|
+
): Promise<CanDecryptPublicValuesReturnType> {
|
|
22
22
|
const handles = parameters.encryptedValues.map(toFhevmHandle);
|
|
23
23
|
|
|
24
24
|
return isAllowedForDecryption(fhevm, {
|
|
@@ -9,22 +9,22 @@ import { clearValueToTypedValue } from '../../handle/ClearValue.js';
|
|
|
9
9
|
|
|
10
10
|
////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type DecryptPublicValueParameters = {
|
|
13
13
|
readonly encryptedValue: EncryptedValueLike;
|
|
14
14
|
readonly options?: RelayerPublicDecryptOptions | undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export type
|
|
17
|
+
export type DecryptPublicValueReturnType = TypedValue;
|
|
18
18
|
|
|
19
19
|
////////////////////////////////////////////////////////////////////////////////
|
|
20
20
|
|
|
21
|
-
export async function
|
|
21
|
+
export async function decryptPublicValue(
|
|
22
22
|
fhevm: Fhevm<FhevmChain>,
|
|
23
|
-
parameters:
|
|
24
|
-
): Promise<
|
|
23
|
+
parameters: DecryptPublicValueParameters,
|
|
24
|
+
): Promise<DecryptPublicValueReturnType> {
|
|
25
25
|
const handle = toFhevmHandle(parameters.encryptedValue);
|
|
26
26
|
|
|
27
|
-
const originToken = Symbol('
|
|
27
|
+
const originToken = Symbol('decryptPublicValues');
|
|
28
28
|
const res = await publicDecrypt_(fhevm, { ...parameters, handles: [handle], originToken });
|
|
29
29
|
|
|
30
30
|
return clearValueToTypedValue(res.orderedClearValues[0], originToken);
|
|
@@ -9,22 +9,22 @@ import { clearValueToTypedValue } from '../../handle/ClearValue.js';
|
|
|
9
9
|
|
|
10
10
|
////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type DecryptPublicValuesParameters = {
|
|
13
13
|
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
14
14
|
readonly options?: RelayerPublicDecryptOptions | undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export type
|
|
17
|
+
export type DecryptPublicValuesReturnType = TypedValue[];
|
|
18
18
|
|
|
19
19
|
////////////////////////////////////////////////////////////////////////////////
|
|
20
20
|
|
|
21
|
-
export async function
|
|
21
|
+
export async function decryptPublicValues(
|
|
22
22
|
fhevm: Fhevm<FhevmChain>,
|
|
23
|
-
parameters:
|
|
24
|
-
): Promise<
|
|
23
|
+
parameters: DecryptPublicValuesParameters,
|
|
24
|
+
): Promise<DecryptPublicValuesReturnType> {
|
|
25
25
|
const handles = parameters.encryptedValues.map(toFhevmHandle);
|
|
26
26
|
|
|
27
|
-
const originToken = Symbol('
|
|
27
|
+
const originToken = Symbol('decryptPublicValues');
|
|
28
28
|
const res = await publicDecrypt_(fhevm, { ...parameters, handles, originToken });
|
|
29
29
|
|
|
30
30
|
return res.orderedClearValues.map((cv) => clearValueToTypedValue(cv, originToken));
|
package/core/actions/base/{readPublicValuesWithSignatures.ts → decryptPublicValuesWithSignatures.ts}
RENAMED
|
@@ -11,12 +11,12 @@ import { clearValueToTypedValue } from '../../handle/ClearValue.js';
|
|
|
11
11
|
|
|
12
12
|
////////////////////////////////////////////////////////////////////////////////
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type DecryptPublicValuesWithSignaturesParameters = {
|
|
15
15
|
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
16
16
|
readonly options?: RelayerPublicDecryptOptions | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export type
|
|
19
|
+
export type DecryptPublicValuesWithSignaturesReturnType = {
|
|
20
20
|
readonly clearValues: NonEmptyReadonlyArray<TypedValue>;
|
|
21
21
|
readonly checkSignaturesArgs: {
|
|
22
22
|
readonly handlesList: NonEmptyReadonlyArray<HandleBytes32Hex>;
|
|
@@ -27,13 +27,13 @@ export type ReadPublicValuesWithSignaturesReturnType = {
|
|
|
27
27
|
|
|
28
28
|
////////////////////////////////////////////////////////////////////////////////
|
|
29
29
|
|
|
30
|
-
export async function
|
|
30
|
+
export async function decryptPublicValuesWithSignatures(
|
|
31
31
|
fhevm: Fhevm<FhevmChain>,
|
|
32
|
-
parameters:
|
|
33
|
-
): Promise<
|
|
32
|
+
parameters: DecryptPublicValuesWithSignaturesParameters,
|
|
33
|
+
): Promise<DecryptPublicValuesWithSignaturesReturnType> {
|
|
34
34
|
const handles = parameters.encryptedValues.map(toFhevmHandle);
|
|
35
35
|
|
|
36
|
-
const originToken = Symbol('
|
|
36
|
+
const originToken = Symbol('decryptPublicValues');
|
|
37
37
|
const res = await publicDecrypt_(fhevm, { ...parameters, handles, originToken });
|
|
38
38
|
|
|
39
39
|
const typedValues = res.orderedClearValues.map((cv) =>
|
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
export { type ReadKmsSignersContextReturnType, readKmsSignersContext } from './readKmsSignersContext.js';
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
type DecryptPublicValueParameters,
|
|
5
|
+
type DecryptPublicValueReturnType,
|
|
6
|
+
decryptPublicValue,
|
|
7
|
+
} from './decryptPublicValue.js';
|
|
4
8
|
|
|
5
9
|
export type { RelayerPublicDecryptOptions, RelayerPublicDecryptProgressArgs } from '../../types/relayer.js';
|
|
6
10
|
|
|
7
11
|
export {
|
|
8
|
-
type
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
} from './
|
|
12
|
+
type DecryptPublicValuesParameters,
|
|
13
|
+
type DecryptPublicValuesReturnType,
|
|
14
|
+
decryptPublicValues,
|
|
15
|
+
} from './decryptPublicValues.js';
|
|
12
16
|
|
|
13
17
|
export {
|
|
14
|
-
type
|
|
15
|
-
type
|
|
16
|
-
|
|
17
|
-
} from './
|
|
18
|
+
type DecryptPublicValuesWithSignaturesParameters,
|
|
19
|
+
type DecryptPublicValuesWithSignaturesReturnType,
|
|
20
|
+
decryptPublicValuesWithSignatures,
|
|
21
|
+
} from './decryptPublicValuesWithSignatures.js';
|
|
18
22
|
|
|
19
23
|
export {
|
|
20
|
-
type
|
|
21
|
-
type
|
|
22
|
-
|
|
23
|
-
} from './
|
|
24
|
+
type CanDecryptPublicValueParameters,
|
|
25
|
+
type CanDecryptPublicValueReturnType,
|
|
26
|
+
canDecryptPublicValue,
|
|
27
|
+
} from './canDecryptPublicValue.js';
|
|
24
28
|
|
|
25
29
|
export {
|
|
26
|
-
type
|
|
27
|
-
type
|
|
28
|
-
|
|
29
|
-
} from './
|
|
30
|
+
type CanDecryptPublicValuesParameters,
|
|
31
|
+
type CanDecryptPublicValuesReturnType,
|
|
32
|
+
canDecryptPublicValues,
|
|
33
|
+
} from './canDecryptPublicValues.js';
|
|
30
34
|
|
|
31
35
|
export {
|
|
32
36
|
type CreateVerifiedInputProofFromRawBytesParameters,
|
|
@@ -36,20 +36,20 @@ import {
|
|
|
36
36
|
type ParseSignedDecryptionPermitReturnType,
|
|
37
37
|
} from '../../actions/chain/parseSignedDecryptionPermit.js';
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
type
|
|
41
|
-
type
|
|
42
|
-
} from '../../actions/base/
|
|
39
|
+
decryptPublicValue,
|
|
40
|
+
type DecryptPublicValueParameters,
|
|
41
|
+
type DecryptPublicValueReturnType,
|
|
42
|
+
} from '../../actions/base/decryptPublicValue.js';
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
type
|
|
46
|
-
type
|
|
47
|
-
} from '../../actions/base/
|
|
44
|
+
decryptPublicValues,
|
|
45
|
+
type DecryptPublicValuesParameters,
|
|
46
|
+
type DecryptPublicValuesReturnType,
|
|
47
|
+
} from '../../actions/base/decryptPublicValues.js';
|
|
48
48
|
import {
|
|
49
|
-
|
|
50
|
-
type
|
|
51
|
-
type
|
|
52
|
-
} from '../../actions/base/
|
|
49
|
+
decryptPublicValuesWithSignatures,
|
|
50
|
+
type DecryptPublicValuesWithSignaturesParameters,
|
|
51
|
+
type DecryptPublicValuesWithSignaturesReturnType,
|
|
52
|
+
} from '../../actions/base/decryptPublicValuesWithSignatures.js';
|
|
53
53
|
|
|
54
54
|
////////////////////////////////////////////////////////////////////////////////
|
|
55
55
|
|
|
@@ -59,30 +59,30 @@ export type BaseActions = {
|
|
|
59
59
|
*
|
|
60
60
|
* By default, encrypted values on-chain can only be decrypted by their owner.
|
|
61
61
|
* When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
|
|
62
|
-
* the value becomes publicly readable. Anyone can then call `
|
|
62
|
+
* the value becomes publicly readable. Anyone can then call `decryptPublicValue`
|
|
63
63
|
* to get the clear value — no permit or private key needed.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* ```ts
|
|
67
|
-
* const result = await client.
|
|
67
|
+
* const result = await client.decryptPublicValue({
|
|
68
68
|
* encryptedValue: "0xabcd..."
|
|
69
69
|
* });
|
|
70
70
|
* console.log(result.value); // e.g. 42
|
|
71
71
|
* console.log(result.type); // e.g. 'uint8'
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
|
-
readonly
|
|
74
|
+
readonly decryptPublicValue: (parameters: DecryptPublicValueParameters) => Promise<DecryptPublicValueReturnType>;
|
|
75
75
|
/**
|
|
76
76
|
* Reads the decrypted (clear) values of encrypted values that were made public.
|
|
77
77
|
*
|
|
78
78
|
* By default, encrypted values on-chain can only be decrypted by their owner.
|
|
79
79
|
* When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
|
|
80
|
-
* a value becomes publicly readable. Anyone can then call `
|
|
80
|
+
* a value becomes publicly readable. Anyone can then call `decryptPublicValues`
|
|
81
81
|
* to get the clear values — no permit or private key needed.
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* ```ts
|
|
85
|
-
* const results = await client.
|
|
85
|
+
* const results = await client.decryptPublicValues({
|
|
86
86
|
* encryptedValues: ["0xabcd...", "0xef..."]
|
|
87
87
|
* });
|
|
88
88
|
* console.log(results[0].value); // e.g. 42
|
|
@@ -91,13 +91,13 @@ export type BaseActions = {
|
|
|
91
91
|
* console.log(results[1].type); // e.g. 'uint32'
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
|
-
readonly
|
|
94
|
+
readonly decryptPublicValues: (parameters: DecryptPublicValuesParameters) => Promise<DecryptPublicValuesReturnType>;
|
|
95
95
|
/**
|
|
96
96
|
* Reads the decrypted (clear) value of an encrypted value that was made public.
|
|
97
97
|
*
|
|
98
98
|
* By default, encrypted values on-chain can only be decrypted by their owner.
|
|
99
99
|
* When a contract calls `TFHE.allowForDecryption(encryptedValue)` in Solidity,
|
|
100
|
-
* the value becomes publicly readable. Anyone can then call `
|
|
100
|
+
* the value becomes publicly readable. Anyone can then call `decryptPublicValue`
|
|
101
101
|
* to get the clear value — no permit or private key needed.
|
|
102
102
|
*
|
|
103
103
|
* Returns both the clear values and a decryption proof. The proof can be
|
|
@@ -106,13 +106,13 @@ export type BaseActions = {
|
|
|
106
106
|
*
|
|
107
107
|
* @example
|
|
108
108
|
* ```ts
|
|
109
|
-
* const result = await client.
|
|
109
|
+
* const result = await client.decryptPublicValuesWithSignatures({
|
|
110
110
|
* encryptedValues: ["0xabcd...", "0xef..."]
|
|
111
111
|
* });
|
|
112
|
-
* console.log(
|
|
113
|
-
* console.log(
|
|
114
|
-
* console.log(
|
|
115
|
-
* console.log(
|
|
112
|
+
* console.log(result.clearValues[0].value); // e.g. 42
|
|
113
|
+
* console.log(result.clearValues[0].type); // e.g. 'uint8'
|
|
114
|
+
* console.log(result.clearValues[1].value); // e.g. 123456789
|
|
115
|
+
* console.log(result.clearValues[1].type); // e.g. 'uint32'
|
|
116
116
|
*
|
|
117
117
|
* // Forward the proof on-chain for smart contract verification
|
|
118
118
|
* // Solidity side:
|
|
@@ -123,9 +123,9 @@ export type BaseActions = {
|
|
|
123
123
|
* await contract.verify(args.handlesList, args.abiEncodedCleartexts, args.decryptionProof);
|
|
124
124
|
* ```
|
|
125
125
|
*/
|
|
126
|
-
readonly
|
|
127
|
-
parameters:
|
|
128
|
-
) => Promise<
|
|
126
|
+
readonly decryptPublicValuesWithSignatures: (
|
|
127
|
+
parameters: DecryptPublicValuesWithSignaturesParameters,
|
|
128
|
+
) => Promise<DecryptPublicValuesWithSignaturesReturnType>;
|
|
129
129
|
readonly signDecryptionPermit: {
|
|
130
130
|
/**
|
|
131
131
|
* Signs a self decryption permit — Alice decrypts her own encrypted values.
|
|
@@ -173,9 +173,9 @@ export type BaseActions = {
|
|
|
173
173
|
|
|
174
174
|
function _baseActions(fhevm: Fhevm<FhevmChain>): BaseActions {
|
|
175
175
|
return {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
decryptPublicValue: (parameters) => decryptPublicValue(fhevm, parameters),
|
|
177
|
+
decryptPublicValues: (parameters) => decryptPublicValues(fhevm, parameters),
|
|
178
|
+
decryptPublicValuesWithSignatures: (parameters) => decryptPublicValuesWithSignatures(fhevm, parameters),
|
|
179
179
|
// Preserve the original action overloads on the decorated client API.
|
|
180
180
|
// Runtime behavior is unchanged: this is a direct pass-through wrapper.
|
|
181
181
|
signDecryptionPermit: ((parameters: SignSelfDecryptionPermitParameters | SignDelegatedDecryptionPermitParameters) =>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canReadPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":";;AAiBA,gDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,OAAO,GAAG,MAAM,IAAA,kDAAsB,EAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canReadPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":";;AAiBA,kDAUC;AAvBD,8FAAwF;AACxF,gEAA4D;AAYrD,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,OAAO,IAAA,kDAAsB,EAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":";;AAoBA,0CAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,eAAe,CACnC,KAAwB,EACxB,UAAqC;IAErC,MAAM,MAAM,GAAG,IAAA,8BAAa,EAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,IAAA,sCAAsB,EAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":";;AAoBA,4CAUC;AAzBD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAa7D,KAAK,UAAU,gBAAgB,CACpC,KAAwB,EACxB,UAAsC;IAEtC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":";;AA6BA,wEAuBC;AA7CD,gEAA4D;AAC5D,iEAA6E;AAC7E,8DAAoE;AAoB7D,KAAK,UAAU,8BAA8B,CAClD,KAAwB,EACxB,UAAoD;IAEpD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,8BAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,IAAA,gCAAc,EAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,IAAA,sCAAsB,EAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canReadPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,KAAwB,EACxB,UAAwC;IAExC,MAAM,OAAO,GAAG,MAAM,sBAAsB,CAAC,KAAK,EAAE;QAClD,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canReadPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAU5D,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,KAAwB,EACxB,UAAyC;IAEzC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,OAAO,sBAAsB,CAAC,KAAK,EAAE;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAA6B;QACtE,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValue.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAwB,EACxB,UAAqC;IAErC,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAExD,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3F,OAAO,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValues.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAWpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAwB,EACxB,UAAsC;IAEtC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,OAAO,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValuesWithSignatures.js","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAkBpE,gFAAgF;AAEhF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,KAAwB,EACxB,UAAoD;IAEpD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjF,MAAM,WAAW,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpD,sBAAsB,CAAC,EAAE,EAAE,WAAW,CAAC,CACQ,CAAC;IAElD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,WAAW;QACxB,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,MAAM,CAAC,MAAM,CACxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CACqB;YACvD,oBAAoB,EAAE,GAAG,CAAC,4BAA4B;YACtD,eAAe,EAAE,GAAG,CAAC,eAAe;SACrC,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
2
|
-
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
3
|
-
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
|
-
export type CanReadPublicValueParameters = {
|
|
5
|
-
readonly encryptedValue: EncryptedValueLike;
|
|
6
|
-
};
|
|
7
|
-
export type CanReadPublicValueReturnType = boolean;
|
|
8
|
-
export declare function canReadPublicValue(fhevm: Fhevm<FhevmChain>, parameters: CanReadPublicValueParameters): Promise<CanReadPublicValueReturnType>;
|
|
9
|
-
//# sourceMappingURL=canReadPublicValue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canReadPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5D,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC;AAInD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,4BAA4B,GACvC,OAAO,CAAC,4BAA4B,CAAC,CAOvC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
2
|
-
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
|
-
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
4
|
-
export type CanReadPublicValuesParameters = {
|
|
5
|
-
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
6
|
-
};
|
|
7
|
-
export type CanReadPublicValuesReturnType = readonly boolean[];
|
|
8
|
-
export declare function canReadPublicValues(fhevm: Fhevm<FhevmChain>, parameters: CanReadPublicValuesParameters): Promise<CanReadPublicValuesReturnType>;
|
|
9
|
-
//# sourceMappingURL=canReadPublicValues.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canReadPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/canReadPublicValues.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMxE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,SAAS,OAAO,EAAE,CAAC;AAI/D,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,6BAA6B,CAAC,CAOxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValue.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC;AAInD,wBAAsB,eAAe,CACnC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CAOpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,UAAU,EAAE,CAAC;AAItD,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,0BAA0B,GACrC,OAAO,CAAC,0BAA0B,CAAC,CAOrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readPublicValuesWithSignatures.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/readPublicValuesWithSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAOlE,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,CAAC,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACxD,QAAQ,CAAC,mBAAmB,EAAE;QAC5B,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QAC9D,QAAQ,CAAC,oBAAoB,EAAE,QAAQ,CAAC;QACxC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC;KACpC,CAAC;CACH,CAAC;AAIF,wBAAsB,8BAA8B,CAClD,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,wCAAwC,GACnD,OAAO,CAAC,wCAAwC,CAAC,CAoBnD"}
|