@fhevm/sdk 1.0.0-alpha.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/core/_version.js +1 -1
- package/_cjs/core/_version.js.map +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/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js +2 -2
- package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
- package/_esm/core/_version.js +1 -1
- package/_esm/core/_version.js.map +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/_esm/core/modules/relayer/module/RelayerAsyncRequest.js +2 -7
- package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
- package/_types/core/_version.d.ts.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/_types/core/modules/relayer/module/RelayerAsyncRequest.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/core/modules/relayer/module/RelayerAsyncRequest.ts +11 -13
- 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/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) =>
|
|
@@ -1265,19 +1265,17 @@ export class RelayerAsyncRequest {
|
|
|
1265
1265
|
|
|
1266
1266
|
this._trace('_fetchGet', `jobId=${this.jobId}`);
|
|
1267
1267
|
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
...(this._internalAbortSignal ? { signal: this._internalAbortSignal } : {}),
|
|
1280
|
-
};
|
|
1268
|
+
const init = setAuth(
|
|
1269
|
+
{
|
|
1270
|
+
method: 'GET',
|
|
1271
|
+
headers: {
|
|
1272
|
+
'ZAMA-SDK-VERSION': version,
|
|
1273
|
+
'ZAMA-SDK-NAME': sdkName,
|
|
1274
|
+
},
|
|
1275
|
+
...(this._internalAbortSignal ? { signal: this._internalAbortSignal } : {}),
|
|
1276
|
+
} satisfies RequestInit,
|
|
1277
|
+
this._fhevmAuth,
|
|
1278
|
+
);
|
|
1281
1279
|
|
|
1282
1280
|
this._state.fetching = true;
|
|
1283
1281
|
|
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,2BAA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