@fhevm/sdk 1.1.0-alpha.3 → 1.1.0-alpha.5
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/canDecryptPublicValue.js +1 -1
- package/_cjs/core/actions/base/canDecryptPublicValue.js.map +1 -1
- package/_cjs/core/actions/base/canDecryptPublicValues.js +1 -1
- package/_cjs/core/actions/base/canDecryptPublicValues.js.map +1 -1
- package/_cjs/core/actions/base/{fetchKmsSignedcryptedShares.js → fetchKmsSigncryptedShares.js} +5 -5
- package/_cjs/core/actions/base/fetchKmsSigncryptedShares.js.map +1 -0
- package/_cjs/core/actions/base/index.js +3 -3
- package/_cjs/core/actions/base/index.js.map +1 -1
- package/_cjs/core/actions/base/readKmsSignersContext.js +2 -1
- package/_cjs/core/actions/base/readKmsSignersContext.js.map +1 -1
- package/_cjs/core/actions/chain/parseTransportKeyPair.js.map +1 -1
- package/_cjs/core/actions/decrypt/decryptKmsSigncryptedShares.js +13 -0
- package/_cjs/core/actions/decrypt/decryptKmsSigncryptedShares.js.map +1 -0
- package/_cjs/core/actions/decrypt/decryptValue.js +3 -1
- package/_cjs/core/actions/decrypt/decryptValue.js.map +1 -1
- package/_cjs/core/actions/decrypt/decryptValues.js +3 -1
- package/_cjs/core/actions/decrypt/decryptValues.js.map +1 -1
- package/_cjs/core/actions/decrypt/decryptValuesFromPairs.js +3 -1
- package/_cjs/core/actions/decrypt/decryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/actions/decrypt/generateTransportKeyPair.js +3 -1
- package/_cjs/core/actions/decrypt/generateTransportKeyPair.js.map +1 -1
- package/_cjs/core/actions/decrypt/index.js +3 -3
- package/_cjs/core/actions/decrypt/index.js.map +1 -1
- package/_cjs/core/actions/encrypt/encryptValue.js +3 -1
- package/_cjs/core/actions/encrypt/encryptValue.js.map +1 -1
- package/_cjs/core/actions/encrypt/encryptValues.js +3 -1
- package/_cjs/core/actions/encrypt/encryptValues.js.map +1 -1
- package/_cjs/core/actions/encrypt/generateZkProof.js +5 -1
- package/_cjs/core/actions/encrypt/generateZkProof.js.map +1 -1
- package/_cjs/core/actions/host/readFhevmExecutorContractData.js +7 -7
- package/_cjs/core/actions/host/readFhevmExecutorContractData.js.map +1 -1
- package/_cjs/core/actions/host/readInputVerifierContractData.js +1 -1
- package/_cjs/core/actions/host/readInputVerifierContractData.js.map +1 -1
- package/_cjs/core/actions/host/readKmsVerifierContractData.js +6 -5
- package/_cjs/core/actions/host/readKmsVerifierContractData.js.map +1 -1
- package/_cjs/core/actions/host/resolveFhevmConfig.js +7 -1
- package/_cjs/core/actions/host/resolveFhevmConfig.js.map +1 -1
- package/_cjs/core/base/auth.js +8 -6
- package/_cjs/core/base/auth.js.map +1 -1
- package/_cjs/core/base/errors/InvalidUrlError.js +17 -0
- package/_cjs/core/base/errors/InvalidUrlError.js.map +1 -0
- package/_cjs/core/base/fetch.js +37 -0
- package/_cjs/core/base/fetch.js.map +1 -1
- package/_cjs/core/base/object.js +23 -0
- package/_cjs/core/base/object.js.map +1 -1
- package/_cjs/core/base/semver.js +166 -0
- package/_cjs/core/base/semver.js.map +1 -0
- package/_cjs/core/base/string.js +10 -0
- package/_cjs/core/base/string.js.map +1 -1
- package/_cjs/core/base/uint.js +20 -3
- package/_cjs/core/base/uint.js.map +1 -1
- package/_cjs/core/chains/definitions/localTestnet.js +3 -0
- package/_cjs/core/chains/definitions/localTestnet.js.map +1 -1
- package/_cjs/core/chains/definitions/mainnet.js +1 -0
- package/_cjs/core/chains/definitions/mainnet.js.map +1 -1
- package/_cjs/core/chains/definitions/sepolia.js +1 -0
- package/_cjs/core/chains/definitions/sepolia.js.map +1 -1
- package/_cjs/core/clients/decorators/base.js +5 -0
- package/_cjs/core/clients/decorators/base.js.map +1 -1
- package/_cjs/core/clients/decorators/decrypt-p.js +13 -0
- package/_cjs/core/clients/decorators/decrypt-p.js.map +1 -0
- package/_cjs/core/clients/decorators/decrypt.js +4 -7
- package/_cjs/core/clients/decorators/decrypt.js.map +1 -1
- package/_cjs/core/clients/decorators/encrypt-p.js +5 -1
- package/_cjs/core/clients/decorators/encrypt-p.js.map +1 -1
- package/_cjs/core/clients/decorators/encrypt.js.map +1 -1
- package/_cjs/core/coprocessor/ZkProof-p.js +4 -2
- package/_cjs/core/coprocessor/ZkProof-p.js.map +1 -1
- package/_cjs/core/coprocessor/ZkProofBuilder-p.js +2 -1
- package/_cjs/core/coprocessor/ZkProofBuilder-p.js.map +1 -1
- package/_cjs/core/coprocessor/encrypt.js +1 -1
- package/_cjs/core/coprocessor/encrypt.js.map +1 -1
- package/_cjs/core/errors/RelayerResponseStatusError.js +3 -2
- package/_cjs/core/errors/RelayerResponseStatusError.js.map +1 -1
- package/_cjs/core/host-contracts/HostContractVersion-p.js +26 -4
- package/_cjs/core/host-contracts/HostContractVersion-p.js.map +1 -1
- package/_cjs/core/host-contracts/KmsSignersContext-p.js +23 -5
- package/_cjs/core/host-contracts/KmsSignersContext-p.js.map +1 -1
- package/_cjs/core/host-contracts/abi-fragments/fragments.js +21 -1
- package/_cjs/core/host-contracts/abi-fragments/fragments.js.map +1 -1
- package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js +1 -1
- package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/host-contracts/checkAllowedForDecryption.js +2 -2
- package/_cjs/core/host-contracts/checkAllowedForDecryption.js.map +1 -1
- package/_cjs/core/host-contracts/checkDelegation.js +8 -8
- package/_cjs/core/host-contracts/checkDelegation.js.map +1 -1
- package/_cjs/core/host-contracts/checkPersistAllowed.js +9 -9
- package/_cjs/core/host-contracts/checkPersistAllowed.js.map +1 -1
- package/_cjs/core/host-contracts/getAclAddress-p.js +1 -2
- package/_cjs/core/host-contracts/getAclAddress-p.js.map +1 -1
- package/_cjs/core/host-contracts/getCurrentKmsContextAndEpoch-p.js +51 -0
- package/_cjs/core/host-contracts/getCurrentKmsContextAndEpoch-p.js.map +1 -0
- package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js +4 -5
- package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -1
- package/_cjs/core/host-contracts/getFhevmExecutorAddress-p.js +1 -1
- package/_cjs/core/host-contracts/getFhevmExecutorAddress-p.js.map +1 -1
- package/_cjs/core/host-contracts/getHandleVersion-p.js +1 -2
- package/_cjs/core/host-contracts/getHandleVersion-p.js.map +1 -1
- package/_cjs/core/host-contracts/getHcuLimitAddress-p.js +1 -2
- package/_cjs/core/host-contracts/getHcuLimitAddress-p.js.map +1 -1
- package/_cjs/core/host-contracts/getInputVerifierAddress-p.js +1 -2
- package/_cjs/core/host-contracts/getInputVerifierAddress-p.js.map +1 -1
- package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js +5 -7
- package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -1
- package/_cjs/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js +4 -5
- package/_cjs/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js.map +1 -1
- package/_cjs/core/host-contracts/getSignersForKmsContext-p.js +3 -5
- package/_cjs/core/host-contracts/getSignersForKmsContext-p.js.map +1 -1
- package/_cjs/core/host-contracts/isAllowedForDecryption.js +4 -4
- package/_cjs/core/host-contracts/isAllowedForDecryption.js.map +1 -1
- package/_cjs/core/host-contracts/isHandleDelegatedForUserDecryption-p.js +5 -5
- package/_cjs/core/host-contracts/isHandleDelegatedForUserDecryption-p.js.map +1 -1
- package/_cjs/core/host-contracts/isUserDecryptable.js +2 -2
- package/_cjs/core/host-contracts/isUserDecryptable.js.map +1 -1
- package/_cjs/core/host-contracts/persistAllowed.js +4 -4
- package/_cjs/core/host-contracts/persistAllowed.js.map +1 -1
- package/_cjs/core/host-contracts/readKmsSignersContext-p.js +74 -25
- package/_cjs/core/host-contracts/readKmsSignersContext-p.js.map +1 -1
- package/_cjs/core/key/FheEncryptionKeyWasm-p.js +12 -4
- package/_cjs/core/key/FheEncryptionKeyWasm-p.js.map +1 -1
- package/_cjs/core/key/deserializeFheEncryptionKey.js +3 -0
- package/_cjs/core/key/deserializeFheEncryptionKey.js.map +1 -1
- package/_cjs/core/key/fetchFheEncryptionKey.js +1 -1
- package/_cjs/core/key/fetchFheEncryptionKey.js.map +1 -1
- package/_cjs/core/key/fetchFheEncryptionKeyBytes.js.map +1 -1
- package/_cjs/core/key/serializeFheEncryptionKey.js +4 -1
- package/_cjs/core/key/serializeFheEncryptionKey.js.map +1 -1
- package/_cjs/core/kms/KmsSigncryptedShares-p.js +9 -1
- package/_cjs/core/kms/KmsSigncryptedShares-p.js.map +1 -1
- package/_cjs/core/kms/SignedDecryptionPermit-p.js +5 -1
- package/_cjs/core/kms/SignedDecryptionPermit-p.js.map +1 -1
- package/_cjs/core/kms/TransportKeyPair-p.js +31 -7
- package/_cjs/core/kms/TransportKeyPair-p.js.map +1 -1
- package/_cjs/core/kms/createKmsUserDecryptEip712.js +4 -0
- package/_cjs/core/kms/createKmsUserDecryptEip712.js.map +1 -1
- package/_cjs/core/kms/createKmsUserDecryptEip712V2.js +97 -0
- package/_cjs/core/kms/createKmsUserDecryptEip712V2.js.map +1 -0
- package/_cjs/core/kms/{decryptKmsSignedcryptedShares-p.js → decryptKmsSigncryptedShares-p.js} +10 -3
- package/_cjs/core/kms/decryptKmsSigncryptedShares-p.js.map +1 -0
- package/_cjs/core/kms/decryptValuesFromPairs.js +4 -4
- package/_cjs/core/kms/decryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/kms/{fetchKmsSignedcryptedShares-p.js → fetchKmsSigncryptedShares-p.js} +10 -6
- package/_cjs/core/kms/fetchKmsSigncryptedShares-p.js.map +1 -0
- package/_cjs/core/kms/kmsExtraData.js +53 -10
- package/_cjs/core/kms/kmsExtraData.js.map +1 -1
- package/_cjs/core/kms/kmsUserDecryptEip712V2Types.js +25 -0
- package/_cjs/core/kms/kmsUserDecryptEip712V2Types.js.map +1 -0
- package/_cjs/core/kms/publicDecrypt.js +5 -3
- package/_cjs/core/kms/publicDecrypt.js.map +1 -1
- package/_cjs/core/modules/decrypt/mock.js +1 -23
- package/_cjs/core/modules/decrypt/mock.js.map +1 -1
- package/_cjs/core/modules/decrypt/module/api-p.js +51 -23
- package/_cjs/core/modules/decrypt/module/api-p.js.map +1 -1
- package/_cjs/core/modules/decrypt/module/index.js +5 -27
- package/_cjs/core/modules/decrypt/module/index.js.map +1 -1
- package/_cjs/core/modules/decrypt/module/init-p.js +40 -19
- package/_cjs/core/modules/decrypt/module/init-p.js.map +1 -1
- package/_cjs/core/modules/encrypt/mock.js +26 -8
- package/_cjs/core/modules/encrypt/mock.js.map +1 -1
- package/_cjs/core/modules/encrypt/module/api-p.js +50 -21
- package/_cjs/core/modules/encrypt/module/api-p.js.map +1 -1
- package/_cjs/core/modules/encrypt/module/index.js +3 -3
- package/_cjs/core/modules/encrypt/module/index.js.map +1 -1
- package/_cjs/core/modules/encrypt/module/init-p.js +63 -24
- package/_cjs/core/modules/encrypt/module/init-p.js.map +1 -1
- package/_cjs/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js +1 -1
- package/_cjs/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/cleartext/fetchUserDecrypt.js +1 -1
- package/_cjs/core/modules/relayer/cleartext/fetchUserDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js +44 -11
- package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchCoprocessorSignatures.js +5 -2
- package/_cjs/core/modules/relayer/module/fetchCoprocessorSignatures.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecrypt.js +5 -1
- package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeySource.js +15 -6
- package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeySource.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js +5 -1
- package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js +5 -1
- package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/readErrorMessage.js +29 -0
- package/_cjs/core/modules/relayer/module/readErrorMessage.js.map +1 -0
- package/_cjs/core/modules/relayer/module/relayerUrl.js +33 -27
- package/_cjs/core/modules/relayer/module/relayerUrl.js.map +1 -1
- package/_cjs/core/runtime/CoreFhevm-p.js +171 -5
- package/_cjs/core/runtime/CoreFhevm-p.js.map +1 -1
- package/_cjs/core/runtime/HyperWasmSolver-p.js +187 -0
- package/_cjs/core/runtime/HyperWasmSolver-p.js.map +1 -0
- package/_cjs/core/runtime/ProtocolVersionResolver-p.js +270 -0
- package/_cjs/core/runtime/ProtocolVersionResolver-p.js.map +1 -0
- package/_cjs/core/runtime/initFhevmDecryptRuntime-p.js +1 -1
- package/_cjs/core/runtime/initFhevmDecryptRuntime-p.js.map +1 -1
- package/_cjs/core/runtime/initFhevmEncryptRuntime-p.js +1 -1
- package/_cjs/core/runtime/initFhevmEncryptRuntime-p.js.map +1 -1
- package/_cjs/core/runtime/initFhevmRuntime-p.js +4 -1
- package/_cjs/core/runtime/initFhevmRuntime-p.js.map +1 -1
- package/_cjs/core/runtime/resolveFhevmVersions-p.js +48 -0
- package/_cjs/core/runtime/resolveFhevmVersions-p.js.map +1 -0
- package/_cjs/core/runtimeConfig-p.js +10 -0
- package/_cjs/core/runtimeConfig-p.js.map +1 -1
- package/_cjs/core/types/{zkProofBuilder.js → moduleVersions.js} +1 -1
- package/_cjs/core/types/moduleVersions.js.map +1 -0
- package/_cjs/core/types/{fhevmUser.js → wasmAssets.js} +1 -1
- package/_cjs/core/types/wasmAssets.js.map +1 -0
- package/_cjs/core/types/{fhevmDecryptionKey.js → zkProofBuilder-p.js} +1 -1
- package/_cjs/core/types/zkProofBuilder-p.js.map +1 -0
- package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js +1 -0
- package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -1
- package/_cjs/ethers/internal/config.js +1 -18
- package/_cjs/ethers/internal/config.js.map +1 -1
- package/_cjs/viem/internal/config.js +1 -18
- package/_cjs/viem/internal/config.js.map +1 -1
- package/_cjs/wasm/tfhe/loadTfheLib.js.map +1 -1
- package/_cjs/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
- package/_cjs/wasm/tfhe/v1.5.3/tfhe.js +6 -1
- package/_cjs/wasm/tfhe/v1.5.3/tfhe.js.map +2 -2
- package/_cjs/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
- package/_cjs/wasm/tfhe/v1.6.1/tfhe.js +6 -1
- package/_cjs/wasm/tfhe/v1.6.1/tfhe.js.map +2 -2
- package/_cjs/wasm/tkms/loadKmsLib.js.map +1 -1
- package/_cjs/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
- package/_cjs/wasm/tkms/v0.13.10/kms_lib.js +6 -1
- package/_cjs/wasm/tkms/v0.13.10/kms_lib.js.map +2 -2
- package/_cjs/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
- package/_cjs/wasm/tkms/v0.13.20-0/kms_lib.js +6 -1
- package/_cjs/wasm/tkms/v0.13.20-0/kms_lib.js.map +2 -2
- package/_cjs/wasm/wasmBaseUrl.js +23 -7
- package/_cjs/wasm/wasmBaseUrl.js.map +2 -2
- package/_esm/core/_version.js +1 -1
- package/_esm/core/actions/base/canDecryptPublicValue.js +1 -1
- package/_esm/core/actions/base/canDecryptPublicValue.js.map +1 -1
- package/_esm/core/actions/base/canDecryptPublicValues.js +1 -1
- package/_esm/core/actions/base/canDecryptPublicValues.js.map +1 -1
- package/_esm/core/actions/base/{fetchKmsSignedcryptedShares.js → fetchKmsSigncryptedShares.js} +4 -4
- package/_esm/core/actions/base/fetchKmsSigncryptedShares.js.map +1 -0
- package/_esm/core/actions/base/index.js +1 -1
- package/_esm/core/actions/base/index.js.map +1 -1
- package/_esm/core/actions/base/readKmsSignersContext.js +2 -1
- package/_esm/core/actions/base/readKmsSignersContext.js.map +1 -1
- package/_esm/core/actions/chain/parseTransportKeyPair.js.map +1 -1
- package/_esm/core/actions/decrypt/decryptKmsSigncryptedShares.js +11 -0
- package/_esm/core/actions/decrypt/decryptKmsSigncryptedShares.js.map +1 -0
- package/_esm/core/actions/decrypt/decryptValue.js +3 -1
- package/_esm/core/actions/decrypt/decryptValue.js.map +1 -1
- package/_esm/core/actions/decrypt/decryptValues.js +3 -1
- package/_esm/core/actions/decrypt/decryptValues.js.map +1 -1
- package/_esm/core/actions/decrypt/decryptValuesFromPairs.js +3 -1
- package/_esm/core/actions/decrypt/decryptValuesFromPairs.js.map +1 -1
- package/_esm/core/actions/decrypt/generateTransportKeyPair.js +3 -1
- package/_esm/core/actions/decrypt/generateTransportKeyPair.js.map +1 -1
- package/_esm/core/actions/decrypt/index.js +1 -1
- package/_esm/core/actions/decrypt/index.js.map +1 -1
- package/_esm/core/actions/encrypt/encryptValue.js +3 -1
- package/_esm/core/actions/encrypt/encryptValue.js.map +1 -1
- package/_esm/core/actions/encrypt/encryptValues.js +3 -1
- package/_esm/core/actions/encrypt/encryptValues.js.map +1 -1
- package/_esm/core/actions/encrypt/generateZkProof.js +5 -1
- package/_esm/core/actions/encrypt/generateZkProof.js.map +1 -1
- package/_esm/core/actions/host/readFhevmExecutorContractData.js +8 -8
- package/_esm/core/actions/host/readFhevmExecutorContractData.js.map +1 -1
- package/_esm/core/actions/host/readInputVerifierContractData.js +2 -2
- package/_esm/core/actions/host/readInputVerifierContractData.js.map +1 -1
- package/_esm/core/actions/host/readKmsVerifierContractData.js +7 -6
- package/_esm/core/actions/host/readKmsVerifierContractData.js.map +1 -1
- package/_esm/core/actions/host/resolveFhevmConfig.js +7 -1
- package/_esm/core/actions/host/resolveFhevmConfig.js.map +1 -1
- package/_esm/core/base/auth.js +8 -6
- package/_esm/core/base/auth.js.map +1 -1
- package/_esm/core/base/errors/InvalidUrlError.js +13 -0
- package/_esm/core/base/errors/InvalidUrlError.js.map +1 -0
- package/_esm/core/base/fetch.js +96 -0
- package/_esm/core/base/fetch.js.map +1 -1
- package/_esm/core/base/object.js +28 -0
- package/_esm/core/base/object.js.map +1 -1
- package/_esm/core/base/semver.js +164 -0
- package/_esm/core/base/semver.js.map +1 -0
- package/_esm/core/base/string.js +9 -0
- package/_esm/core/base/string.js.map +1 -1
- package/_esm/core/base/uint.js +23 -2
- package/_esm/core/base/uint.js.map +1 -1
- package/_esm/core/chains/definitions/localTestnet.js +3 -0
- package/_esm/core/chains/definitions/localTestnet.js.map +1 -1
- package/_esm/core/chains/definitions/mainnet.js +1 -0
- package/_esm/core/chains/definitions/mainnet.js.map +1 -1
- package/_esm/core/chains/definitions/sepolia.js +1 -0
- package/_esm/core/chains/definitions/sepolia.js.map +1 -1
- package/_esm/core/clients/decorators/base.js +6 -1
- package/_esm/core/clients/decorators/base.js.map +1 -1
- package/_esm/core/clients/decorators/decrypt-p.js +11 -0
- package/_esm/core/clients/decorators/decrypt-p.js.map +1 -0
- package/_esm/core/clients/decorators/decrypt.js +3 -7
- package/_esm/core/clients/decorators/decrypt.js.map +1 -1
- package/_esm/core/clients/decorators/encrypt-p.js +6 -2
- package/_esm/core/clients/decorators/encrypt-p.js.map +1 -1
- package/_esm/core/clients/decorators/encrypt.js.map +1 -1
- package/_esm/core/coprocessor/ZkProof-p.js +4 -2
- package/_esm/core/coprocessor/ZkProof-p.js.map +1 -1
- package/_esm/core/coprocessor/ZkProofBuilder-p.js +2 -1
- package/_esm/core/coprocessor/ZkProofBuilder-p.js.map +1 -1
- package/_esm/core/coprocessor/encrypt.js +1 -1
- package/_esm/core/coprocessor/encrypt.js.map +1 -1
- package/_esm/core/errors/RelayerResponseStatusError.js +7 -2
- package/_esm/core/errors/RelayerResponseStatusError.js.map +1 -1
- package/_esm/core/host-contracts/HostContractVersion-p.js +34 -3
- package/_esm/core/host-contracts/HostContractVersion-p.js.map +1 -1
- package/_esm/core/host-contracts/KmsSignersContext-p.js +24 -6
- package/_esm/core/host-contracts/KmsSignersContext-p.js.map +1 -1
- package/_esm/core/host-contracts/abi-fragments/fragments.js +24 -0
- package/_esm/core/host-contracts/abi-fragments/fragments.js.map +1 -1
- package/_esm/core/host-contracts/canDecryptValuesFromPairs.js +1 -1
- package/_esm/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -1
- package/_esm/core/host-contracts/checkAllowedForDecryption.js +2 -2
- package/_esm/core/host-contracts/checkAllowedForDecryption.js.map +1 -1
- package/_esm/core/host-contracts/checkDelegation.js +8 -8
- package/_esm/core/host-contracts/checkDelegation.js.map +1 -1
- package/_esm/core/host-contracts/checkPersistAllowed.js +9 -9
- package/_esm/core/host-contracts/checkPersistAllowed.js.map +1 -1
- package/_esm/core/host-contracts/getAclAddress-p.js +1 -2
- package/_esm/core/host-contracts/getAclAddress-p.js.map +1 -1
- package/_esm/core/host-contracts/getCurrentKmsContextAndEpoch-p.js +63 -0
- package/_esm/core/host-contracts/getCurrentKmsContextAndEpoch-p.js.map +1 -0
- package/_esm/core/host-contracts/getCurrentKmsContextId-p.js +6 -7
- package/_esm/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -1
- package/_esm/core/host-contracts/getFhevmExecutorAddress-p.js +1 -1
- package/_esm/core/host-contracts/getFhevmExecutorAddress-p.js.map +1 -1
- package/_esm/core/host-contracts/getHandleVersion-p.js +1 -2
- package/_esm/core/host-contracts/getHandleVersion-p.js.map +1 -1
- package/_esm/core/host-contracts/getHcuLimitAddress-p.js +1 -2
- package/_esm/core/host-contracts/getHcuLimitAddress-p.js.map +1 -1
- package/_esm/core/host-contracts/getInputVerifierAddress-p.js +1 -2
- package/_esm/core/host-contracts/getInputVerifierAddress-p.js.map +1 -1
- package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js +6 -8
- package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -1
- package/_esm/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js +5 -6
- package/_esm/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js.map +1 -1
- package/_esm/core/host-contracts/getSignersForKmsContext-p.js +5 -7
- package/_esm/core/host-contracts/getSignersForKmsContext-p.js.map +1 -1
- package/_esm/core/host-contracts/isAllowedForDecryption.js +4 -4
- package/_esm/core/host-contracts/isAllowedForDecryption.js.map +1 -1
- package/_esm/core/host-contracts/isHandleDelegatedForUserDecryption-p.js +5 -5
- package/_esm/core/host-contracts/isHandleDelegatedForUserDecryption-p.js.map +1 -1
- package/_esm/core/host-contracts/isUserDecryptable.js +2 -2
- package/_esm/core/host-contracts/isUserDecryptable.js.map +1 -1
- package/_esm/core/host-contracts/persistAllowed.js +4 -4
- package/_esm/core/host-contracts/persistAllowed.js.map +1 -1
- package/_esm/core/host-contracts/readKmsSignersContext-p.js +89 -29
- package/_esm/core/host-contracts/readKmsSignersContext-p.js.map +1 -1
- package/_esm/core/key/FheEncryptionKeyWasm-p.js +12 -4
- package/_esm/core/key/FheEncryptionKeyWasm-p.js.map +1 -1
- package/_esm/core/key/deserializeFheEncryptionKey.js +3 -0
- package/_esm/core/key/deserializeFheEncryptionKey.js.map +1 -1
- package/_esm/core/key/fetchFheEncryptionKey.js +1 -1
- package/_esm/core/key/fetchFheEncryptionKey.js.map +1 -1
- package/_esm/core/key/fetchFheEncryptionKeyBytes.js.map +1 -1
- package/_esm/core/key/serializeFheEncryptionKey.js +4 -1
- package/_esm/core/key/serializeFheEncryptionKey.js.map +1 -1
- package/_esm/core/kms/KmsSigncryptedShares-p.js +9 -1
- package/_esm/core/kms/KmsSigncryptedShares-p.js.map +1 -1
- package/_esm/core/kms/SignedDecryptionPermit-p.js +5 -1
- package/_esm/core/kms/SignedDecryptionPermit-p.js.map +1 -1
- package/_esm/core/kms/TransportKeyPair-p.js +32 -7
- package/_esm/core/kms/TransportKeyPair-p.js.map +1 -1
- package/_esm/core/kms/createKmsUserDecryptEip712.js +4 -0
- package/_esm/core/kms/createKmsUserDecryptEip712.js.map +1 -1
- package/_esm/core/kms/createKmsUserDecryptEip712V2.js +98 -0
- package/_esm/core/kms/createKmsUserDecryptEip712V2.js.map +1 -0
- package/_esm/core/kms/{decryptKmsSignedcryptedShares-p.js → decryptKmsSigncryptedShares-p.js} +9 -2
- package/_esm/core/kms/decryptKmsSigncryptedShares-p.js.map +1 -0
- package/_esm/core/kms/decryptValuesFromPairs.js +4 -4
- package/_esm/core/kms/decryptValuesFromPairs.js.map +1 -1
- package/_esm/core/kms/{fetchKmsSignedcryptedShares-p.js → fetchKmsSigncryptedShares-p.js} +12 -6
- package/_esm/core/kms/fetchKmsSigncryptedShares-p.js.map +1 -0
- package/_esm/core/kms/kmsExtraData.js +70 -12
- package/_esm/core/kms/kmsExtraData.js.map +1 -1
- package/_esm/core/kms/kmsUserDecryptEip712V2Types.js +28 -0
- package/_esm/core/kms/kmsUserDecryptEip712V2Types.js.map +1 -0
- package/_esm/core/kms/publicDecrypt.js +5 -3
- package/_esm/core/kms/publicDecrypt.js.map +1 -1
- package/_esm/core/modules/decrypt/mock.js +0 -24
- package/_esm/core/modules/decrypt/mock.js.map +1 -1
- package/_esm/core/modules/decrypt/module/api-p.js +51 -23
- package/_esm/core/modules/decrypt/module/api-p.js.map +1 -1
- package/_esm/core/modules/decrypt/module/index.js +31 -25
- package/_esm/core/modules/decrypt/module/index.js.map +1 -1
- package/_esm/core/modules/decrypt/module/init-p.js +41 -19
- package/_esm/core/modules/decrypt/module/init-p.js.map +1 -1
- package/_esm/core/modules/encrypt/mock.js +26 -9
- package/_esm/core/modules/encrypt/mock.js.map +1 -1
- package/_esm/core/modules/encrypt/module/api-p.js +50 -21
- package/_esm/core/modules/encrypt/module/api-p.js.map +1 -1
- package/_esm/core/modules/encrypt/module/index.js +3 -3
- package/_esm/core/modules/encrypt/module/index.js.map +1 -1
- package/_esm/core/modules/encrypt/module/init-p.js +69 -29
- package/_esm/core/modules/encrypt/module/init-p.js.map +1 -1
- package/_esm/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js +2 -2
- package/_esm/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/cleartext/fetchUserDecrypt.js +2 -2
- package/_esm/core/modules/relayer/cleartext/fetchUserDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js +74 -17
- package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchCoprocessorSignatures.js +5 -2
- package/_esm/core/modules/relayer/module/fetchCoprocessorSignatures.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchDelegatedUserDecrypt.js +6 -2
- package/_esm/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchFheEncryptionKeySource.js +20 -8
- package/_esm/core/modules/relayer/module/fetchFheEncryptionKeySource.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js +6 -2
- package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchUserDecrypt.js +6 -2
- package/_esm/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/readErrorMessage.js +52 -0
- package/_esm/core/modules/relayer/module/readErrorMessage.js.map +1 -0
- package/_esm/core/modules/relayer/module/relayerUrl.js +55 -27
- package/_esm/core/modules/relayer/module/relayerUrl.js.map +1 -1
- package/_esm/core/runtime/CoreFhevm-p.js +167 -5
- package/_esm/core/runtime/CoreFhevm-p.js.map +1 -1
- package/_esm/core/runtime/HyperWasmSolver-p.js +268 -0
- package/_esm/core/runtime/HyperWasmSolver-p.js.map +1 -0
- package/_esm/core/runtime/ProtocolVersionResolver-p.js +326 -0
- package/_esm/core/runtime/ProtocolVersionResolver-p.js.map +1 -0
- package/_esm/core/runtime/initFhevmDecryptRuntime-p.js +1 -1
- package/_esm/core/runtime/initFhevmDecryptRuntime-p.js.map +1 -1
- package/_esm/core/runtime/initFhevmEncryptRuntime-p.js +1 -1
- package/_esm/core/runtime/initFhevmEncryptRuntime-p.js.map +1 -1
- package/_esm/core/runtime/initFhevmRuntime-p.js +4 -1
- package/_esm/core/runtime/initFhevmRuntime-p.js.map +1 -1
- package/_esm/core/runtime/resolveFhevmVersions-p.js +62 -0
- package/_esm/core/runtime/resolveFhevmVersions-p.js.map +1 -0
- package/_esm/core/runtimeConfig-p.js +9 -0
- package/_esm/core/runtimeConfig-p.js.map +1 -1
- package/_esm/core/types/moduleVersions.js +2 -0
- package/_esm/core/types/moduleVersions.js.map +1 -0
- package/_esm/core/types/wasmAssets.js +2 -0
- package/_esm/core/types/wasmAssets.js.map +1 -0
- package/_esm/core/types/zkProofBuilder-p.js +2 -0
- package/_esm/core/types/zkProofBuilder-p.js.map +1 -0
- package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js +1 -0
- package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -1
- package/_esm/ethers/internal/config.js +1 -18
- package/_esm/ethers/internal/config.js.map +1 -1
- package/_esm/viem/internal/config.js +1 -18
- package/_esm/viem/internal/config.js.map +1 -1
- package/_esm/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
- package/_esm/wasm/tfhe/v1.5.3/tfhe.js +8 -0
- package/_esm/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
- package/_esm/wasm/tfhe/v1.6.1/tfhe.js +8 -0
- package/_esm/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
- package/_esm/wasm/tkms/v0.13.10/kms_lib.js +8 -0
- package/_esm/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
- package/_esm/wasm/tkms/v0.13.20-0/kms_lib.js +8 -0
- package/_esm/wasm/wasmBaseUrl.js +69 -4
- package/_types/core/actions/base/{fetchKmsSignedcryptedShares.d.ts → fetchKmsSigncryptedShares.d.ts} +7 -7
- package/_types/core/actions/base/fetchKmsSigncryptedShares.d.ts.map +1 -0
- package/_types/core/actions/base/index.d.ts +1 -1
- package/_types/core/actions/base/index.d.ts.map +1 -1
- package/_types/core/actions/base/readKmsSignersContext.d.ts.map +1 -1
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts +2 -2
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts.map +1 -1
- package/_types/core/actions/chain/parseTransportKeyPair.d.ts +1 -1
- package/_types/core/actions/chain/parseTransportKeyPair.d.ts.map +1 -1
- package/_types/core/actions/decrypt/{decryptKmsSignedcryptedShares.d.ts → decryptKmsSigncryptedShares.d.ts} +4 -4
- package/_types/core/actions/decrypt/decryptKmsSigncryptedShares.d.ts.map +1 -0
- package/_types/core/actions/decrypt/decryptValue.d.ts.map +1 -1
- package/_types/core/actions/decrypt/decryptValues.d.ts.map +1 -1
- package/_types/core/actions/decrypt/decryptValuesFromPairs.d.ts.map +1 -1
- package/_types/core/actions/decrypt/generateTransportKeyPair.d.ts +2 -2
- package/_types/core/actions/decrypt/generateTransportKeyPair.d.ts.map +1 -1
- package/_types/core/actions/decrypt/index.d.ts +1 -1
- package/_types/core/actions/decrypt/index.d.ts.map +1 -1
- package/_types/core/actions/encrypt/encryptValue.d.ts.map +1 -1
- package/_types/core/actions/encrypt/encryptValues.d.ts.map +1 -1
- package/_types/core/actions/encrypt/generateZkProof.d.ts.map +1 -1
- package/_types/core/actions/host/readKmsVerifierContractData.d.ts +1 -0
- package/_types/core/actions/host/readKmsVerifierContractData.d.ts.map +1 -1
- package/_types/core/actions/host/resolveFhevmConfig.d.ts +2 -0
- package/_types/core/actions/host/resolveFhevmConfig.d.ts.map +1 -1
- package/_types/core/base/auth.d.ts.map +1 -1
- package/_types/core/base/errors/InvalidUrlError.d.ts +14 -0
- package/_types/core/base/errors/InvalidUrlError.d.ts.map +1 -0
- package/_types/core/base/fetch.d.ts +57 -0
- package/_types/core/base/fetch.d.ts.map +1 -1
- package/_types/core/base/object.d.ts +7 -0
- package/_types/core/base/object.d.ts.map +1 -1
- package/_types/core/base/semver.d.ts +39 -0
- package/_types/core/base/semver.d.ts.map +1 -0
- package/_types/core/base/string.d.ts +1 -0
- package/_types/core/base/string.d.ts.map +1 -1
- package/_types/core/base/uint.d.ts +13 -2
- package/_types/core/base/uint.d.ts.map +1 -1
- package/_types/core/chains/definitions/localTestnet.d.ts +3 -0
- package/_types/core/chains/definitions/localTestnet.d.ts.map +1 -1
- package/_types/core/chains/definitions/mainnet.d.ts +1 -0
- package/_types/core/chains/definitions/mainnet.d.ts.map +1 -1
- package/_types/core/chains/definitions/sepolia.d.ts.map +1 -1
- package/_types/core/clients/decorators/base.d.ts.map +1 -1
- package/_types/core/clients/decorators/decrypt-p.d.ts +4 -0
- package/_types/core/clients/decorators/decrypt-p.d.ts.map +1 -0
- package/_types/core/clients/decorators/decrypt.d.ts +4 -2
- package/_types/core/clients/decorators/decrypt.d.ts.map +1 -1
- package/_types/core/clients/decorators/encrypt-p.d.ts +2 -3
- package/_types/core/clients/decorators/encrypt-p.d.ts.map +1 -1
- package/_types/core/clients/decorators/encrypt.d.ts +4 -2
- package/_types/core/clients/decorators/encrypt.d.ts.map +1 -1
- package/_types/core/coprocessor/ZkProof-p.d.ts +9 -2
- package/_types/core/coprocessor/ZkProof-p.d.ts.map +1 -1
- package/_types/core/coprocessor/ZkProofBuilder-p.d.ts +3 -1
- package/_types/core/coprocessor/ZkProofBuilder-p.d.ts.map +1 -1
- package/_types/core/coprocessor/encrypt.d.ts +2 -0
- package/_types/core/coprocessor/encrypt.d.ts.map +1 -1
- package/_types/core/errors/RelayerResponseStatusError.d.ts +7 -1
- package/_types/core/errors/RelayerResponseStatusError.d.ts.map +1 -1
- package/_types/core/host-contracts/HostContractVersion-p.d.ts +18 -1
- package/_types/core/host-contracts/HostContractVersion-p.d.ts.map +1 -1
- package/_types/core/host-contracts/KmsSignersContext-p.d.ts +2 -1
- package/_types/core/host-contracts/KmsSignersContext-p.d.ts.map +1 -1
- package/_types/core/host-contracts/abi-fragments/fragments.d.ts +5 -0
- package/_types/core/host-contracts/abi-fragments/fragments.d.ts.map +1 -1
- package/_types/core/host-contracts/checkAllowedForDecryption.d.ts +1 -1
- package/_types/core/host-contracts/checkAllowedForDecryption.d.ts.map +1 -1
- package/_types/core/host-contracts/checkDelegation.d.ts +1 -1
- package/_types/core/host-contracts/checkDelegation.d.ts.map +1 -1
- package/_types/core/host-contracts/checkPersistAllowed.d.ts +1 -1
- package/_types/core/host-contracts/checkPersistAllowed.d.ts.map +1 -1
- package/_types/core/host-contracts/getAclAddress-p.d.ts +1 -1
- package/_types/core/host-contracts/getAclAddress-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getCurrentKmsContextAndEpoch-p.d.ts +30 -0
- package/_types/core/host-contracts/getCurrentKmsContextAndEpoch-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getCurrentKmsContextId-p.d.ts +1 -1
- package/_types/core/host-contracts/getCurrentKmsContextId-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getFhevmExecutorAddress-p.d.ts +1 -1
- package/_types/core/host-contracts/getFhevmExecutorAddress-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getHandleVersion-p.d.ts +1 -1
- package/_types/core/host-contracts/getHandleVersion-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getHcuLimitAddress-p.d.ts +1 -1
- package/_types/core/host-contracts/getHcuLimitAddress-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getInputVerifierAddress-p.d.ts +1 -1
- package/_types/core/host-contracts/getInputVerifierAddress-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getKmsContextSignersAndThreshold-p.d.ts +1 -1
- package/_types/core/host-contracts/getKmsContextSignersAndThreshold-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.d.ts +1 -1
- package/_types/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.d.ts.map +1 -1
- package/_types/core/host-contracts/getSignersForKmsContext-p.d.ts +2 -2
- package/_types/core/host-contracts/getSignersForKmsContext-p.d.ts.map +1 -1
- package/_types/core/host-contracts/isAllowedForDecryption.d.ts +1 -1
- package/_types/core/host-contracts/isAllowedForDecryption.d.ts.map +1 -1
- package/_types/core/host-contracts/isHandleDelegatedForUserDecryption-p.d.ts +1 -1
- package/_types/core/host-contracts/isHandleDelegatedForUserDecryption-p.d.ts.map +1 -1
- package/_types/core/host-contracts/isUserDecryptable.d.ts +1 -1
- package/_types/core/host-contracts/isUserDecryptable.d.ts.map +1 -1
- package/_types/core/host-contracts/persistAllowed.d.ts +1 -1
- package/_types/core/host-contracts/persistAllowed.d.ts.map +1 -1
- package/_types/core/host-contracts/readKmsSignersContext-p.d.ts +25 -7
- package/_types/core/host-contracts/readKmsSignersContext-p.d.ts.map +1 -1
- package/_types/core/key/FheEncryptionKeyWasm-p.d.ts +3 -1
- package/_types/core/key/FheEncryptionKeyWasm-p.d.ts.map +1 -1
- package/_types/core/key/deserializeFheEncryptionKey.d.ts +2 -0
- package/_types/core/key/deserializeFheEncryptionKey.d.ts.map +1 -1
- package/_types/core/key/fetchFheEncryptionKey.d.ts +3 -1
- package/_types/core/key/fetchFheEncryptionKey.d.ts.map +1 -1
- package/_types/core/key/fetchFheEncryptionKeyBytes.d.ts.map +1 -1
- package/_types/core/key/serializeFheEncryptionKey.d.ts.map +1 -1
- package/_types/core/kms/KmsSigncryptedShares-p.d.ts.map +1 -1
- package/_types/core/kms/SignedDecryptionPermit-p.d.ts.map +1 -1
- package/_types/core/kms/TransportKeyPair-p.d.ts +9 -0
- package/_types/core/kms/TransportKeyPair-p.d.ts.map +1 -1
- package/_types/core/kms/createKmsUserDecryptEip712.d.ts.map +1 -1
- package/_types/core/kms/createKmsUserDecryptEip712V2.d.ts +15 -0
- package/_types/core/kms/createKmsUserDecryptEip712V2.d.ts.map +1 -0
- package/_types/core/kms/{decryptKmsSignedcryptedShares-p.d.ts → decryptKmsSigncryptedShares-p.d.ts} +4 -2
- package/_types/core/kms/decryptKmsSigncryptedShares-p.d.ts.map +1 -0
- package/_types/core/kms/decryptValuesFromPairs.d.ts +2 -0
- package/_types/core/kms/decryptValuesFromPairs.d.ts.map +1 -1
- package/_types/core/kms/{fetchKmsSignedcryptedShares-p.d.ts → fetchKmsSigncryptedShares-p.d.ts} +2 -2
- package/_types/core/kms/fetchKmsSigncryptedShares-p.d.ts.map +1 -0
- package/_types/core/kms/kmsExtraData.d.ts +9 -2
- package/_types/core/kms/kmsExtraData.d.ts.map +1 -1
- package/_types/core/kms/kmsUserDecryptEip712V2Types.d.ts +3 -0
- package/_types/core/kms/kmsUserDecryptEip712V2Types.d.ts.map +1 -0
- package/_types/core/kms/publicDecrypt.d.ts.map +1 -1
- package/_types/core/modules/decrypt/mock.d.ts +1 -2
- package/_types/core/modules/decrypt/mock.d.ts.map +1 -1
- package/_types/core/modules/decrypt/module/api-p.d.ts +2 -2
- package/_types/core/modules/decrypt/module/api-p.d.ts.map +1 -1
- package/_types/core/modules/decrypt/module/index.d.ts +1 -2
- package/_types/core/modules/decrypt/module/index.d.ts.map +1 -1
- package/_types/core/modules/decrypt/module/init-p.d.ts +3 -3
- package/_types/core/modules/decrypt/module/init-p.d.ts.map +1 -1
- package/_types/core/modules/decrypt/types.d.ts +33 -34
- package/_types/core/modules/decrypt/types.d.ts.map +1 -1
- package/_types/core/modules/encrypt/mock.d.ts.map +1 -1
- package/_types/core/modules/encrypt/module/api-p.d.ts.map +1 -1
- package/_types/core/modules/encrypt/module/index.d.ts.map +1 -1
- package/_types/core/modules/encrypt/module/init-p.d.ts +11 -4
- package/_types/core/modules/encrypt/module/init-p.d.ts.map +1 -1
- package/_types/core/modules/encrypt/types.d.ts +31 -2
- package/_types/core/modules/encrypt/types.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts +19 -0
- package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/fetchCoprocessorSignatures.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/fetchDelegatedUserDecrypt.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/fetchFheEncryptionKeySource.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/fetchPublicDecrypt.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/fetchUserDecrypt.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/readErrorMessage.d.ts +26 -0
- package/_types/core/modules/relayer/module/readErrorMessage.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/relayerUrl.d.ts +24 -5
- package/_types/core/modules/relayer/module/relayerUrl.d.ts.map +1 -1
- package/_types/core/runtime/CoreFhevm-p.d.ts +15 -4
- package/_types/core/runtime/CoreFhevm-p.d.ts.map +1 -1
- package/_types/core/runtime/HyperWasmSolver-p.d.ts +71 -0
- package/_types/core/runtime/HyperWasmSolver-p.d.ts.map +1 -0
- package/_types/core/runtime/ProtocolVersionResolver-p.d.ts +29 -0
- package/_types/core/runtime/ProtocolVersionResolver-p.d.ts.map +1 -0
- package/_types/core/runtime/initFhevmRuntime-p.d.ts.map +1 -1
- package/_types/core/runtime/resolveFhevmVersions-p.d.ts +21 -0
- package/_types/core/runtime/resolveFhevmVersions-p.d.ts.map +1 -0
- package/_types/core/runtimeConfig-p.d.ts +3 -2
- package/_types/core/runtimeConfig-p.d.ts.map +1 -1
- package/_types/core/types/auth.d.ts +12 -1
- package/_types/core/types/auth.d.ts.map +1 -1
- package/_types/core/types/coreFhevmClient.d.ts +72 -2
- package/_types/core/types/coreFhevmClient.d.ts.map +1 -1
- package/_types/core/types/coreFhevmRuntime.d.ts +3 -9
- package/_types/core/types/coreFhevmRuntime.d.ts.map +1 -1
- package/_types/core/types/fheEncryptionKey.d.ts +2 -0
- package/_types/core/types/fheEncryptionKey.d.ts.map +1 -1
- package/_types/core/types/fhevmChain.d.ts +3 -0
- package/_types/core/types/fhevmChain.d.ts.map +1 -1
- package/_types/core/types/hostContract.d.ts +1 -0
- package/_types/core/types/hostContract.d.ts.map +1 -1
- package/_types/core/types/index.d.ts +1 -1
- package/_types/core/types/index.d.ts.map +1 -1
- package/_types/core/types/kms-p.d.ts +2 -0
- package/_types/core/types/kms-p.d.ts.map +1 -1
- package/_types/core/types/kms.d.ts +71 -21
- package/_types/core/types/kms.d.ts.map +1 -1
- package/_types/core/types/kmsSignersContext.d.ts +8 -0
- package/_types/core/types/kmsSignersContext.d.ts.map +1 -1
- package/_types/core/types/logger.d.ts +1 -0
- package/_types/core/types/logger.d.ts.map +1 -1
- package/_types/core/types/moduleVersions.d.ts +25 -0
- package/_types/core/types/moduleVersions.d.ts.map +1 -0
- package/_types/core/types/relayer.d.ts +1 -0
- package/_types/core/types/relayer.d.ts.map +1 -1
- package/_types/core/types/tkms-p.d.ts +2 -0
- package/_types/core/types/tkms-p.d.ts.map +1 -1
- package/_types/core/types/wasmAssets.d.ts +2 -0
- package/_types/core/types/wasmAssets.d.ts.map +1 -0
- package/_types/core/types/{zkProofBuilder.d.ts → zkProofBuilder-p.d.ts} +8 -3
- package/_types/core/types/zkProofBuilder-p.d.ts.map +1 -0
- package/_types/core/utils-p/decrypt/verifyTkmsPublicKey.d.ts +2 -0
- package/_types/core/utils-p/decrypt/verifyTkmsPublicKey.d.ts.map +1 -1
- package/_types/ethers/cleartext/createFhevmCleartextDecryptClient.d.ts +2 -2
- package/_types/ethers/cleartext/createFhevmCleartextDecryptClient.d.ts.map +1 -1
- package/_types/ethers/cleartext/createFhevmCleartextEncryptClient.d.ts +2 -2
- package/_types/ethers/cleartext/createFhevmCleartextEncryptClient.d.ts.map +1 -1
- package/_types/ethers/clients/createFhevmDecryptClient.d.ts +2 -2
- package/_types/ethers/clients/createFhevmDecryptClient.d.ts.map +1 -1
- package/_types/ethers/clients/createFhevmEncryptClient.d.ts +2 -2
- package/_types/ethers/clients/createFhevmEncryptClient.d.ts.map +1 -1
- package/_types/viem/cleartext/createFhevmCleartextDecryptClient.d.ts +2 -2
- package/_types/viem/cleartext/createFhevmCleartextDecryptClient.d.ts.map +1 -1
- package/_types/viem/cleartext/createFhevmCleartextEncryptClient.d.ts +2 -2
- package/_types/viem/cleartext/createFhevmCleartextEncryptClient.d.ts.map +1 -1
- package/_types/viem/clients/createFhevmDecryptClient.d.ts +2 -2
- package/_types/viem/clients/createFhevmDecryptClient.d.ts.map +1 -1
- package/_types/viem/clients/createFhevmEncryptClient.d.ts +2 -2
- package/_types/viem/clients/createFhevmEncryptClient.d.ts.map +1 -1
- package/_types/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
- package/_types/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
- package/_types/wasm/tfheModuleVersion-p.d.ts +1 -1
- package/_types/wasm/tfheModuleVersion-p.d.ts.map +1 -1
- package/_types/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
- package/_types/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
- package/_types/wasm/tkmsModuleVersion-p.d.ts +1 -1
- package/_types/wasm/tkmsModuleVersion-p.d.ts.map +1 -1
- package/core/_version.ts +1 -1
- package/core/actions/base/canDecryptPublicValue.ts +1 -1
- package/core/actions/base/canDecryptPublicValues.ts +1 -1
- package/core/actions/base/{fetchKmsSignedcryptedShares.ts → fetchKmsSigncryptedShares.ts} +16 -16
- package/core/actions/base/index.ts +5 -5
- package/core/actions/base/readKmsSignersContext.ts +2 -1
- package/core/actions/chain/parseSignedDecryptionPermit.ts +2 -2
- package/core/actions/chain/parseTransportKeyPair.ts +2 -1
- package/core/actions/decrypt/{decryptKmsSignedcryptedShares.ts → decryptKmsSigncryptedShares.ts} +12 -9
- package/core/actions/decrypt/decryptValue.ts +4 -1
- package/core/actions/decrypt/decryptValues.ts +4 -1
- package/core/actions/decrypt/decryptValuesFromPairs.ts +4 -1
- package/core/actions/decrypt/generateTransportKeyPair.ts +5 -3
- package/core/actions/decrypt/index.ts +4 -4
- package/core/actions/encrypt/encryptValue.ts +4 -1
- package/core/actions/encrypt/encryptValues.ts +4 -1
- package/core/actions/encrypt/generateZkProof.ts +9 -1
- package/core/actions/host/readFhevmExecutorContractData.ts +8 -8
- package/core/actions/host/readInputVerifierContractData.ts +2 -2
- package/core/actions/host/readKmsVerifierContractData.ts +8 -6
- package/core/actions/host/resolveFhevmConfig.ts +10 -1
- package/core/base/auth.ts +8 -6
- package/core/base/errors/InvalidUrlError.ts +24 -0
- package/core/base/fetch.ts +102 -0
- package/core/base/object.ts +38 -0
- package/core/base/semver.ts +231 -0
- package/core/base/string.ts +10 -0
- package/core/base/uint.ts +33 -4
- package/core/chains/definitions/localTestnet.ts +3 -0
- package/core/chains/definitions/mainnet.ts +1 -0
- package/core/chains/definitions/sepolia.ts +6 -6
- package/core/clients/decorators/base.ts +8 -1
- package/core/clients/decorators/decrypt-p.ts +18 -0
- package/core/clients/decorators/decrypt.ts +10 -15
- package/core/clients/decorators/encrypt-p.ts +12 -7
- package/core/clients/decorators/encrypt.ts +6 -4
- package/core/coprocessor/ZkProof-p.ts +17 -5
- package/core/coprocessor/ZkProofBuilder-p.ts +5 -2
- package/core/coprocessor/encrypt.ts +6 -1
- package/core/errors/RelayerResponseStatusError.ts +14 -2
- package/core/host-contracts/HostContractVersion-p.ts +60 -3
- package/core/host-contracts/KmsSignersContext-p.ts +36 -5
- package/core/host-contracts/abi-fragments/fragments.ts +28 -0
- package/core/host-contracts/canDecryptValuesFromPairs.ts +1 -1
- package/core/host-contracts/checkAllowedForDecryption.ts +3 -3
- package/core/host-contracts/checkDelegation.ts +9 -9
- package/core/host-contracts/checkPersistAllowed.ts +10 -10
- package/core/host-contracts/getAclAddress-p.ts +2 -3
- package/core/host-contracts/getCurrentKmsContextAndEpoch-p.ts +92 -0
- package/core/host-contracts/getCurrentKmsContextId-p.ts +8 -8
- package/core/host-contracts/getFhevmExecutorAddress-p.ts +2 -2
- package/core/host-contracts/getHandleVersion-p.ts +2 -3
- package/core/host-contracts/getHcuLimitAddress-p.ts +2 -3
- package/core/host-contracts/getInputVerifierAddress-p.ts +2 -3
- package/core/host-contracts/getKmsContextSignersAndThreshold-p.ts +7 -9
- package/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.ts +6 -7
- package/core/host-contracts/getSignersForKmsContext-p.ts +6 -8
- package/core/host-contracts/isAllowedForDecryption.ts +6 -6
- package/core/host-contracts/isHandleDelegatedForUserDecryption-p.ts +7 -7
- package/core/host-contracts/isUserDecryptable.ts +3 -3
- package/core/host-contracts/persistAllowed.ts +6 -6
- package/core/host-contracts/readKmsSignersContext-p.ts +131 -41
- package/core/key/FheEncryptionKeyWasm-p.ts +24 -3
- package/core/key/deserializeFheEncryptionKey.ts +8 -1
- package/core/key/fetchFheEncryptionKey.ts +8 -4
- package/core/key/fetchFheEncryptionKeyBytes.ts +4 -2
- package/core/key/serializeFheEncryptionKey.ts +8 -2
- package/core/kms/KmsSigncryptedShares-p.ts +11 -1
- package/core/kms/SignedDecryptionPermit-p.ts +6 -1
- package/core/kms/TransportKeyPair-p.ts +56 -10
- package/core/kms/createKmsUserDecryptEip712.ts +4 -0
- package/core/kms/createKmsUserDecryptEip712V2.ts +159 -0
- package/core/kms/{decryptKmsSignedcryptedShares-p.ts → decryptKmsSigncryptedShares-p.ts} +12 -2
- package/core/kms/decryptValuesFromPairs.ts +6 -4
- package/core/kms/{fetchKmsSignedcryptedShares-p.ts → fetchKmsSigncryptedShares-p.ts} +12 -5
- package/core/kms/kmsExtraData.ts +82 -13
- package/core/kms/kmsUserDecryptEip712V2Types.ts +31 -0
- package/core/kms/publicDecrypt.ts +5 -3
- package/core/modules/decrypt/mock.ts +0 -35
- package/core/modules/decrypt/module/api-p.ts +88 -17
- package/core/modules/decrypt/module/index.ts +37 -34
- package/core/modules/decrypt/module/init-p.ts +60 -28
- package/core/modules/decrypt/types.ts +37 -65
- package/core/modules/encrypt/mock.ts +34 -4
- package/core/modules/encrypt/module/api-p.ts +66 -15
- package/core/modules/encrypt/module/index.ts +5 -3
- package/core/modules/encrypt/module/init-p.ts +99 -40
- package/core/modules/encrypt/types.ts +34 -2
- package/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.ts +2 -2
- package/core/modules/relayer/cleartext/fetchUserDecrypt.ts +2 -2
- package/core/modules/relayer/module/RelayerAsyncRequest.ts +79 -21
- package/core/modules/relayer/module/fetchCoprocessorSignatures.ts +6 -2
- package/core/modules/relayer/module/fetchDelegatedUserDecrypt.ts +7 -2
- package/core/modules/relayer/module/fetchFheEncryptionKeySource.ts +21 -8
- package/core/modules/relayer/module/fetchPublicDecrypt.ts +7 -2
- package/core/modules/relayer/module/fetchUserDecrypt.ts +7 -2
- package/core/modules/relayer/module/readErrorMessage.ts +56 -0
- package/core/modules/relayer/module/relayerUrl.ts +66 -27
- package/core/runtime/CoreFhevm-p.ts +247 -22
- package/core/runtime/HyperWasmSolver-p.ts +417 -0
- package/core/runtime/ProtocolVersionResolver-p.ts +463 -0
- package/core/runtime/initFhevmDecryptRuntime-p.ts +1 -1
- package/core/runtime/initFhevmEncryptRuntime-p.ts +1 -1
- package/core/runtime/initFhevmRuntime-p.ts +4 -1
- package/core/runtime/resolveFhevmVersions-p.ts +85 -0
- package/core/runtimeConfig-p.ts +17 -2
- package/core/types/auth.ts +12 -1
- package/core/types/coreFhevmClient.ts +89 -4
- package/core/types/coreFhevmRuntime.ts +3 -18
- package/core/types/fheEncryptionKey.ts +2 -0
- package/core/types/fhevmChain.ts +3 -0
- package/core/types/hostContract.ts +1 -0
- package/core/types/index.ts +1 -1
- package/core/types/kms-p.ts +2 -0
- package/core/types/kms.ts +48 -18
- package/core/types/kmsSignersContext.ts +8 -0
- package/core/types/logger.ts +1 -0
- package/core/types/moduleVersions.ts +35 -0
- package/core/types/relayer.ts +1 -0
- package/core/types/tkms-p.ts +3 -0
- package/core/types/wasmAssets.ts +6 -0
- package/core/types/{zkProofBuilder.ts → zkProofBuilder-p.ts} +3 -2
- package/core/utils-p/decrypt/verifyTkmsPublicKey.ts +3 -1
- package/ethers/cleartext/createFhevmCleartextDecryptClient.ts +2 -2
- package/ethers/cleartext/createFhevmCleartextEncryptClient.ts +2 -2
- package/ethers/clients/createFhevmDecryptClient.ts +2 -2
- package/ethers/clients/createFhevmEncryptClient.ts +2 -2
- package/ethers/internal/config.ts +2 -30
- package/package.json +1 -1
- package/viem/cleartext/createFhevmCleartextDecryptClient.ts +2 -2
- package/viem/cleartext/createFhevmCleartextEncryptClient.ts +2 -2
- package/viem/clients/createFhevmDecryptClient.ts +2 -2
- package/viem/clients/createFhevmEncryptClient.ts +2 -2
- package/viem/internal/config.ts +2 -30
- package/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
- package/wasm/tfhe/v1.5.3/tfhe.js +8 -0
- package/wasm/tfhe/v1.6.0-dev/tfhe.d.ts +4 -0
- package/wasm/tfhe/v1.6.0-dev/tfhe.js +8 -0
- package/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
- package/wasm/tfhe/v1.6.1/tfhe.js +8 -0
- package/wasm/tfheModuleVersion-p.ts +1 -1
- package/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
- package/wasm/tkms/v0.13.10/kms_lib.js +8 -0
- package/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
- package/wasm/tkms/v0.13.20-0/kms_lib.js +8 -0
- package/wasm/tkmsModuleVersion-p.ts +1 -1
- package/wasm/wasmBaseUrl.js +69 -4
- package/_cjs/core/actions/base/fetchKmsSignedcryptedShares.js.map +0 -1
- package/_cjs/core/actions/decrypt/decryptKmsSignedcryptedShares.js +0 -11
- package/_cjs/core/actions/decrypt/decryptKmsSignedcryptedShares.js.map +0 -1
- package/_cjs/core/kms/decryptKmsSignedcryptedShares-p.js.map +0 -1
- package/_cjs/core/kms/fetchKmsSignedcryptedShares-p.js.map +0 -1
- package/_cjs/core/types/fhevmDecryptionKey.js.map +0 -1
- package/_cjs/core/types/fhevmUser.js.map +0 -1
- package/_cjs/core/types/zkProofBuilder.js.map +0 -1
- package/_esm/core/actions/base/fetchKmsSignedcryptedShares.js.map +0 -1
- package/_esm/core/actions/decrypt/decryptKmsSignedcryptedShares.js +0 -9
- package/_esm/core/actions/decrypt/decryptKmsSignedcryptedShares.js.map +0 -1
- package/_esm/core/kms/decryptKmsSignedcryptedShares-p.js.map +0 -1
- package/_esm/core/kms/fetchKmsSignedcryptedShares-p.js.map +0 -1
- package/_esm/core/types/fhevmDecryptionKey.js +0 -2
- package/_esm/core/types/fhevmDecryptionKey.js.map +0 -1
- package/_esm/core/types/fhevmUser.js +0 -2
- package/_esm/core/types/fhevmUser.js.map +0 -1
- package/_esm/core/types/zkProofBuilder.js +0 -2
- package/_esm/core/types/zkProofBuilder.js.map +0 -1
- package/_types/core/actions/base/fetchKmsSignedcryptedShares.d.ts.map +0 -1
- package/_types/core/actions/decrypt/decryptKmsSignedcryptedShares.d.ts.map +0 -1
- package/_types/core/kms/decryptKmsSignedcryptedShares-p.d.ts.map +0 -1
- package/_types/core/kms/fetchKmsSignedcryptedShares-p.d.ts.map +0 -1
- package/_types/core/types/fhevmDecryptionKey.d.ts +0 -4
- package/_types/core/types/fhevmDecryptionKey.d.ts.map +0 -1
- package/_types/core/types/fhevmUser.d.ts +0 -7
- package/_types/core/types/fhevmUser.d.ts.map +0 -1
- package/_types/core/types/zkProofBuilder.d.ts.map +0 -1
- package/core/types/fhevmDecryptionKey.ts +0 -8
- package/core/types/fhevmUser.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreFhevm-p.d.ts","sourceRoot":"","sources":["../../../core/runtime/CoreFhevm-p.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EAET,YAAY,EACZ,YAAY,EACZ,oBAAoB,
|
|
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WAAW,EAAE,WAAW,GAAG,IAAI,CAGvF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI,CAGvF;AAID,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,yBAAyB,GAAG,SAAS,CAGhG;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAG9E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAG9E"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { TfheVersion, TkmsVersion } from '../types/moduleVersions.js';
|
|
2
|
+
import type { FhevmRuntime } from '../types/coreFhevmRuntime.js';
|
|
3
|
+
import type { FhevmProtocolContext, ResolvedFhevmOptions } from '../types/coreFhevmClient.js';
|
|
4
|
+
type ResolveParameters = {
|
|
5
|
+
readonly runtime: FhevmRuntime;
|
|
6
|
+
readonly options: ResolvedFhevmOptions;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Resolves the tfhe WASM module version to load for an encryption-capable client.
|
|
10
|
+
*
|
|
11
|
+
* Resolution order:
|
|
12
|
+
*
|
|
13
|
+
* 1. Client option `moduleVersions: 'auto'` forces protocol-based auto-resolution
|
|
14
|
+
* and deliberately ignores the runtime fallback.
|
|
15
|
+
* 2. Client option `moduleVersions.tfhe` wins over every fallback, then is
|
|
16
|
+
* checked against the protocol-context compatibility allowlist.
|
|
17
|
+
* 3. Runtime config `moduleVersions.tfhe` is used as a global fallback, then is
|
|
18
|
+
* checked against the protocol-context compatibility allowlist.
|
|
19
|
+
* 4. Otherwise, the SDK auto-resolves from the resolved protocol version.
|
|
20
|
+
*
|
|
21
|
+
* `checkCompatibility` only applies to explicit `tfhe` overrides. It does not
|
|
22
|
+
* change auto-resolution.
|
|
23
|
+
*
|
|
24
|
+
* Examples:
|
|
25
|
+
*
|
|
26
|
+
* - Client override:
|
|
27
|
+
* `{ options.moduleVersions: { tfhe: '1.6.1' } }` -> `'1.6.1'`.
|
|
28
|
+
* - Runtime fallback:
|
|
29
|
+
* `{ options.moduleVersions: undefined, runtime.config.moduleVersions: { tfhe: '1.5.3' } }` -> `'1.5.3'`.
|
|
30
|
+
* - Client auto bypassing runtime fallback:
|
|
31
|
+
* `{ options.moduleVersions: 'auto', runtime.config.moduleVersions: { tfhe: '1.5.3' } }`
|
|
32
|
+
* resolves from `protocolContext`, not from `'1.5.3'`.
|
|
33
|
+
* - Protocol-context auto-resolution:
|
|
34
|
+
* `protocolVersion = eq:0.12.0, pubKeyCrsVersion = eq:1.5.4` -> `'1.5.3'`.
|
|
35
|
+
* `protocolVersion = eq:0.13.0, pubKeyCrsVersion = eq:1.4.0-alpha.3` -> `'1.6.1'`.
|
|
36
|
+
* `protocolVersion = eq:0.13.0, pubKeyCrsVersion = eq:1.6.1` -> `'1.6.1'`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function hyperWasmResolveTfheModuleVersion(parameters: ResolveParameters, protocolContext?: FhevmProtocolContext): TfheVersion;
|
|
39
|
+
/**
|
|
40
|
+
* Resolves the tkms WASM module version to load for a decryption-capable client.
|
|
41
|
+
*
|
|
42
|
+
* Resolution order:
|
|
43
|
+
*
|
|
44
|
+
* 1. Client option `moduleVersions: 'auto'` forces protocol-based auto-resolution
|
|
45
|
+
* and deliberately ignores the runtime fallback.
|
|
46
|
+
* 2. Client option `moduleVersions.kms` wins over every fallback, then is
|
|
47
|
+
* checked against the protocol-context compatibility allowlist.
|
|
48
|
+
* 3. Runtime config `moduleVersions.kms` is used as a global fallback, then is
|
|
49
|
+
* checked against the protocol-context compatibility allowlist.
|
|
50
|
+
* 4. Otherwise, the SDK auto-resolves from the resolved protocol version.
|
|
51
|
+
*
|
|
52
|
+
* `checkCompatibility` only applies to explicit `kms` overrides. It does not
|
|
53
|
+
* change auto-resolution.
|
|
54
|
+
*
|
|
55
|
+
* Examples:
|
|
56
|
+
*
|
|
57
|
+
* - Client override:
|
|
58
|
+
* `{ options.moduleVersions: { kms: '0.13.20-0' } }` -> `'0.13.20-0'`.
|
|
59
|
+
* - Runtime fallback:
|
|
60
|
+
* `{ options.moduleVersions: undefined, runtime.config.moduleVersions: { kms: '0.13.10' } }` -> `'0.13.10'`.
|
|
61
|
+
* - Client auto bypassing runtime fallback:
|
|
62
|
+
* `{ options.moduleVersions: 'auto', runtime.config.moduleVersions: { kms: '0.13.10' } }`
|
|
63
|
+
* resolves from `protocolContext`, not from `'0.13.10'`.
|
|
64
|
+
* - Protocol-context auto-resolution:
|
|
65
|
+
* `protocolVersion = eq:0.12.0, pubKeyCrsVersion = eq:1.5.4` -> `'0.13.10'`.
|
|
66
|
+
* `protocolVersion = eq:0.13.0, pubKeyCrsVersion = eq:1.4.0-alpha.3` -> `'0.13.20-0'`.
|
|
67
|
+
* `protocolVersion = eq:0.13.0, pubKeyCrsVersion = eq:1.6.1` -> `'0.13.20-0'`.
|
|
68
|
+
*/
|
|
69
|
+
export declare function hyperWasmResolveTkmsModuleVersion(parameters: ResolveParameters, protocolContext?: FhevmProtocolContext): TkmsVersion;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=HyperWasmSolver-p.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HyperWasmSolver-p.d.ts","sourceRoot":"","sources":["../../../core/runtime/HyperWasmSolver-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmC,WAAW,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC5G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAqB,MAAM,6BAA6B,CAAC;AAOjH,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAC;CACxC,CAAC;AA0GF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,iBAAiB,EAC7B,eAAe,CAAC,EAAE,oBAAoB,GACrC,WAAW,CAqBb;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,iBAAiB,EAC7B,eAAe,CAAC,EAAE,oBAAoB,GACrC,WAAW,CAqBb"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FhevmBase, FhevmProtocolContext, ProtocolVersionResolution, PubKeyCrsVersionResolution } from '../types/coreFhevmClient.js';
|
|
2
|
+
import type { FhevmChain } from '../types/fhevmChain.js';
|
|
3
|
+
import type { HostContractVersion } from '../types/hostContract.js';
|
|
4
|
+
export type ResolveProtocolVersionParameters = FhevmBase<FhevmChain>;
|
|
5
|
+
export type ResolveProtocolContextParameters = ResolveProtocolVersionParameters;
|
|
6
|
+
export declare function resolveProtocolContext(parameters: ResolveProtocolContextParameters): Promise<FhevmProtocolContext>;
|
|
7
|
+
export declare function resolveProtocolVersion(parameters: ResolveProtocolVersionParameters): Promise<ProtocolVersionResolution>;
|
|
8
|
+
export declare function protocolContextFromAclVersion(chain: FhevmChain, aclVersion: HostContractVersion<'ACL'>): FhevmProtocolContext;
|
|
9
|
+
/**
|
|
10
|
+
* Maps an ACL host-contract version to a protocol-version resolution known by
|
|
11
|
+
* this SDK release.
|
|
12
|
+
*
|
|
13
|
+
* This function is intentionally table-driven: it must not infer future
|
|
14
|
+
* protocol versions from ACL version arithmetic. If the ACL version is newer
|
|
15
|
+
* than the SDK's table, it returns `{ comparator: 'gt' }` with the highest
|
|
16
|
+
* known protocol version as the SDK's strict lower bound: the exact protocol
|
|
17
|
+
* version is unknown, but it is greater than that value. If the ACL version is
|
|
18
|
+
* older than the SDK's table, it returns `{ comparator: 'lt' }` with the lowest
|
|
19
|
+
* known protocol version as the SDK's strict upper bound.
|
|
20
|
+
*
|
|
21
|
+
* Examples:
|
|
22
|
+
* - `ACL v0.4.0` → `{ version: '0.13.0', comparator: 'eq' }`
|
|
23
|
+
* - `ACL v0.4.1` → `{ version: '0.13.0', comparator: 'eq' }`
|
|
24
|
+
* - `ACL v0.6.0` → `{ version: '0.14.0', comparator: 'gt' }`
|
|
25
|
+
* - `ACL v0.1.0` → `{ version: '0.11.0', comparator: 'lt' }`
|
|
26
|
+
*/
|
|
27
|
+
export declare function protocolVersionFromAclVersion(aclVersion: HostContractVersion<'ACL'>): ProtocolVersionResolution;
|
|
28
|
+
export declare function pubKeyCrsVersionFromProtocolVersion(chain: FhevmChain, protocolVersion: ProtocolVersionResolution): PubKeyCrsVersionResolution;
|
|
29
|
+
//# sourceMappingURL=ProtocolVersionResolver-p.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProtocolVersionResolver-p.d.ts","sourceRoot":"","sources":["../../../core/runtime/ProtocolVersionResolver-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EAEpB,yBAAyB,EAEzB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAUpE,MAAM,MAAM,gCAAgC,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;AACrE,MAAM,MAAM,gCAAgC,GAAG,gCAAgC,CAAC;AAEhF,wBAAsB,sBAAsB,CAC1C,UAAU,EAAE,gCAAgC,GAC3C,OAAO,CAAC,oBAAoB,CAAC,CAO/B;AAED,wBAAsB,sBAAsB,CAC1C,UAAU,EAAE,gCAAgC,GAC3C,OAAO,CAAC,yBAAyB,CAAC,CAEpC;AA6JD,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,mBAAmB,CAAC,KAAK,CAAC,GACrC,oBAAoB,CAMtB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,mBAAmB,CAAC,KAAK,CAAC,GAAG,yBAAyB,CAyB/G;AA2GD,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,yBAAyB,GACzC,0BAA0B,CAuB5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initFhevmRuntime-p.d.ts","sourceRoot":"","sources":["../../../core/runtime/initFhevmRuntime-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAKjE,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"initFhevmRuntime-p.d.ts","sourceRoot":"","sources":["../../../core/runtime/initFhevmRuntime-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAKjE,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO/F"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ProtocolVersionResolution } from '../types/coreFhevmClient.js';
|
|
2
|
+
import type { TfheVersion, TkmsVersion } from '../types/moduleVersions.js';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves this client's FHEVM protocol version once and memorizes it on the
|
|
5
|
+
* client instance.
|
|
6
|
+
*
|
|
7
|
+
* Idempotent: the first call resolves the protocol version from the on-chain ACL
|
|
8
|
+
* contract version and stores it on the client; subsequent calls reuse the stored
|
|
9
|
+
* value, it is safe to call from multiple init paths and from hot paths.
|
|
10
|
+
*
|
|
11
|
+
* This is the canonical way to ensure {@link getResolvedProtocolVersion} is
|
|
12
|
+
* populated.
|
|
13
|
+
*
|
|
14
|
+
* @param fhevm - A core FHEVM base client.
|
|
15
|
+
* @returns The resolved protocol version (exact or SDK-bounded).
|
|
16
|
+
*/
|
|
17
|
+
export declare function ensureResolvedProtocolVersion(fhevm: unknown): Promise<ProtocolVersionResolution>;
|
|
18
|
+
export declare function resolveFhevmProtocolVersion(fhevm: unknown): Promise<ProtocolVersionResolution>;
|
|
19
|
+
export declare function resolveFhevmTfheVersion(fhevm: unknown): Promise<TfheVersion>;
|
|
20
|
+
export declare function resolveFhevmTkmsVersion(fhevm: unknown): Promise<TkmsVersion>;
|
|
21
|
+
//# sourceMappingURL=resolveFhevmVersions-p.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveFhevmVersions-p.d.ts","sourceRoot":"","sources":["../../../core/runtime/resolveFhevmVersions-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAc3E;;;;;;;;;;;;;GAaG;AACH,wBAAsB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAOtG;AAID,wBAAsB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAEpG;AAoBD,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAQlF;AAID,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAQlF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function cloneModuleVersions(moduleVersions:
|
|
1
|
+
import type { FhevmModuleVersions } from './types/moduleVersions.js';
|
|
2
|
+
export declare function cloneModuleVersions(moduleVersions: FhevmModuleVersions | undefined): FhevmModuleVersions | undefined;
|
|
3
|
+
export declare function moduleVersionsAreEqual(a: FhevmModuleVersions | undefined, b: FhevmModuleVersions | undefined): boolean;
|
|
3
4
|
//# sourceMappingURL=runtimeConfig-p.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeConfig-p.d.ts","sourceRoot":"","sources":["../../core/runtimeConfig-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"runtimeConfig-p.d.ts","sourceRoot":"","sources":["../../core/runtimeConfig-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,mBAAmB,GAAG,SAAS,GAAG,mBAAmB,GAAG,SAAS,CAMpH;AAED,wBAAgB,sBAAsB,CACpC,CAAC,EAAE,mBAAmB,GAAG,SAAS,EAClC,CAAC,EAAE,mBAAmB,GAAG,SAAS,GACjC,OAAO,CAUT"}
|
|
@@ -10,7 +10,10 @@ export type AuthBearerToken = {
|
|
|
10
10
|
token: string;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* Custom header authentication
|
|
13
|
+
* Custom header authentication.
|
|
14
|
+
*
|
|
15
|
+
* This is the only form accepted by Zama's hosted relayer (it requires the API
|
|
16
|
+
* key in the `x-api-key` request header). Use it for Zama-hosted endpoints.
|
|
14
17
|
*/
|
|
15
18
|
export type AuthApiKeyHeader = {
|
|
16
19
|
type: 'ApiKeyHeader';
|
|
@@ -37,5 +40,13 @@ export type AuthApiKeyCookie = {
|
|
|
37
40
|
*/
|
|
38
41
|
value: string;
|
|
39
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Supported authentication methods.
|
|
45
|
+
*
|
|
46
|
+
* All three forms are supported so the SDK works out of the box with both Zama-hosted
|
|
47
|
+
* and self-hosted relayers. A self-hosted relayer may accept any of them depending on
|
|
48
|
+
* its deployment. Zama's hosted relayer accepts only `ApiKeyHeader` (`x-api-key`
|
|
49
|
+
* request header) — `BearerToken` and `ApiKeyCookie` are rejected at the edge.
|
|
50
|
+
*/
|
|
40
51
|
export type Auth = AuthBearerToken | AuthApiKeyHeader | AuthApiKeyCookie;
|
|
41
52
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../core/types/auth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../core/types/auth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,IAAI,GAAG,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,20 +1,89 @@
|
|
|
1
1
|
import type { FhevmChain } from './fhevmChain.js';
|
|
2
2
|
import type { FhevmRuntime } from './coreFhevmRuntime.js';
|
|
3
3
|
import type { FheEncryptionKeyBytes } from './fheEncryptionKey.js';
|
|
4
|
-
|
|
4
|
+
import type { FhevmDecryptModuleVersions, FhevmEncryptModuleVersions, FhevmModuleVersions, TfheVersion, TkmsVersion } from './moduleVersions.js';
|
|
5
|
+
export type FhevmBaseOptions = {
|
|
5
6
|
readonly batchRpcCalls?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type FhevmEncryptOptions = FhevmBaseOptions & {
|
|
6
9
|
readonly fheEncryptionKey?: FheEncryptionKeyBytes | undefined;
|
|
10
|
+
readonly moduleVersions?: FhevmEncryptModuleVersions | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type FhevmDecryptOptions = FhevmBaseOptions & {
|
|
13
|
+
readonly moduleVersions?: FhevmDecryptModuleVersions | undefined;
|
|
14
|
+
};
|
|
15
|
+
export type FhevmOptions = FhevmBaseOptions & {
|
|
16
|
+
readonly fheEncryptionKey?: FheEncryptionKeyBytes | undefined;
|
|
17
|
+
readonly moduleVersions?: FhevmModuleVersions | undefined;
|
|
7
18
|
};
|
|
8
19
|
export type ResolvedFhevmOptions = {
|
|
9
20
|
readonly batchRpcCalls: boolean;
|
|
21
|
+
readonly moduleVersions?: FhevmModuleVersions | undefined;
|
|
10
22
|
};
|
|
11
23
|
export type NativeClient = NonNullable<object>;
|
|
12
24
|
export type OptionalNativeClient = NativeClient | undefined;
|
|
13
25
|
export type OptionalFhevmChain = FhevmChain | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Semver-compatible FHEVM protocol version.
|
|
28
|
+
*
|
|
29
|
+
* The protocol version describes the on-chain FHEVM protocol used by a given
|
|
30
|
+
* chain.
|
|
31
|
+
*
|
|
32
|
+
* Example: `'0.14.0'`.
|
|
33
|
+
*/
|
|
34
|
+
export type ProtocolVersion = string;
|
|
35
|
+
export type PubKeyCrsVersion = string;
|
|
36
|
+
/**
|
|
37
|
+
* Comparator between an actual resolved version and the version known by this
|
|
38
|
+
* SDK.
|
|
39
|
+
*
|
|
40
|
+
* - `'eq'`: actual version equals the returned version.
|
|
41
|
+
* - `'gt'`: actual version is strictly greater than the returned version.
|
|
42
|
+
* - `'lt'`: actual version is strictly lower than the returned version.
|
|
43
|
+
*/
|
|
44
|
+
export type VersionResolutionComparator = 'eq' | 'lt' | 'gt';
|
|
45
|
+
/**
|
|
46
|
+
* Result of resolving a version that may be exact or bounded by this SDK's
|
|
47
|
+
* compatibility table.
|
|
48
|
+
*
|
|
49
|
+
* This structure is deliberately "honest": when the SDK cannot identify the
|
|
50
|
+
* exact version, it returns a bounded relationship instead of
|
|
51
|
+
* pretending that the version string is exact. Consumers that only need feature
|
|
52
|
+
* gating should inspect both `version` and `comparator`.
|
|
53
|
+
*/
|
|
54
|
+
export type VersionResolution<version extends string> = {
|
|
55
|
+
/**
|
|
56
|
+
* The version known by this SDK.
|
|
57
|
+
*
|
|
58
|
+
* Interpret this value through {@link VersionResolution.comparator}; it may
|
|
59
|
+
* be exact, a lower bound, or an upper bound.
|
|
60
|
+
*/
|
|
61
|
+
readonly version: version;
|
|
62
|
+
/**
|
|
63
|
+
* Describes how the actual resolved version compares to
|
|
64
|
+
* {@link VersionResolution.version}.
|
|
65
|
+
*/
|
|
66
|
+
readonly comparator: VersionResolutionComparator;
|
|
67
|
+
};
|
|
68
|
+
export type ProtocolVersionResolution = VersionResolution<ProtocolVersion>;
|
|
69
|
+
export type PubKeyCrsVersionResolution = VersionResolution<PubKeyCrsVersion>;
|
|
70
|
+
export type FhevmProtocolContext = {
|
|
71
|
+
readonly protocolVersion: ProtocolVersionResolution;
|
|
72
|
+
readonly pubKeyCrsVersion: PubKeyCrsVersionResolution;
|
|
73
|
+
};
|
|
74
|
+
export type WithProtocolVersion = {
|
|
75
|
+
readonly protocolVersion: ProtocolVersionResolution;
|
|
76
|
+
};
|
|
77
|
+
export type WithTfheVersion = WithProtocolVersion & {
|
|
78
|
+
readonly tfheVersion: TfheVersion;
|
|
79
|
+
};
|
|
80
|
+
export type WithTkmsVersion = WithProtocolVersion & {
|
|
81
|
+
readonly tkmsVersion: TkmsVersion;
|
|
82
|
+
};
|
|
14
83
|
export type FhevmExtension<actions extends Record<string, unknown> = Record<string, unknown>, runtime extends FhevmRuntime = FhevmRuntime> = {
|
|
15
84
|
readonly actions: actions;
|
|
16
85
|
readonly runtime: runtime;
|
|
17
|
-
readonly init?: ((client: FhevmBase<FhevmChain
|
|
86
|
+
readonly init?: ((client: FhevmBase<FhevmChain>) => Promise<void>) | undefined;
|
|
18
87
|
};
|
|
19
88
|
export interface FhevmBase<chain extends FhevmChain | undefined = FhevmChain | undefined, runtime extends FhevmRuntime = FhevmRuntime, client extends OptionalNativeClient = NativeClient> {
|
|
20
89
|
readonly uid: string;
|
|
@@ -24,6 +93,7 @@ export interface FhevmBase<chain extends FhevmChain | undefined = FhevmChain | u
|
|
|
24
93
|
readonly options: ResolvedFhevmOptions;
|
|
25
94
|
}
|
|
26
95
|
export interface Fhevm<chain extends FhevmChain | undefined = FhevmChain | undefined, runtime extends FhevmRuntime = FhevmRuntime, client extends OptionalNativeClient = NativeClient> extends FhevmBase<chain, runtime, client> {
|
|
96
|
+
readonly protocolVersion: ProtocolVersionResolution;
|
|
27
97
|
readonly extend: <const actions extends Record<string, unknown>, extendedRuntime extends FhevmRuntime>(actionsFactory: (client: FhevmBase<chain, FhevmRuntime, client>) => FhevmExtension<actions, extendedRuntime>) => this & actions & {
|
|
28
98
|
readonly runtime: extendedRuntime;
|
|
29
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coreFhevmClient.d.ts","sourceRoot":"","sources":["../../../core/types/coreFhevmClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,E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O,GAAG;QAAE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;KAAE,CAAC;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B"}
|
|
@@ -4,18 +4,12 @@ import type { EncryptModule, EncryptModuleFactory, WithEncryptModule } from '../
|
|
|
4
4
|
import type { DecryptModule, DecryptModuleFactory, WithDecryptModule } from '../modules/decrypt/types.js';
|
|
5
5
|
import type { Logger } from './logger.js';
|
|
6
6
|
import type { Auth } from './auth.js';
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
export type WasmAssetLoadMode = 'embedded-base64' | 'verified-blob' | 'precheck-direct-url' | 'trusted-direct-url' | 'auto';
|
|
10
|
-
export type WasmModuleVersions = 'auto' | {
|
|
11
|
-
readonly tfhe?: TfheVersion | 'auto';
|
|
12
|
-
readonly kms?: TkmsVersion | 'auto';
|
|
13
|
-
readonly checkCompatibility?: 'throw' | 'warn' | 'off';
|
|
14
|
-
};
|
|
7
|
+
import type { FhevmModuleVersions } from './moduleVersions.js';
|
|
8
|
+
import type { WasmAssetLoadMode } from './wasmAssets.js';
|
|
15
9
|
export type FhevmRuntimeConfig = {
|
|
16
10
|
readonly locateFile?: ((file: string) => URL) | undefined;
|
|
17
11
|
readonly wasmAssetLoadMode?: WasmAssetLoadMode | undefined;
|
|
18
|
-
readonly moduleVersions?:
|
|
12
|
+
readonly moduleVersions?: FhevmModuleVersions | undefined;
|
|
19
13
|
readonly logger?: Logger | undefined;
|
|
20
14
|
readonly singleThread?: boolean | undefined;
|
|
21
15
|
readonly numberOfThreads?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coreFhevmRuntime.d.ts","sourceRoot":"","sources":["../../../core/types/coreFhevmRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA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C,iBAAiB,GAAG,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TfheVersion } from '../../wasm/tfhe/TfheApi.js';
|
|
1
2
|
import type { Bytes, UintNumber } from './primitives.js';
|
|
2
3
|
import type { Prettify } from './utils.js';
|
|
3
4
|
/**
|
|
@@ -63,6 +64,7 @@ export type FheEncryptionKeyWasm = {
|
|
|
63
64
|
readonly publicKey: FheEncryptionPublicKey;
|
|
64
65
|
readonly crs: FheEncryptionCrs;
|
|
65
66
|
readonly metadata: FheEncryptionKeyMetadata;
|
|
67
|
+
readonly tfheVersion: TfheVersion;
|
|
66
68
|
};
|
|
67
69
|
export type FheEncryptionKeyBytes = {
|
|
68
70
|
readonly publicKeyBytes: FheEncryptionPublicKeyBytes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fheEncryptionKey.d.ts","sourceRoot":"","sources":["../../../core/types/fheEncryptionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,mEAAmE;IACnE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,wDAAwD;IACxD,QAAQ,CAAC,eA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AE,wBAAwB,CAAC;CAC7C,CAAC"}
|
|
@@ -10,6 +10,7 @@ export type FhevmChain = {
|
|
|
10
10
|
* acl: "0xdeadbeef..."
|
|
11
11
|
* inputVerifier: "0xdeadbeef..."
|
|
12
12
|
* kmsVerifier: "0xdeadbeef..."
|
|
13
|
+
* protocolConfig: "0xdeadbeef..."
|
|
13
14
|
* },
|
|
14
15
|
* relayerUrl: "http://foo",
|
|
15
16
|
* gateway?: {
|
|
@@ -37,6 +38,7 @@ export type FhevmChainContracts = {
|
|
|
37
38
|
readonly acl: ChainContract;
|
|
38
39
|
readonly inputVerifier: ChainContract;
|
|
39
40
|
readonly kmsVerifier: ChainContract;
|
|
41
|
+
readonly protocolConfig: ChainContract | undefined;
|
|
40
42
|
};
|
|
41
43
|
export type FhevmGatewayChain = {
|
|
42
44
|
readonly id: number;
|
|
@@ -63,6 +65,7 @@ type ResolvedFhevmChainContracts = {
|
|
|
63
65
|
readonly acl: ResolvedChainContract;
|
|
64
66
|
readonly inputVerifier: ResolvedChainContract;
|
|
65
67
|
readonly kmsVerifier: ResolvedChainContract;
|
|
68
|
+
readonly protocolConfig?: ResolvedChainContract | undefined;
|
|
66
69
|
};
|
|
67
70
|
type ResolvedFhevmGatewayChain = {
|
|
68
71
|
readonly id: Uint64BigInt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhevmChain.d.ts","sourceRoot":"","sources":["../../../core/types/fhevmChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,GAAG,mBAAmB,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"fhevmChain.d.ts","sourceRoot":"","sources":["../../../core/types/fhevmChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAA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QAC5B,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC;KAC7C,CAAC;CACH,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,KAAK,2BAA2B,GAAG;IACjC,QAAQ,CAAC,GAAG,EAAE,qBAAqB,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAC9C,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC7D,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,EAAE,YAAY,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE;QAClB,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAC;QAC3C,QAAQ,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;KACnD,CAAC;CACH,CAAC"}
|
|
@@ -5,6 +5,7 @@ export type HostContractNameMap = {
|
|
|
5
5
|
readonly HCULimit: 'HCULimit';
|
|
6
6
|
readonly InputVerifier: 'InputVerifier';
|
|
7
7
|
readonly KMSVerifier: 'KMSVerifier';
|
|
8
|
+
readonly ProtocolConfig: 'ProtocolConfig';
|
|
8
9
|
};
|
|
9
10
|
export type HostContractName = keyof HostContractNameMap & string;
|
|
10
11
|
export type HostContractVersionString = `${string} v${string}.${string}.${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostContract.d.ts","sourceRoot":"","sources":["../../../core/types/hostContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEtE,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC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B,CAAC,CAAC;IACxD,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { TypedValue } from './primitives.js';
|
|
2
2
|
export type { EncryptedValue, EncryptedValueLike } from './encryptedTypes.js';
|
|
3
|
-
export type {
|
|
3
|
+
export type { Eip712Like } from './kms.js';
|
|
4
4
|
export type { FhevmEncryptClient, FhevmDecryptClient } from './fhevmClient.js';
|
|
5
5
|
export { asEncryptedValue, isEncryptedValue } from '../handle/EncryptedValue.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TkmsVersion } from '../../wasm/tkms/KmsLibApi.js';
|
|
1
2
|
import type { Handle } from './encryptedTypes-p.js';
|
|
2
3
|
import type { KmsEip712Domain } from './kms.js';
|
|
3
4
|
import type { KmsSignersContext } from './kmsSignersContext.js';
|
|
@@ -8,6 +9,7 @@ export interface KmsSigncryptedSharesMetadata {
|
|
|
8
9
|
readonly eip712Signature: Bytes65Hex;
|
|
9
10
|
readonly eip712SignerAddress: ChecksummedAddress;
|
|
10
11
|
readonly handles: readonly Handle[];
|
|
12
|
+
readonly tkmsVersion: TkmsVersion;
|
|
11
13
|
}
|
|
12
14
|
export interface KmsSigncryptedShare {
|
|
13
15
|
readonly payload: BytesHexNo0x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kms-p.d.ts","sourceRoot":"","sources":["../../../core/types/kms-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpG,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAC;IACvC,QAAQ,CAAC,eAAe,EAAE,UAAU,CAAC;IACrC,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;IACjD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"kms-p.d.ts","sourceRoot":"","sources":["../../../core/types/kms-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpG,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAC;IACvC,QAAQ,CAAC,eAAe,EAAE,UAAU,CAAC;IACrC,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;IACjD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;CAClC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TkmsVersion } from '../../wasm/tkms/KmsLibApi.js';
|
|
1
2
|
import type { HostContractData } from './hostContract.js';
|
|
2
3
|
import type { Bytes32Hex, BytesHex, ChecksummedAddress, Uint64BigInt } from './primitives.js';
|
|
3
4
|
import type { Prettify } from './utils.js';
|
|
@@ -105,6 +106,52 @@ export type KmsDelegateUserDecryptEip712Types = {
|
|
|
105
106
|
}
|
|
106
107
|
];
|
|
107
108
|
};
|
|
109
|
+
export type KmsUserDecryptEip712V2Types = {
|
|
110
|
+
readonly EIP712Domain: readonly [
|
|
111
|
+
{
|
|
112
|
+
readonly name: 'name';
|
|
113
|
+
readonly type: 'string';
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
readonly name: 'version';
|
|
117
|
+
readonly type: 'string';
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
readonly name: 'chainId';
|
|
121
|
+
readonly type: 'uint256';
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
readonly name: 'verifyingContract';
|
|
125
|
+
readonly type: 'address';
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
readonly UserDecryptRequestVerification: readonly [
|
|
129
|
+
{
|
|
130
|
+
readonly name: 'userAddress';
|
|
131
|
+
readonly type: 'address';
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
readonly name: 'publicKey';
|
|
135
|
+
readonly type: 'bytes';
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
readonly name: 'allowedContracts';
|
|
139
|
+
readonly type: 'address[]';
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
readonly name: 'startTimestamp';
|
|
143
|
+
readonly type: 'uint256';
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
readonly name: 'durationSeconds';
|
|
147
|
+
readonly type: 'uint256';
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
readonly name: 'extraData';
|
|
151
|
+
readonly type: 'bytes';
|
|
152
|
+
}
|
|
153
|
+
];
|
|
154
|
+
};
|
|
108
155
|
export type KmsPublicDecryptEip712Types = {
|
|
109
156
|
readonly EIP712Domain: readonly [
|
|
110
157
|
{
|
|
@@ -154,27 +201,14 @@ export type KmsPublicDecryptEip712Message = Readonly<{
|
|
|
154
201
|
decryptedResult: BytesHex;
|
|
155
202
|
extraData: BytesHex;
|
|
156
203
|
}>;
|
|
157
|
-
export type
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
readonly types: Record<string, ReadonlyArray<{
|
|
166
|
-
readonly name: string;
|
|
167
|
-
readonly type: string;
|
|
168
|
-
}>>;
|
|
169
|
-
readonly message: {
|
|
170
|
-
readonly publicKey: string | Uint8Array;
|
|
171
|
-
readonly contractAddresses: string[];
|
|
172
|
-
readonly startTimestamp: number;
|
|
173
|
-
readonly durationDays: number;
|
|
174
|
-
readonly extraData: string | Uint8Array;
|
|
175
|
-
readonly delegatorAddress?: string | undefined;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
204
|
+
export type KmsUserDecryptEip712V2Message = Readonly<{
|
|
205
|
+
userAddress: ChecksummedAddress;
|
|
206
|
+
publicKey: BytesHex;
|
|
207
|
+
allowedContracts: readonly ChecksummedAddress[];
|
|
208
|
+
startTimestamp: string;
|
|
209
|
+
durationSeconds: string;
|
|
210
|
+
extraData: BytesHex;
|
|
211
|
+
}>;
|
|
178
212
|
export type KmsUserDecryptEip712 = Prettify<{
|
|
179
213
|
readonly domain: KmsEip712Domain;
|
|
180
214
|
readonly types: KmsUserDecryptEip712Types;
|
|
@@ -193,8 +227,24 @@ export type KmsPublicDecryptEip712 = Prettify<{
|
|
|
193
227
|
readonly primaryType: 'PublicDecryptVerification';
|
|
194
228
|
readonly message: KmsPublicDecryptEip712Message;
|
|
195
229
|
}>;
|
|
230
|
+
export type KmsUserDecryptEip712V2 = Prettify<{
|
|
231
|
+
readonly domain: KmsEip712Domain;
|
|
232
|
+
readonly types: KmsUserDecryptEip712V2Types;
|
|
233
|
+
readonly primaryType: 'UserDecryptRequestVerification';
|
|
234
|
+
readonly message: KmsUserDecryptEip712V2Message;
|
|
235
|
+
}>;
|
|
196
236
|
export declare const KmsSigncryptedSharesBrand: unique symbol;
|
|
197
237
|
export interface KmsSigncryptedShares {
|
|
238
|
+
readonly tkmsVersion: TkmsVersion;
|
|
198
239
|
readonly [KmsSigncryptedSharesBrand]: never;
|
|
199
240
|
}
|
|
241
|
+
export type Eip712Like = {
|
|
242
|
+
readonly domain: Record<string, unknown>;
|
|
243
|
+
readonly primaryType?: string | undefined;
|
|
244
|
+
readonly types: Record<string, ReadonlyArray<{
|
|
245
|
+
readonly name: string;
|
|
246
|
+
readonly type: string;
|
|
247
|
+
}>>;
|
|
248
|
+
readonly message: Record<string, unknown>;
|
|
249
|
+
};
|
|
200
250
|
//# sourceMappingURL=kms.d.ts.map
|