@fhevm/sdk 1.0.0-alpha.4 → 1.0.0-alpha.6
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/fetchEncryptedValues.js +18 -0
- package/_cjs/core/actions/base/fetchEncryptedValues.js.map +1 -0
- package/_cjs/core/actions/base/index.js +3 -1
- package/_cjs/core/actions/base/index.js.map +1 -1
- package/_cjs/core/actions/chain/createKmsDelegatedUserDecryptEip712.js.map +1 -1
- package/_cjs/core/actions/chain/createKmsUserDecryptEip712.js.map +1 -1
- package/_cjs/core/actions/chain/index.js +5 -5
- package/_cjs/core/actions/chain/parseSignedDecryptionPermit.js +2 -2
- package/_cjs/core/actions/chain/parseSignedDecryptionPermit.js.map +1 -1
- package/_cjs/core/actions/chain/parseTransportKeyPair.js +8 -0
- package/_cjs/core/actions/chain/parseTransportKeyPair.js.map +1 -0
- package/_cjs/core/actions/chain/serializeTransportKeyPair.js +8 -0
- package/_cjs/core/actions/chain/serializeTransportKeyPair.js.map +1 -0
- package/_cjs/core/actions/decrypt/generateTransportKeyPair.js +8 -0
- package/_cjs/core/actions/decrypt/generateTransportKeyPair.js.map +1 -0
- package/_cjs/core/actions/decrypt/index.js +3 -3
- package/_cjs/core/actions/decrypt/index.js.map +1 -1
- package/_cjs/core/base/address.js.map +1 -1
- package/_cjs/core/base/fetch.js +2 -2
- package/_cjs/core/base/fetch.js.map +1 -1
- package/_cjs/core/base/sign.js +12 -6
- package/_cjs/core/base/sign.js.map +1 -1
- package/_cjs/core/base/wasm.js +1 -1
- package/_cjs/core/base/wasm.js.map +1 -1
- package/_cjs/core/clients/decorators/base.js +4 -4
- package/_cjs/core/clients/decorators/decrypt.js +2 -2
- package/_cjs/core/coprocessor/ZkProof-p.js +2 -1
- package/_cjs/core/coprocessor/ZkProof-p.js.map +1 -1
- package/_cjs/core/handle/EncryptedValue.js +0 -4
- package/_cjs/core/handle/EncryptedValue.js.map +1 -1
- package/_cjs/core/handle/FheType.js.map +1 -1
- package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js +3 -3
- package/_cjs/core/kms/SignedDecryptionPermit-p.js +10 -10
- package/_cjs/core/kms/SignedDecryptionPermit-p.js.map +1 -1
- package/_cjs/core/kms/{TransportKeypair-p.js → TransportKeyPair-p.js} +48 -48
- package/_cjs/core/kms/{TransportKeypair-p.js.map → TransportKeyPair-p.js.map} +1 -1
- package/_cjs/core/kms/decryptKmsSignedcryptedShares-p.js +3 -3
- package/_cjs/core/kms/decryptKmsSignedcryptedShares-p.js.map +1 -1
- package/_cjs/core/kms/decryptValuesFromPairs.js +2 -2
- package/_cjs/core/kms/decryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/kms/index.js +0 -1
- package/_cjs/core/kms/kmsExtraData.js +7 -1
- package/_cjs/core/kms/kmsExtraData.js.map +1 -1
- package/_cjs/core/modules/decrypt/mock.js.map +1 -1
- package/_cjs/core/modules/decrypt/module/init-p.js +3 -7
- package/_cjs/core/modules/decrypt/module/init-p.js.map +1 -1
- package/_cjs/core/modules/encrypt/mock.js.map +1 -1
- package/_cjs/core/modules/encrypt/module/api-p.js.map +1 -1
- package/_cjs/core/modules/encrypt/module/index.js.map +1 -1
- package/_cjs/core/modules/encrypt/module/init-p.js +18 -13
- package/_cjs/core/modules/encrypt/module/init-p.js.map +1 -1
- package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/guards/RelayerErrorBody.js +27 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerErrorBody.js.map +1 -0
- package/_cjs/core/types/index.js +4 -0
- package/_cjs/core/types/index.js.map +1 -1
- package/_cjs/core/utils-p/decrypt/assertPermitMatchesKeyPair.js +14 -0
- package/_cjs/core/utils-p/decrypt/assertPermitMatchesKeyPair.js.map +1 -0
- package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js +1 -1
- package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -1
- package/_esm/core/_version.js +1 -1
- package/_esm/core/actions/base/fetchEncryptedValues.js +16 -0
- package/_esm/core/actions/base/fetchEncryptedValues.js.map +1 -0
- package/_esm/core/actions/base/index.js +1 -0
- package/_esm/core/actions/base/index.js.map +1 -1
- package/_esm/core/actions/chain/createKmsDelegatedUserDecryptEip712.js.map +1 -1
- package/_esm/core/actions/chain/createKmsUserDecryptEip712.js.map +1 -1
- package/_esm/core/actions/chain/index.js +2 -2
- package/_esm/core/actions/chain/parseSignedDecryptionPermit.js +3 -3
- package/_esm/core/actions/chain/parseSignedDecryptionPermit.js.map +1 -1
- package/_esm/core/actions/chain/parseTransportKeyPair.js +5 -0
- package/_esm/core/actions/chain/parseTransportKeyPair.js.map +1 -0
- package/_esm/core/actions/chain/serializeTransportKeyPair.js +5 -0
- package/_esm/core/actions/chain/{serializeTransportKeypair.js.map → serializeTransportKeyPair.js.map} +1 -1
- package/_esm/core/actions/decrypt/generateTransportKeyPair.js +6 -0
- package/_esm/core/actions/decrypt/{generateTransportKeypair.js.map → generateTransportKeyPair.js.map} +1 -1
- package/_esm/core/actions/decrypt/index.js +3 -1
- package/_esm/core/actions/decrypt/index.js.map +1 -1
- package/_esm/core/base/address.js.map +1 -1
- package/_esm/core/base/fetch.js +2 -2
- package/_esm/core/base/fetch.js.map +1 -1
- package/_esm/core/base/sign.js +15 -8
- package/_esm/core/base/sign.js.map +1 -1
- package/_esm/core/base/wasm.js +1 -1
- package/_esm/core/base/wasm.js.map +1 -1
- package/_esm/core/clients/decorators/base.js +4 -4
- package/_esm/core/clients/decorators/decrypt.js +2 -2
- package/_esm/core/coprocessor/ZkProof-p.js +3 -2
- package/_esm/core/coprocessor/ZkProof-p.js.map +1 -1
- package/_esm/core/handle/EncryptedValue.js +0 -3
- package/_esm/core/handle/EncryptedValue.js.map +1 -1
- package/_esm/core/handle/FheType.js +10 -17
- package/_esm/core/handle/FheType.js.map +1 -1
- package/_esm/core/host-contracts/canDecryptValuesFromPairs.js +3 -3
- package/_esm/core/kms/SignedDecryptionPermit-p.js +10 -10
- package/_esm/core/kms/SignedDecryptionPermit-p.js.map +1 -1
- package/_esm/core/kms/{TransportKeypair-p.js → TransportKeyPair-p.js} +55 -55
- package/_esm/core/kms/{TransportKeypair-p.js.map → TransportKeyPair-p.js.map} +1 -1
- package/_esm/core/kms/decryptKmsSignedcryptedShares-p.js +4 -4
- package/_esm/core/kms/decryptKmsSignedcryptedShares-p.js.map +1 -1
- package/_esm/core/kms/decryptValuesFromPairs.js +2 -2
- package/_esm/core/kms/decryptValuesFromPairs.js.map +1 -1
- package/_esm/core/kms/kmsExtraData.js +7 -1
- package/_esm/core/kms/kmsExtraData.js.map +1 -1
- package/_esm/core/modules/decrypt/mock.js.map +1 -1
- package/_esm/core/modules/decrypt/module/init-p.js +13 -11
- package/_esm/core/modules/decrypt/module/init-p.js.map +1 -1
- package/_esm/core/modules/encrypt/mock.js.map +1 -1
- package/_esm/core/modules/encrypt/module/api-p.js.map +1 -1
- package/_esm/core/modules/encrypt/module/index.js.map +1 -1
- package/_esm/core/modules/encrypt/module/init-p.js +34 -17
- package/_esm/core/modules/encrypt/module/init-p.js.map +1 -1
- package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js +13 -0
- package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/guards/RelayerErrorBody.js +24 -0
- package/_esm/core/modules/relayer/module/guards/RelayerErrorBody.js.map +1 -0
- package/_esm/core/types/index.js +1 -1
- package/_esm/core/types/index.js.map +1 -1
- package/_esm/core/utils-p/decrypt/assertPermitMatchesKeyPair.js +19 -0
- package/_esm/core/utils-p/decrypt/assertPermitMatchesKeyPair.js.map +1 -0
- package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js +1 -1
- package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -1
- package/_types/core/actions/base/fetchEncryptedValues.d.ts +16 -0
- package/_types/core/actions/base/fetchEncryptedValues.d.ts.map +1 -0
- package/_types/core/actions/base/index.d.ts +1 -0
- package/_types/core/actions/base/index.d.ts.map +1 -1
- package/_types/core/actions/chain/createKmsDelegatedUserDecryptEip712.d.ts.map +1 -1
- package/_types/core/actions/chain/createKmsUserDecryptEip712.d.ts.map +1 -1
- package/_types/core/actions/chain/index.d.ts +2 -2
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts +4 -4
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts.map +1 -1
- package/_types/core/actions/chain/{parseTransportKeypair.d.ts → parseTransportKeyPair.d.ts} +5 -5
- package/_types/core/actions/chain/{parseTransportKeypair.d.ts.map → parseTransportKeyPair.d.ts.map} +1 -1
- package/_types/core/actions/chain/{serializeTransportKeypair.d.ts → serializeTransportKeyPair.d.ts} +6 -6
- package/_types/core/actions/chain/{serializeTransportKeypair.d.ts.map → serializeTransportKeyPair.d.ts.map} +1 -1
- package/_types/core/actions/decrypt/canDecryptValue.d.ts +4 -4
- package/_types/core/actions/decrypt/canDecryptValues.d.ts +2 -2
- package/_types/core/actions/decrypt/canDecryptValuesFromPairs.d.ts +2 -2
- package/_types/core/actions/decrypt/decryptKmsSignedcryptedShares.d.ts +2 -2
- package/_types/core/actions/decrypt/decryptValue.d.ts +2 -2
- package/_types/core/actions/decrypt/decryptValues.d.ts +2 -2
- package/_types/core/actions/decrypt/decryptValuesFromPairs.d.ts +2 -2
- package/_types/core/actions/decrypt/{generateTransportKeypair.d.ts → generateTransportKeyPair.d.ts} +4 -4
- package/_types/core/actions/decrypt/{generateTransportKeypair.d.ts.map → generateTransportKeyPair.d.ts.map} +1 -1
- package/_types/core/actions/decrypt/index.d.ts +3 -1
- package/_types/core/actions/decrypt/index.d.ts.map +1 -1
- package/_types/core/base/address.d.ts.map +1 -1
- package/_types/core/base/sign.d.ts.map +1 -1
- package/_types/core/clients/decorators/base.d.ts +6 -6
- package/_types/core/clients/decorators/base.d.ts.map +1 -1
- package/_types/core/clients/decorators/decrypt.d.ts +2 -2
- package/_types/core/coprocessor/ZkProof-p.d.ts +2 -1
- package/_types/core/coprocessor/ZkProof-p.d.ts.map +1 -1
- package/_types/core/handle/EncryptedValue.d.ts +0 -1
- package/_types/core/handle/EncryptedValue.d.ts.map +1 -1
- package/_types/core/handle/FheType.d.ts +10 -17
- package/_types/core/handle/FheType.d.ts.map +1 -1
- package/_types/core/host-contracts/canDecryptValuesFromPairs.d.ts +2 -2
- package/_types/core/kms/SignedDecryptionPermit-p.d.ts +6 -6
- package/_types/core/kms/{TransportKeypair-p.d.ts → TransportKeyPair-p.d.ts} +23 -23
- package/_types/core/kms/{TransportKeypair-p.d.ts.map → TransportKeyPair-p.d.ts.map} +1 -1
- package/_types/core/kms/decryptKmsSignedcryptedShares-p.d.ts +2 -2
- package/_types/core/kms/decryptValuesFromPairs.d.ts +3 -3
- package/_types/core/kms/index.d.ts +1 -1
- package/_types/core/kms/index.d.ts.map +1 -1
- package/_types/core/kms/kmsExtraData.d.ts.map +1 -1
- package/_types/core/modules/decrypt/module/init-p.d.ts.map +1 -1
- package/_types/core/modules/encrypt/mock.d.ts +2 -2
- package/_types/core/modules/encrypt/mock.d.ts.map +1 -1
- package/_types/core/modules/encrypt/module/api-p.d.ts +2 -2
- package/_types/core/modules/encrypt/module/api-p.d.ts.map +1 -1
- package/_types/core/modules/encrypt/module/init-p.d.ts.map +1 -1
- package/_types/core/modules/encrypt/types.d.ts +2 -2
- package/_types/core/modules/encrypt/types.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/fetchUserDecrypt.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/guards/RelayerErrorBody.d.ts +13 -0
- package/_types/core/modules/relayer/module/guards/RelayerErrorBody.d.ts.map +1 -0
- package/_types/core/types/index.d.ts +3 -0
- package/_types/core/types/index.d.ts.map +1 -1
- package/_types/core/types/signedDecryptionPermit.d.ts +1 -1
- package/_types/core/types/signedDecryptionPermit.d.ts.map +1 -1
- package/_types/core/utils-p/decrypt/assertPermitMatchesKeyPair.d.ts +12 -0
- package/_types/core/utils-p/decrypt/{assertPermitMatchesKeypair.d.ts.map → assertPermitMatchesKeyPair.d.ts.map} +1 -1
- package/core/_version.ts +1 -1
- package/core/actions/base/fetchEncryptedValues.ts +42 -0
- package/core/actions/base/index.ts +6 -0
- package/core/actions/chain/createKmsDelegatedUserDecryptEip712.ts +1 -2
- package/core/actions/chain/createKmsUserDecryptEip712.ts +1 -2
- package/core/actions/chain/index.ts +8 -8
- package/core/actions/chain/parseSignedDecryptionPermit.ts +6 -6
- package/core/actions/chain/{parseTransportKeypair.ts → parseTransportKeyPair.ts} +7 -7
- package/core/actions/chain/{serializeTransportKeypair.ts → serializeTransportKeyPair.ts} +10 -10
- package/core/actions/decrypt/canDecryptValue.ts +4 -4
- package/core/actions/decrypt/canDecryptValues.ts +2 -2
- package/core/actions/decrypt/canDecryptValuesFromPairs.ts +2 -2
- package/core/actions/decrypt/decryptKmsSignedcryptedShares.ts +2 -2
- package/core/actions/decrypt/decryptValue.ts +2 -2
- package/core/actions/decrypt/decryptValues.ts +2 -2
- package/core/actions/decrypt/decryptValuesFromPairs.ts +2 -2
- package/core/actions/decrypt/{generateTransportKeypair.ts → generateTransportKeyPair.ts} +7 -7
- package/core/actions/decrypt/index.ts +8 -4
- package/core/base/address.ts +2 -2
- package/core/base/fetch.ts +2 -2
- package/core/base/sign.ts +16 -8
- package/core/base/wasm.ts +1 -1
- package/core/clients/decorators/base.ts +18 -18
- package/core/clients/decorators/decrypt.ts +4 -4
- package/core/coprocessor/ZkProof-p.ts +6 -6
- package/core/handle/EncryptedValue.ts +0 -4
- package/core/handle/FheType.ts +10 -17
- package/core/host-contracts/canDecryptValuesFromPairs.ts +5 -5
- package/core/kms/SignedDecryptionPermit-p.ts +14 -14
- package/core/kms/{TransportKeypair-p.ts → TransportKeyPair-p.ts} +42 -42
- package/core/kms/decryptKmsSignedcryptedShares-p.ts +6 -6
- package/core/kms/decryptValuesFromPairs.ts +5 -5
- package/core/kms/index.ts +0 -1
- package/core/kms/kmsExtraData.ts +8 -1
- package/core/modules/decrypt/mock.ts +3 -3
- package/core/modules/decrypt/module/init-p.ts +13 -14
- package/core/modules/encrypt/mock.ts +4 -6
- package/core/modules/encrypt/module/api-p.ts +4 -6
- package/core/modules/encrypt/module/index.ts +2 -2
- package/core/modules/encrypt/module/init-p.ts +37 -21
- package/core/modules/encrypt/types.ts +2 -2
- package/core/modules/relayer/module/RelayerAsyncRequest.ts +14 -0
- package/core/modules/relayer/module/fetchPublicDecrypt.ts +2 -2
- package/core/modules/relayer/module/fetchUserDecrypt.ts +1 -2
- package/core/modules/relayer/module/guards/RelayerErrorBody.ts +33 -0
- package/core/types/index.ts +3 -0
- package/core/types/signedDecryptionPermit.ts +1 -1
- package/core/utils-p/decrypt/assertPermitMatchesKeyPair.ts +27 -0
- package/core/utils-p/decrypt/verifyTkmsPublicKey.ts +1 -1
- package/package.json +3 -2
- package/_cjs/core/actions/chain/parseTransportKeypair.js +0 -8
- package/_cjs/core/actions/chain/parseTransportKeypair.js.map +0 -1
- package/_cjs/core/actions/chain/serializeTransportKeypair.js +0 -8
- package/_cjs/core/actions/chain/serializeTransportKeypair.js.map +0 -1
- package/_cjs/core/actions/decrypt/generateTransportKeypair.js +0 -8
- package/_cjs/core/actions/decrypt/generateTransportKeypair.js.map +0 -1
- package/_cjs/core/utils-p/decrypt/assertPermitMatchesKeypair.js +0 -14
- package/_cjs/core/utils-p/decrypt/assertPermitMatchesKeypair.js.map +0 -1
- package/_esm/core/actions/chain/parseTransportKeypair.js +0 -5
- package/_esm/core/actions/chain/parseTransportKeypair.js.map +0 -1
- package/_esm/core/actions/chain/serializeTransportKeypair.js +0 -5
- package/_esm/core/actions/decrypt/generateTransportKeypair.js +0 -6
- package/_esm/core/utils-p/decrypt/assertPermitMatchesKeypair.js +0 -19
- package/_esm/core/utils-p/decrypt/assertPermitMatchesKeypair.js.map +0 -1
- package/_types/core/utils-p/decrypt/assertPermitMatchesKeypair.d.ts +0 -12
- package/core/utils-p/decrypt/assertPermitMatchesKeypair.ts +0 -27
- package/tsconfig.json +0 -9
- package/vitest.config.ts +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchUserDecrypt.js","sourceRoot":"","sources":["../../../../../core/modules/relayer/module/fetchUserDecrypt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchUserDecrypt.js","sourceRoot":"","sources":["../../../../../core/modules/relayer/module/fetchUserDecrypt.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,aAAuC,EACvC,UAAsC;IAEtC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;IAExC,MAAM,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC/D,IAAI,uBAAuB,KAAK,SAAS,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,iCAAiC;IACjC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAE3E,MAAM,cAAc,GAA4B;QAC9C,mBAAmB,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,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|
+
export function isRelayerErrorBody(bodyJson) {
|
|
2
|
+
const error = bodyJson.error;
|
|
3
|
+
if (!error || typeof error !== 'object' || Array.isArray(error)) {
|
|
4
|
+
return false;
|
|
5
|
+
}
|
|
6
|
+
if (typeof error.label !== 'string' || typeof error.message !== 'string') {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
if (error.details !== undefined) {
|
|
10
|
+
if (!Array.isArray(error.details)) {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
for (const d of error.details) {
|
|
14
|
+
if (d === undefined ||
|
|
15
|
+
typeof d !== 'object' ||
|
|
16
|
+
typeof d.field !== 'string' ||
|
|
17
|
+
typeof d.issue !== 'string') {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=RelayerErrorBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelayerErrorBody.js","sourceRoot":"","sources":["../../../../../../core/modules/relayer/module/guards/RelayerErrorBody.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,kBAAkB,CAAC,QAAiC;IAClE,MAAM,KAAK,GAAG,QAAQ,CAAC,KAA4C,CAAC;IACpE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAChE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACzE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAChC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;YAC9B,IACE,CAAC,KAAK,SAAS;gBACf,OAAO,CAAC,KAAK,QAAQ;gBACrB,OAAQ,CAAwB,CAAC,KAAK,KAAK,QAAQ;gBACnD,OAAQ,CAAwB,CAAC,KAAK,KAAK,QAAQ,EACnD,CAAC;gBACD,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/_esm/core/types/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { asEncryptedValue, isEncryptedValue } from '../handle/EncryptedValue.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../core/types/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../core/types/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { assertIsTransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
2
|
+
import { assertIsSignedDecryptionPermit } from '../../kms/SignedDecryptionPermit-p.js';
|
|
3
|
+
/**
|
|
4
|
+
* Asserts that the permit's publicKey matches the key pair's publicKey.
|
|
5
|
+
*
|
|
6
|
+
* Both values are validated via `instanceof` before comparison.
|
|
7
|
+
*
|
|
8
|
+
* @throws {InvalidTypeError} If either value is not the expected type.
|
|
9
|
+
* @throws If the public keys do not match.
|
|
10
|
+
*/
|
|
11
|
+
export function assertPermitMatchesKeyPair(signedPermit, transportKeyPair) {
|
|
12
|
+
assertIsSignedDecryptionPermit(signedPermit, {});
|
|
13
|
+
assertIsTransportKeyPair(transportKeyPair, {});
|
|
14
|
+
if (signedPermit.transportPublicKey.toLowerCase() !== transportKeyPair.publicKey.toLowerCase()) {
|
|
15
|
+
throw new Error("The permit's publicKey does not match the TransportKeyPairKeyPair's publicKey. " +
|
|
16
|
+
'Ensure the permit was signed with the same key pair.');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=assertPermitMatchesKeyPair.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertPermitMatchesKeyPair.js","sourceRoot":"","sources":["../../../../core/utils-p/decrypt/assertPermitMatchesKeyPair.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAEvF;;;;;;;GAOG;AACH,MAAM,UAAU,0BAA0B,CACxC,YAAoC,EACpC,gBAAkC;IAElC,8BAA8B,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACjD,wBAAwB,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAE/C,IAAI,YAAY,CAAC,kBAAkB,CAAC,WAAW,EAAE,KAAK,gBAAgB,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC;QAC/F,MAAM,IAAI,KAAK,CACb,iFAAiF;YAC/E,sDAAsD,CACzD,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -10,7 +10,7 @@ export async function verifyTkmsPublicKey(context, parameters) {
|
|
|
10
10
|
tkmsPrivateKey,
|
|
11
11
|
});
|
|
12
12
|
if (expectedTkmsPublicKeyBytesHex !== tkmsPublicKeyBytesHex) {
|
|
13
|
-
throw new Error('invalid
|
|
13
|
+
throw new Error('invalid TransportKeyPairKeyPair');
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=verifyTkmsPublicKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyTkmsPublicKey.js","sourceRoot":"","sources":["../../../../core/utils-p/decrypt/verifyTkmsPublicKey.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAwD,EACxD,UAGC;IAED,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,GAAG,UAAU,CAAC;IAE7D,MAAM,6BAA6B,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC;QACtF,cAAc;KACf,CAAC,CAAC;IAEH,IAAI,6BAA6B,KAAK,qBAAqB,EAAE,CAAC;QAC5D,MAAM,IAAI,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"verifyTkmsPublicKey.js","sourceRoot":"","sources":["../../../../core/utils-p/decrypt/verifyTkmsPublicKey.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAwD,EACxD,UAGC;IAED,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,GAAG,UAAU,CAAC;IAE7D,MAAM,6BAA6B,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC;QACtF,cAAc;KACf,CAAC,CAAC;IAEH,IAAI,6BAA6B,KAAK,qBAAqB,EAAE,CAAC;QAC5D,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RelayerInputProofOptions } from '../../types/relayer.js';
|
|
2
|
+
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
3
|
+
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
|
+
import type { BytesHex } from '../../types/primitives.js';
|
|
5
|
+
import type { ZkProofLike } from '../../types/zkProof-p.js';
|
|
6
|
+
import type { EncryptedValue } from '../../types/encryptedTypes.js';
|
|
7
|
+
export type FetchEncryptedValuesParameters = {
|
|
8
|
+
readonly zkProof: ZkProofLike;
|
|
9
|
+
readonly options?: RelayerInputProofOptions | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type FetchEncryptedValuesReturnType = {
|
|
12
|
+
readonly encryptedValues: readonly EncryptedValue[];
|
|
13
|
+
readonly inputProof: BytesHex;
|
|
14
|
+
};
|
|
15
|
+
export declare function fetchEncryptedValues(fhevm: Fhevm<FhevmChain>, parameters: FetchEncryptedValuesParameters): Promise<FetchEncryptedValuesReturnType>;
|
|
16
|
+
//# sourceMappingURL=fetchEncryptedValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchEncryptedValues.d.ts","sourceRoot":"","sources":["../../../../core/actions/base/fetchEncryptedValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAMpE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;IACpD,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;CAC/B,CAAC;AAIF,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,8BAA8B,GACzC,OAAO,CAAC,8BAA8B,CAAC,CAezC"}
|
|
@@ -9,6 +9,7 @@ export { type CreateVerifiedInputProofFromRawBytesParameters, type CreateVerifie
|
|
|
9
9
|
export { type ReadCoprocessorSignersContextReturnType, readCoprocessorSignersContext, } from './readCoprocessorSignersContext.js';
|
|
10
10
|
export { type VerifyInputProofParameters, type VerifyInputProofReturnType, verifyInputProof, } from './verifyInputProof.js';
|
|
11
11
|
export { type FetchVerifiedInputProofParameters, type FetchVerifiedInputProofReturnType, fetchVerifiedInputProof, } from './fetchVerifiedInputProof.js';
|
|
12
|
+
export { type FetchEncryptedValuesParameters, type FetchEncryptedValuesReturnType, fetchEncryptedValues, } from './fetchEncryptedValues.js';
|
|
12
13
|
export { type VerifyZkProofCoprocessorSignaturesParameters, verifyZkProofCoprocessorSignatures, } from './verifyZkProofCoprocessorSignatures.js';
|
|
13
14
|
export { type FetchSelfKmsSignedcryptedSharesParameters, type FetchDelegatedKmsSignedcryptedSharesParameters, type FetchKmsSignedcryptedSharesReturnType, fetchKmsSignedcryptedShares, } from './fetchKmsSignedcryptedShares.js';
|
|
14
15
|
export { type VerifyHandlesCoprocessorSignaturesParameters, verifyHandlesCoprocessorSignatures, } from './verifyHandlesCoprocessorSignatures.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,EAAE,KAAK,yBAAyB,EAAE,KAAK,yBAAyB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvH,YAAY,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE5G,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,KAAK,wCAAwC,EAC7C,KAAK,wCAAwC,EAC7C,8B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,GACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,KAAK,wCAAwC,EAC7C,KAAK,wCAAwC,EAC7C,8BAA8B,GAC/B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createKmsDelegatedUserDecryptEip712.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/createKmsDelegatedUserDecryptEip712.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"createKmsDelegatedUserDecryptEip712.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/createKmsDelegatedUserDecryptEip712.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAKxE,MAAM,MAAM,6CAA6C,GAAG;IAC1D,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,6CAA6C,GAAG,6BAA6B,CAAC;AAE1F,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,YAAY,EAAE,oBAAoB,CAAC,EAC5D,UAAU,EAAE,6CAA6C,GACxD,6CAA6C,CAW/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createKmsUserDecryptEip712.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/createKmsUserDecryptEip712.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"createKmsUserDecryptEip712.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/createKmsUserDecryptEip712.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAK/D,MAAM,MAAM,oCAAoC,GAAG;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,oBAAoB,CAAC;AAExE,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,YAAY,EAAE,oBAAoB,CAAC,EAC5D,UAAU,EAAE,oCAAoC,GAC/C,oCAAoC,CAUtC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { type VerifyKmsDelegatedUserDecryptEip712Parameters, verifyKmsDelegatedUserDecryptEip712, } from './verifyKmsDelegatedUserDecryptEip712.js';
|
|
2
2
|
export { type CreateKmsEIP712DomainReturnType, createKmsEIP712Domain } from './createKmsEip712Domain.js';
|
|
3
3
|
export { type FetchFheEncryptionKeyBytesParameters, type FetchFheEncryptionKeyBytesReturnType, fetchFheEncryptionKeyBytes, } from './fetchFheEncryptionKeyBytes.js';
|
|
4
|
-
export { type
|
|
5
|
-
export { type
|
|
4
|
+
export { type ParseTransportKeyPairParameters, type ParseTransportKeyPairReturnType, parseTransportKeyPair, } from './parseTransportKeyPair.js';
|
|
5
|
+
export { type SerializeTransportKeyPairParameters, type SerializeTransportKeyPairReturnType, serializeTransportKeyPair, } from './serializeTransportKeyPair.js';
|
|
6
6
|
export { type CreateKmsDelegatedUserDecryptEip712Parameters, type CreateKmsDelegatedUserDecryptEip712ReturnType, createKmsDelegatedUserDecryptEip712, } from './createKmsDelegatedUserDecryptEip712.js';
|
|
7
7
|
export { type VerifyKmsUserDecryptEip712Parameters, verifyKmsUserDecryptEip712 } from './verifyKmsUserDecryptEip712.js';
|
|
8
8
|
export { type CreateCoprocessorEip712DomainReturnType, createCoprocessorEip712Domain, } from './createCoprocessorEip712Domain.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
3
|
import type { SignedDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
5
5
|
import type { KmsDecryptEip712Like } from '../../types/kms.js';
|
|
6
6
|
export type ParseSignedDecryptionPermitParameters = {
|
|
7
7
|
/** The serialized permit — a previously parsed permit object. */
|
|
@@ -10,15 +10,15 @@ export type ParseSignedDecryptionPermitParameters = {
|
|
|
10
10
|
readonly signature: string;
|
|
11
11
|
readonly signerAddress: string;
|
|
12
12
|
};
|
|
13
|
-
/** The transport
|
|
14
|
-
readonly
|
|
13
|
+
/** The transport key pair that was used when signing the permit. */
|
|
14
|
+
readonly transportKeyPair: TransportKeyPair;
|
|
15
15
|
};
|
|
16
16
|
export type ParseSignedDecryptionPermitReturnType = SignedDecryptionPermit;
|
|
17
17
|
/**
|
|
18
18
|
* Parses and verifies a previously serialized signed decryption permit.
|
|
19
19
|
*
|
|
20
20
|
* Validates the EIP-712 structure, verifies the signature against the on-chain
|
|
21
|
-
* verifier, and checks the permit's public key matches the provided
|
|
21
|
+
* verifier, and checks the permit's public key matches the provided key pair.
|
|
22
22
|
*
|
|
23
23
|
* @throws If the permit is malformed, expired, or the signature is invalid.
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseSignedDecryptionPermit.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/parseSignedDecryptionPermit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAK/D,MAAM,MAAM,qCAAqC,GAAG;IAClD,iEAAiE;IACjE,QAAQ,CAAC,gBAAgB,EAAE;QACzB,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;QACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,
|
|
1
|
+
{"version":3,"file":"parseSignedDecryptionPermit.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/parseSignedDecryptionPermit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAK/D,MAAM,MAAM,qCAAqC,GAAG;IAClD,iEAAiE;IACjE,QAAQ,CAAC,gBAAgB,EAAE;QACzB,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;QACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,oEAAoE;IACpE,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG,sBAAsB,CAAC;AAE3E;;;;;;;GAOG;AACH,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,UAAU,EAAE,qCAAqC,GAChD,OAAO,CAAC,qCAAqC,CAAC,CAIhD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Fhevm, OptionalNativeClient } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { FhevmRuntime } from '../../types/coreFhevmRuntime.js';
|
|
3
3
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
|
-
import { type
|
|
5
|
-
export type
|
|
4
|
+
import { type TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
5
|
+
export type ParseTransportKeyPairParameters = {
|
|
6
6
|
readonly publicKey: string;
|
|
7
7
|
readonly privateKey: string;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
10
|
-
export declare function
|
|
11
|
-
//# sourceMappingURL=
|
|
9
|
+
export type ParseTransportKeyPairReturnType = TransportKeyPair;
|
|
10
|
+
export declare function parseTransportKeyPair(fhevm: Fhevm<FhevmChain, FhevmRuntime, OptionalNativeClient>, parameters: ParseTransportKeyPairParameters): Promise<ParseTransportKeyPairReturnType>;
|
|
11
|
+
//# sourceMappingURL=parseTransportKeyPair.d.ts.map
|
package/_types/core/actions/chain/{parseTransportKeypair.d.ts.map → parseTransportKeyPair.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"parseTransportKeyPair.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/parseTransportKeyPair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAI5F,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC;AAE/D,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,YAAY,EAAE,oBAAoB,CAAC,EAC5D,UAAU,EAAE,+BAA+B,GAC1C,OAAO,CAAC,+BAA+B,CAAC,CAE1C"}
|
package/_types/core/actions/chain/{serializeTransportKeypair.d.ts → serializeTransportKeyPair.d.ts}
RENAMED
|
@@ -2,13 +2,13 @@ import type { Fhevm, OptionalNativeClient } from '../../types/coreFhevmClient.js
|
|
|
2
2
|
import type { FhevmRuntime } from '../../types/coreFhevmRuntime.js';
|
|
3
3
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
4
|
import type { BytesHex } from '../../types/primitives.js';
|
|
5
|
-
import { type
|
|
6
|
-
export type
|
|
7
|
-
readonly
|
|
5
|
+
import { type TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
6
|
+
export type SerializeTransportKeyPairParameters = {
|
|
7
|
+
readonly transportKeyPair: TransportKeyPair;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type SerializeTransportKeyPairReturnType = {
|
|
10
10
|
publicKey: BytesHex;
|
|
11
11
|
privateKey: BytesHex;
|
|
12
12
|
};
|
|
13
|
-
export declare function
|
|
14
|
-
//# sourceMappingURL=
|
|
13
|
+
export declare function serializeTransportKeyPair(_fhevm: Fhevm<FhevmChain, FhevmRuntime, OptionalNativeClient>, parameters: SerializeTransportKeyPairParameters): SerializeTransportKeyPairReturnType;
|
|
14
|
+
//# sourceMappingURL=serializeTransportKeyPair.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"serializeTransportKeyPair.d.ts","sourceRoot":"","sources":["../../../../core/actions/chain/serializeTransportKeyPair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAC;AAIzC,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,SAAS,EAAE,QAAQ,CAAC;IACpB,UAAU,EAAE,QAAQ,CAAC;CACtB,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,YAAY,EAAE,oBAAoB,CAAC,EAC7D,UAAU,EAAE,mCAAmC,GAC9C,mCAAmC,CAErC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
3
|
import type { SignedDelegatedDecryptionPermit, SignedSelfDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
5
5
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
6
6
|
type CanDecryptValueParametersBase = {
|
|
7
7
|
readonly encryptedValue: EncryptedValueLike;
|
|
@@ -12,7 +12,7 @@ export type CanDecryptValueWithUserAddressParameters = CanDecryptValueParameters
|
|
|
12
12
|
};
|
|
13
13
|
export type CanDecryptValueWithPermitParameters = CanDecryptValueParametersBase & {
|
|
14
14
|
readonly signedPermit: SignedSelfDecryptionPermit | SignedDelegatedDecryptionPermit;
|
|
15
|
-
readonly
|
|
15
|
+
readonly transportKeyPair?: TransportKeyPair | undefined;
|
|
16
16
|
};
|
|
17
17
|
export type CanDecryptValueReturnType = {
|
|
18
18
|
readonly allowed: boolean;
|
|
@@ -38,9 +38,9 @@ export type CanDecryptValueReturnType = {
|
|
|
38
38
|
* - the current time is within the permit validity window
|
|
39
39
|
* - the permit is scoped to the requested `contractAddress`
|
|
40
40
|
*
|
|
41
|
-
* When both a `SignedDecryptionPermit` and an `
|
|
41
|
+
* When both a `SignedDecryptionPermit` and an `transportKeyPair` are provided,
|
|
42
42
|
* the function also checks that the permit is scoped to the corresponding
|
|
43
|
-
* `
|
|
43
|
+
* `transportKeyPair.publicKey`.
|
|
44
44
|
*
|
|
45
45
|
* A permit is scoped to:
|
|
46
46
|
* - a user
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
3
|
import type { SignedDelegatedDecryptionPermit, SignedSelfDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
5
5
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
6
6
|
type CanDecryptValuesParametersBase = {
|
|
7
7
|
readonly encryptedValues: EncryptedValueLike[];
|
|
@@ -12,7 +12,7 @@ export type CanDecryptValuesWithUserAddressParameters = CanDecryptValuesParamete
|
|
|
12
12
|
};
|
|
13
13
|
export type CanDecryptValuesWithPermitParameters = CanDecryptValuesParametersBase & {
|
|
14
14
|
readonly signedPermit: SignedSelfDecryptionPermit | SignedDelegatedDecryptionPermit;
|
|
15
|
-
readonly
|
|
15
|
+
readonly transportKeyPair?: TransportKeyPair | undefined;
|
|
16
16
|
};
|
|
17
17
|
export type CanDecryptValuesReturnType = {
|
|
18
18
|
readonly allowed: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
3
|
import type { SignedDelegatedDecryptionPermit, SignedSelfDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
5
5
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
6
6
|
type CanDecryptValuesFromPairsParametersBase = {
|
|
7
7
|
readonly pairs: ReadonlyArray<{
|
|
@@ -14,7 +14,7 @@ export type CanDecryptValuesFromPairsWithUserAddressParameters = CanDecryptValue
|
|
|
14
14
|
};
|
|
15
15
|
export type CanDecryptValuesFromPairsWithPermitParameters = CanDecryptValuesFromPairsParametersBase & {
|
|
16
16
|
readonly signedPermit: SignedSelfDecryptionPermit | SignedDelegatedDecryptionPermit;
|
|
17
|
-
readonly
|
|
17
|
+
readonly transportKeyPair?: TransportKeyPair | undefined;
|
|
18
18
|
};
|
|
19
19
|
export type CanDecryptValuesFromPairsReturnType = {
|
|
20
20
|
readonly allowed: boolean;
|
|
@@ -2,11 +2,11 @@ import type { Fhevm } from '../../types/coreFhevmClient.js';
|
|
|
2
2
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
3
|
import type { WithDecrypt } from '../../types/coreFhevmRuntime.js';
|
|
4
4
|
import type { KmsSigncryptedShares } from '../../types/kms.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
6
6
|
import type { TypedValue } from '../../types/primitives.js';
|
|
7
7
|
export type DecryptKmsSignedcryptedSharesParameters = {
|
|
8
8
|
readonly kmsSigncryptedShares: KmsSigncryptedShares;
|
|
9
|
-
readonly
|
|
9
|
+
readonly transportKeyPair: TransportKeyPair;
|
|
10
10
|
};
|
|
11
11
|
export type DecryptKmsSignedcryptedSharesReturnType = readonly TypedValue[];
|
|
12
12
|
export declare function decryptKmsSignedcryptedShares(fhevm: Fhevm<FhevmChain, WithDecrypt>, parameters: DecryptKmsSignedcryptedSharesParameters): Promise<DecryptKmsSignedcryptedSharesReturnType>;
|
|
@@ -4,12 +4,12 @@ import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
|
4
4
|
import type { RelayerDelegatedUserDecryptOptions, RelayerUserDecryptOptions } from '../../types/relayer.js';
|
|
5
5
|
import type { SignedDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
6
6
|
import type { WithDecrypt } from '../../types/coreFhevmRuntime.js';
|
|
7
|
-
import type {
|
|
7
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
8
8
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
9
9
|
export type DecryptValueParameters = {
|
|
10
10
|
readonly encryptedValue: EncryptedValueLike;
|
|
11
11
|
readonly contractAddress: string;
|
|
12
|
-
readonly
|
|
12
|
+
readonly transportKeyPair: TransportKeyPair;
|
|
13
13
|
readonly signedPermit: SignedDecryptionPermit;
|
|
14
14
|
readonly options?: RelayerUserDecryptOptions | RelayerDelegatedUserDecryptOptions | undefined;
|
|
15
15
|
};
|
|
@@ -4,12 +4,12 @@ import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
|
4
4
|
import type { RelayerDelegatedUserDecryptOptions, RelayerUserDecryptOptions } from '../../types/relayer.js';
|
|
5
5
|
import type { SignedDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
6
6
|
import type { WithDecrypt } from '../../types/coreFhevmRuntime.js';
|
|
7
|
-
import type {
|
|
7
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
8
8
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
9
9
|
export type DecryptValuesParameters = {
|
|
10
10
|
readonly encryptedValues: readonly EncryptedValueLike[];
|
|
11
11
|
readonly contractAddress: string;
|
|
12
|
-
readonly
|
|
12
|
+
readonly transportKeyPair: TransportKeyPair;
|
|
13
13
|
readonly signedPermit: SignedDecryptionPermit;
|
|
14
14
|
readonly options?: RelayerUserDecryptOptions | RelayerDelegatedUserDecryptOptions | undefined;
|
|
15
15
|
};
|
|
@@ -4,14 +4,14 @@ import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
|
4
4
|
import type { RelayerDelegatedUserDecryptOptions, RelayerUserDecryptOptions } from '../../types/relayer.js';
|
|
5
5
|
import type { SignedDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
6
6
|
import type { WithDecrypt } from '../../types/coreFhevmRuntime.js';
|
|
7
|
-
import type {
|
|
7
|
+
import type { TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
8
8
|
import type { EncryptedValueLike } from '../../types/encryptedTypes.js';
|
|
9
9
|
export type DecryptValuesFromPairsParameters = {
|
|
10
10
|
readonly pairs: ReadonlyArray<{
|
|
11
11
|
readonly encryptedValue: EncryptedValueLike;
|
|
12
12
|
readonly contractAddress: string;
|
|
13
13
|
}>;
|
|
14
|
-
readonly
|
|
14
|
+
readonly transportKeyPair: TransportKeyPair;
|
|
15
15
|
readonly signedPermit: SignedDecryptionPermit;
|
|
16
16
|
readonly options?: RelayerUserDecryptOptions | RelayerDelegatedUserDecryptOptions | undefined;
|
|
17
17
|
};
|
package/_types/core/actions/decrypt/{generateTransportKeypair.d.ts → generateTransportKeyPair.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Fhevm, OptionalNativeClient } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { WithDecrypt } from '../../types/coreFhevmRuntime.js';
|
|
3
3
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
|
-
import { type
|
|
5
|
-
export type
|
|
6
|
-
export declare function
|
|
7
|
-
//# sourceMappingURL=
|
|
4
|
+
import { type TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
5
|
+
export type GenerateTransportKeyPairReturnType = TransportKeyPair;
|
|
6
|
+
export declare function generateTransportKeyPair(fhevm: Fhevm<FhevmChain | undefined, WithDecrypt, OptionalNativeClient>): Promise<GenerateTransportKeyPairReturnType>;
|
|
7
|
+
//# sourceMappingURL=generateTransportKeyPair.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"generateTransportKeyPair.d.ts","sourceRoot":"","sources":["../../../../core/actions/decrypt/generateTransportKeyPair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAC;AAIzC,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAAC;AAElE,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,SAAS,EAAE,WAAW,EAAE,oBAAoB,CAAC,GACtE,OAAO,CAAC,kCAAkC,CAAC,CAE7C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { RelayerUserDecryptOptions, RelayerUserDecryptProgressArgs } from '../../types/relayer.js';
|
|
2
2
|
export type { RelayerDelegatedUserDecryptOptions, RelayerDelegatedUserDecryptProgressArgs, } from '../../types/relayer.js';
|
|
3
|
-
export { type
|
|
3
|
+
export { type GenerateTransportKeyPairReturnType, generateTransportKeyPair } from './generateTransportKeyPair.js';
|
|
4
4
|
export { type DecryptValuesFromPairsParameters, type DecryptValuesFromPairsReturnType, decryptValuesFromPairs, } from './decryptValuesFromPairs.js';
|
|
5
5
|
export { type DecryptValueParameters, type DecryptValueReturnType, decryptValue } from './decryptValue.js';
|
|
6
6
|
export { type DecryptValuesParameters, type DecryptValuesReturnType, decryptValues } from './decryptValues.js';
|
|
@@ -8,4 +8,6 @@ export { type DecryptKmsSignedcryptedSharesParameters, type DecryptKmsSignedcryp
|
|
|
8
8
|
export { type CanDecryptValuesFromPairsWithUserAddressParameters, type CanDecryptValuesFromPairsWithPermitParameters, type CanDecryptValuesFromPairsReturnType, canDecryptValuesFromPairs, } from './canDecryptValuesFromPairs.js';
|
|
9
9
|
export { type CanDecryptValuesWithUserAddressParameters, type CanDecryptValuesWithPermitParameters, type CanDecryptValuesReturnType, canDecryptValues, } from './canDecryptValues.js';
|
|
10
10
|
export { type CanDecryptValueWithUserAddressParameters, type CanDecryptValueWithPermitParameters, type CanDecryptValueReturnType, canDecryptValue, } from './canDecryptValue.js';
|
|
11
|
+
export { type TransportKeyPair } from '../../kms/TransportKeyPair-p.js';
|
|
12
|
+
export { type SignDecryptionPermitParameters, type SignDecryptionPermitReturnType, } from '../base/signDecryptionPermit.js';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/actions/decrypt/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,w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CAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../core/base/address.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../core/base/address.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,KAAK,EACV,yBAAyB,EACzB,yCAAyC,EACzC,oCAAoC,EACrC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAYjE,eAAO,MAAM,YAAY,EAAmD,kBAAkB,CAAC;AAI/F;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAQhF;AAID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAOhF;AAID,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,GAClD,OAAO,CAAC,KAAK,IAAI,kBAAkB,CAoBrC;AAID,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,kBAAkB,CAGtG;AAID,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,OAAO,EACd,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,GAClD,OAAO,CAAC,KAAK,IAAI,kBAAkB,EAAE,CAgBvC;AAID,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAc1D;AAID,wBAAgB,SAAS,CAAC,K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CAAyC,CAAC,CAAC,CAAC,CAMhE;AAID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAMnF;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,kBAAkB,CAEhF;AAID,wBAAgB,qBAAqB,CAAC,oBAAoB,EAAE,MAAM,GAAG,kBAAkB,CAqBtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../../core/base/sign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAMhG,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAA;CAAE,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../../core/base/sign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAMhG,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAA;CAAE,GAAG,UAAU,CAyBjH;AA8CD,wBAAgB,cAAc,CAAC,UAAU,EAAE;IACzC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;CAChC,GAAG,kBAAkB,CAErB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FhevmBase, FhevmExtension } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
3
3
|
import type { SignedSelfDecryptionPermit, SignedDelegatedDecryptionPermit } from '../../types/signedDecryptionPermit.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SerializeTransportKeyPairParameters, SerializeTransportKeyPairReturnType } from '../../actions/chain/serializeTransportKeyPair.js';
|
|
5
5
|
import { type SignSelfDecryptionPermitParameters, type SignDelegatedDecryptionPermitParameters } from '../../actions/base/signDecryptionPermit.js';
|
|
6
|
-
import { type
|
|
6
|
+
import { type ParseTransportKeyPairParameters, type ParseTransportKeyPairReturnType } from '../../actions/chain/parseTransportKeyPair.js';
|
|
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';
|
|
@@ -102,10 +102,10 @@ export type BaseActions = {
|
|
|
102
102
|
*/
|
|
103
103
|
(parameters: SignDelegatedDecryptionPermitParameters): Promise<SignedDelegatedDecryptionPermit>;
|
|
104
104
|
};
|
|
105
|
-
/** Deserializes a previously serialized e2e transport
|
|
106
|
-
readonly
|
|
107
|
-
/** Serializes an e2e transport
|
|
108
|
-
readonly
|
|
105
|
+
/** Deserializes a previously serialized e2e transport key pair back into a usable key pair. */
|
|
106
|
+
readonly parseTransportKeyPair: (parameters: ParseTransportKeyPairParameters) => Promise<ParseTransportKeyPairReturnType>;
|
|
107
|
+
/** Serializes an e2e transport key pair to hex strings for storage. */
|
|
108
|
+
readonly serializeTransportKeyPair: (parameters: SerializeTransportKeyPairParameters) => SerializeTransportKeyPairReturnType;
|
|
109
109
|
/** Serializes a signed decryption permit to a plain object for storage or transmission. */
|
|
110
110
|
readonly serializeSignedDecryptionPermit: (parameters: SerializeSignedDecryptionPermitParameters) => SerializeSignedDecryptionPermitReturnType;
|
|
111
111
|
/** Parses and verifies a previously serialized signed decryption permit. */
|
|
@@ -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,yBAAyB,EAC9B,KAAK,yBAAyB,EAC/B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAChC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,KAAK,wCAAwC,EAC7C,KAAK,wCAAwC,EAC9C,MAAM,sDAAsD,CAAC;AAI9D,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ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CAAmC,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FhevmBase, FhevmExtension } from '../../types/coreFhevmClient.js';
|
|
2
2
|
import type { WithDecrypt } from '../../types/coreFhevmRuntime.js';
|
|
3
3
|
import type { FhevmChain } from '../../types/fhevmChain.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { GenerateTransportKeyPairReturnType } from '../../actions/decrypt/generateTransportKeyPair.js';
|
|
5
5
|
import type { DecryptModuleFactory } from '../../modules/decrypt/types.js';
|
|
6
6
|
import { type DecryptValueParameters, type DecryptValueReturnType } from '../../actions/decrypt/decryptValue.js';
|
|
7
7
|
import { type DecryptValuesParameters, type DecryptValuesReturnType } from '../../actions/decrypt/decryptValues.js';
|
|
@@ -10,7 +10,7 @@ export type DecryptActions = {
|
|
|
10
10
|
readonly decryptValue: (parameters: DecryptValueParameters) => Promise<DecryptValueReturnType>;
|
|
11
11
|
readonly decryptValues: (parameters: DecryptValuesParameters) => Promise<DecryptValuesReturnType>;
|
|
12
12
|
readonly decryptValuesFromPairs: (parameters: DecryptValuesFromPairsParameters) => Promise<DecryptValuesFromPairsReturnType>;
|
|
13
|
-
readonly
|
|
13
|
+
readonly generateTransportKeyPair: () => Promise<GenerateTransportKeyPairReturnType>;
|
|
14
14
|
};
|
|
15
15
|
export declare function decryptActionsWithModule(fhevm: FhevmBase<FhevmChain>, factory: DecryptModuleFactory): FhevmExtension<DecryptActions, WithDecrypt>;
|
|
16
16
|
//# sourceMappingURL=decrypt.d.ts.map
|
|
@@ -7,7 +7,8 @@ export declare const FHEVM_HANDLE_RAW_CT_HASH_DOMAIN_SEPARATOR = "ZK-w_rct";
|
|
|
7
7
|
export declare const FHEVM_HANDLE_HASH_DOMAIN_SEPARATOR = "ZK-w_hdl";
|
|
8
8
|
export declare function isZkProof(value: unknown): value is ZkProof;
|
|
9
9
|
export declare function assertIsZkProof(value: unknown, options: {
|
|
10
|
-
subject?: string;
|
|
10
|
+
readonly subject?: string;
|
|
11
|
+
readonly metaMessages?: string[] | undefined;
|
|
11
12
|
} & ErrorMetadataParams): asserts value is ZkProof;
|
|
12
13
|
/**
|
|
13
14
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZkProof-p.d.ts","sourceRoot":"","sources":["../../../core/coprocessor/ZkProof-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,KAAK,
|
|
1
|
+
{"version":3,"file":"ZkProof-p.d.ts","sourceRoot":"","sources":["../../../core/coprocessor/ZkProof-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,KAAK,EAKL,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,KAAK,EAAE,kDAAkD,EAAE,MAAM,6BAA6B,CAAC;AACtG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAwBhE,eAAO,MAAM,yCAAyC,aAAa,CAAC;AACpE,eAAO,MAAM,kCAAkC,aAAa,CAAC;AAyJ7D,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,OAAO,EACd,OAAO,EAAE;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,GAAG,mBAAmB,GACzG,OAAO,CAAC,KAAK,IAAI,OAAO,CAY1B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAC7B,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,QAAQ,EACnB,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,aAAa,CAAC,EAAE,kDAAkD,CAAC;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB,GACA,OAAO,CAAC,OAAO,CAAC,CA+ClB;AAMD,wBAAsB,gCAAgC,CACpD,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,kDAAkD,CAAC;CAC7E,GACA,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CA6BjC;AA6JD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAKhE"}
|
|
@@ -2,5 +2,4 @@ import type { EncryptedValue } from '../types/encryptedTypes.js';
|
|
|
2
2
|
export declare function assertIsEncryptedValue(value: unknown): asserts value is EncryptedValue;
|
|
3
3
|
export declare function isEncryptedValue(value: unknown): value is EncryptedValue;
|
|
4
4
|
export declare function asEncryptedValue(value: unknown): EncryptedValue;
|
|
5
|
-
export declare function toEncryptedValue(value: unknown): EncryptedValue;
|
|
6
5
|
//# sourceMappingURL=EncryptedValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncryptedValue.d.ts","sourceRoot":"","sources":["../../../core/handle/EncryptedValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,cAAc,CAGtF;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAOxE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAM/D
|
|
1
|
+
{"version":3,"file":"EncryptedValue.d.ts","sourceRoot":"","sources":["../../../core/handle/EncryptedValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,cAAc,CAGtF;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAOxE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAM/D"}
|