@fhevm/sdk 0.0.1 → 1.0.0-alpha.1
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/README.md +59 -0
- package/_cjs/core/_version.js +6 -0
- package/_cjs/core/_version.js.map +1 -0
- package/_cjs/core/actions/base/canReadPublicValue.js +13 -0
- package/_cjs/core/actions/base/canReadPublicValue.js.map +1 -0
- package/_cjs/core/actions/base/canReadPublicValues.js +13 -0
- package/_cjs/core/actions/base/canReadPublicValues.js.map +1 -0
- package/_cjs/core/actions/base/createVerifiedInputProofFromRawBytes.js +10 -0
- package/_cjs/core/actions/base/createVerifiedInputProofFromRawBytes.js.map +1 -0
- package/_cjs/core/actions/base/fetchKmsSignedcryptedShares.js +19 -0
- package/_cjs/core/actions/base/fetchKmsSignedcryptedShares.js.map +1 -0
- package/_cjs/core/actions/base/fetchVerifiedInputProof.js +11 -0
- package/_cjs/core/actions/base/fetchVerifiedInputProof.js.map +1 -0
- package/_cjs/core/actions/base/index.js +30 -0
- package/_cjs/core/actions/base/index.js.map +1 -0
- package/_cjs/core/actions/base/readCoprocessorSignersContext.js +10 -0
- package/_cjs/core/actions/base/readCoprocessorSignersContext.js.map +1 -0
- package/_cjs/core/actions/base/readKmsSignersContext.js +10 -0
- package/_cjs/core/actions/base/readKmsSignersContext.js.map +1 -0
- package/_cjs/core/actions/base/readPublicValue.js +13 -0
- package/_cjs/core/actions/base/readPublicValue.js.map +1 -0
- package/_cjs/core/actions/base/readPublicValues.js +13 -0
- package/_cjs/core/actions/base/readPublicValues.js.map +1 -0
- package/_cjs/core/actions/base/readPublicValuesWithSignatures.js +21 -0
- package/_cjs/core/actions/base/readPublicValuesWithSignatures.js.map +1 -0
- package/_cjs/core/actions/base/signDecryptionPermit.js +11 -0
- package/_cjs/core/actions/base/signDecryptionPermit.js.map +1 -0
- package/_cjs/core/actions/base/verifyHandlesCoprocessorSignatures.js +31 -0
- package/_cjs/core/actions/base/verifyHandlesCoprocessorSignatures.js.map +1 -0
- package/_cjs/core/actions/base/verifyInputProof.js +24 -0
- package/_cjs/core/actions/base/verifyInputProof.js.map +1 -0
- package/_cjs/core/actions/base/verifyZkProofCoprocessorSignatures.js +17 -0
- package/_cjs/core/actions/base/verifyZkProofCoprocessorSignatures.js.map +1 -0
- package/_cjs/core/actions/chain/createCoprocessorEip712Domain.js +11 -0
- package/_cjs/core/actions/chain/createCoprocessorEip712Domain.js.map +1 -0
- package/_cjs/core/actions/chain/createKmsDelegatedUserDecryptEip712.js +17 -0
- package/_cjs/core/actions/chain/createKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_cjs/core/actions/chain/createKmsEip712Domain.js +11 -0
- package/_cjs/core/actions/chain/createKmsEip712Domain.js.map +1 -0
- package/_cjs/core/actions/chain/createKmsUserDecryptEip712.js +16 -0
- package/_cjs/core/actions/chain/createKmsUserDecryptEip712.js.map +1 -0
- package/_cjs/core/actions/chain/fetchFheEncryptionKeyBytes.js +8 -0
- package/_cjs/core/actions/chain/fetchFheEncryptionKeyBytes.js.map +1 -0
- package/_cjs/core/actions/chain/index.js +28 -0
- package/_cjs/core/actions/chain/index.js.map +1 -0
- package/_cjs/core/actions/chain/parseSignedDecryptionPermit.js +10 -0
- package/_cjs/core/actions/chain/parseSignedDecryptionPermit.js.map +1 -0
- package/_cjs/core/actions/chain/parseTransportKeypair.js +9 -0
- package/_cjs/core/actions/chain/parseTransportKeypair.js.map +1 -0
- package/_cjs/core/actions/chain/serializeSignedDecryptionPermit.js +8 -0
- package/_cjs/core/actions/chain/serializeSignedDecryptionPermit.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/chain/verifyKmsDelegatedUserDecryptEip712.js +8 -0
- package/_cjs/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_cjs/core/actions/chain/verifyKmsUserDecryptEip712.js +8 -0
- package/_cjs/core/actions/chain/verifyKmsUserDecryptEip712.js.map +1 -0
- package/_cjs/core/actions/decrypt/canDecryptValue.js +20 -0
- package/_cjs/core/actions/decrypt/canDecryptValue.js.map +1 -0
- package/_cjs/core/actions/decrypt/canDecryptValues.js +23 -0
- package/_cjs/core/actions/decrypt/canDecryptValues.js.map +1 -0
- package/_cjs/core/actions/decrypt/canDecryptValuesFromPairs.js +19 -0
- package/_cjs/core/actions/decrypt/canDecryptValuesFromPairs.js.map +1 -0
- package/_cjs/core/actions/decrypt/decryptKmsSignedcryptedShares.js +11 -0
- package/_cjs/core/actions/decrypt/decryptKmsSignedcryptedShares.js.map +1 -0
- package/_cjs/core/actions/decrypt/decryptValue.js +20 -0
- package/_cjs/core/actions/decrypt/decryptValue.js.map +1 -0
- package/_cjs/core/actions/decrypt/decryptValues.js +19 -0
- package/_cjs/core/actions/decrypt/decryptValues.js.map +1 -0
- package/_cjs/core/actions/decrypt/decryptValuesFromPairs.js +18 -0
- package/_cjs/core/actions/decrypt/decryptValuesFromPairs.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 +20 -0
- package/_cjs/core/actions/decrypt/index.js.map +1 -0
- package/_cjs/core/actions/encrypt/encryptValue.js +24 -0
- package/_cjs/core/actions/encrypt/encryptValue.js.map +1 -0
- package/_cjs/core/actions/encrypt/encryptValues.js +23 -0
- package/_cjs/core/actions/encrypt/encryptValues.js.map +1 -0
- package/_cjs/core/actions/encrypt/generateZkProof.js +17 -0
- package/_cjs/core/actions/encrypt/generateZkProof.js.map +1 -0
- package/_cjs/core/actions/encrypt/index.js +10 -0
- package/_cjs/core/actions/encrypt/index.js.map +1 -0
- package/_cjs/core/actions/host/getUserDecryptionDelegationExpirationDate.js +21 -0
- package/_cjs/core/actions/host/getUserDecryptionDelegationExpirationDate.js.map +1 -0
- package/_cjs/core/actions/host/index.js +18 -0
- package/_cjs/core/actions/host/index.js.map +1 -0
- package/_cjs/core/actions/host/isAllowedForDecryption.js +20 -0
- package/_cjs/core/actions/host/isAllowedForDecryption.js.map +1 -0
- package/_cjs/core/actions/host/persistAllowed.js +20 -0
- package/_cjs/core/actions/host/persistAllowed.js.map +1 -0
- package/_cjs/core/actions/host/readFhevmExecutorContractData.js +46 -0
- package/_cjs/core/actions/host/readFhevmExecutorContractData.js.map +1 -0
- package/_cjs/core/actions/host/readInputVerifierContractData.js +41 -0
- package/_cjs/core/actions/host/readInputVerifierContractData.js.map +1 -0
- package/_cjs/core/actions/host/readKmsVerifierContractData.js +41 -0
- package/_cjs/core/actions/host/readKmsVerifierContractData.js.map +1 -0
- package/_cjs/core/actions/host/resolveChainId.js +23 -0
- package/_cjs/core/actions/host/resolveChainId.js.map +1 -0
- package/_cjs/core/actions/host/resolveFhevmConfig.js +85 -0
- package/_cjs/core/actions/host/resolveFhevmConfig.js.map +1 -0
- package/_cjs/core/base/address.js +182 -0
- package/_cjs/core/base/address.js.map +1 -0
- package/_cjs/core/base/auth.js +32 -0
- package/_cjs/core/base/auth.js.map +1 -0
- package/_cjs/core/base/boolean.js +33 -0
- package/_cjs/core/base/boolean.js.map +1 -0
- package/_cjs/core/base/bytes.js +1016 -0
- package/_cjs/core/base/bytes.js.map +1 -0
- package/_cjs/core/base/cachedFetch.js +78 -0
- package/_cjs/core/base/cachedFetch.js.map +1 -0
- package/_cjs/core/base/errors/AddressError.js +15 -0
- package/_cjs/core/base/errors/AddressError.js.map +1 -0
- package/_cjs/core/base/errors/ChecksummedAddressError.js +17 -0
- package/_cjs/core/base/errors/ChecksummedAddressError.js.map +1 -0
- package/_cjs/core/base/errors/ErrorBase.js +70 -0
- package/_cjs/core/base/errors/ErrorBase.js.map +1 -0
- package/_cjs/core/base/errors/FetchError.js +33 -0
- package/_cjs/core/base/errors/FetchError.js.map +1 -0
- package/_cjs/core/base/errors/FheTypeError.js +45 -0
- package/_cjs/core/base/errors/FheTypeError.js.map +1 -0
- package/_cjs/core/base/errors/InternalError.js +21 -0
- package/_cjs/core/base/errors/InternalError.js.map +1 -0
- package/_cjs/core/base/errors/InvalidPropertyError.js +72 -0
- package/_cjs/core/base/errors/InvalidPropertyError.js.map +1 -0
- package/_cjs/core/base/errors/InvalidTypeError.js +31 -0
- package/_cjs/core/base/errors/InvalidTypeError.js.map +1 -0
- package/_cjs/core/base/errors/utils.js +40 -0
- package/_cjs/core/base/errors/utils.js.map +1 -0
- package/_cjs/core/base/fetch.js +98 -0
- package/_cjs/core/base/fetch.js.map +1 -0
- package/_cjs/core/base/index.js +7 -0
- package/_cjs/core/base/index.js.map +1 -0
- package/_cjs/core/base/isomorphicWorker.js +209 -0
- package/_cjs/core/base/isomorphicWorker.js.map +1 -0
- package/_cjs/core/base/object.js +30 -0
- package/_cjs/core/base/object.js.map +1 -0
- package/_cjs/core/base/promise.js +14 -0
- package/_cjs/core/base/promise.js.map +1 -0
- package/_cjs/core/base/record.js +81 -0
- package/_cjs/core/base/record.js.map +1 -0
- package/_cjs/core/base/string.js +133 -0
- package/_cjs/core/base/string.js.map +1 -0
- package/_cjs/core/base/timeout.js +19 -0
- package/_cjs/core/base/timeout.js.map +1 -0
- package/_cjs/core/base/trustedValue.js +50 -0
- package/_cjs/core/base/trustedValue.js.map +1 -0
- package/_cjs/core/base/typedValue.js +184 -0
- package/_cjs/core/base/typedValue.js.map +1 -0
- package/_cjs/core/base/uid.js +19 -0
- package/_cjs/core/base/uid.js.map +1 -0
- package/_cjs/core/base/uint.js +414 -0
- package/_cjs/core/base/uint.js.map +1 -0
- package/_cjs/core/base/wasm.js +91 -0
- package/_cjs/core/base/wasm.js.map +1 -0
- package/_cjs/core/chains/definitions/localTestnet.js +33 -0
- package/_cjs/core/chains/definitions/localTestnet.js.map +1 -0
- package/_cjs/core/chains/definitions/mainnet.js +33 -0
- package/_cjs/core/chains/definitions/mainnet.js.map +1 -0
- package/_cjs/core/chains/definitions/sepolia.js +33 -0
- package/_cjs/core/chains/definitions/sepolia.js.map +1 -0
- package/_cjs/core/chains/index.js +10 -0
- package/_cjs/core/chains/index.js.map +1 -0
- package/_cjs/core/chains/utils.js +8 -0
- package/_cjs/core/chains/utils.js.map +1 -0
- package/_cjs/core/clients/decorators/base.js +34 -0
- package/_cjs/core/clients/decorators/base.js.map +1 -0
- package/_cjs/core/clients/decorators/decrypt.js +30 -0
- package/_cjs/core/clients/decorators/decrypt.js.map +1 -0
- package/_cjs/core/clients/decorators/encrypt-p.js +13 -0
- package/_cjs/core/clients/decorators/encrypt-p.js.map +1 -0
- package/_cjs/core/clients/decorators/encrypt.js +23 -0
- package/_cjs/core/clients/decorators/encrypt.js.map +1 -0
- package/_cjs/core/coprocessor/InputProof-p.js +236 -0
- package/_cjs/core/coprocessor/InputProof-p.js.map +1 -0
- package/_cjs/core/coprocessor/ZkProof-p.js +241 -0
- package/_cjs/core/coprocessor/ZkProof-p.js.map +1 -0
- package/_cjs/core/coprocessor/ZkProofBuilder-p.js +192 -0
- package/_cjs/core/coprocessor/ZkProofBuilder-p.js.map +1 -0
- package/_cjs/core/coprocessor/assertIsCoprocessorEip712Domain.js +19 -0
- package/_cjs/core/coprocessor/assertIsCoprocessorEip712Domain.js.map +1 -0
- package/_cjs/core/coprocessor/coprocessorEip712Types.js +17 -0
- package/_cjs/core/coprocessor/coprocessorEip712Types.js.map +1 -0
- package/_cjs/core/coprocessor/createCoprocessorEip712.js +41 -0
- package/_cjs/core/coprocessor/createCoprocessorEip712.js.map +1 -0
- package/_cjs/core/coprocessor/createCoprocessorEip712Domain.js +18 -0
- package/_cjs/core/coprocessor/createCoprocessorEip712Domain.js.map +1 -0
- package/_cjs/core/coprocessor/encrypt.js +20 -0
- package/_cjs/core/coprocessor/encrypt.js.map +1 -0
- package/_cjs/core/coprocessor/fetchVerifiedInputProof.js +41 -0
- package/_cjs/core/coprocessor/fetchVerifiedInputProof.js.map +1 -0
- package/_cjs/core/coprocessor/verifyHandlesCoprocessorSignatures.js +33 -0
- package/_cjs/core/coprocessor/verifyHandlesCoprocessorSignatures.js.map +1 -0
- package/_cjs/core/coprocessor/verifyInputProof.js +24 -0
- package/_cjs/core/coprocessor/verifyInputProof.js.map +1 -0
- package/_cjs/core/errors/AclError.js +48 -0
- package/_cjs/core/errors/AclError.js.map +1 -0
- package/_cjs/core/errors/ContractErrorBase.js +34 -0
- package/_cjs/core/errors/ContractErrorBase.js.map +1 -0
- package/_cjs/core/errors/EncryptionError.js +14 -0
- package/_cjs/core/errors/EncryptionError.js.map +1 -0
- package/_cjs/core/errors/FhevmConfigError.js +14 -0
- package/_cjs/core/errors/FhevmConfigError.js.map +1 -0
- package/_cjs/core/errors/FhevmErrorBase.js +66 -0
- package/_cjs/core/errors/FhevmErrorBase.js.map +1 -0
- package/_cjs/core/errors/FhevmHandleError.js +15 -0
- package/_cjs/core/errors/FhevmHandleError.js.map +1 -0
- package/_cjs/core/errors/InputProofError.js +25 -0
- package/_cjs/core/errors/InputProofError.js.map +1 -0
- package/_cjs/core/errors/RelayerAbortError.js +16 -0
- package/_cjs/core/errors/RelayerAbortError.js.map +1 -0
- package/_cjs/core/errors/RelayerErrorBase.js +85 -0
- package/_cjs/core/errors/RelayerErrorBase.js.map +1 -0
- package/_cjs/core/errors/RelayerFetchError.js +19 -0
- package/_cjs/core/errors/RelayerFetchError.js.map +1 -0
- package/_cjs/core/errors/RelayerFetchErrorBase.js +74 -0
- package/_cjs/core/errors/RelayerFetchErrorBase.js.map +1 -0
- package/_cjs/core/errors/RelayerMaxRetryError.js +17 -0
- package/_cjs/core/errors/RelayerMaxRetryError.js.map +1 -0
- package/_cjs/core/errors/RelayerRequestErrorBase.js +48 -0
- package/_cjs/core/errors/RelayerRequestErrorBase.js.map +1 -0
- package/_cjs/core/errors/RelayerRequestInternalError.js +45 -0
- package/_cjs/core/errors/RelayerRequestInternalError.js.map +1 -0
- package/_cjs/core/errors/RelayerResponseApiError.js +36 -0
- package/_cjs/core/errors/RelayerResponseApiError.js.map +1 -0
- package/_cjs/core/errors/RelayerResponseErrorBase.js +33 -0
- package/_cjs/core/errors/RelayerResponseErrorBase.js.map +1 -0
- package/_cjs/core/errors/RelayerResponseInputProofRejectedError.js +15 -0
- package/_cjs/core/errors/RelayerResponseInputProofRejectedError.js.map +1 -0
- package/_cjs/core/errors/RelayerResponseInvalidBodyError.js +36 -0
- package/_cjs/core/errors/RelayerResponseInvalidBodyError.js.map +1 -0
- package/_cjs/core/errors/RelayerResponseStatusError.js +17 -0
- package/_cjs/core/errors/RelayerResponseStatusError.js.map +1 -0
- package/_cjs/core/errors/RelayerStateError.js +33 -0
- package/_cjs/core/errors/RelayerStateError.js.map +1 -0
- package/_cjs/core/errors/RelayerTimeoutError.js +16 -0
- package/_cjs/core/errors/RelayerTimeoutError.js.map +1 -0
- package/_cjs/core/errors/SignersError.js +35 -0
- package/_cjs/core/errors/SignersError.js.map +1 -0
- package/_cjs/core/errors/TfheError.js +14 -0
- package/_cjs/core/errors/TfheError.js.map +1 -0
- package/_cjs/core/errors/ZkProofError.js +15 -0
- package/_cjs/core/errors/ZkProofError.js.map +1 -0
- package/_cjs/core/handle/ClearValue.js +185 -0
- package/_cjs/core/handle/ClearValue.js.map +1 -0
- package/_cjs/core/handle/EncryptedValue.js +32 -0
- package/_cjs/core/handle/EncryptedValue.js.map +1 -0
- package/_cjs/core/handle/FheType.js +298 -0
- package/_cjs/core/handle/FheType.js.map +1 -0
- package/_cjs/core/handle/FhevmHandle.js +352 -0
- package/_cjs/core/handle/FhevmHandle.js.map +1 -0
- package/_cjs/core/host-contracts/CoprocessorSignersContext-p.js +119 -0
- package/_cjs/core/host-contracts/CoprocessorSignersContext-p.js.map +1 -0
- package/_cjs/core/host-contracts/FhevmExecutorContractData-p.js +96 -0
- package/_cjs/core/host-contracts/FhevmExecutorContractData-p.js.map +1 -0
- package/_cjs/core/host-contracts/HostContractVersion-p.js +86 -0
- package/_cjs/core/host-contracts/HostContractVersion-p.js.map +1 -0
- package/_cjs/core/host-contracts/InputVerifierContractData-p.js +95 -0
- package/_cjs/core/host-contracts/InputVerifierContractData-p.js.map +1 -0
- package/_cjs/core/host-contracts/KmsSignersContext-p.js +165 -0
- package/_cjs/core/host-contracts/KmsSignersContext-p.js.map +1 -0
- package/_cjs/core/host-contracts/KmsVerifierContractData-p.js +77 -0
- package/_cjs/core/host-contracts/KmsVerifierContractData-p.js.map +1 -0
- package/_cjs/core/host-contracts/abi-fragments/fragments.js +336 -0
- package/_cjs/core/host-contracts/abi-fragments/fragments.js.map +1 -0
- package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js +47 -0
- package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -0
- package/_cjs/core/host-contracts/checkAllowedForDecryption.js +17 -0
- package/_cjs/core/host-contracts/checkAllowedForDecryption.js.map +1 -0
- package/_cjs/core/host-contracts/checkPersistAllowed.js +75 -0
- package/_cjs/core/host-contracts/checkPersistAllowed.js.map +1 -0
- package/_cjs/core/host-contracts/decryptionResultTypehash-p.js +26 -0
- package/_cjs/core/host-contracts/decryptionResultTypehash-p.js.map +1 -0
- package/_cjs/core/host-contracts/eip712Domain-p.js +43 -0
- package/_cjs/core/host-contracts/eip712Domain-p.js.map +1 -0
- package/_cjs/core/host-contracts/eip712InputVerificationTypehash-p.js +26 -0
- package/_cjs/core/host-contracts/eip712InputVerificationTypehash-p.js.map +1 -0
- package/_cjs/core/host-contracts/getAclAddress-p.js +26 -0
- package/_cjs/core/host-contracts/getAclAddress-p.js.map +1 -0
- package/_cjs/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js +72 -0
- package/_cjs/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js.map +1 -0
- package/_cjs/core/host-contracts/getCoprocessorSigners-p.js +26 -0
- package/_cjs/core/host-contracts/getCoprocessorSigners-p.js.map +1 -0
- package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js +40 -0
- package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -0
- package/_cjs/core/host-contracts/getFhevmExecutorAddress-p.js +26 -0
- package/_cjs/core/host-contracts/getFhevmExecutorAddress-p.js.map +1 -0
- package/_cjs/core/host-contracts/getHandleVersion-p.js +21 -0
- package/_cjs/core/host-contracts/getHandleVersion-p.js.map +1 -0
- package/_cjs/core/host-contracts/getHcuLimitAddress-p.js +26 -0
- package/_cjs/core/host-contracts/getHcuLimitAddress-p.js.map +1 -0
- package/_cjs/core/host-contracts/getInputVerifierAddress-p.js +26 -0
- package/_cjs/core/host-contracts/getInputVerifierAddress-p.js.map +1 -0
- package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js +78 -0
- package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -0
- package/_cjs/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js +57 -0
- package/_cjs/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js.map +1 -0
- package/_cjs/core/host-contracts/getSignersForKmsContext-p.js +54 -0
- package/_cjs/core/host-contracts/getSignersForKmsContext-p.js.map +1 -0
- package/_cjs/core/host-contracts/isAllowedForDecryption.js +30 -0
- package/_cjs/core/host-contracts/isAllowedForDecryption.js.map +1 -0
- package/_cjs/core/host-contracts/isUserDecryptable.js +54 -0
- package/_cjs/core/host-contracts/isUserDecryptable.js.map +1 -0
- package/_cjs/core/host-contracts/persistAllowed.js +31 -0
- package/_cjs/core/host-contracts/persistAllowed.js.map +1 -0
- package/_cjs/core/host-contracts/readCoprocessorSignersContext-p.js +15 -0
- package/_cjs/core/host-contracts/readCoprocessorSignersContext-p.js.map +1 -0
- package/_cjs/core/host-contracts/readKmsSignersContext-p.js +103 -0
- package/_cjs/core/host-contracts/readKmsSignersContext-p.js.map +1 -0
- package/_cjs/core/key/FheEncryptionKeyCache-p.js +221 -0
- package/_cjs/core/key/FheEncryptionKeyCache-p.js.map +1 -0
- package/_cjs/core/key/FheEncryptionKeyWasm-p.js +66 -0
- package/_cjs/core/key/FheEncryptionKeyWasm-p.js.map +1 -0
- package/_cjs/core/key/deserializeFheEncryptionKey.js +18 -0
- package/_cjs/core/key/deserializeFheEncryptionKey.js.map +1 -0
- package/_cjs/core/key/fetchFheEncryptionKey.js +30 -0
- package/_cjs/core/key/fetchFheEncryptionKey.js.map +1 -0
- package/_cjs/core/key/fetchFheEncryptionKeyBytes.js +39 -0
- package/_cjs/core/key/fetchFheEncryptionKeyBytes.js.map +1 -0
- package/_cjs/core/key/fetchFheEncryptionKeyBytesWithSource.js +53 -0
- package/_cjs/core/key/fetchFheEncryptionKeyBytesWithSource.js.map +1 -0
- package/_cjs/core/key/serializeFheEncryptionKey.js +22 -0
- package/_cjs/core/key/serializeFheEncryptionKey.js.map +1 -0
- package/_cjs/core/kms/KmsSigncryptedShares-p.js +94 -0
- package/_cjs/core/kms/KmsSigncryptedShares-p.js.map +1 -0
- package/_cjs/core/kms/PublicDecryptionProof-p.js +95 -0
- package/_cjs/core/kms/PublicDecryptionProof-p.js.map +1 -0
- package/_cjs/core/kms/PublicDecryptionProof.js +8 -0
- package/_cjs/core/kms/PublicDecryptionProof.js.map +1 -0
- package/_cjs/core/kms/SignedDecryptionPermit-p.js +230 -0
- package/_cjs/core/kms/SignedDecryptionPermit-p.js.map +1 -0
- package/_cjs/core/kms/TransportKeypair-p.js +153 -0
- package/_cjs/core/kms/TransportKeypair-p.js.map +1 -0
- package/_cjs/core/kms/createKmsDelegatedUserDecryptEip712.js +72 -0
- package/_cjs/core/kms/createKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_cjs/core/kms/createKmsEip712Domain.js +33 -0
- package/_cjs/core/kms/createKmsEip712Domain.js.map +1 -0
- package/_cjs/core/kms/createKmsPublicDecryptEip712.js +39 -0
- package/_cjs/core/kms/createKmsPublicDecryptEip712.js.map +1 -0
- package/_cjs/core/kms/createKmsUserDecryptEip712.js +91 -0
- package/_cjs/core/kms/createKmsUserDecryptEip712.js.map +1 -0
- package/_cjs/core/kms/decryptKmsSignedcryptedShares-p.js +14 -0
- package/_cjs/core/kms/decryptKmsSignedcryptedShares-p.js.map +1 -0
- package/_cjs/core/kms/decryptValuesFromPairs.js +14 -0
- package/_cjs/core/kms/decryptValuesFromPairs.js.map +1 -0
- package/_cjs/core/kms/fetchKmsSignedcryptedShares-p.js +89 -0
- package/_cjs/core/kms/fetchKmsSignedcryptedShares-p.js.map +1 -0
- package/_cjs/core/kms/index.js +3 -0
- package/_cjs/core/kms/index.js.map +1 -0
- package/_cjs/core/kms/kmsDelegatedUserDecryptEip712Types.js +25 -0
- package/_cjs/core/kms/kmsDelegatedUserDecryptEip712Types.js.map +1 -0
- package/_cjs/core/kms/kmsExtraData.js +33 -0
- package/_cjs/core/kms/kmsExtraData.js.map +1 -0
- package/_cjs/core/kms/kmsPublicDecryptEip712Types.js +22 -0
- package/_cjs/core/kms/kmsPublicDecryptEip712Types.js.map +1 -0
- package/_cjs/core/kms/kmsUserDecryptEip712Types.js +24 -0
- package/_cjs/core/kms/kmsUserDecryptEip712Types.js.map +1 -0
- package/_cjs/core/kms/publicDecrypt.js +55 -0
- package/_cjs/core/kms/publicDecrypt.js.map +1 -0
- package/_cjs/core/kms/utils.js +34 -0
- package/_cjs/core/kms/utils.js.map +1 -0
- package/_cjs/core/kms/verifyKmsPublicDecryptEip712-p.js +34 -0
- package/_cjs/core/kms/verifyKmsPublicDecryptEip712-p.js.map +1 -0
- package/_cjs/core/modules/decrypt/mock.js +69 -0
- package/_cjs/core/modules/decrypt/mock.js.map +1 -0
- package/_cjs/core/modules/decrypt/module/api-p.js +197 -0
- package/_cjs/core/modules/decrypt/module/api-p.js.map +1 -0
- package/_cjs/core/modules/decrypt/module/index.js +43 -0
- package/_cjs/core/modules/decrypt/module/index.js.map +1 -0
- package/_cjs/core/modules/decrypt/module/init-p.js +124 -0
- package/_cjs/core/modules/decrypt/module/init-p.js.map +1 -0
- package/_cjs/core/modules/decrypt/types.js +3 -0
- package/_cjs/core/modules/decrypt/types.js.map +1 -0
- package/_cjs/core/modules/encrypt/mock.js +50 -0
- package/_cjs/core/modules/encrypt/mock.js.map +1 -0
- package/_cjs/core/modules/encrypt/module/api-p.js +263 -0
- package/_cjs/core/modules/encrypt/module/api-p.js.map +1 -0
- package/_cjs/core/modules/encrypt/module/index.js +22 -0
- package/_cjs/core/modules/encrypt/module/index.js.map +1 -0
- package/_cjs/core/modules/encrypt/module/init-p.js +175 -0
- package/_cjs/core/modules/encrypt/module/init-p.js.map +1 -0
- package/_cjs/core/modules/encrypt/types.js +3 -0
- package/_cjs/core/modules/encrypt/types.js.map +1 -0
- package/_cjs/core/modules/ethereum/createTrustedClient.js +9 -0
- package/_cjs/core/modules/ethereum/createTrustedClient.js.map +1 -0
- package/_cjs/core/modules/ethereum/types.js +3 -0
- package/_cjs/core/modules/ethereum/types.js.map +1 -0
- package/_cjs/core/modules/relayer/mock.js +29 -0
- package/_cjs/core/modules/relayer/mock.js.map +1 -0
- package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js +1231 -0
- package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchCoprocessorSignatures.js +30 -0
- package/_cjs/core/modules/relayer/module/fetchCoprocessorSignatures.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecrypt.js +47 -0
- package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeyBytes.js +19 -0
- package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeyBytes.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeySource.js +124 -0
- package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeySource.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js +27 -0
- package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js +48 -0
- package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerInputProofSucceeded.js +39 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerInputProofSucceeded.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerPublicDecryptSucceeded.js +21 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerPublicDecryptSucceeded.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerResponseFailed.js +122 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerResponseFailed.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerResponseQueued.js +23 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerResponseQueued.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js +27 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js +39 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError400WithDetails.js +56 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError400WithDetails.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError404.js +12 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError404.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError429.js +12 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError429.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError500.js +12 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError500.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js +17 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js.map +1 -0
- package/_cjs/core/modules/relayer/module/index.js +23 -0
- package/_cjs/core/modules/relayer/module/index.js.map +1 -0
- package/_cjs/core/modules/relayer/module/relayerUrl.js +36 -0
- package/_cjs/core/modules/relayer/module/relayerUrl.js.map +1 -0
- package/_cjs/core/modules/relayer/module/utils.js +22 -0
- package/_cjs/core/modules/relayer/module/utils.js.map +1 -0
- package/_cjs/core/modules/relayer/types.js +3 -0
- package/_cjs/core/modules/relayer/types.js.map +1 -0
- package/_cjs/core/runtime/CoreFhevm-p.js +221 -0
- package/_cjs/core/runtime/CoreFhevm-p.js.map +1 -0
- package/_cjs/core/runtime/CoreFhevmRuntime-p.js +156 -0
- package/_cjs/core/runtime/CoreFhevmRuntime-p.js.map +1 -0
- package/_cjs/core/runtime/FhevmRuntime.js +9 -0
- package/_cjs/core/runtime/FhevmRuntime.js.map +1 -0
- package/_cjs/core/runtime/initFhevmDecryptRuntime-p.js +11 -0
- package/_cjs/core/runtime/initFhevmDecryptRuntime-p.js.map +1 -0
- package/_cjs/core/runtime/initFhevmEncryptRuntime-p.js +11 -0
- package/_cjs/core/runtime/initFhevmEncryptRuntime-p.js.map +1 -0
- package/_cjs/core/runtime/initFhevmRuntime-p.js +12 -0
- package/_cjs/core/runtime/initFhevmRuntime-p.js.map +1 -0
- package/_cjs/core/types/auth.js +3 -0
- package/_cjs/core/types/auth.js.map +1 -0
- package/_cjs/core/types/configs.js +3 -0
- package/_cjs/core/types/configs.js.map +1 -0
- package/_cjs/core/types/coprocessor.js +3 -0
- package/_cjs/core/types/coprocessor.js.map +1 -0
- package/_cjs/core/types/coprocessorSignersContext.js +3 -0
- package/_cjs/core/types/coprocessorSignersContext.js.map +1 -0
- package/_cjs/core/types/coreFhevmClient.js +3 -0
- package/_cjs/core/types/coreFhevmClient.js.map +1 -0
- package/_cjs/core/types/coreFhevmRuntime.js +3 -0
- package/_cjs/core/types/coreFhevmRuntime.js.map +1 -0
- package/_cjs/core/types/encryptedTypes-p.js +3 -0
- package/_cjs/core/types/encryptedTypes-p.js.map +1 -0
- package/_cjs/core/types/encryptedTypes.js +3 -0
- package/_cjs/core/types/encryptedTypes.js.map +1 -0
- package/_cjs/core/types/fheEncryptionKey.js +3 -0
- package/_cjs/core/types/fheEncryptionKey.js.map +1 -0
- package/_cjs/core/types/fheType.js +3 -0
- package/_cjs/core/types/fheType.js.map +1 -0
- package/_cjs/core/types/fhevmChain.js +3 -0
- package/_cjs/core/types/fhevmChain.js.map +1 -0
- package/_cjs/core/types/fhevmClient.js +3 -0
- package/_cjs/core/types/fhevmClient.js.map +1 -0
- package/_cjs/core/types/fhevmDecryptionKey.js +3 -0
- package/_cjs/core/types/fhevmDecryptionKey.js.map +1 -0
- package/_cjs/core/types/fhevmUser.js +3 -0
- package/_cjs/core/types/fhevmUser.js.map +1 -0
- package/_cjs/core/types/hostContract.js +3 -0
- package/_cjs/core/types/hostContract.js.map +1 -0
- package/_cjs/core/types/index.js +3 -0
- package/_cjs/core/types/index.js.map +1 -0
- package/_cjs/core/types/inputProof.js +3 -0
- package/_cjs/core/types/inputProof.js.map +1 -0
- package/_cjs/core/types/kms-p.js +3 -0
- package/_cjs/core/types/kms-p.js.map +1 -0
- package/_cjs/core/types/kms.js +3 -0
- package/_cjs/core/types/kms.js.map +1 -0
- package/_cjs/core/types/kmsSignersContext.js +3 -0
- package/_cjs/core/types/kmsSignersContext.js.map +1 -0
- package/_cjs/core/types/logger.js +3 -0
- package/_cjs/core/types/logger.js.map +1 -0
- package/_cjs/core/types/other-p.js +3 -0
- package/_cjs/core/types/other-p.js.map +1 -0
- package/_cjs/core/types/primitives.js +3 -0
- package/_cjs/core/types/primitives.js.map +1 -0
- package/_cjs/core/types/publicDecryptionProof-p.js +3 -0
- package/_cjs/core/types/publicDecryptionProof-p.js.map +1 -0
- package/_cjs/core/types/record-p.js +3 -0
- package/_cjs/core/types/record-p.js.map +1 -0
- package/_cjs/core/types/relayer-p.js +3 -0
- package/_cjs/core/types/relayer-p.js.map +1 -0
- package/_cjs/core/types/relayer.js +3 -0
- package/_cjs/core/types/relayer.js.map +1 -0
- package/_cjs/core/types/signedDecryptionPermit.js +3 -0
- package/_cjs/core/types/signedDecryptionPermit.js.map +1 -0
- package/_cjs/core/types/tkms-p.js +3 -0
- package/_cjs/core/types/tkms-p.js.map +1 -0
- package/_cjs/core/types/utils.js +3 -0
- package/_cjs/core/types/utils.js.map +1 -0
- package/_cjs/core/types/zkProof-p.js +3 -0
- package/_cjs/core/types/zkProof-p.js.map +1 -0
- package/_cjs/core/types/zkProofBuilder.js +3 -0
- package/_cjs/core/types/zkProofBuilder.js.map +1 -0
- 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/verifyKmsDelegatedUserDecryptEip712.js +32 -0
- package/_cjs/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_cjs/core/utils-p/decrypt/verifyKmsUserDecryptEip712.js +32 -0
- package/_cjs/core/utils-p/decrypt/verifyKmsUserDecryptEip712.js.map +1 -0
- package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js +13 -0
- package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -0
- package/_cjs/core/utils-p/runtime/recoverSigners.js +23 -0
- package/_cjs/core/utils-p/runtime/recoverSigners.js.map +1 -0
- package/_cjs/ethers/clients/createFhevmBaseClient.js +16 -0
- package/_cjs/ethers/clients/createFhevmBaseClient.js.map +1 -0
- package/_cjs/ethers/clients/createFhevmClient.js +11 -0
- package/_cjs/ethers/clients/createFhevmClient.js.map +1 -0
- package/_cjs/ethers/clients/createFhevmDecryptClient.js +10 -0
- package/_cjs/ethers/clients/createFhevmDecryptClient.js.map +1 -0
- package/_cjs/ethers/clients/createFhevmEncryptClient.js +10 -0
- package/_cjs/ethers/clients/createFhevmEncryptClient.js.map +1 -0
- package/_cjs/ethers/decorators/decrypt.js +9 -0
- package/_cjs/ethers/decorators/decrypt.js.map +1 -0
- package/_cjs/ethers/decorators/encrypt.js +9 -0
- package/_cjs/ethers/decorators/encrypt.js.map +1 -0
- package/_cjs/ethers/index.js +20 -0
- package/_cjs/ethers/index.js.map +1 -0
- package/_cjs/ethers/internal/ethereum.js +80 -0
- package/_cjs/ethers/internal/ethereum.js.map +1 -0
- package/_cjs/ethers/internal/ethers-p.js +52 -0
- package/_cjs/ethers/internal/ethers-p.js.map +1 -0
- package/_cjs/ethers/internal/utils.js +26 -0
- package/_cjs/ethers/internal/utils.js.map +1 -0
- package/_cjs/ethers/runtime/initFhevmDecryptRuntime.js +9 -0
- package/_cjs/ethers/runtime/initFhevmDecryptRuntime.js.map +1 -0
- package/_cjs/ethers/runtime/initFhevmEncryptRuntime.js +9 -0
- package/_cjs/ethers/runtime/initFhevmEncryptRuntime.js.map +1 -0
- package/_cjs/ethers/runtime/initFhevmRuntime.js +9 -0
- package/_cjs/ethers/runtime/initFhevmRuntime.js.map +1 -0
- package/_cjs/package.json +1 -0
- package/_cjs/viem/clients/createFhevmBaseClient.js +16 -0
- package/_cjs/viem/clients/createFhevmBaseClient.js.map +1 -0
- package/_cjs/viem/clients/createFhevmClient.js +11 -0
- package/_cjs/viem/clients/createFhevmClient.js.map +1 -0
- package/_cjs/viem/clients/createFhevmDecryptClient.js +10 -0
- package/_cjs/viem/clients/createFhevmDecryptClient.js.map +1 -0
- package/_cjs/viem/clients/createFhevmEncryptClient.js +10 -0
- package/_cjs/viem/clients/createFhevmEncryptClient.js.map +1 -0
- package/_cjs/viem/decorators/decrypt.js +9 -0
- package/_cjs/viem/decorators/decrypt.js.map +1 -0
- package/_cjs/viem/decorators/encrypt.js +9 -0
- package/_cjs/viem/decorators/encrypt.js.map +1 -0
- package/_cjs/viem/index.js +20 -0
- package/_cjs/viem/index.js.map +1 -0
- package/_cjs/viem/internal/ethereum.js +68 -0
- package/_cjs/viem/internal/ethereum.js.map +1 -0
- package/_cjs/viem/internal/viem-p.js +52 -0
- package/_cjs/viem/internal/viem-p.js.map +1 -0
- package/_cjs/viem/runtime/initFhevmDecryptRuntime.js +9 -0
- package/_cjs/viem/runtime/initFhevmDecryptRuntime.js.map +1 -0
- package/_cjs/viem/runtime/initFhevmEncryptRuntime.js +9 -0
- package/_cjs/viem/runtime/initFhevmEncryptRuntime.js.map +1 -0
- package/_cjs/viem/runtime/initFhevmRuntime.js +9 -0
- package/_cjs/viem/runtime/initFhevmRuntime.js.map +1 -0
- package/_cjs/wasm/tfhe/compile-worker.js +8 -0
- package/_cjs/wasm/tfhe/startWorkers.v1.5.3.js +426 -0
- package/_cjs/wasm/tfhe/tfhe-worker.v1.5.3.inline.js +7 -0
- package/_cjs/wasm/tfhe/tfhe-worker.v1.5.3.mjs +745 -0
- package/_cjs/wasm/tfhe/tfhe.v1.5.3.d.ts +10793 -0
- package/_cjs/wasm/tfhe/tfhe.v1.5.3.js +28645 -0
- package/_cjs/wasm/tfhe/tfhe_bg.v1.5.3.wasm +0 -0
- package/_cjs/wasm/tfhe/tfhe_bg.v1.5.3.wasm.base64.d.ts +1 -0
- package/_cjs/wasm/tfhe/tfhe_bg.v1.5.3.wasm.base64.js +1 -0
- package/_cjs/wasm/tkms/kms_lib.v0.13.10.d.ts +586 -0
- package/_cjs/wasm/tkms/kms_lib.v0.13.10.js +2117 -0
- package/_cjs/wasm/tkms/kms_lib_bg.v0.13.10.wasm +0 -0
- package/_cjs/wasm/tkms/kms_lib_bg.v0.13.10.wasm.base64.d.ts +1 -0
- package/_cjs/wasm/tkms/kms_lib_bg.v0.13.10.wasm.base64.js +3 -0
- package/_cjs/wasm/wasmBaseUrl.d.ts +7 -0
- package/_cjs/wasm/wasmBaseUrl.js +14 -0
- package/_esm/core/_version.js +4 -0
- package/_esm/core/_version.js.map +1 -0
- package/_esm/core/actions/base/canReadPublicValue.js +11 -0
- package/_esm/core/actions/base/canReadPublicValue.js.map +1 -0
- package/_esm/core/actions/base/canReadPublicValues.js +11 -0
- package/_esm/core/actions/base/canReadPublicValues.js.map +1 -0
- package/_esm/core/actions/base/createVerifiedInputProofFromRawBytes.js +7 -0
- package/_esm/core/actions/base/createVerifiedInputProofFromRawBytes.js.map +1 -0
- package/_esm/core/actions/base/fetchKmsSignedcryptedShares.js +17 -0
- package/_esm/core/actions/base/fetchKmsSignedcryptedShares.js.map +1 -0
- package/_esm/core/actions/base/fetchVerifiedInputProof.js +8 -0
- package/_esm/core/actions/base/fetchVerifiedInputProof.js.map +1 -0
- package/_esm/core/actions/base/index.js +14 -0
- package/_esm/core/actions/base/index.js.map +1 -0
- package/_esm/core/actions/base/readCoprocessorSignersContext.js +9 -0
- package/_esm/core/actions/base/readCoprocessorSignersContext.js.map +1 -0
- package/_esm/core/actions/base/readKmsSignersContext.js +9 -0
- package/_esm/core/actions/base/readKmsSignersContext.js.map +1 -0
- package/_esm/core/actions/base/readPublicValue.js +11 -0
- package/_esm/core/actions/base/readPublicValue.js.map +1 -0
- package/_esm/core/actions/base/readPublicValues.js +11 -0
- package/_esm/core/actions/base/readPublicValues.js.map +1 -0
- package/_esm/core/actions/base/readPublicValuesWithSignatures.js +19 -0
- package/_esm/core/actions/base/readPublicValuesWithSignatures.js.map +1 -0
- package/_esm/core/actions/base/signDecryptionPermit.js +11 -0
- package/_esm/core/actions/base/signDecryptionPermit.js.map +1 -0
- package/_esm/core/actions/base/verifyHandlesCoprocessorSignatures.js +35 -0
- package/_esm/core/actions/base/verifyHandlesCoprocessorSignatures.js.map +1 -0
- package/_esm/core/actions/base/verifyInputProof.js +22 -0
- package/_esm/core/actions/base/verifyInputProof.js.map +1 -0
- package/_esm/core/actions/base/verifyZkProofCoprocessorSignatures.js +14 -0
- package/_esm/core/actions/base/verifyZkProofCoprocessorSignatures.js.map +1 -0
- package/_esm/core/actions/chain/createCoprocessorEip712Domain.js +8 -0
- package/_esm/core/actions/chain/createCoprocessorEip712Domain.js.map +1 -0
- package/_esm/core/actions/chain/createKmsDelegatedUserDecryptEip712.js +15 -0
- package/_esm/core/actions/chain/createKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_esm/core/actions/chain/createKmsEip712Domain.js +8 -0
- package/_esm/core/actions/chain/createKmsEip712Domain.js.map +1 -0
- package/_esm/core/actions/chain/createKmsUserDecryptEip712.js +14 -0
- package/_esm/core/actions/chain/createKmsUserDecryptEip712.js.map +1 -0
- package/_esm/core/actions/chain/fetchFheEncryptionKeyBytes.js +6 -0
- package/_esm/core/actions/chain/fetchFheEncryptionKeyBytes.js.map +1 -0
- package/_esm/core/actions/chain/index.js +13 -0
- package/_esm/core/actions/chain/index.js.map +1 -0
- package/_esm/core/actions/chain/parseSignedDecryptionPermit.js +15 -0
- package/_esm/core/actions/chain/parseSignedDecryptionPermit.js.map +1 -0
- package/_esm/core/actions/chain/parseTransportKeypair.js +7 -0
- package/_esm/core/actions/chain/parseTransportKeypair.js.map +1 -0
- package/_esm/core/actions/chain/serializeSignedDecryptionPermit.js +11 -0
- package/_esm/core/actions/chain/serializeSignedDecryptionPermit.js.map +1 -0
- package/_esm/core/actions/chain/serializeTransportKeypair.js +6 -0
- package/_esm/core/actions/chain/serializeTransportKeypair.js.map +1 -0
- package/_esm/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.js +5 -0
- package/_esm/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_esm/core/actions/chain/verifyKmsUserDecryptEip712.js +5 -0
- package/_esm/core/actions/chain/verifyKmsUserDecryptEip712.js.map +1 -0
- package/_esm/core/actions/decrypt/canDecryptValue.js +18 -0
- package/_esm/core/actions/decrypt/canDecryptValue.js.map +1 -0
- package/_esm/core/actions/decrypt/canDecryptValues.js +20 -0
- package/_esm/core/actions/decrypt/canDecryptValues.js.map +1 -0
- package/_esm/core/actions/decrypt/canDecryptValuesFromPairs.js +16 -0
- package/_esm/core/actions/decrypt/canDecryptValuesFromPairs.js.map +1 -0
- package/_esm/core/actions/decrypt/decryptKmsSignedcryptedShares.js +9 -0
- package/_esm/core/actions/decrypt/decryptKmsSignedcryptedShares.js.map +1 -0
- package/_esm/core/actions/decrypt/decryptValue.js +18 -0
- package/_esm/core/actions/decrypt/decryptValue.js.map +1 -0
- package/_esm/core/actions/decrypt/decryptValues.js +16 -0
- package/_esm/core/actions/decrypt/decryptValues.js.map +1 -0
- package/_esm/core/actions/decrypt/decryptValuesFromPairs.js +15 -0
- package/_esm/core/actions/decrypt/decryptValuesFromPairs.js.map +1 -0
- package/_esm/core/actions/decrypt/generateTransportKeypair.js +6 -0
- package/_esm/core/actions/decrypt/generateTransportKeypair.js.map +1 -0
- package/_esm/core/actions/decrypt/index.js +9 -0
- package/_esm/core/actions/decrypt/index.js.map +1 -0
- package/_esm/core/actions/encrypt/encryptValue.js +24 -0
- package/_esm/core/actions/encrypt/encryptValue.js.map +1 -0
- package/_esm/core/actions/encrypt/encryptValues.js +22 -0
- package/_esm/core/actions/encrypt/encryptValues.js.map +1 -0
- package/_esm/core/actions/encrypt/generateZkProof.js +15 -0
- package/_esm/core/actions/encrypt/generateZkProof.js.map +1 -0
- package/_esm/core/actions/encrypt/index.js +4 -0
- package/_esm/core/actions/encrypt/index.js.map +1 -0
- package/_esm/core/actions/host/getUserDecryptionDelegationExpirationDate.js +18 -0
- package/_esm/core/actions/host/getUserDecryptionDelegationExpirationDate.js.map +1 -0
- package/_esm/core/actions/host/index.js +8 -0
- package/_esm/core/actions/host/index.js.map +1 -0
- package/_esm/core/actions/host/isAllowedForDecryption.js +18 -0
- package/_esm/core/actions/host/isAllowedForDecryption.js.map +1 -0
- package/_esm/core/actions/host/persistAllowed.js +17 -0
- package/_esm/core/actions/host/persistAllowed.js.map +1 -0
- package/_esm/core/actions/host/readFhevmExecutorContractData.js +53 -0
- package/_esm/core/actions/host/readFhevmExecutorContractData.js.map +1 -0
- package/_esm/core/actions/host/readInputVerifierContractData.js +49 -0
- package/_esm/core/actions/host/readInputVerifierContractData.js.map +1 -0
- package/_esm/core/actions/host/readKmsVerifierContractData.js +49 -0
- package/_esm/core/actions/host/readKmsVerifierContractData.js.map +1 -0
- package/_esm/core/actions/host/resolveChainId.js +24 -0
- package/_esm/core/actions/host/resolveChainId.js.map +1 -0
- package/_esm/core/actions/host/resolveFhevmConfig.js +89 -0
- package/_esm/core/actions/host/resolveFhevmConfig.js.map +1 -0
- package/_esm/core/base/address.js +210 -0
- package/_esm/core/base/address.js.map +1 -0
- package/_esm/core/base/auth.js +36 -0
- package/_esm/core/base/auth.js.map +1 -0
- package/_esm/core/base/boolean.js +62 -0
- package/_esm/core/base/boolean.js.map +1 -0
- package/_esm/core/base/bytes.js +1445 -0
- package/_esm/core/base/bytes.js.map +1 -0
- package/_esm/core/base/cachedFetch.js +88 -0
- package/_esm/core/base/cachedFetch.js.map +1 -0
- package/_esm/core/base/errors/AddressError.js +11 -0
- package/_esm/core/base/errors/AddressError.js.map +1 -0
- package/_esm/core/base/errors/ChecksummedAddressError.js +13 -0
- package/_esm/core/base/errors/ChecksummedAddressError.js.map +1 -0
- package/_esm/core/base/errors/ErrorBase.js +68 -0
- package/_esm/core/base/errors/ErrorBase.js.map +1 -0
- package/_esm/core/base/errors/FetchError.js +30 -0
- package/_esm/core/base/errors/FetchError.js.map +1 -0
- package/_esm/core/base/errors/FheTypeError.js +44 -0
- package/_esm/core/base/errors/FheTypeError.js.map +1 -0
- package/_esm/core/base/errors/InternalError.js +18 -0
- package/_esm/core/base/errors/InternalError.js.map +1 -0
- package/_esm/core/base/errors/InvalidPropertyError.js +183 -0
- package/_esm/core/base/errors/InvalidPropertyError.js.map +1 -0
- package/_esm/core/base/errors/InvalidTypeError.js +57 -0
- package/_esm/core/base/errors/InvalidTypeError.js.map +1 -0
- package/_esm/core/base/errors/utils.js +36 -0
- package/_esm/core/base/errors/utils.js.map +1 -0
- package/_esm/core/base/fetch.js +210 -0
- package/_esm/core/base/fetch.js.map +1 -0
- package/_esm/core/base/index.js +2 -0
- package/_esm/core/base/index.js.map +1 -0
- package/_esm/core/base/isomorphicWorker.js +235 -0
- package/_esm/core/base/isomorphicWorker.js.map +1 -0
- package/_esm/core/base/object.js +36 -0
- package/_esm/core/base/object.js.map +1 -0
- package/_esm/core/base/promise.js +31 -0
- package/_esm/core/base/promise.js.map +1 -0
- package/_esm/core/base/record.js +149 -0
- package/_esm/core/base/record.js.map +1 -0
- package/_esm/core/base/string.js +163 -0
- package/_esm/core/base/string.js.map +1 -0
- package/_esm/core/base/timeout.js +26 -0
- package/_esm/core/base/timeout.js.map +1 -0
- package/_esm/core/base/trustedValue.js +83 -0
- package/_esm/core/base/trustedValue.js.map +1 -0
- package/_esm/core/base/typedValue.js +236 -0
- package/_esm/core/base/typedValue.js.map +1 -0
- package/_esm/core/base/uid.js +17 -0
- package/_esm/core/base/uid.js.map +1 -0
- package/_esm/core/base/uint.js +402 -0
- package/_esm/core/base/uint.js.map +1 -0
- package/_esm/core/base/wasm.js +84 -0
- package/_esm/core/base/wasm.js.map +1 -0
- package/_esm/core/chains/definitions/localTestnet.js +30 -0
- package/_esm/core/chains/definitions/localTestnet.js.map +1 -0
- package/_esm/core/chains/definitions/mainnet.js +30 -0
- package/_esm/core/chains/definitions/mainnet.js.map +1 -0
- package/_esm/core/chains/definitions/sepolia.js +30 -0
- package/_esm/core/chains/definitions/sepolia.js.map +1 -0
- package/_esm/core/chains/index.js +4 -0
- package/_esm/core/chains/index.js.map +1 -0
- package/_esm/core/chains/utils.js +5 -0
- package/_esm/core/chains/utils.js.map +1 -0
- package/_esm/core/clients/decorators/base.js +36 -0
- package/_esm/core/clients/decorators/base.js.map +1 -0
- package/_esm/core/clients/decorators/decrypt.js +32 -0
- package/_esm/core/clients/decorators/decrypt.js.map +1 -0
- package/_esm/core/clients/decorators/encrypt-p.js +12 -0
- package/_esm/core/clients/decorators/encrypt-p.js.map +1 -0
- package/_esm/core/clients/decorators/encrypt.js +22 -0
- package/_esm/core/clients/decorators/encrypt.js.map +1 -0
- package/_esm/core/coprocessor/InputProof-p.js +268 -0
- package/_esm/core/coprocessor/InputProof-p.js.map +1 -0
- package/_esm/core/coprocessor/ZkProof-p.js +343 -0
- package/_esm/core/coprocessor/ZkProof-p.js.map +1 -0
- package/_esm/core/coprocessor/ZkProofBuilder-p.js +208 -0
- package/_esm/core/coprocessor/ZkProofBuilder-p.js.map +1 -0
- package/_esm/core/coprocessor/assertIsCoprocessorEip712Domain.js +16 -0
- package/_esm/core/coprocessor/assertIsCoprocessorEip712Domain.js.map +1 -0
- package/_esm/core/coprocessor/coprocessorEip712Types.js +34 -0
- package/_esm/core/coprocessor/coprocessorEip712Types.js.map +1 -0
- package/_esm/core/coprocessor/createCoprocessorEip712.js +41 -0
- package/_esm/core/coprocessor/createCoprocessorEip712.js.map +1 -0
- package/_esm/core/coprocessor/createCoprocessorEip712Domain.js +15 -0
- package/_esm/core/coprocessor/createCoprocessorEip712Domain.js.map +1 -0
- package/_esm/core/coprocessor/encrypt.js +18 -0
- package/_esm/core/coprocessor/encrypt.js.map +1 -0
- package/_esm/core/coprocessor/fetchVerifiedInputProof.js +47 -0
- package/_esm/core/coprocessor/fetchVerifiedInputProof.js.map +1 -0
- package/_esm/core/coprocessor/verifyHandlesCoprocessorSignatures.js +37 -0
- package/_esm/core/coprocessor/verifyHandlesCoprocessorSignatures.js.map +1 -0
- package/_esm/core/coprocessor/verifyInputProof.js +22 -0
- package/_esm/core/coprocessor/verifyInputProof.js.map +1 -0
- package/_esm/core/errors/AclError.js +43 -0
- package/_esm/core/errors/AclError.js.map +1 -0
- package/_esm/core/errors/ContractErrorBase.js +30 -0
- package/_esm/core/errors/ContractErrorBase.js.map +1 -0
- package/_esm/core/errors/EncryptionError.js +10 -0
- package/_esm/core/errors/EncryptionError.js.map +1 -0
- package/_esm/core/errors/FhevmConfigError.js +10 -0
- package/_esm/core/errors/FhevmConfigError.js.map +1 -0
- package/_esm/core/errors/FhevmErrorBase.js +62 -0
- package/_esm/core/errors/FhevmErrorBase.js.map +1 -0
- package/_esm/core/errors/FhevmHandleError.js +11 -0
- package/_esm/core/errors/FhevmHandleError.js.map +1 -0
- package/_esm/core/errors/InputProofError.js +20 -0
- package/_esm/core/errors/InputProofError.js.map +1 -0
- package/_esm/core/errors/RelayerAbortError.js +15 -0
- package/_esm/core/errors/RelayerAbortError.js.map +1 -0
- package/_esm/core/errors/RelayerErrorBase.js +83 -0
- package/_esm/core/errors/RelayerErrorBase.js.map +1 -0
- package/_esm/core/errors/RelayerFetchError.js +18 -0
- package/_esm/core/errors/RelayerFetchError.js.map +1 -0
- package/_esm/core/errors/RelayerFetchErrorBase.js +71 -0
- package/_esm/core/errors/RelayerFetchErrorBase.js.map +1 -0
- package/_esm/core/errors/RelayerMaxRetryError.js +16 -0
- package/_esm/core/errors/RelayerMaxRetryError.js.map +1 -0
- package/_esm/core/errors/RelayerRequestErrorBase.js +44 -0
- package/_esm/core/errors/RelayerRequestErrorBase.js.map +1 -0
- package/_esm/core/errors/RelayerRequestInternalError.js +44 -0
- package/_esm/core/errors/RelayerRequestInternalError.js.map +1 -0
- package/_esm/core/errors/RelayerResponseApiError.js +35 -0
- package/_esm/core/errors/RelayerResponseApiError.js.map +1 -0
- package/_esm/core/errors/RelayerResponseErrorBase.js +29 -0
- package/_esm/core/errors/RelayerResponseErrorBase.js.map +1 -0
- package/_esm/core/errors/RelayerResponseInputProofRejectedError.js +14 -0
- package/_esm/core/errors/RelayerResponseInputProofRejectedError.js.map +1 -0
- package/_esm/core/errors/RelayerResponseInvalidBodyError.js +35 -0
- package/_esm/core/errors/RelayerResponseInvalidBodyError.js.map +1 -0
- package/_esm/core/errors/RelayerResponseStatusError.js +16 -0
- package/_esm/core/errors/RelayerResponseStatusError.js.map +1 -0
- package/_esm/core/errors/RelayerStateError.js +32 -0
- package/_esm/core/errors/RelayerStateError.js.map +1 -0
- package/_esm/core/errors/RelayerTimeoutError.js +15 -0
- package/_esm/core/errors/RelayerTimeoutError.js.map +1 -0
- package/_esm/core/errors/SignersError.js +29 -0
- package/_esm/core/errors/SignersError.js.map +1 -0
- package/_esm/core/errors/TfheError.js +10 -0
- package/_esm/core/errors/TfheError.js.map +1 -0
- package/_esm/core/errors/ZkProofError.js +11 -0
- package/_esm/core/errors/ZkProofError.js.map +1 -0
- package/_esm/core/handle/ClearValue.js +272 -0
- package/_esm/core/handle/ClearValue.js.map +1 -0
- package/_esm/core/handle/EncryptedValue.js +26 -0
- package/_esm/core/handle/EncryptedValue.js.map +1 -0
- package/_esm/core/handle/FheType.js +430 -0
- package/_esm/core/handle/FheType.js.map +1 -0
- package/_esm/core/handle/FhevmHandle.js +545 -0
- package/_esm/core/handle/FhevmHandle.js.map +1 -0
- package/_esm/core/host-contracts/CoprocessorSignersContext-p.js +125 -0
- package/_esm/core/host-contracts/CoprocessorSignersContext-p.js.map +1 -0
- package/_esm/core/host-contracts/FhevmExecutorContractData-p.js +102 -0
- package/_esm/core/host-contracts/FhevmExecutorContractData-p.js.map +1 -0
- package/_esm/core/host-contracts/HostContractVersion-p.js +113 -0
- package/_esm/core/host-contracts/HostContractVersion-p.js.map +1 -0
- package/_esm/core/host-contracts/InputVerifierContractData-p.js +102 -0
- package/_esm/core/host-contracts/InputVerifierContractData-p.js.map +1 -0
- package/_esm/core/host-contracts/KmsSignersContext-p.js +177 -0
- package/_esm/core/host-contracts/KmsSignersContext-p.js.map +1 -0
- package/_esm/core/host-contracts/KmsVerifierContractData-p.js +84 -0
- package/_esm/core/host-contracts/KmsVerifierContractData-p.js.map +1 -0
- package/_esm/core/host-contracts/abi-fragments/fragments.js +393 -0
- package/_esm/core/host-contracts/abi-fragments/fragments.js.map +1 -0
- package/_esm/core/host-contracts/canDecryptValuesFromPairs.js +45 -0
- package/_esm/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -0
- package/_esm/core/host-contracts/checkAllowedForDecryption.js +15 -0
- package/_esm/core/host-contracts/checkAllowedForDecryption.js.map +1 -0
- package/_esm/core/host-contracts/checkPersistAllowed.js +83 -0
- package/_esm/core/host-contracts/checkPersistAllowed.js.map +1 -0
- package/_esm/core/host-contracts/decryptionResultTypehash-p.js +29 -0
- package/_esm/core/host-contracts/decryptionResultTypehash-p.js.map +1 -0
- package/_esm/core/host-contracts/eip712Domain-p.js +46 -0
- package/_esm/core/host-contracts/eip712Domain-p.js.map +1 -0
- package/_esm/core/host-contracts/eip712InputVerificationTypehash-p.js +29 -0
- package/_esm/core/host-contracts/eip712InputVerificationTypehash-p.js.map +1 -0
- package/_esm/core/host-contracts/getAclAddress-p.js +29 -0
- package/_esm/core/host-contracts/getAclAddress-p.js.map +1 -0
- package/_esm/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js +92 -0
- package/_esm/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js.map +1 -0
- package/_esm/core/host-contracts/getCoprocessorSigners-p.js +29 -0
- package/_esm/core/host-contracts/getCoprocessorSigners-p.js.map +1 -0
- package/_esm/core/host-contracts/getCurrentKmsContextId-p.js +50 -0
- package/_esm/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -0
- package/_esm/core/host-contracts/getFhevmExecutorAddress-p.js +29 -0
- package/_esm/core/host-contracts/getFhevmExecutorAddress-p.js.map +1 -0
- package/_esm/core/host-contracts/getHandleVersion-p.js +24 -0
- package/_esm/core/host-contracts/getHandleVersion-p.js.map +1 -0
- package/_esm/core/host-contracts/getHcuLimitAddress-p.js +29 -0
- package/_esm/core/host-contracts/getHcuLimitAddress-p.js.map +1 -0
- package/_esm/core/host-contracts/getInputVerifierAddress-p.js +29 -0
- package/_esm/core/host-contracts/getInputVerifierAddress-p.js.map +1 -0
- package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js +108 -0
- package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -0
- package/_esm/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js +73 -0
- package/_esm/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js.map +1 -0
- package/_esm/core/host-contracts/getSignersForKmsContext-p.js +64 -0
- package/_esm/core/host-contracts/getSignersForKmsContext-p.js.map +1 -0
- package/_esm/core/host-contracts/isAllowedForDecryption.js +29 -0
- package/_esm/core/host-contracts/isAllowedForDecryption.js.map +1 -0
- package/_esm/core/host-contracts/isUserDecryptable.js +56 -0
- package/_esm/core/host-contracts/isUserDecryptable.js.map +1 -0
- package/_esm/core/host-contracts/persistAllowed.js +30 -0
- package/_esm/core/host-contracts/persistAllowed.js.map +1 -0
- package/_esm/core/host-contracts/readCoprocessorSignersContext-p.js +14 -0
- package/_esm/core/host-contracts/readCoprocessorSignersContext-p.js.map +1 -0
- package/_esm/core/host-contracts/readKmsSignersContext-p.js +116 -0
- package/_esm/core/host-contracts/readKmsSignersContext-p.js.map +1 -0
- package/_esm/core/key/FheEncryptionKeyCache-p.js +278 -0
- package/_esm/core/key/FheEncryptionKeyCache-p.js.map +1 -0
- package/_esm/core/key/FheEncryptionKeyWasm-p.js +73 -0
- package/_esm/core/key/FheEncryptionKeyWasm-p.js.map +1 -0
- package/_esm/core/key/deserializeFheEncryptionKey.js +16 -0
- package/_esm/core/key/deserializeFheEncryptionKey.js.map +1 -0
- package/_esm/core/key/fetchFheEncryptionKey.js +29 -0
- package/_esm/core/key/fetchFheEncryptionKey.js.map +1 -0
- package/_esm/core/key/fetchFheEncryptionKeyBytes.js +46 -0
- package/_esm/core/key/fetchFheEncryptionKeyBytes.js.map +1 -0
- package/_esm/core/key/fetchFheEncryptionKeyBytesWithSource.js +57 -0
- package/_esm/core/key/fetchFheEncryptionKeyBytesWithSource.js.map +1 -0
- package/_esm/core/key/serializeFheEncryptionKey.js +21 -0
- package/_esm/core/key/serializeFheEncryptionKey.js.map +1 -0
- package/_esm/core/kms/KmsSigncryptedShares-p.js +141 -0
- package/_esm/core/kms/KmsSigncryptedShares-p.js.map +1 -0
- package/_esm/core/kms/PublicDecryptionProof-p.js +122 -0
- package/_esm/core/kms/PublicDecryptionProof-p.js.map +1 -0
- package/_esm/core/kms/PublicDecryptionProof.js +8 -0
- package/_esm/core/kms/PublicDecryptionProof.js.map +1 -0
- package/_esm/core/kms/SignedDecryptionPermit-p.js +286 -0
- package/_esm/core/kms/SignedDecryptionPermit-p.js.map +1 -0
- package/_esm/core/kms/TransportKeypair-p.js +211 -0
- package/_esm/core/kms/TransportKeypair-p.js.map +1 -0
- package/_esm/core/kms/createKmsDelegatedUserDecryptEip712.js +73 -0
- package/_esm/core/kms/createKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_esm/core/kms/createKmsEip712Domain.js +40 -0
- package/_esm/core/kms/createKmsEip712Domain.js.map +1 -0
- package/_esm/core/kms/createKmsPublicDecryptEip712.js +39 -0
- package/_esm/core/kms/createKmsPublicDecryptEip712.js.map +1 -0
- package/_esm/core/kms/createKmsUserDecryptEip712.js +100 -0
- package/_esm/core/kms/createKmsUserDecryptEip712.js.map +1 -0
- package/_esm/core/kms/decryptKmsSignedcryptedShares-p.js +14 -0
- package/_esm/core/kms/decryptKmsSignedcryptedShares-p.js.map +1 -0
- package/_esm/core/kms/decryptValuesFromPairs.js +14 -0
- package/_esm/core/kms/decryptValuesFromPairs.js.map +1 -0
- package/_esm/core/kms/fetchKmsSignedcryptedShares-p.js +124 -0
- package/_esm/core/kms/fetchKmsSignedcryptedShares-p.js.map +1 -0
- package/_esm/core/kms/index.js +2 -0
- package/_esm/core/kms/index.js.map +1 -0
- package/_esm/core/kms/kmsDelegatedUserDecryptEip712Types.js +28 -0
- package/_esm/core/kms/kmsDelegatedUserDecryptEip712Types.js.map +1 -0
- package/_esm/core/kms/kmsExtraData.js +35 -0
- package/_esm/core/kms/kmsExtraData.js.map +1 -0
- package/_esm/core/kms/kmsPublicDecryptEip712Types.js +25 -0
- package/_esm/core/kms/kmsPublicDecryptEip712Types.js.map +1 -0
- package/_esm/core/kms/kmsUserDecryptEip712Types.js +27 -0
- package/_esm/core/kms/kmsUserDecryptEip712Types.js.map +1 -0
- package/_esm/core/kms/publicDecrypt.js +65 -0
- package/_esm/core/kms/publicDecrypt.js.map +1 -0
- package/_esm/core/kms/utils.js +38 -0
- package/_esm/core/kms/utils.js.map +1 -0
- package/_esm/core/kms/verifyKmsPublicDecryptEip712-p.js +46 -0
- package/_esm/core/kms/verifyKmsPublicDecryptEip712-p.js.map +1 -0
- package/_esm/core/modules/decrypt/mock.js +82 -0
- package/_esm/core/modules/decrypt/mock.js.map +1 -0
- package/_esm/core/modules/decrypt/module/api-p.js +228 -0
- package/_esm/core/modules/decrypt/module/api-p.js.map +1 -0
- package/_esm/core/modules/decrypt/module/index.js +44 -0
- package/_esm/core/modules/decrypt/module/index.js.map +1 -0
- package/_esm/core/modules/decrypt/module/init-p.js +115 -0
- package/_esm/core/modules/decrypt/module/init-p.js.map +1 -0
- package/_esm/core/modules/decrypt/types.js +2 -0
- package/_esm/core/modules/decrypt/types.js.map +1 -0
- package/_esm/core/modules/encrypt/mock.js +63 -0
- package/_esm/core/modules/encrypt/mock.js.map +1 -0
- package/_esm/core/modules/encrypt/module/api-p.js +288 -0
- package/_esm/core/modules/encrypt/module/api-p.js.map +1 -0
- package/_esm/core/modules/encrypt/module/index.js +21 -0
- package/_esm/core/modules/encrypt/module/index.js.map +1 -0
- package/_esm/core/modules/encrypt/module/init-p.js +179 -0
- package/_esm/core/modules/encrypt/module/init-p.js.map +1 -0
- package/_esm/core/modules/encrypt/types.js +2 -0
- package/_esm/core/modules/encrypt/types.js.map +1 -0
- package/_esm/core/modules/ethereum/createTrustedClient.js +6 -0
- package/_esm/core/modules/ethereum/createTrustedClient.js.map +1 -0
- package/_esm/core/modules/ethereum/types.js +2 -0
- package/_esm/core/modules/ethereum/types.js.map +1 -0
- package/_esm/core/modules/relayer/mock.js +28 -0
- package/_esm/core/modules/relayer/mock.js.map +1 -0
- package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js +1576 -0
- package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchCoprocessorSignatures.js +30 -0
- package/_esm/core/modules/relayer/module/fetchCoprocessorSignatures.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchDelegatedUserDecrypt.js +48 -0
- package/_esm/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchFheEncryptionKeyBytes.js +21 -0
- package/_esm/core/modules/relayer/module/fetchFheEncryptionKeyBytes.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchFheEncryptionKeySource.js +137 -0
- package/_esm/core/modules/relayer/module/fetchFheEncryptionKeySource.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js +28 -0
- package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchUserDecrypt.js +49 -0
- package/_esm/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/RelayerInputProofSucceeded.js +74 -0
- package/_esm/core/modules/relayer/module/guards/RelayerInputProofSucceeded.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/RelayerPublicDecryptSucceeded.js +42 -0
- package/_esm/core/modules/relayer/module/guards/RelayerPublicDecryptSucceeded.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/RelayerResponseFailed.js +162 -0
- package/_esm/core/modules/relayer/module/guards/RelayerResponseFailed.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/RelayerResponseQueued.js +38 -0
- package/_esm/core/modules/relayer/module/guards/RelayerResponseQueued.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js +52 -0
- package/_esm/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js +45 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError400WithDetails.js +65 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError400WithDetails.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError404.js +18 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError404.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError429.js +18 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError429.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError500.js +18 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError500.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js +23 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js.map +1 -0
- package/_esm/core/modules/relayer/module/index.js +22 -0
- package/_esm/core/modules/relayer/module/index.js.map +1 -0
- package/_esm/core/modules/relayer/module/relayerUrl.js +33 -0
- package/_esm/core/modules/relayer/module/relayerUrl.js.map +1 -0
- package/_esm/core/modules/relayer/module/utils.js +19 -0
- package/_esm/core/modules/relayer/module/utils.js.map +1 -0
- package/_esm/core/modules/relayer/types.js +2 -0
- package/_esm/core/modules/relayer/types.js.map +1 -0
- package/_esm/core/runtime/CoreFhevm-p.js +248 -0
- package/_esm/core/runtime/CoreFhevm-p.js.map +1 -0
- package/_esm/core/runtime/CoreFhevmRuntime-p.js +190 -0
- package/_esm/core/runtime/CoreFhevmRuntime-p.js.map +1 -0
- package/_esm/core/runtime/FhevmRuntime.js +2 -0
- package/_esm/core/runtime/FhevmRuntime.js.map +1 -0
- package/_esm/core/runtime/initFhevmDecryptRuntime-p.js +8 -0
- package/_esm/core/runtime/initFhevmDecryptRuntime-p.js.map +1 -0
- package/_esm/core/runtime/initFhevmEncryptRuntime-p.js +8 -0
- package/_esm/core/runtime/initFhevmEncryptRuntime-p.js.map +1 -0
- package/_esm/core/runtime/initFhevmRuntime-p.js +9 -0
- package/_esm/core/runtime/initFhevmRuntime-p.js.map +1 -0
- package/_esm/core/types/auth.js +2 -0
- package/_esm/core/types/auth.js.map +1 -0
- package/_esm/core/types/configs.js +2 -0
- package/_esm/core/types/configs.js.map +1 -0
- package/_esm/core/types/coprocessor.js +2 -0
- package/_esm/core/types/coprocessor.js.map +1 -0
- package/_esm/core/types/coprocessorSignersContext.js +2 -0
- package/_esm/core/types/coprocessorSignersContext.js.map +1 -0
- package/_esm/core/types/coreFhevmClient.js +2 -0
- package/_esm/core/types/coreFhevmClient.js.map +1 -0
- package/_esm/core/types/coreFhevmRuntime.js +2 -0
- package/_esm/core/types/coreFhevmRuntime.js.map +1 -0
- package/_esm/core/types/encryptedTypes-p.js +2 -0
- package/_esm/core/types/encryptedTypes-p.js.map +1 -0
- package/_esm/core/types/encryptedTypes.js +2 -0
- package/_esm/core/types/encryptedTypes.js.map +1 -0
- package/_esm/core/types/fheEncryptionKey.js +2 -0
- package/_esm/core/types/fheEncryptionKey.js.map +1 -0
- package/_esm/core/types/fheType.js +2 -0
- package/_esm/core/types/fheType.js.map +1 -0
- package/_esm/core/types/fhevmChain.js +2 -0
- package/_esm/core/types/fhevmChain.js.map +1 -0
- package/_esm/core/types/fhevmClient.js +2 -0
- package/_esm/core/types/fhevmClient.js.map +1 -0
- package/_esm/core/types/fhevmDecryptionKey.js +2 -0
- package/_esm/core/types/fhevmDecryptionKey.js.map +1 -0
- package/_esm/core/types/fhevmUser.js +2 -0
- package/_esm/core/types/fhevmUser.js.map +1 -0
- package/_esm/core/types/hostContract.js +2 -0
- package/_esm/core/types/hostContract.js.map +1 -0
- package/_esm/core/types/index.js +2 -0
- package/_esm/core/types/index.js.map +1 -0
- package/_esm/core/types/inputProof.js +2 -0
- package/_esm/core/types/inputProof.js.map +1 -0
- package/_esm/core/types/kms-p.js +2 -0
- package/_esm/core/types/kms-p.js.map +1 -0
- package/_esm/core/types/kms.js +2 -0
- package/_esm/core/types/kms.js.map +1 -0
- package/_esm/core/types/kmsSignersContext.js +2 -0
- package/_esm/core/types/kmsSignersContext.js.map +1 -0
- package/_esm/core/types/logger.js +2 -0
- package/_esm/core/types/logger.js.map +1 -0
- package/_esm/core/types/other-p.js +2 -0
- package/_esm/core/types/other-p.js.map +1 -0
- package/_esm/core/types/primitives.js +3 -0
- package/_esm/core/types/primitives.js.map +1 -0
- package/_esm/core/types/publicDecryptionProof-p.js +2 -0
- package/_esm/core/types/publicDecryptionProof-p.js.map +1 -0
- package/_esm/core/types/record-p.js +2 -0
- package/_esm/core/types/record-p.js.map +1 -0
- package/_esm/core/types/relayer-p.js +2 -0
- package/_esm/core/types/relayer-p.js.map +1 -0
- package/_esm/core/types/relayer.js +2 -0
- package/_esm/core/types/relayer.js.map +1 -0
- package/_esm/core/types/signedDecryptionPermit.js +2 -0
- package/_esm/core/types/signedDecryptionPermit.js.map +1 -0
- package/_esm/core/types/tkms-p.js +2 -0
- package/_esm/core/types/tkms-p.js.map +1 -0
- package/_esm/core/types/utils.js +2 -0
- package/_esm/core/types/utils.js.map +1 -0
- package/_esm/core/types/zkProof-p.js +2 -0
- package/_esm/core/types/zkProof-p.js.map +1 -0
- package/_esm/core/types/zkProofBuilder.js +2 -0
- package/_esm/core/types/zkProofBuilder.js.map +1 -0
- 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/verifyKmsDelegatedUserDecryptEip712.js +31 -0
- package/_esm/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.js.map +1 -0
- package/_esm/core/utils-p/decrypt/verifyKmsUserDecryptEip712.js +31 -0
- package/_esm/core/utils-p/decrypt/verifyKmsUserDecryptEip712.js.map +1 -0
- package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js +16 -0
- package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -0
- package/_esm/core/utils-p/runtime/recoverSigners.js +21 -0
- package/_esm/core/utils-p/runtime/recoverSigners.js.map +1 -0
- package/_esm/ethers/clients/createFhevmBaseClient.js +14 -0
- package/_esm/ethers/clients/createFhevmBaseClient.js.map +1 -0
- package/_esm/ethers/clients/createFhevmClient.js +9 -0
- package/_esm/ethers/clients/createFhevmClient.js.map +1 -0
- package/_esm/ethers/clients/createFhevmDecryptClient.js +8 -0
- package/_esm/ethers/clients/createFhevmDecryptClient.js.map +1 -0
- package/_esm/ethers/clients/createFhevmEncryptClient.js +9 -0
- package/_esm/ethers/clients/createFhevmEncryptClient.js.map +1 -0
- package/_esm/ethers/decorators/decrypt.js +7 -0
- package/_esm/ethers/decorators/decrypt.js.map +1 -0
- package/_esm/ethers/decorators/encrypt.js +7 -0
- package/_esm/ethers/decorators/encrypt.js.map +1 -0
- package/_esm/ethers/index.js +9 -0
- package/_esm/ethers/index.js.map +1 -0
- package/_esm/ethers/internal/ethereum.js +112 -0
- package/_esm/ethers/internal/ethereum.js.map +1 -0
- package/_esm/ethers/internal/ethers-p.js +79 -0
- package/_esm/ethers/internal/ethers-p.js.map +1 -0
- package/_esm/ethers/internal/utils.js +27 -0
- package/_esm/ethers/internal/utils.js.map +1 -0
- package/_esm/ethers/runtime/initFhevmDecryptRuntime.js +7 -0
- package/_esm/ethers/runtime/initFhevmDecryptRuntime.js.map +1 -0
- package/_esm/ethers/runtime/initFhevmEncryptRuntime.js +7 -0
- package/_esm/ethers/runtime/initFhevmEncryptRuntime.js.map +1 -0
- package/_esm/ethers/runtime/initFhevmRuntime.js +7 -0
- package/_esm/ethers/runtime/initFhevmRuntime.js.map +1 -0
- package/_esm/package.json +1 -0
- package/_esm/viem/clients/createFhevmBaseClient.js +14 -0
- package/_esm/viem/clients/createFhevmBaseClient.js.map +1 -0
- package/_esm/viem/clients/createFhevmClient.js +9 -0
- package/_esm/viem/clients/createFhevmClient.js.map +1 -0
- package/_esm/viem/clients/createFhevmDecryptClient.js +8 -0
- package/_esm/viem/clients/createFhevmDecryptClient.js.map +1 -0
- package/_esm/viem/clients/createFhevmEncryptClient.js +9 -0
- package/_esm/viem/clients/createFhevmEncryptClient.js.map +1 -0
- package/_esm/viem/decorators/decrypt.js +7 -0
- package/_esm/viem/decorators/decrypt.js.map +1 -0
- package/_esm/viem/decorators/encrypt.js +7 -0
- package/_esm/viem/decorators/encrypt.js.map +1 -0
- package/_esm/viem/index.js +9 -0
- package/_esm/viem/index.js.map +1 -0
- package/_esm/viem/internal/ethereum.js +99 -0
- package/_esm/viem/internal/ethereum.js.map +1 -0
- package/_esm/viem/internal/viem-p.js +79 -0
- package/_esm/viem/internal/viem-p.js.map +1 -0
- package/_esm/viem/runtime/initFhevmDecryptRuntime.js +7 -0
- package/_esm/viem/runtime/initFhevmDecryptRuntime.js.map +1 -0
- package/_esm/viem/runtime/initFhevmEncryptRuntime.js +7 -0
- package/_esm/viem/runtime/initFhevmEncryptRuntime.js.map +1 -0
- package/_esm/viem/runtime/initFhevmRuntime.js +7 -0
- package/_esm/viem/runtime/initFhevmRuntime.js.map +1 -0
- package/_esm/wasm/tfhe/compile-worker.js +8 -0
- package/_esm/wasm/tfhe/startWorkers.v1.5.3.js +426 -0
- package/_esm/wasm/tfhe/tfhe-worker.v1.5.3.inline.js +7 -0
- package/_esm/wasm/tfhe/tfhe-worker.v1.5.3.mjs +745 -0
- package/_esm/wasm/tfhe/tfhe.v1.5.3.d.ts +10793 -0
- package/_esm/wasm/tfhe/tfhe.v1.5.3.js +28645 -0
- package/_esm/wasm/tfhe/tfhe_bg.v1.5.3.wasm +0 -0
- package/_esm/wasm/tfhe/tfhe_bg.v1.5.3.wasm.base64.d.ts +1 -0
- package/_esm/wasm/tfhe/tfhe_bg.v1.5.3.wasm.base64.js +1 -0
- package/_esm/wasm/tkms/kms_lib.v0.13.10.d.ts +586 -0
- package/_esm/wasm/tkms/kms_lib.v0.13.10.js +2117 -0
- package/_esm/wasm/tkms/kms_lib_bg.v0.13.10.wasm +0 -0
- package/_esm/wasm/tkms/kms_lib_bg.v0.13.10.wasm.base64.d.ts +1 -0
- package/_esm/wasm/tkms/kms_lib_bg.v0.13.10.wasm.base64.js +3 -0
- package/_esm/wasm/wasmBaseUrl.d.ts +7 -0
- package/_esm/wasm/wasmBaseUrl.js +14 -0
- package/_types/core/_version.d.ts +3 -0
- package/_types/core/_version.d.ts.map +1 -0
- package/_types/core/actions/base/canReadPublicValue.d.ts +9 -0
- package/_types/core/actions/base/canReadPublicValue.d.ts.map +1 -0
- package/_types/core/actions/base/canReadPublicValues.d.ts +9 -0
- package/_types/core/actions/base/canReadPublicValues.d.ts.map +1 -0
- package/_types/core/actions/base/createVerifiedInputProofFromRawBytes.d.ts +14 -0
- package/_types/core/actions/base/createVerifiedInputProofFromRawBytes.d.ts.map +1 -0
- package/_types/core/actions/base/fetchKmsSignedcryptedShares.d.ts +41 -0
- package/_types/core/actions/base/fetchKmsSignedcryptedShares.d.ts.map +1 -0
- package/_types/core/actions/base/fetchVerifiedInputProof.d.ts +14 -0
- package/_types/core/actions/base/fetchVerifiedInputProof.d.ts.map +1 -0
- package/_types/core/actions/base/index.d.ts +15 -0
- package/_types/core/actions/base/index.d.ts.map +1 -0
- package/_types/core/actions/base/readCoprocessorSignersContext.d.ts +6 -0
- package/_types/core/actions/base/readCoprocessorSignersContext.d.ts.map +1 -0
- package/_types/core/actions/base/readKmsSignersContext.d.ts +6 -0
- package/_types/core/actions/base/readKmsSignersContext.d.ts.map +1 -0
- package/_types/core/actions/base/readPublicValue.d.ts +12 -0
- package/_types/core/actions/base/readPublicValue.d.ts.map +1 -0
- package/_types/core/actions/base/readPublicValues.d.ts +12 -0
- package/_types/core/actions/base/readPublicValues.d.ts.map +1 -0
- package/_types/core/actions/base/readPublicValuesWithSignatures.d.ts +21 -0
- package/_types/core/actions/base/readPublicValuesWithSignatures.d.ts.map +1 -0
- package/_types/core/actions/base/signDecryptionPermit.d.ts +9 -0
- package/_types/core/actions/base/signDecryptionPermit.d.ts.map +1 -0
- package/_types/core/actions/base/verifyHandlesCoprocessorSignatures.d.ts +14 -0
- package/_types/core/actions/base/verifyHandlesCoprocessorSignatures.d.ts.map +1 -0
- package/_types/core/actions/base/verifyInputProof.d.ts +14 -0
- package/_types/core/actions/base/verifyInputProof.d.ts.map +1 -0
- package/_types/core/actions/base/verifyZkProofCoprocessorSignatures.d.ts +11 -0
- package/_types/core/actions/base/verifyZkProofCoprocessorSignatures.d.ts.map +1 -0
- package/_types/core/actions/chain/createCoprocessorEip712Domain.d.ts +7 -0
- package/_types/core/actions/chain/createCoprocessorEip712Domain.d.ts.map +1 -0
- package/_types/core/actions/chain/createKmsDelegatedUserDecryptEip712.d.ts +15 -0
- package/_types/core/actions/chain/createKmsDelegatedUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/actions/chain/createKmsEip712Domain.d.ts +7 -0
- package/_types/core/actions/chain/createKmsEip712Domain.d.ts.map +1 -0
- package/_types/core/actions/chain/createKmsUserDecryptEip712.d.ts +14 -0
- package/_types/core/actions/chain/createKmsUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/actions/chain/fetchFheEncryptionKeyBytes.d.ts +12 -0
- package/_types/core/actions/chain/fetchFheEncryptionKeyBytes.d.ts.map +1 -0
- package/_types/core/actions/chain/index.d.ts +13 -0
- package/_types/core/actions/chain/index.d.ts.map +1 -0
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts +21 -0
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts.map +1 -0
- package/_types/core/actions/chain/parseTransportKeypair.d.ts +11 -0
- package/_types/core/actions/chain/parseTransportKeypair.d.ts.map +1 -0
- package/_types/core/actions/chain/serializeSignedDecryptionPermit.d.ts +21 -0
- package/_types/core/actions/chain/serializeSignedDecryptionPermit.d.ts.map +1 -0
- package/_types/core/actions/chain/serializeTransportKeypair.d.ts +14 -0
- package/_types/core/actions/chain/serializeTransportKeypair.d.ts.map +1 -0
- package/_types/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.d.ts +7 -0
- package/_types/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/actions/chain/verifyKmsUserDecryptEip712.d.ts +7 -0
- package/_types/core/actions/chain/verifyKmsUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/actions/decrypt/canDecryptValue.d.ts +66 -0
- package/_types/core/actions/decrypt/canDecryptValue.d.ts.map +1 -0
- package/_types/core/actions/decrypt/canDecryptValues.d.ts +27 -0
- package/_types/core/actions/decrypt/canDecryptValues.d.ts.map +1 -0
- package/_types/core/actions/decrypt/canDecryptValuesFromPairs.d.ts +29 -0
- package/_types/core/actions/decrypt/canDecryptValuesFromPairs.d.ts.map +1 -0
- package/_types/core/actions/decrypt/decryptKmsSignedcryptedShares.d.ts +13 -0
- package/_types/core/actions/decrypt/decryptKmsSignedcryptedShares.d.ts.map +1 -0
- package/_types/core/actions/decrypt/decryptValue.d.ts +26 -0
- package/_types/core/actions/decrypt/decryptValue.d.ts.map +1 -0
- package/_types/core/actions/decrypt/decryptValues.d.ts +26 -0
- package/_types/core/actions/decrypt/decryptValues.d.ts.map +1 -0
- package/_types/core/actions/decrypt/decryptValuesFromPairs.d.ts +28 -0
- package/_types/core/actions/decrypt/decryptValuesFromPairs.d.ts.map +1 -0
- package/_types/core/actions/decrypt/generateTransportKeypair.d.ts +7 -0
- package/_types/core/actions/decrypt/generateTransportKeypair.d.ts.map +1 -0
- package/_types/core/actions/decrypt/index.d.ts +11 -0
- package/_types/core/actions/decrypt/index.d.ts.map +1 -0
- package/_types/core/actions/encrypt/encryptValue.d.ts +18 -0
- package/_types/core/actions/encrypt/encryptValue.d.ts.map +1 -0
- package/_types/core/actions/encrypt/encryptValues.d.ts +18 -0
- package/_types/core/actions/encrypt/encryptValues.d.ts.map +1 -0
- package/_types/core/actions/encrypt/generateZkProof.d.ts +13 -0
- package/_types/core/actions/encrypt/generateZkProof.d.ts.map +1 -0
- package/_types/core/actions/encrypt/index.d.ts +6 -0
- package/_types/core/actions/encrypt/index.d.ts.map +1 -0
- package/_types/core/actions/host/getUserDecryptionDelegationExpirationDate.d.ts +8 -0
- package/_types/core/actions/host/getUserDecryptionDelegationExpirationDate.d.ts.map +1 -0
- package/_types/core/actions/host/index.d.ts +8 -0
- package/_types/core/actions/host/index.d.ts.map +1 -0
- package/_types/core/actions/host/isAllowedForDecryption.d.ts +11 -0
- package/_types/core/actions/host/isAllowedForDecryption.d.ts.map +1 -0
- package/_types/core/actions/host/persistAllowed.d.ts +12 -0
- package/_types/core/actions/host/persistAllowed.d.ts.map +1 -0
- package/_types/core/actions/host/readFhevmExecutorContractData.d.ts +9 -0
- package/_types/core/actions/host/readFhevmExecutorContractData.d.ts.map +1 -0
- package/_types/core/actions/host/readInputVerifierContractData.d.ts +9 -0
- package/_types/core/actions/host/readInputVerifierContractData.d.ts.map +1 -0
- package/_types/core/actions/host/readKmsVerifierContractData.d.ts +9 -0
- package/_types/core/actions/host/readKmsVerifierContractData.d.ts.map +1 -0
- package/_types/core/actions/host/resolveChainId.d.ts +9 -0
- package/_types/core/actions/host/resolveChainId.d.ts.map +1 -0
- package/_types/core/actions/host/resolveFhevmConfig.d.ts +38 -0
- package/_types/core/actions/host/resolveFhevmConfig.d.ts.map +1 -0
- package/_types/core/base/address.d.ts +52 -0
- package/_types/core/base/address.d.ts.map +1 -0
- package/_types/core/base/auth.d.ts +10 -0
- package/_types/core/base/auth.d.ts.map +1 -0
- package/_types/core/base/boolean.d.ts +45 -0
- package/_types/core/base/boolean.d.ts.map +1 -0
- package/_types/core/base/bytes.d.ts +822 -0
- package/_types/core/base/bytes.d.ts.map +1 -0
- package/_types/core/base/cachedFetch.d.ts +75 -0
- package/_types/core/base/cachedFetch.d.ts.map +1 -0
- package/_types/core/base/errors/AddressError.d.ts +12 -0
- package/_types/core/base/errors/AddressError.d.ts.map +1 -0
- package/_types/core/base/errors/ChecksummedAddressError.d.ts +12 -0
- package/_types/core/base/errors/ChecksummedAddressError.d.ts.map +1 -0
- package/_types/core/base/errors/ErrorBase.d.ts +23 -0
- package/_types/core/base/errors/ErrorBase.d.ts.map +1 -0
- package/_types/core/base/errors/FetchError.d.ts +14 -0
- package/_types/core/base/errors/FetchError.d.ts.map +1 -0
- package/_types/core/base/errors/FheTypeError.d.ts +14 -0
- package/_types/core/base/errors/FheTypeError.d.ts.map +1 -0
- package/_types/core/base/errors/InternalError.d.ts +12 -0
- package/_types/core/base/errors/InternalError.d.ts.map +1 -0
- package/_types/core/base/errors/InvalidPropertyError.d.ts +116 -0
- package/_types/core/base/errors/InvalidPropertyError.d.ts.map +1 -0
- package/_types/core/base/errors/InvalidTypeError.d.ts +44 -0
- package/_types/core/base/errors/InvalidTypeError.d.ts.map +1 -0
- package/_types/core/base/errors/utils.d.ts +4 -0
- package/_types/core/base/errors/utils.d.ts.map +1 -0
- package/_types/core/base/fetch.d.ts +70 -0
- package/_types/core/base/fetch.d.ts.map +1 -0
- package/_types/core/base/index.d.ts +2 -0
- package/_types/core/base/index.d.ts.map +1 -0
- package/_types/core/base/isomorphicWorker.d.ts +50 -0
- package/_types/core/base/isomorphicWorker.d.ts.map +1 -0
- package/_types/core/base/object.d.ts +15 -0
- package/_types/core/base/object.d.ts.map +1 -0
- package/_types/core/base/promise.d.ts +22 -0
- package/_types/core/base/promise.d.ts.map +1 -0
- package/_types/core/base/record.d.ts +88 -0
- package/_types/core/base/record.d.ts.map +1 -0
- package/_types/core/base/string.d.ts +75 -0
- package/_types/core/base/string.d.ts.map +1 -0
- package/_types/core/base/timeout.d.ts +7 -0
- package/_types/core/base/timeout.d.ts.map +1 -0
- package/_types/core/base/trustedValue.d.ts +54 -0
- package/_types/core/base/trustedValue.d.ts.map +1 -0
- package/_types/core/base/typedValue.d.ts +104 -0
- package/_types/core/base/typedValue.d.ts.map +1 -0
- package/_types/core/base/uid.d.ts +2 -0
- package/_types/core/base/uid.d.ts.map +1 -0
- package/_types/core/base/uint.d.ts +128 -0
- package/_types/core/base/uint.d.ts.map +1 -0
- package/_types/core/base/wasm.d.ts +16 -0
- package/_types/core/base/wasm.d.ts.map +1 -0
- package/_types/core/chains/definitions/localTestnet.d.ts +29 -0
- package/_types/core/chains/definitions/localTestnet.d.ts.map +1 -0
- package/_types/core/chains/definitions/mainnet.d.ts +29 -0
- package/_types/core/chains/definitions/mainnet.d.ts.map +1 -0
- package/_types/core/chains/definitions/sepolia.d.ts +3 -0
- package/_types/core/chains/definitions/sepolia.d.ts.map +1 -0
- package/_types/core/chains/index.d.ts +5 -0
- package/_types/core/chains/index.d.ts.map +1 -0
- package/_types/core/chains/utils.d.ts +3 -0
- package/_types/core/chains/utils.d.ts.map +1 -0
- package/_types/core/clients/decorators/base.d.ts +117 -0
- package/_types/core/clients/decorators/base.d.ts.map +1 -0
- package/_types/core/clients/decorators/decrypt.d.ts +25 -0
- package/_types/core/clients/decorators/decrypt.d.ts.map +1 -0
- package/_types/core/clients/decorators/encrypt-p.d.ts +5 -0
- package/_types/core/clients/decorators/encrypt-p.d.ts.map +1 -0
- package/_types/core/clients/decorators/encrypt.d.ts +12 -0
- package/_types/core/clients/decorators/encrypt.d.ts.map +1 -0
- package/_types/core/coprocessor/InputProof-p.d.ts +55 -0
- package/_types/core/coprocessor/InputProof-p.d.ts.map +1 -0
- package/_types/core/coprocessor/ZkProof-p.d.ts +39 -0
- package/_types/core/coprocessor/ZkProof-p.d.ts.map +1 -0
- package/_types/core/coprocessor/ZkProofBuilder-p.d.ts +20 -0
- package/_types/core/coprocessor/ZkProofBuilder-p.d.ts.map +1 -0
- package/_types/core/coprocessor/assertIsCoprocessorEip712Domain.d.ts +4 -0
- package/_types/core/coprocessor/assertIsCoprocessorEip712Domain.d.ts.map +1 -0
- package/_types/core/coprocessor/coprocessorEip712Types.d.ts +4 -0
- package/_types/core/coprocessor/coprocessorEip712Types.d.ts.map +1 -0
- package/_types/core/coprocessor/createCoprocessorEip712.d.ts +13 -0
- package/_types/core/coprocessor/createCoprocessorEip712.d.ts.map +1 -0
- package/_types/core/coprocessor/createCoprocessorEip712Domain.d.ts +6 -0
- package/_types/core/coprocessor/createCoprocessorEip712Domain.d.ts.map +1 -0
- package/_types/core/coprocessor/encrypt.d.ts +26 -0
- package/_types/core/coprocessor/encrypt.d.ts.map +1 -0
- package/_types/core/coprocessor/fetchVerifiedInputProof.d.ts +23 -0
- package/_types/core/coprocessor/fetchVerifiedInputProof.d.ts.map +1 -0
- package/_types/core/coprocessor/verifyHandlesCoprocessorSignatures.d.ts +23 -0
- package/_types/core/coprocessor/verifyHandlesCoprocessorSignatures.d.ts.map +1 -0
- package/_types/core/coprocessor/verifyInputProof.d.ts +23 -0
- package/_types/core/coprocessor/verifyInputProof.d.ts.map +1 -0
- package/_types/core/errors/AclError.d.ts +28 -0
- package/_types/core/errors/AclError.d.ts.map +1 -0
- package/_types/core/errors/ContractErrorBase.d.ts +18 -0
- package/_types/core/errors/ContractErrorBase.d.ts.map +1 -0
- package/_types/core/errors/EncryptionError.d.ts +11 -0
- package/_types/core/errors/EncryptionError.d.ts.map +1 -0
- package/_types/core/errors/FhevmConfigError.d.ts +11 -0
- package/_types/core/errors/FhevmConfigError.d.ts.map +1 -0
- package/_types/core/errors/FhevmErrorBase.d.ts +21 -0
- package/_types/core/errors/FhevmErrorBase.d.ts.map +1 -0
- package/_types/core/errors/FhevmHandleError.d.ts +13 -0
- package/_types/core/errors/FhevmHandleError.d.ts.map +1 -0
- package/_types/core/errors/InputProofError.d.ts +20 -0
- package/_types/core/errors/InputProofError.d.ts.map +1 -0
- package/_types/core/errors/RelayerAbortError.d.ts +14 -0
- package/_types/core/errors/RelayerAbortError.d.ts.map +1 -0
- package/_types/core/errors/RelayerErrorBase.d.ts +23 -0
- package/_types/core/errors/RelayerErrorBase.d.ts.map +1 -0
- package/_types/core/errors/RelayerFetchError.d.ts +17 -0
- package/_types/core/errors/RelayerFetchError.d.ts.map +1 -0
- package/_types/core/errors/RelayerFetchErrorBase.d.ts +29 -0
- package/_types/core/errors/RelayerFetchErrorBase.d.ts.map +1 -0
- package/_types/core/errors/RelayerMaxRetryError.d.ts +14 -0
- package/_types/core/errors/RelayerMaxRetryError.d.ts.map +1 -0
- package/_types/core/errors/RelayerRequestErrorBase.d.ts +20 -0
- package/_types/core/errors/RelayerRequestErrorBase.d.ts.map +1 -0
- package/_types/core/errors/RelayerRequestInternalError.d.ts +20 -0
- package/_types/core/errors/RelayerRequestInternalError.d.ts.map +1 -0
- package/_types/core/errors/RelayerResponseApiError.d.ts +19 -0
- package/_types/core/errors/RelayerResponseApiError.d.ts.map +1 -0
- package/_types/core/errors/RelayerResponseErrorBase.d.ts +15 -0
- package/_types/core/errors/RelayerResponseErrorBase.d.ts.map +1 -0
- package/_types/core/errors/RelayerResponseInputProofRejectedError.d.ts +14 -0
- package/_types/core/errors/RelayerResponseInputProofRejectedError.d.ts.map +1 -0
- package/_types/core/errors/RelayerResponseInvalidBodyError.d.ts +20 -0
- package/_types/core/errors/RelayerResponseInvalidBodyError.d.ts.map +1 -0
- package/_types/core/errors/RelayerResponseStatusError.d.ts +17 -0
- package/_types/core/errors/RelayerResponseStatusError.d.ts.map +1 -0
- package/_types/core/errors/RelayerStateError.d.ts +20 -0
- package/_types/core/errors/RelayerStateError.d.ts.map +1 -0
- package/_types/core/errors/RelayerTimeoutError.d.ts +16 -0
- package/_types/core/errors/RelayerTimeoutError.d.ts.map +1 -0
- package/_types/core/errors/SignersError.d.ts +33 -0
- package/_types/core/errors/SignersError.d.ts.map +1 -0
- package/_types/core/errors/TfheError.d.ts +13 -0
- package/_types/core/errors/TfheError.d.ts.map +1 -0
- package/_types/core/errors/ZkProofError.d.ts +11 -0
- package/_types/core/errors/ZkProofError.d.ts.map +1 -0
- package/_types/core/handle/ClearValue.d.ts +88 -0
- package/_types/core/handle/ClearValue.d.ts.map +1 -0
- package/_types/core/handle/EncryptedValue.d.ts +6 -0
- package/_types/core/handle/EncryptedValue.d.ts.map +1 -0
- package/_types/core/handle/FheType.d.ts +164 -0
- package/_types/core/handle/FheType.d.ts.map +1 -0
- package/_types/core/handle/FhevmHandle.d.ts +118 -0
- package/_types/core/handle/FhevmHandle.d.ts.map +1 -0
- package/_types/core/host-contracts/CoprocessorSignersContext-p.d.ts +20 -0
- package/_types/core/host-contracts/CoprocessorSignersContext-p.d.ts.map +1 -0
- package/_types/core/host-contracts/FhevmExecutorContractData-p.d.ts +18 -0
- package/_types/core/host-contracts/FhevmExecutorContractData-p.d.ts.map +1 -0
- package/_types/core/host-contracts/HostContractVersion-p.d.ts +47 -0
- package/_types/core/host-contracts/HostContractVersion-p.d.ts.map +1 -0
- package/_types/core/host-contracts/InputVerifierContractData-p.d.ts +17 -0
- package/_types/core/host-contracts/InputVerifierContractData-p.d.ts.map +1 -0
- package/_types/core/host-contracts/KmsSignersContext-p.d.ts +39 -0
- package/_types/core/host-contracts/KmsSignersContext-p.d.ts.map +1 -0
- package/_types/core/host-contracts/KmsVerifierContractData-p.d.ts +17 -0
- package/_types/core/host-contracts/KmsVerifierContractData-p.d.ts.map +1 -0
- package/_types/core/host-contracts/abi-fragments/fragments.d.ts +78 -0
- package/_types/core/host-contracts/abi-fragments/fragments.d.ts.map +1 -0
- package/_types/core/host-contracts/canDecryptValuesFromPairs.d.ts +38 -0
- package/_types/core/host-contracts/canDecryptValuesFromPairs.d.ts.map +1 -0
- package/_types/core/host-contracts/checkAllowedForDecryption.d.ts +19 -0
- package/_types/core/host-contracts/checkAllowedForDecryption.d.ts.map +1 -0
- package/_types/core/host-contracts/checkPersistAllowed.d.ts +21 -0
- package/_types/core/host-contracts/checkPersistAllowed.d.ts.map +1 -0
- package/_types/core/host-contracts/decryptionResultTypehash-p.d.ts +18 -0
- package/_types/core/host-contracts/decryptionResultTypehash-p.d.ts.map +1 -0
- package/_types/core/host-contracts/eip712Domain-p.d.ts +23 -0
- package/_types/core/host-contracts/eip712Domain-p.d.ts.map +1 -0
- package/_types/core/host-contracts/eip712InputVerificationTypehash-p.d.ts +18 -0
- package/_types/core/host-contracts/eip712InputVerificationTypehash-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getAclAddress-p.d.ts +18 -0
- package/_types/core/host-contracts/getAclAddress-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.d.ts +28 -0
- package/_types/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getCoprocessorSigners-p.d.ts +18 -0
- package/_types/core/host-contracts/getCoprocessorSigners-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getCurrentKmsContextId-p.d.ts +25 -0
- package/_types/core/host-contracts/getCurrentKmsContextId-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getFhevmExecutorAddress-p.d.ts +18 -0
- package/_types/core/host-contracts/getFhevmExecutorAddress-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getHandleVersion-p.d.ts +18 -0
- package/_types/core/host-contracts/getHandleVersion-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getHcuLimitAddress-p.d.ts +18 -0
- package/_types/core/host-contracts/getHcuLimitAddress-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getInputVerifierAddress-p.d.ts +18 -0
- package/_types/core/host-contracts/getInputVerifierAddress-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getKmsContextSignersAndThreshold-p.d.ts +38 -0
- package/_types/core/host-contracts/getKmsContextSignersAndThreshold-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.d.ts +34 -0
- package/_types/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.d.ts.map +1 -0
- package/_types/core/host-contracts/getSignersForKmsContext-p.d.ts +27 -0
- package/_types/core/host-contracts/getSignersForKmsContext-p.d.ts.map +1 -0
- package/_types/core/host-contracts/isAllowedForDecryption.d.ts +18 -0
- package/_types/core/host-contracts/isAllowedForDecryption.d.ts.map +1 -0
- package/_types/core/host-contracts/isUserDecryptable.d.ts +29 -0
- package/_types/core/host-contracts/isUserDecryptable.d.ts.map +1 -0
- package/_types/core/host-contracts/persistAllowed.d.ts +18 -0
- package/_types/core/host-contracts/persistAllowed.d.ts.map +1 -0
- package/_types/core/host-contracts/readCoprocessorSignersContext-p.d.ts +17 -0
- package/_types/core/host-contracts/readCoprocessorSignersContext-p.d.ts.map +1 -0
- package/_types/core/host-contracts/readKmsSignersContext-p.d.ts +62 -0
- package/_types/core/host-contracts/readKmsSignersContext-p.d.ts.map +1 -0
- package/_types/core/key/FheEncryptionKeyCache-p.d.ts +93 -0
- package/_types/core/key/FheEncryptionKeyCache-p.d.ts.map +1 -0
- package/_types/core/key/FheEncryptionKeyWasm-p.d.ts +13 -0
- package/_types/core/key/FheEncryptionKeyWasm-p.d.ts.map +1 -0
- package/_types/core/key/deserializeFheEncryptionKey.d.ts +6 -0
- package/_types/core/key/deserializeFheEncryptionKey.d.ts.map +1 -0
- package/_types/core/key/fetchFheEncryptionKey.d.ts +12 -0
- package/_types/core/key/fetchFheEncryptionKey.d.ts.map +1 -0
- package/_types/core/key/fetchFheEncryptionKeyBytes.d.ts +12 -0
- package/_types/core/key/fetchFheEncryptionKeyBytes.d.ts.map +1 -0
- package/_types/core/key/fetchFheEncryptionKeyBytesWithSource.d.ts +4 -0
- package/_types/core/key/fetchFheEncryptionKeyBytesWithSource.d.ts.map +1 -0
- package/_types/core/key/serializeFheEncryptionKey.d.ts +6 -0
- package/_types/core/key/serializeFheEncryptionKey.d.ts.map +1 -0
- package/_types/core/kms/KmsSigncryptedShares-p.d.ts +39 -0
- package/_types/core/kms/KmsSigncryptedShares-p.d.ts.map +1 -0
- package/_types/core/kms/PublicDecryptionProof-p.d.ts +42 -0
- package/_types/core/kms/PublicDecryptionProof-p.d.ts.map +1 -0
- package/_types/core/kms/PublicDecryptionProof.d.ts +3 -0
- package/_types/core/kms/PublicDecryptionProof.d.ts.map +1 -0
- package/_types/core/kms/SignedDecryptionPermit-p.d.ts +78 -0
- package/_types/core/kms/SignedDecryptionPermit-p.d.ts.map +1 -0
- package/_types/core/kms/TransportKeypair-p.d.ts +54 -0
- package/_types/core/kms/TransportKeypair-p.d.ts.map +1 -0
- package/_types/core/kms/createKmsDelegatedUserDecryptEip712.d.ts +15 -0
- package/_types/core/kms/createKmsDelegatedUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/kms/createKmsEip712Domain.d.ts +17 -0
- package/_types/core/kms/createKmsEip712Domain.d.ts.map +1 -0
- package/_types/core/kms/createKmsPublicDecryptEip712.d.ts +11 -0
- package/_types/core/kms/createKmsPublicDecryptEip712.d.ts.map +1 -0
- package/_types/core/kms/createKmsUserDecryptEip712.d.ts +26 -0
- package/_types/core/kms/createKmsUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/kms/decryptKmsSignedcryptedShares-p.d.ts +15 -0
- package/_types/core/kms/decryptKmsSignedcryptedShares-p.d.ts.map +1 -0
- package/_types/core/kms/decryptValuesFromPairs.d.ts +36 -0
- package/_types/core/kms/decryptValuesFromPairs.d.ts.map +1 -0
- package/_types/core/kms/fetchKmsSignedcryptedShares-p.d.ts +34 -0
- package/_types/core/kms/fetchKmsSignedcryptedShares-p.d.ts.map +1 -0
- package/_types/core/kms/index.d.ts +2 -0
- package/_types/core/kms/index.d.ts.map +1 -0
- package/_types/core/kms/kmsDelegatedUserDecryptEip712Types.d.ts +3 -0
- package/_types/core/kms/kmsDelegatedUserDecryptEip712Types.d.ts.map +1 -0
- package/_types/core/kms/kmsExtraData.d.ts +18 -0
- package/_types/core/kms/kmsExtraData.d.ts.map +1 -0
- package/_types/core/kms/kmsPublicDecryptEip712Types.d.ts +3 -0
- package/_types/core/kms/kmsPublicDecryptEip712Types.d.ts.map +1 -0
- package/_types/core/kms/kmsUserDecryptEip712Types.d.ts +3 -0
- package/_types/core/kms/kmsUserDecryptEip712Types.d.ts.map +1 -0
- package/_types/core/kms/publicDecrypt.d.ts +22 -0
- package/_types/core/kms/publicDecrypt.d.ts.map +1 -0
- package/_types/core/kms/utils.d.ts +16 -0
- package/_types/core/kms/utils.d.ts.map +1 -0
- package/_types/core/kms/verifyKmsPublicDecryptEip712-p.d.ts +18 -0
- package/_types/core/kms/verifyKmsPublicDecryptEip712-p.d.ts.map +1 -0
- package/_types/core/modules/decrypt/mock.d.ts +11 -0
- package/_types/core/modules/decrypt/mock.d.ts.map +1 -0
- package/_types/core/modules/decrypt/module/api-p.d.ts +9 -0
- package/_types/core/modules/decrypt/module/api-p.d.ts.map +1 -0
- package/_types/core/modules/decrypt/module/index.d.ts +4 -0
- package/_types/core/modules/decrypt/module/index.d.ts.map +1 -0
- package/_types/core/modules/decrypt/module/init-p.d.ts +5 -0
- package/_types/core/modules/decrypt/module/init-p.d.ts.map +1 -0
- package/_types/core/modules/decrypt/types.d.ts +96 -0
- package/_types/core/modules/decrypt/types.d.ts.map +1 -0
- package/_types/core/modules/encrypt/mock.d.ts +10 -0
- package/_types/core/modules/encrypt/mock.d.ts.map +1 -0
- package/_types/core/modules/encrypt/module/api-p.d.ts +13 -0
- package/_types/core/modules/encrypt/module/api-p.d.ts.map +1 -0
- package/_types/core/modules/encrypt/module/index.d.ts +3 -0
- package/_types/core/modules/encrypt/module/index.d.ts.map +1 -0
- package/_types/core/modules/encrypt/module/init-p.d.ts +8 -0
- package/_types/core/modules/encrypt/module/init-p.d.ts.map +1 -0
- package/_types/core/modules/encrypt/types.d.ts +105 -0
- package/_types/core/modules/encrypt/types.d.ts.map +1 -0
- package/_types/core/modules/ethereum/createTrustedClient.d.ts +3 -0
- package/_types/core/modules/ethereum/createTrustedClient.d.ts.map +1 -0
- package/_types/core/modules/ethereum/types.d.ts +89 -0
- package/_types/core/modules/ethereum/types.d.ts.map +1 -0
- package/_types/core/modules/relayer/mock.d.ts +3 -0
- package/_types/core/modules/relayer/mock.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts +190 -0
- package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchCoprocessorSignatures.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchCoprocessorSignatures.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchDelegatedUserDecrypt.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchDelegatedUserDecrypt.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchFheEncryptionKeyBytes.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchFheEncryptionKeyBytes.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchFheEncryptionKeySource.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchFheEncryptionKeySource.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchPublicDecrypt.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchPublicDecrypt.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchUserDecrypt.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchUserDecrypt.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/RelayerInputProofSucceeded.d.ts +22 -0
- package/_types/core/modules/relayer/module/guards/RelayerInputProofSucceeded.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/RelayerPublicDecryptSucceeded.d.ts +18 -0
- package/_types/core/modules/relayer/module/guards/RelayerPublicDecryptSucceeded.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/RelayerResponseFailed.d.ts +55 -0
- package/_types/core/modules/relayer/module/guards/RelayerResponseFailed.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/RelayerResponseQueued.d.ts +24 -0
- package/_types/core/modules/relayer/module/guards/RelayerResponseQueued.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.d.ts +20 -0
- package/_types/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.d.ts +15 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError400WithDetails.d.ts +18 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError400WithDetails.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError404.d.ts +13 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError404.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError429.d.ts +13 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError429.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError500.d.ts +13 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError500.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError503.d.ts +13 -0
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError503.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/index.d.ts +3 -0
- package/_types/core/modules/relayer/module/index.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/relayerUrl.d.ts +6 -0
- package/_types/core/modules/relayer/module/relayerUrl.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/utils.d.ts +3 -0
- package/_types/core/modules/relayer/module/utils.d.ts.map +1 -0
- package/_types/core/modules/relayer/types.d.ts +96 -0
- package/_types/core/modules/relayer/types.d.ts.map +1 -0
- package/_types/core/runtime/CoreFhevm-p.d.ts +46 -0
- package/_types/core/runtime/CoreFhevm-p.d.ts.map +1 -0
- package/_types/core/runtime/CoreFhevmRuntime-p.d.ts +25 -0
- package/_types/core/runtime/CoreFhevmRuntime-p.d.ts.map +1 -0
- package/_types/core/runtime/FhevmRuntime.d.ts +3 -0
- package/_types/core/runtime/FhevmRuntime.d.ts.map +1 -0
- package/_types/core/runtime/initFhevmDecryptRuntime-p.d.ts +3 -0
- package/_types/core/runtime/initFhevmDecryptRuntime-p.d.ts.map +1 -0
- package/_types/core/runtime/initFhevmEncryptRuntime-p.d.ts +3 -0
- package/_types/core/runtime/initFhevmEncryptRuntime-p.d.ts.map +1 -0
- package/_types/core/runtime/initFhevmRuntime-p.d.ts +3 -0
- package/_types/core/runtime/initFhevmRuntime-p.d.ts.map +1 -0
- package/_types/core/types/auth.d.ts +41 -0
- package/_types/core/types/auth.d.ts.map +1 -0
- package/_types/core/types/configs.d.ts +21 -0
- package/_types/core/types/configs.d.ts.map +1 -0
- package/_types/core/types/coprocessor.d.ts +71 -0
- package/_types/core/types/coprocessor.d.ts.map +1 -0
- package/_types/core/types/coprocessorSignersContext.d.ts +14 -0
- package/_types/core/types/coprocessorSignersContext.d.ts.map +1 -0
- package/_types/core/types/coreFhevmClient.d.ts +33 -0
- package/_types/core/types/coreFhevmClient.d.ts.map +1 -0
- package/_types/core/types/coreFhevmRuntime.d.ts +36 -0
- package/_types/core/types/coreFhevmRuntime.d.ts.map +1 -0
- package/_types/core/types/encryptedTypes-p.d.ts +104 -0
- package/_types/core/types/encryptedTypes-p.d.ts.map +1 -0
- package/_types/core/types/encryptedTypes.d.ts +35 -0
- package/_types/core/types/encryptedTypes.d.ts.map +1 -0
- package/_types/core/types/fheEncryptionKey.d.ts +77 -0
- package/_types/core/types/fheEncryptionKey.d.ts.map +1 -0
- package/_types/core/types/fheType.d.ts +99 -0
- package/_types/core/types/fheType.d.ts.map +1 -0
- package/_types/core/types/fhevmChain.d.ts +75 -0
- package/_types/core/types/fhevmChain.d.ts.map +1 -0
- package/_types/core/types/fhevmClient.d.ts +11 -0
- package/_types/core/types/fhevmClient.d.ts.map +1 -0
- package/_types/core/types/fhevmDecryptionKey.d.ts +4 -0
- package/_types/core/types/fhevmDecryptionKey.d.ts.map +1 -0
- package/_types/core/types/fhevmUser.d.ts +7 -0
- package/_types/core/types/fhevmUser.d.ts.map +1 -0
- package/_types/core/types/hostContract.d.ts +22 -0
- package/_types/core/types/hostContract.d.ts.map +1 -0
- package/_types/core/types/index.d.ts +3 -0
- package/_types/core/types/index.d.ts.map +1 -0
- package/_types/core/types/inputProof.d.ts +74 -0
- package/_types/core/types/inputProof.d.ts.map +1 -0
- package/_types/core/types/kms-p.d.ts +17 -0
- package/_types/core/types/kms-p.d.ts.map +1 -0
- package/_types/core/types/kms.d.ts +179 -0
- package/_types/core/types/kms.d.ts.map +1 -0
- package/_types/core/types/kmsSignersContext.d.ts +48 -0
- package/_types/core/types/kmsSignersContext.d.ts.map +1 -0
- package/_types/core/types/logger.d.ts +5 -0
- package/_types/core/types/logger.d.ts.map +1 -0
- package/_types/core/types/other-p.d.ts +11 -0
- package/_types/core/types/other-p.d.ts.map +1 -0
- package/_types/core/types/primitives.d.ts +527 -0
- package/_types/core/types/primitives.d.ts.map +1 -0
- package/_types/core/types/publicDecryptionProof-p.d.ts +27 -0
- package/_types/core/types/publicDecryptionProof-p.d.ts.map +1 -0
- package/_types/core/types/record-p.d.ts +18 -0
- package/_types/core/types/record-p.d.ts.map +1 -0
- package/_types/core/types/relayer-p.d.ts +285 -0
- package/_types/core/types/relayer-p.d.ts.map +1 -0
- package/_types/core/types/relayer.d.ts +106 -0
- package/_types/core/types/relayer.d.ts.map +1 -0
- package/_types/core/types/signedDecryptionPermit.d.ts +46 -0
- package/_types/core/types/signedDecryptionPermit.d.ts.map +1 -0
- package/_types/core/types/tkms-p.d.ts +5 -0
- package/_types/core/types/tkms-p.d.ts.map +1 -0
- package/_types/core/types/utils.d.ts +34 -0
- package/_types/core/types/utils.d.ts.map +1 -0
- package/_types/core/types/zkProof-p.d.ts +21 -0
- package/_types/core/types/zkProof-p.d.ts.map +1 -0
- package/_types/core/types/zkProofBuilder.d.ts +23 -0
- package/_types/core/types/zkProofBuilder.d.ts.map +1 -0
- package/_types/core/utils-p/decrypt/assertPermitMatchesKeypair.d.ts +12 -0
- package/_types/core/utils-p/decrypt/assertPermitMatchesKeypair.d.ts.map +1 -0
- package/_types/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.d.ts +14 -0
- package/_types/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712.d.ts +14 -0
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712.d.ts.map +1 -0
- package/_types/core/utils-p/decrypt/verifyTkmsPublicKey.d.ts +16 -0
- package/_types/core/utils-p/decrypt/verifyTkmsPublicKey.d.ts.map +1 -0
- package/_types/core/utils-p/runtime/recoverSigners.d.ts +23 -0
- package/_types/core/utils-p/runtime/recoverSigners.d.ts.map +1 -0
- package/_types/ethers/clients/createFhevmBaseClient.d.ts +11 -0
- package/_types/ethers/clients/createFhevmBaseClient.d.ts.map +1 -0
- package/_types/ethers/clients/createFhevmClient.d.ts +11 -0
- package/_types/ethers/clients/createFhevmClient.d.ts.map +1 -0
- package/_types/ethers/clients/createFhevmDecryptClient.d.ts +11 -0
- package/_types/ethers/clients/createFhevmDecryptClient.d.ts.map +1 -0
- package/_types/ethers/clients/createFhevmEncryptClient.d.ts +11 -0
- package/_types/ethers/clients/createFhevmEncryptClient.d.ts.map +1 -0
- package/_types/ethers/decorators/decrypt.d.ts +6 -0
- package/_types/ethers/decorators/decrypt.d.ts.map +1 -0
- package/_types/ethers/decorators/encrypt.d.ts +6 -0
- package/_types/ethers/decorators/encrypt.d.ts.map +1 -0
- package/_types/ethers/index.d.ts +9 -0
- package/_types/ethers/index.d.ts.map +1 -0
- package/_types/ethers/internal/ethereum.d.ts +11 -0
- package/_types/ethers/internal/ethereum.d.ts.map +1 -0
- package/_types/ethers/internal/ethers-p.d.ts +39 -0
- package/_types/ethers/internal/ethers-p.d.ts.map +1 -0
- package/_types/ethers/internal/utils.d.ts +10 -0
- package/_types/ethers/internal/utils.d.ts.map +1 -0
- package/_types/ethers/runtime/initFhevmDecryptRuntime.d.ts +2 -0
- package/_types/ethers/runtime/initFhevmDecryptRuntime.d.ts.map +1 -0
- package/_types/ethers/runtime/initFhevmEncryptRuntime.d.ts +2 -0
- package/_types/ethers/runtime/initFhevmEncryptRuntime.d.ts.map +1 -0
- package/_types/ethers/runtime/initFhevmRuntime.d.ts +2 -0
- package/_types/ethers/runtime/initFhevmRuntime.d.ts.map +1 -0
- package/_types/viem/clients/createFhevmBaseClient.d.ts +11 -0
- package/_types/viem/clients/createFhevmBaseClient.d.ts.map +1 -0
- package/_types/viem/clients/createFhevmClient.d.ts +11 -0
- package/_types/viem/clients/createFhevmClient.d.ts.map +1 -0
- package/_types/viem/clients/createFhevmDecryptClient.d.ts +11 -0
- package/_types/viem/clients/createFhevmDecryptClient.d.ts.map +1 -0
- package/_types/viem/clients/createFhevmEncryptClient.d.ts +11 -0
- package/_types/viem/clients/createFhevmEncryptClient.d.ts.map +1 -0
- package/_types/viem/decorators/decrypt.d.ts +6 -0
- package/_types/viem/decorators/decrypt.d.ts.map +1 -0
- package/_types/viem/decorators/encrypt.d.ts +6 -0
- package/_types/viem/decorators/encrypt.d.ts.map +1 -0
- package/_types/viem/index.d.ts +9 -0
- package/_types/viem/index.d.ts.map +1 -0
- package/_types/viem/internal/ethereum.d.ts +11 -0
- package/_types/viem/internal/ethereum.d.ts.map +1 -0
- package/_types/viem/internal/viem-p.d.ts +39 -0
- package/_types/viem/internal/viem-p.d.ts.map +1 -0
- package/_types/viem/runtime/initFhevmDecryptRuntime.d.ts +2 -0
- package/_types/viem/runtime/initFhevmDecryptRuntime.d.ts.map +1 -0
- package/_types/viem/runtime/initFhevmEncryptRuntime.d.ts +2 -0
- package/_types/viem/runtime/initFhevmEncryptRuntime.d.ts.map +1 -0
- package/_types/viem/runtime/initFhevmRuntime.d.ts +2 -0
- package/_types/viem/runtime/initFhevmRuntime.d.ts.map +1 -0
- package/core/_version.ts +3 -0
- package/core/actions/base/canReadPublicValue.ts +28 -0
- package/core/actions/base/canReadPublicValues.ts +28 -0
- package/core/actions/base/createVerifiedInputProofFromRawBytes.ts +24 -0
- package/core/actions/base/fetchKmsSignedcryptedShares.ts +83 -0
- package/core/actions/base/fetchVerifiedInputProof.ts +25 -0
- package/core/actions/base/index.ts +69 -0
- package/core/actions/base/package.json +6 -0
- package/core/actions/base/readCoprocessorSignersContext.ts +21 -0
- package/core/actions/base/readKmsSignersContext.ts +19 -0
- package/core/actions/base/readPublicValue.ts +31 -0
- package/core/actions/base/readPublicValues.ts +31 -0
- package/core/actions/base/readPublicValuesWithSignatures.ts +53 -0
- package/core/actions/base/signDecryptionPermit.ts +41 -0
- package/core/actions/base/verifyHandlesCoprocessorSignatures.ts +60 -0
- package/core/actions/base/verifyInputProof.ts +45 -0
- package/core/actions/base/verifyZkProofCoprocessorSignatures.ts +32 -0
- package/core/actions/chain/createCoprocessorEip712Domain.ts +16 -0
- package/core/actions/chain/createKmsDelegatedUserDecryptEip712.ts +37 -0
- package/core/actions/chain/createKmsEip712Domain.ts +16 -0
- package/core/actions/chain/createKmsUserDecryptEip712.ts +35 -0
- package/core/actions/chain/fetchFheEncryptionKeyBytes.ts +24 -0
- package/core/actions/chain/index.ts +63 -0
- package/core/actions/chain/package.json +6 -0
- package/core/actions/chain/parseSignedDecryptionPermit.ts +35 -0
- package/core/actions/chain/parseTransportKeypair.ts +24 -0
- package/core/actions/chain/serializeSignedDecryptionPermit.ts +31 -0
- package/core/actions/chain/serializeTransportKeypair.ts +28 -0
- package/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.ts +16 -0
- package/core/actions/chain/verifyKmsUserDecryptEip712.ts +16 -0
- package/core/actions/decrypt/canDecryptValue.ts +109 -0
- package/core/actions/decrypt/canDecryptValues.ts +71 -0
- package/core/actions/decrypt/canDecryptValuesFromPairs.ts +68 -0
- package/core/actions/decrypt/decryptKmsSignedcryptedShares.ts +31 -0
- package/core/actions/decrypt/decryptValue.ts +69 -0
- package/core/actions/decrypt/decryptValues.ts +66 -0
- package/core/actions/decrypt/decryptValuesFromPairs.ts +66 -0
- package/core/actions/decrypt/generateTransportKeypair.ts +19 -0
- package/core/actions/decrypt/index.ts +58 -0
- package/core/actions/decrypt/package.json +6 -0
- package/core/actions/encrypt/encryptValue.ts +52 -0
- package/core/actions/encrypt/encryptValues.ts +51 -0
- package/core/actions/encrypt/generateZkProof.ts +34 -0
- package/core/actions/encrypt/index.ts +12 -0
- package/core/actions/encrypt/package.json +6 -0
- package/core/actions/host/getUserDecryptionDelegationExpirationDate.ts +32 -0
- package/core/actions/host/index.ts +33 -0
- package/core/actions/host/isAllowedForDecryption.ts +35 -0
- package/core/actions/host/package.json +6 -0
- package/core/actions/host/persistAllowed.ts +35 -0
- package/core/actions/host/readFhevmExecutorContractData.ts +74 -0
- package/core/actions/host/readInputVerifierContractData.ts +74 -0
- package/core/actions/host/readKmsVerifierContractData.ts +75 -0
- package/core/actions/host/resolveChainId.ts +42 -0
- package/core/actions/host/resolveFhevmConfig.ts +191 -0
- package/core/base/address.ts +303 -0
- package/core/base/auth.ts +38 -0
- package/core/base/boolean.ts +72 -0
- package/core/base/bytes.ts +2060 -0
- package/core/base/cachedFetch.ts +184 -0
- package/core/base/errors/AddressError.ts +20 -0
- package/core/base/errors/ChecksummedAddressError.ts +23 -0
- package/core/base/errors/ErrorBase.ts +79 -0
- package/core/base/errors/FetchError.ts +27 -0
- package/core/base/errors/FheTypeError.ts +62 -0
- package/core/base/errors/InternalError.ts +33 -0
- package/core/base/errors/InvalidPropertyError.ts +232 -0
- package/core/base/errors/InvalidTypeError.ts +87 -0
- package/core/base/errors/utils.ts +41 -0
- package/core/base/fetch.ts +284 -0
- package/core/base/index.ts +1 -0
- package/core/base/isomorphicWorker.ts +283 -0
- package/core/base/object.ts +41 -0
- package/core/base/promise.ts +31 -0
- package/core/base/record.ts +201 -0
- package/core/base/string.ts +214 -0
- package/core/base/timeout.ts +32 -0
- package/core/base/trustedValue.ts +110 -0
- package/core/base/typedValue.ts +326 -0
- package/core/base/uid.ts +17 -0
- package/core/base/uint.ts +630 -0
- package/core/base/wasm.ts +97 -0
- package/core/chains/definitions/localTestnet.ts +30 -0
- package/core/chains/definitions/mainnet.ts +30 -0
- package/core/chains/definitions/sepolia.ts +32 -0
- package/core/chains/index.ts +6 -0
- package/core/chains/package.json +6 -0
- package/core/chains/utils.ts +6 -0
- package/core/clients/decorators/base.ts +203 -0
- package/core/clients/decorators/decrypt.ts +85 -0
- package/core/clients/decorators/encrypt-p.ts +18 -0
- package/core/clients/decorators/encrypt.ts +47 -0
- package/core/coprocessor/InputProof-p.ts +424 -0
- package/core/coprocessor/ZkProof-p.ts +477 -0
- package/core/coprocessor/ZkProofBuilder-p.ts +295 -0
- package/core/coprocessor/assertIsCoprocessorEip712Domain.ts +23 -0
- package/core/coprocessor/coprocessorEip712Types.ts +39 -0
- package/core/coprocessor/createCoprocessorEip712.ts +69 -0
- package/core/coprocessor/createCoprocessorEip712Domain.ts +25 -0
- package/core/coprocessor/encrypt.ts +48 -0
- package/core/coprocessor/fetchVerifiedInputProof.ts +84 -0
- package/core/coprocessor/verifyHandlesCoprocessorSignatures.ts +66 -0
- package/core/coprocessor/verifyInputProof.ts +50 -0
- package/core/errors/AclError.ts +55 -0
- package/core/errors/ContractErrorBase.ts +38 -0
- package/core/errors/EncryptionError.ts +22 -0
- package/core/errors/FhevmConfigError.ts +22 -0
- package/core/errors/FhevmErrorBase.ts +53 -0
- package/core/errors/FhevmHandleError.ts +20 -0
- package/core/errors/InputProofError.ts +43 -0
- package/core/errors/RelayerAbortError.ts +27 -0
- package/core/errors/RelayerErrorBase.ts +81 -0
- package/core/errors/RelayerFetchError.ts +35 -0
- package/core/errors/RelayerFetchErrorBase.ts +90 -0
- package/core/errors/RelayerMaxRetryError.ts +28 -0
- package/core/errors/RelayerRequestErrorBase.ts +56 -0
- package/core/errors/RelayerRequestInternalError.ts +52 -0
- package/core/errors/RelayerResponseApiError.ts +43 -0
- package/core/errors/RelayerResponseErrorBase.ts +35 -0
- package/core/errors/RelayerResponseInputProofRejectedError.ts +28 -0
- package/core/errors/RelayerResponseInvalidBodyError.ts +43 -0
- package/core/errors/RelayerResponseStatusError.ts +33 -0
- package/core/errors/RelayerStateError.ts +39 -0
- package/core/errors/RelayerTimeoutError.ts +31 -0
- package/core/errors/SignersError.ts +73 -0
- package/core/errors/TfheError.ts +26 -0
- package/core/errors/ZkProofError.ts +23 -0
- package/core/handle/ClearValue.ts +341 -0
- package/core/handle/EncryptedValue.ts +29 -0
- package/core/handle/FheType.ts +545 -0
- package/core/handle/FhevmHandle.ts +740 -0
- package/core/host-contracts/CoprocessorSignersContext-p.ts +167 -0
- package/core/host-contracts/FhevmExecutorContractData-p.ts +133 -0
- package/core/host-contracts/HostContractVersion-p.ts +155 -0
- package/core/host-contracts/InputVerifierContractData-p.ts +133 -0
- package/core/host-contracts/KmsSignersContext-p.ts +238 -0
- package/core/host-contracts/KmsVerifierContractData-p.ts +110 -0
- package/core/host-contracts/abi-fragments/fragments.ts +460 -0
- package/core/host-contracts/canDecryptValuesFromPairs.ts +94 -0
- package/core/host-contracts/checkAllowedForDecryption.ts +36 -0
- package/core/host-contracts/checkPersistAllowed.ts +115 -0
- package/core/host-contracts/decryptionResultTypehash-p.ts +47 -0
- package/core/host-contracts/eip712Domain-p.ts +75 -0
- package/core/host-contracts/eip712InputVerificationTypehash-p.ts +47 -0
- package/core/host-contracts/getAclAddress-p.ts +47 -0
- package/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.ts +136 -0
- package/core/host-contracts/getCoprocessorSigners-p.ts +47 -0
- package/core/host-contracts/getCurrentKmsContextId-p.ts +74 -0
- package/core/host-contracts/getFhevmExecutorAddress-p.ts +47 -0
- package/core/host-contracts/getHandleVersion-p.ts +43 -0
- package/core/host-contracts/getHcuLimitAddress-p.ts +47 -0
- package/core/host-contracts/getInputVerifierAddress-p.ts +47 -0
- package/core/host-contracts/getKmsContextSignersAndThreshold-p.ts +149 -0
- package/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.ts +110 -0
- package/core/host-contracts/getSignersForKmsContext-p.ts +90 -0
- package/core/host-contracts/isAllowedForDecryption.ts +65 -0
- package/core/host-contracts/isUserDecryptable.ts +92 -0
- package/core/host-contracts/persistAllowed.ts +68 -0
- package/core/host-contracts/readCoprocessorSignersContext-p.ts +34 -0
- package/core/host-contracts/readKmsSignersContext-p.ts +221 -0
- package/core/key/FheEncryptionKeyCache-p.ts +326 -0
- package/core/key/FheEncryptionKeyWasm-p.ts +97 -0
- package/core/key/deserializeFheEncryptionKey.ts +24 -0
- package/core/key/fetchFheEncryptionKey.ts +46 -0
- package/core/key/fetchFheEncryptionKeyBytes.ts +69 -0
- package/core/key/fetchFheEncryptionKeyBytesWithSource.ts +72 -0
- package/core/key/serializeFheEncryptionKey.ts +36 -0
- package/core/kms/KmsSigncryptedShares-p.ts +169 -0
- package/core/kms/PublicDecryptionProof-p.ts +181 -0
- package/core/kms/PublicDecryptionProof.ts +10 -0
- package/core/kms/SignedDecryptionPermit-p.ts +453 -0
- package/core/kms/TransportKeypair-p.ts +278 -0
- package/core/kms/createKmsDelegatedUserDecryptEip712.ts +135 -0
- package/core/kms/createKmsEip712Domain.ts +67 -0
- package/core/kms/createKmsPublicDecryptEip712.ts +59 -0
- package/core/kms/createKmsUserDecryptEip712.ts +172 -0
- package/core/kms/decryptKmsSignedcryptedShares-p.ts +37 -0
- package/core/kms/decryptValuesFromPairs.ts +57 -0
- package/core/kms/fetchKmsSignedcryptedShares-p.ts +211 -0
- package/core/kms/index.ts +1 -0
- package/core/kms/kmsDelegatedUserDecryptEip712Types.ts +31 -0
- package/core/kms/kmsExtraData.ts +51 -0
- package/core/kms/kmsPublicDecryptEip712Types.ts +28 -0
- package/core/kms/kmsUserDecryptEip712Types.ts +30 -0
- package/core/kms/publicDecrypt.ts +109 -0
- package/core/kms/utils.ts +60 -0
- package/core/kms/verifyKmsPublicDecryptEip712-p.ts +75 -0
- package/core/modules/decrypt/mock.ts +134 -0
- package/core/modules/decrypt/module/api-p.ts +388 -0
- package/core/modules/decrypt/module/index.ts +73 -0
- package/core/modules/decrypt/module/init-p.ts +166 -0
- package/core/modules/decrypt/types.ts +214 -0
- package/core/modules/encrypt/mock.ts +111 -0
- package/core/modules/encrypt/module/api-p.ts +433 -0
- package/core/modules/encrypt/module/index.ts +47 -0
- package/core/modules/encrypt/module/init-p.ts +249 -0
- package/core/modules/encrypt/types.ts +225 -0
- package/core/modules/ethereum/createTrustedClient.ts +9 -0
- package/core/modules/ethereum/types.ts +153 -0
- package/core/modules/relayer/mock.ts +47 -0
- package/core/modules/relayer/module/RelayerAsyncRequest.ts +1771 -0
- package/core/modules/relayer/module/fetchCoprocessorSignatures.ts +45 -0
- package/core/modules/relayer/module/fetchDelegatedUserDecrypt.ts +67 -0
- package/core/modules/relayer/module/fetchFheEncryptionKeyBytes.ts +34 -0
- package/core/modules/relayer/module/fetchFheEncryptionKeySource.ts +166 -0
- package/core/modules/relayer/module/fetchPublicDecrypt.ts +40 -0
- package/core/modules/relayer/module/fetchUserDecrypt.ts +65 -0
- package/core/modules/relayer/module/guards/RelayerInputProofSucceeded.ts +106 -0
- package/core/modules/relayer/module/guards/RelayerPublicDecryptSucceeded.ts +59 -0
- package/core/modules/relayer/module/guards/RelayerResponseFailed.ts +244 -0
- package/core/modules/relayer/module/guards/RelayerResponseQueued.ts +51 -0
- package/core/modules/relayer/module/guards/RelayerUserDecryptSucceeded.ts +77 -0
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.ts +65 -0
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError400WithDetails.ts +87 -0
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError404.ts +25 -0
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError429.ts +25 -0
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError500.ts +25 -0
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError503.ts +30 -0
- package/core/modules/relayer/module/index.ts +24 -0
- package/core/modules/relayer/module/relayerUrl.ts +38 -0
- package/core/modules/relayer/module/utils.ts +20 -0
- package/core/modules/relayer/types.ts +183 -0
- package/core/runtime/CoreFhevm-p.ts +409 -0
- package/core/runtime/CoreFhevmRuntime-p.ts +266 -0
- package/core/runtime/FhevmRuntime.ts +2 -0
- package/core/runtime/initFhevmDecryptRuntime-p.ts +9 -0
- package/core/runtime/initFhevmEncryptRuntime-p.ts +9 -0
- package/core/runtime/initFhevmRuntime-p.ts +10 -0
- package/core/types/auth.ts +44 -0
- package/core/types/configs.ts +29 -0
- package/core/types/coprocessor.ts +83 -0
- package/core/types/coprocessorSignersContext.ts +15 -0
- package/core/types/coreFhevmClient.ts +55 -0
- package/core/types/coreFhevmRuntime.ts +44 -0
- package/core/types/encryptedTypes-p.ts +226 -0
- package/core/types/encryptedTypes.ts +41 -0
- package/core/types/fheEncryptionKey.ts +106 -0
- package/core/types/fheType.ts +137 -0
- package/core/types/fhevmChain.ts +86 -0
- package/core/types/fhevmClient.ts +30 -0
- package/core/types/fhevmDecryptionKey.ts +8 -0
- package/core/types/fhevmUser.ts +7 -0
- package/core/types/hostContract.ts +27 -0
- package/core/types/index.ts +2 -0
- package/core/types/inputProof.ts +87 -0
- package/core/types/kms-p.ts +18 -0
- package/core/types/kms.ts +132 -0
- package/core/types/kmsSignersContext.ts +48 -0
- package/core/types/logger.ts +4 -0
- package/core/types/other-p.ts +12 -0
- package/core/types/primitives.ts +641 -0
- package/core/types/publicDecryptionProof-p.ts +33 -0
- package/core/types/record-p.ts +32 -0
- package/core/types/relayer-p.ts +406 -0
- package/core/types/relayer.ts +183 -0
- package/core/types/signedDecryptionPermit.ts +50 -0
- package/core/types/tkms-p.ts +5 -0
- package/core/types/utils.ts +34 -0
- package/core/types/zkProof-p.ts +29 -0
- package/core/types/zkProofBuilder.ts +36 -0
- package/core/utils-p/decrypt/assertPermitMatchesKeypair.ts +27 -0
- package/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.ts +47 -0
- package/core/utils-p/decrypt/verifyKmsUserDecryptEip712.ts +47 -0
- package/core/utils-p/decrypt/verifyTkmsPublicKey.ts +27 -0
- package/core/utils-p/runtime/recoverSigners.ts +46 -0
- package/ethers/clients/createFhevmBaseClient.ts +24 -0
- package/ethers/clients/createFhevmClient.ts +20 -0
- package/ethers/clients/createFhevmDecryptClient.ts +21 -0
- package/ethers/clients/createFhevmEncryptClient.ts +24 -0
- package/ethers/decorators/decrypt.ts +12 -0
- package/ethers/decorators/encrypt.ts +12 -0
- package/ethers/index.ts +10 -0
- package/ethers/internal/ethereum.ts +165 -0
- package/ethers/internal/ethers-p.ts +105 -0
- package/ethers/internal/utils.ts +41 -0
- package/ethers/package.json +6 -0
- package/ethers/runtime/initFhevmDecryptRuntime.ts +8 -0
- package/ethers/runtime/initFhevmEncryptRuntime.ts +8 -0
- package/ethers/runtime/initFhevmRuntime.ts +8 -0
- package/package.json +90 -2
- package/tsconfig.json +9 -0
- package/viem/clients/createFhevmBaseClient.ts +24 -0
- package/viem/clients/createFhevmClient.ts +20 -0
- package/viem/clients/createFhevmDecryptClient.ts +18 -0
- package/viem/clients/createFhevmEncryptClient.ts +21 -0
- package/viem/decorators/decrypt.ts +12 -0
- package/viem/decorators/encrypt.ts +12 -0
- package/viem/index.ts +10 -0
- package/viem/internal/ethereum.ts +145 -0
- package/viem/internal/viem-p.ts +105 -0
- package/viem/package.json +6 -0
- package/viem/runtime/initFhevmDecryptRuntime.ts +8 -0
- package/viem/runtime/initFhevmEncryptRuntime.ts +8 -0
- package/viem/runtime/initFhevmRuntime.ts +8 -0
- package/wasm/tfhe/compile-worker.js +8 -0
- package/wasm/tfhe/startWorkers.v1.5.3.js +426 -0
- package/wasm/tfhe/tfhe-worker.v1.5.3.inline.js +7 -0
- package/wasm/tfhe/tfhe-worker.v1.5.3.mjs +745 -0
- package/wasm/tfhe/tfhe.v1.5.3.d.ts +10793 -0
- package/wasm/tfhe/tfhe.v1.5.3.js +28645 -0
- package/wasm/tfhe/tfhe_bg.v1.5.3.wasm +0 -0
- package/wasm/tfhe/tfhe_bg.v1.5.3.wasm.base64.d.ts +1 -0
- package/wasm/tfhe/tfhe_bg.v1.5.3.wasm.base64.js +1 -0
- package/wasm/tkms/kms_lib.v0.13.10.d.ts +586 -0
- package/wasm/tkms/kms_lib.v0.13.10.js +2117 -0
- package/wasm/tkms/kms_lib_bg.v0.13.10.wasm +0 -0
- package/wasm/tkms/kms_lib_bg.v0.13.10.wasm.base64.d.ts +1 -0
- package/wasm/tkms/kms_lib_bg.v0.13.10.wasm.base64.js +3 -0
- package/wasm/wasmBaseUrl.d.ts +7 -0
- package/wasm/wasmBaseUrl.js +14 -0
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
import type { Bytes, Bytes20, Bytes20Hex, Bytes20HexNo0x, Bytes21, Bytes21Hex, Bytes21HexNo0x, Bytes32, Bytes32Hex, Bytes32HexNo0x, Bytes65, Bytes65Hex, Bytes65HexNo0x, Bytes8, Bytes8Hex, Bytes8HexNo0x, BytesHex, BytesHexNo0x, BytesTypeNameToByteLengthMap, BytesTypeNameToTypeMap, ByteLength, Uint8Number, Uint64BigInt, UintNumber, Bytes1Hex, Bytes1, Bytes1HexNo0x, UintBigInt, BytesTypeName, BytesNMap } from '../types/primitives.js';
|
|
2
|
+
import type { RecordUint8ArrayPropertyType, RecordWithPropertyType } from '../types/record-p.js';
|
|
3
|
+
import type { ErrorMetadataParams } from './errors/ErrorBase.js';
|
|
4
|
+
/**
|
|
5
|
+
* Maps BytesXX type names to their corresponding byte lengths.
|
|
6
|
+
* Type is derived from BytesTypeNameToByteLengthMap to ensure consistency.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ByteLengthForType: BytesTypeNameToByteLengthMap;
|
|
9
|
+
export declare function isBytes(value: unknown, byteLength?: ByteLength): value is Bytes;
|
|
10
|
+
export declare function isBytesForType<T extends BytesTypeName>(value: unknown, typeName?: T): value is BytesTypeNameToTypeMap[T];
|
|
11
|
+
export declare function isBytes1(value: unknown): value is Bytes1;
|
|
12
|
+
export declare function isBytes8(value: unknown): value is Bytes8;
|
|
13
|
+
export declare function isBytes20(value: unknown): value is Bytes20;
|
|
14
|
+
export declare function isBytes21(value: unknown): value is Bytes21;
|
|
15
|
+
export declare function isBytes32(value: unknown): value is Bytes32;
|
|
16
|
+
export declare function isBytes65(value: unknown): value is Bytes65;
|
|
17
|
+
export declare function isBytesHex(value: unknown, byteLength?: ByteLength): value is BytesHex;
|
|
18
|
+
export declare function isBytes1Hex(value: unknown): value is Bytes1Hex;
|
|
19
|
+
export declare function isBytes8Hex(value: unknown): value is Bytes8Hex;
|
|
20
|
+
export declare function isBytes20Hex(value: unknown): value is Bytes20Hex;
|
|
21
|
+
export declare function isBytes21Hex(value: unknown): value is Bytes21Hex;
|
|
22
|
+
export declare function isBytes32Hex(value: unknown): value is Bytes32Hex;
|
|
23
|
+
export declare function isBytes65Hex(value: unknown): value is Bytes65Hex;
|
|
24
|
+
export declare function isBytesHexNo0x(value: unknown, byteLength?: ByteLength): value is BytesHexNo0x;
|
|
25
|
+
export declare function isBytes1HexNo0x(value: unknown): value is Bytes1HexNo0x;
|
|
26
|
+
export declare function isBytes8HexNo0x(value: unknown): value is Bytes8HexNo0x;
|
|
27
|
+
export declare function isBytes20HexNo0x(value: unknown): value is Bytes20HexNo0x;
|
|
28
|
+
export declare function isBytes21HexNo0x(value: unknown): value is Bytes21HexNo0x;
|
|
29
|
+
export declare function isBytes32HexNo0x(value: unknown): value is Bytes32HexNo0x;
|
|
30
|
+
export declare function isBytes65HexNo0x(value: unknown): value is Bytes65HexNo0x;
|
|
31
|
+
export declare function assertIsBytes(value: unknown, options?: {
|
|
32
|
+
byteLength?: ByteLength;
|
|
33
|
+
subject?: string;
|
|
34
|
+
} & ErrorMetadataParams): asserts value is Bytes;
|
|
35
|
+
export declare function assertIsBytesForType<T extends BytesTypeName>(value: unknown, options?: {
|
|
36
|
+
typeName: T;
|
|
37
|
+
subject?: string;
|
|
38
|
+
} & ErrorMetadataParams): asserts value is BytesNMap[T];
|
|
39
|
+
export declare function assertIsBytes1(value: unknown, options: {
|
|
40
|
+
subject?: string;
|
|
41
|
+
} & ErrorMetadataParams): asserts value is Bytes1;
|
|
42
|
+
export declare function assertIsBytes8(value: unknown, options: {
|
|
43
|
+
subject?: string;
|
|
44
|
+
} & ErrorMetadataParams): asserts value is Bytes8;
|
|
45
|
+
export declare function assertIsBytes20(value: unknown, options: {
|
|
46
|
+
subject?: string;
|
|
47
|
+
} & ErrorMetadataParams): asserts value is Bytes20;
|
|
48
|
+
export declare function assertIsBytes21(value: unknown, options: {
|
|
49
|
+
subject?: string;
|
|
50
|
+
} & ErrorMetadataParams): asserts value is Bytes21;
|
|
51
|
+
export declare function assertIsBytes32(value: unknown, options: {
|
|
52
|
+
subject?: string;
|
|
53
|
+
} & ErrorMetadataParams): asserts value is Bytes32;
|
|
54
|
+
export declare function assertIsBytes65(value: unknown, options: {
|
|
55
|
+
subject?: string;
|
|
56
|
+
} & ErrorMetadataParams): asserts value is Bytes65;
|
|
57
|
+
export declare function asBytesForType(value: unknown, options?: {
|
|
58
|
+
typeName: BytesTypeName;
|
|
59
|
+
subject?: string;
|
|
60
|
+
} & ErrorMetadataParams): Bytes;
|
|
61
|
+
export declare function asBytes(value: unknown, options?: {
|
|
62
|
+
byteLength?: ByteLength;
|
|
63
|
+
subject?: string;
|
|
64
|
+
} & ErrorMetadataParams): Bytes;
|
|
65
|
+
export declare function asBytes1(value: unknown, options?: {
|
|
66
|
+
subject?: string;
|
|
67
|
+
} & ErrorMetadataParams): Bytes1;
|
|
68
|
+
export declare function asBytes8(value: unknown, options?: {
|
|
69
|
+
subject?: string;
|
|
70
|
+
} & ErrorMetadataParams): Bytes8;
|
|
71
|
+
export declare function asBytes20(value: unknown, options?: {
|
|
72
|
+
subject?: string;
|
|
73
|
+
} & ErrorMetadataParams): Bytes20;
|
|
74
|
+
export declare function asBytes21(value: unknown, options?: {
|
|
75
|
+
subject?: string;
|
|
76
|
+
} & ErrorMetadataParams): Bytes21;
|
|
77
|
+
export declare function asBytes32(value: unknown, options?: {
|
|
78
|
+
subject?: string;
|
|
79
|
+
} & ErrorMetadataParams): Bytes32;
|
|
80
|
+
export declare function asBytes65(value: unknown, options?: {
|
|
81
|
+
subject?: string;
|
|
82
|
+
} & ErrorMetadataParams): Bytes65;
|
|
83
|
+
/**
|
|
84
|
+
* Assertion function that validates a value is a valid hex bytes string.
|
|
85
|
+
* A valid BytesHex string must start with "0x" followed by an even number of hexadecimal characters.
|
|
86
|
+
* Throws an `InvalidTypeError` if validation fails.
|
|
87
|
+
*
|
|
88
|
+
* @param value - The value to validate (can be any type)
|
|
89
|
+
* @param options - Validation options
|
|
90
|
+
* @param options.byteLength - Optional expected byte length (e.g., 8, 20, 32)
|
|
91
|
+
* @param options.subject - Optional name of the value being validated (used in error messages)
|
|
92
|
+
* @throws {InvalidTypeError} When the value is not a string or not valid BytesHex format
|
|
93
|
+
* @throws {never} No other errors are thrown
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* function processHash(hash: unknown) {
|
|
98
|
+
* assertIsBytesHex(hash, { byteLength: 32, subject: 'hash' });
|
|
99
|
+
* console.log(hash); // TypeScript now knows hash is BytesHex
|
|
100
|
+
* }
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
export declare function assertIsBytesHex(value: unknown, options: {
|
|
104
|
+
byteLength?: ByteLength;
|
|
105
|
+
subject?: string;
|
|
106
|
+
} & ErrorMetadataParams): asserts value is BytesHex;
|
|
107
|
+
/**
|
|
108
|
+
* Asserts that a value is either a `Bytes` (Uint8Array) or a `BytesHex` (hex string).
|
|
109
|
+
*
|
|
110
|
+
* @throws {InvalidTypeError} When the value is neither `Bytes` nor `BytesHex`.
|
|
111
|
+
*/
|
|
112
|
+
export declare function assertIsBytesOrBytesHex(value: unknown, options: {
|
|
113
|
+
subject?: string;
|
|
114
|
+
} & ErrorMetadataParams): asserts value is Bytes | BytesHex;
|
|
115
|
+
export declare function assertIsBytes1Hex(value: unknown, options: {
|
|
116
|
+
subject?: string;
|
|
117
|
+
} & ErrorMetadataParams): asserts value is Bytes1Hex;
|
|
118
|
+
export declare function assertIsBytes8Hex(value: unknown, options: {
|
|
119
|
+
subject?: string;
|
|
120
|
+
} & ErrorMetadataParams): asserts value is Bytes8Hex;
|
|
121
|
+
export declare function assertIsBytes20Hex(value: unknown, options: {
|
|
122
|
+
subject?: string;
|
|
123
|
+
} & ErrorMetadataParams): asserts value is Bytes20Hex;
|
|
124
|
+
export declare function assertIsBytes21Hex(value: unknown, options: {
|
|
125
|
+
subject?: string;
|
|
126
|
+
} & ErrorMetadataParams): asserts value is Bytes21Hex;
|
|
127
|
+
export declare function assertIsBytes32Hex(value: unknown, options: {
|
|
128
|
+
subject?: string;
|
|
129
|
+
} & ErrorMetadataParams): asserts value is Bytes32Hex;
|
|
130
|
+
export declare function assertIsBytes65Hex(value: unknown, options: {
|
|
131
|
+
subject?: string;
|
|
132
|
+
} & ErrorMetadataParams): asserts value is Bytes65Hex;
|
|
133
|
+
export declare function asBytesHex(value: unknown, options?: {
|
|
134
|
+
subject?: string;
|
|
135
|
+
} & ErrorMetadataParams): BytesHex;
|
|
136
|
+
export declare function asBytes1Hex(value: unknown, options?: {
|
|
137
|
+
subject?: string;
|
|
138
|
+
} & ErrorMetadataParams): Bytes1Hex;
|
|
139
|
+
export declare function asBytes8Hex(value: unknown, options?: {
|
|
140
|
+
subject?: string;
|
|
141
|
+
} & ErrorMetadataParams): Bytes8Hex;
|
|
142
|
+
export declare function asBytes20Hex(value: unknown, options?: {
|
|
143
|
+
subject?: string;
|
|
144
|
+
} & ErrorMetadataParams): Bytes20Hex;
|
|
145
|
+
export declare function asBytes21Hex(value: unknown, options?: {
|
|
146
|
+
subject?: string;
|
|
147
|
+
} & ErrorMetadataParams): Bytes21Hex;
|
|
148
|
+
export declare function asBytes32Hex(value: unknown, options?: {
|
|
149
|
+
subject?: string;
|
|
150
|
+
} & ErrorMetadataParams): Bytes32Hex;
|
|
151
|
+
export declare function asBytes65Hex(value: unknown, options?: {
|
|
152
|
+
subject?: string;
|
|
153
|
+
} & ErrorMetadataParams): Bytes65Hex;
|
|
154
|
+
/**
|
|
155
|
+
* Assertion function that validates a value is a valid hex bytes string without "0x" prefix.
|
|
156
|
+
* A valid BytesHexNo0x string must contain only hexadecimal characters (no "0x" prefix).
|
|
157
|
+
* Throws an `InvalidTypeError` if validation fails.
|
|
158
|
+
*
|
|
159
|
+
* @param value - The value to validate (can be any type)
|
|
160
|
+
* @param options - Validation options
|
|
161
|
+
* @param options.byteLength - Optional expected byte length (e.g., 8, 20, 32)
|
|
162
|
+
* @param options.subject - Optional name of the value being validated (used in error messages)
|
|
163
|
+
* @throws {InvalidTypeError} When the value is not a string or not valid BytesHexNo0x format
|
|
164
|
+
* @throws {never} No other errors are thrown
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```typescript
|
|
168
|
+
* function processSignature(sig: unknown) {
|
|
169
|
+
* assertIsBytesHexNo0x(sig, { byteLength: 65, subject: 'signature' });
|
|
170
|
+
* console.log(sig); // TypeScript now knows sig is BytesHexNo0x
|
|
171
|
+
* }
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
export declare function assertIsBytesHexNo0x(value: unknown, options: {
|
|
175
|
+
byteLength?: ByteLength;
|
|
176
|
+
subject?: string;
|
|
177
|
+
} & ErrorMetadataParams): asserts value is BytesHexNo0x;
|
|
178
|
+
export declare function assertIsBytes1HexNo0x(value: unknown, options: {
|
|
179
|
+
subject?: string;
|
|
180
|
+
} & ErrorMetadataParams): asserts value is Bytes1HexNo0x;
|
|
181
|
+
export declare function assertIsBytes8HexNo0x(value: unknown, options: {
|
|
182
|
+
subject?: string;
|
|
183
|
+
} & ErrorMetadataParams): asserts value is Bytes8HexNo0x;
|
|
184
|
+
export declare function assertIsBytes20HexNo0x(value: unknown, options: {
|
|
185
|
+
subject?: string;
|
|
186
|
+
} & ErrorMetadataParams): asserts value is Bytes20HexNo0x;
|
|
187
|
+
export declare function assertIsBytes21HexNo0x(value: unknown, options: {
|
|
188
|
+
subject?: string;
|
|
189
|
+
} & ErrorMetadataParams): asserts value is Bytes21HexNo0x;
|
|
190
|
+
export declare function assertIsBytes32HexNo0x(value: unknown, options: {
|
|
191
|
+
subject?: string;
|
|
192
|
+
} & ErrorMetadataParams): asserts value is Bytes32HexNo0x;
|
|
193
|
+
export declare function assertIsBytes65HexNo0x(value: unknown, options: {
|
|
194
|
+
subject?: string;
|
|
195
|
+
} & ErrorMetadataParams): asserts value is Bytes65HexNo0x;
|
|
196
|
+
export declare function asBytesHexNo0x(value: unknown, options?: {
|
|
197
|
+
byteLength?: ByteLength;
|
|
198
|
+
subject?: string;
|
|
199
|
+
} & ErrorMetadataParams): BytesHexNo0x;
|
|
200
|
+
export declare function asBytes1HexNo0x(value: unknown, options?: {
|
|
201
|
+
subject?: string;
|
|
202
|
+
} & ErrorMetadataParams): Bytes1HexNo0x;
|
|
203
|
+
export declare function asBytes8HexNo0x(value: unknown, options?: {
|
|
204
|
+
subject?: string;
|
|
205
|
+
} & ErrorMetadataParams): Bytes8HexNo0x;
|
|
206
|
+
export declare function asBytes20HexNo0x(value: unknown, options?: {
|
|
207
|
+
subject?: string;
|
|
208
|
+
} & ErrorMetadataParams): Bytes20HexNo0x;
|
|
209
|
+
export declare function asBytes21HexNo0x(value: unknown, options?: {
|
|
210
|
+
subject?: string;
|
|
211
|
+
} & ErrorMetadataParams): Bytes21HexNo0x;
|
|
212
|
+
export declare function asBytes32HexNo0x(value: unknown, options?: {
|
|
213
|
+
subject?: string;
|
|
214
|
+
} & ErrorMetadataParams): Bytes32HexNo0x;
|
|
215
|
+
export declare function asBytes65HexNo0x(value: unknown, options?: {
|
|
216
|
+
subject?: string;
|
|
217
|
+
} & ErrorMetadataParams): Bytes65HexNo0x;
|
|
218
|
+
/**
|
|
219
|
+
* Assertion function that validates a value is an array of valid hex bytes strings.
|
|
220
|
+
* Each element must start with "0x" followed by hexadecimal characters.
|
|
221
|
+
* Throws an `InvalidTypeError` if validation fails.
|
|
222
|
+
*
|
|
223
|
+
* @param value - The value to validate (can be any type)
|
|
224
|
+
* @param options - Validation options
|
|
225
|
+
* @param options.byteLength - Optional expected byte length for each element (e.g., 8, 20, 32)
|
|
226
|
+
* @param options.subject - Optional name of the value being validated (used in error messages)
|
|
227
|
+
* @throws {InvalidTypeError} When the value is not an array or any element is not valid BytesHex format
|
|
228
|
+
* @throws {never} No other errors are thrown
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* ```typescript
|
|
232
|
+
* function processHashes(hashes: unknown) {
|
|
233
|
+
* assertIsBytesHexArray(hashes, { byteLength: 32, subject: 'hashes' });
|
|
234
|
+
* hashes.forEach(hash => console.log(hash)); // TypeScript knows each is BytesHex
|
|
235
|
+
* }
|
|
236
|
+
* ```
|
|
237
|
+
*/
|
|
238
|
+
export declare function assertIsBytesHexArray(value: unknown, options: {
|
|
239
|
+
byteLength?: ByteLength;
|
|
240
|
+
subject?: string;
|
|
241
|
+
} & ErrorMetadataParams): asserts value is BytesHex[];
|
|
242
|
+
export declare function assertIsBytesArray(value: unknown, options: {
|
|
243
|
+
byteLength?: ByteLength;
|
|
244
|
+
subject?: string;
|
|
245
|
+
} & ErrorMetadataParams): asserts value is Bytes[];
|
|
246
|
+
export declare function assertIsBytes1HexArray(value: unknown, options: {
|
|
247
|
+
subject?: string;
|
|
248
|
+
} & ErrorMetadataParams): asserts value is Bytes1Hex[];
|
|
249
|
+
export declare function assertIsBytes8HexArray(value: unknown, options: {
|
|
250
|
+
subject?: string;
|
|
251
|
+
} & ErrorMetadataParams): asserts value is Bytes8Hex[];
|
|
252
|
+
export declare function assertIsBytes20HexArray(value: unknown, options: {
|
|
253
|
+
subject?: string;
|
|
254
|
+
} & ErrorMetadataParams): asserts value is Bytes20Hex[];
|
|
255
|
+
export declare function assertIsBytes21HexArray(value: unknown, options: {
|
|
256
|
+
subject?: string;
|
|
257
|
+
} & ErrorMetadataParams): asserts value is Bytes21Hex[];
|
|
258
|
+
export declare function assertIsBytes32HexArray(value: unknown, options: {
|
|
259
|
+
subject?: string;
|
|
260
|
+
} & ErrorMetadataParams): asserts value is Bytes32Hex[];
|
|
261
|
+
export declare function assertIsBytes65HexArray(value: unknown, options: {
|
|
262
|
+
subject?: string;
|
|
263
|
+
} & ErrorMetadataParams): asserts value is Bytes65Hex[];
|
|
264
|
+
export declare function assertIsBytes32Array(value: unknown, options: {
|
|
265
|
+
subject?: string;
|
|
266
|
+
} & ErrorMetadataParams): asserts value is Bytes32[];
|
|
267
|
+
/**
|
|
268
|
+
* Type guard that checks if a property exists on an object and is a valid hex bytes string.
|
|
269
|
+
* A valid BytesHex string starts with "0x" followed by an even number of hexadecimal characters.
|
|
270
|
+
*
|
|
271
|
+
* @template K - The property key type (string literal)
|
|
272
|
+
* @param record - The value to check (can be any type)
|
|
273
|
+
* @param property - The property name to check for
|
|
274
|
+
* @param byteLength - Optional byte length (e.g., 8, 20, 32)
|
|
275
|
+
* @returns True if `o` is an object with the specified property that is a valid BytesHex string
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```typescript
|
|
279
|
+
* const data: unknown = { hash: "0x1234abcd", value: 42 };
|
|
280
|
+
* if (isRecordBytesHexProperty(data, 'hash')) {
|
|
281
|
+
* console.log(data.hash); // "0x1234abcd"
|
|
282
|
+
* }
|
|
283
|
+
* ```
|
|
284
|
+
*/
|
|
285
|
+
export declare function isRecordBytesHexProperty<K extends string>(record: unknown, property: K, byteLength?: ByteLength): record is RecordWithPropertyType<K, BytesHex>;
|
|
286
|
+
export declare function isRecordBytes1HexProperty<K extends string>(record: unknown, property: K): record is RecordWithPropertyType<K, Bytes1Hex>;
|
|
287
|
+
export declare function isRecordBytes8HexProperty<K extends string>(record: unknown, property: K): record is RecordWithPropertyType<K, Bytes8Hex>;
|
|
288
|
+
export declare function isRecordBytes20HexProperty<K extends string>(record: unknown, property: K): record is RecordWithPropertyType<K, Bytes20Hex>;
|
|
289
|
+
export declare function isRecordBytes21HexProperty<K extends string>(record: unknown, property: K): record is RecordWithPropertyType<K, Bytes21Hex>;
|
|
290
|
+
export declare function isRecordBytes32HexProperty<K extends string>(record: unknown, property: K): record is RecordWithPropertyType<K, Bytes32Hex>;
|
|
291
|
+
export declare function isRecordBytes65HexProperty<K extends string>(record: unknown, property: K): record is RecordWithPropertyType<K, Bytes65Hex>;
|
|
292
|
+
/**
|
|
293
|
+
* Assertion function that validates a property exists on an object and is a valid hex bytes string.
|
|
294
|
+
* A valid BytesHex string must start with "0x" followed by an even number of hexadecimal characters.
|
|
295
|
+
* Throws an `InvalidPropertyError` if validation fails.
|
|
296
|
+
*
|
|
297
|
+
* @template K - The property key type (string literal)
|
|
298
|
+
* @param record - The value to validate (can be any type)
|
|
299
|
+
* @param property - The property name to check for
|
|
300
|
+
* @param recordName - The name of the object being validated (used in error messages)
|
|
301
|
+
* @throws {InvalidPropertyError} When the property is missing, not a string, or not valid BytesHex format
|
|
302
|
+
* @throws {never} No other errors are thrown
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```typescript
|
|
306
|
+
* function processTransaction(data: unknown) {
|
|
307
|
+
* assertRecordBytesHexProperty(data, 'txHash', 'transaction');
|
|
308
|
+
* console.log(data.txHash); // e.g., "0x1234..."
|
|
309
|
+
* }
|
|
310
|
+
* ```
|
|
311
|
+
*/
|
|
312
|
+
export declare function assertRecordBytesHexProperty<K extends string>(record: unknown, property: K, recordName: string, options: {
|
|
313
|
+
byteLength?: ByteLength;
|
|
314
|
+
} & ErrorMetadataParams): asserts record is RecordWithPropertyType<K, BytesHex>;
|
|
315
|
+
export declare function assertRecordBytes1HexProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes1Hex>;
|
|
316
|
+
export declare function assertRecordBytes8HexProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes8Hex>;
|
|
317
|
+
export declare function assertRecordBytes20HexProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes20Hex>;
|
|
318
|
+
export declare function assertRecordBytes21HexProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes21Hex>;
|
|
319
|
+
export declare function assertRecordBytes32HexProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes32Hex>;
|
|
320
|
+
export declare function assertRecordBytes65HexProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes65Hex>;
|
|
321
|
+
/**
|
|
322
|
+
* Type guard that checks if a property exists on an object and is a valid hex bytes string without "0x" prefix.
|
|
323
|
+
* A valid BytesHexNo0x string contains only hexadecimal characters (no "0x" prefix).
|
|
324
|
+
*
|
|
325
|
+
* @template K - The property key type (string literal)
|
|
326
|
+
* @param record - The value to check (can be any type)
|
|
327
|
+
* @param property - The property name to check for
|
|
328
|
+
* @param byteLength - Optional byte length (e.g., 8, 20, 32)
|
|
329
|
+
* @returns True if `o` is an object with the specified property that is a valid BytesHexNo0x string
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* ```typescript
|
|
333
|
+
* const data: unknown = { signature: "1234abcd", value: 42 };
|
|
334
|
+
* if (isRecordBytesHexNo0xProperty(data, 'signature')) {
|
|
335
|
+
* console.log(data.signature); // "1234abcd"
|
|
336
|
+
* }
|
|
337
|
+
* ```
|
|
338
|
+
*/
|
|
339
|
+
export declare function isRecordBytesHexNo0xProperty<K extends string>(record: unknown, property: K, byteLength?: ByteLength): record is RecordWithPropertyType<K, BytesHexNo0x>;
|
|
340
|
+
/**
|
|
341
|
+
* Assertion function that validates a property exists on an object and is a valid hex bytes string without "0x" prefix.
|
|
342
|
+
* A valid BytesHexNo0x string contains only hexadecimal characters (no "0x" prefix).
|
|
343
|
+
* Throws an `InvalidPropertyError` if validation fails.
|
|
344
|
+
*
|
|
345
|
+
* @template K - The property key type (string literal)
|
|
346
|
+
* @param record - The value to validate (can be any type)
|
|
347
|
+
* @param property - The property name to check for
|
|
348
|
+
* @param recordName - The name of the object being validated (used in error messages)
|
|
349
|
+
* @param options - Validation options
|
|
350
|
+
* @param options.byteLength - Optional expected byte length (e.g., 8, 20, 32)
|
|
351
|
+
* @throws {InvalidPropertyError} When the property is missing, not a string, or not valid BytesHexNo0x format
|
|
352
|
+
* @throws {never} No other errors are thrown
|
|
353
|
+
*
|
|
354
|
+
* @example
|
|
355
|
+
* ```typescript
|
|
356
|
+
* function processData(data: unknown) {
|
|
357
|
+
* assertRecordBytesHexNo0xProperty(data, 'signature', 'response', {});
|
|
358
|
+
* console.log(data.signature); // e.g., "1234abcd..."
|
|
359
|
+
* }
|
|
360
|
+
* ```
|
|
361
|
+
*/
|
|
362
|
+
export declare function assertRecordBytesHexNo0xProperty<K extends string>(record: unknown, property: K, recordName: string, options: {
|
|
363
|
+
byteLength?: ByteLength;
|
|
364
|
+
} & ErrorMetadataParams): asserts record is RecordWithPropertyType<K, BytesHexNo0x>;
|
|
365
|
+
/**
|
|
366
|
+
* Assertion function that validates a property exists on an object, is an array,
|
|
367
|
+
* and every element is a valid hex bytes string (with "0x" prefix).
|
|
368
|
+
* Throws an `InvalidPropertyError` if validation fails.
|
|
369
|
+
*
|
|
370
|
+
* @template K - The property key type (string literal)
|
|
371
|
+
* @param record - The record to validate (can be any type)
|
|
372
|
+
* @param property - The property name to check for
|
|
373
|
+
* @param recordName - The name of the record being validated (used in error messages)
|
|
374
|
+
* @throws {InvalidPropertyError} When the property is missing, not an array, or any element is not valid BytesHex
|
|
375
|
+
* @throws {never} No other errors are thrown
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```typescript
|
|
379
|
+
* function processHashes(data: unknown) {
|
|
380
|
+
* assertRecordBytesHexArrayProperty(data, 'txHashes', 'transaction');
|
|
381
|
+
* data.txHashes.forEach(hash => {
|
|
382
|
+
* console.log(hash); // e.g., "0x1234abcd..."
|
|
383
|
+
* });
|
|
384
|
+
* }
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
export declare function assertRecordBytesHexArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: {
|
|
388
|
+
byteLength?: ByteLength;
|
|
389
|
+
} & ErrorMetadataParams): asserts record is RecordWithPropertyType<K, BytesHex[]>;
|
|
390
|
+
export declare function assertRecordBytes1HexArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes1Hex[]>;
|
|
391
|
+
export declare function assertRecordBytes8HexArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes8Hex[]>;
|
|
392
|
+
export declare function assertRecordBytes20HexArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes20Hex[]>;
|
|
393
|
+
export declare function assertRecordBytes21HexArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes21Hex[]>;
|
|
394
|
+
export declare function assertRecordBytes32HexArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes32Hex[]>;
|
|
395
|
+
export declare function assertRecordBytes65HexArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: ErrorMetadataParams): asserts record is RecordWithPropertyType<K, Bytes65Hex[]>;
|
|
396
|
+
/**
|
|
397
|
+
* Assertion function that validates a property exists on an object, is an array,
|
|
398
|
+
* and every element is a valid hex bytes string (without "0x" prefix).
|
|
399
|
+
* Throws an `InvalidPropertyError` if validation fails.
|
|
400
|
+
*
|
|
401
|
+
* @template K - The property key type (string literal)
|
|
402
|
+
* @param record - The value to validate (can be any type)
|
|
403
|
+
* @param property - The property name to check for
|
|
404
|
+
* @param recordName - The name of the object being validated (used in error messages)
|
|
405
|
+
* @throws {InvalidPropertyError} When the property is missing, not an array, or any element is not valid BytesHexNo0x
|
|
406
|
+
* @throws {never} No other errors are thrown
|
|
407
|
+
*
|
|
408
|
+
* @example
|
|
409
|
+
* ```typescript
|
|
410
|
+
* function processSignatures(data: unknown) {
|
|
411
|
+
* assertRecordBytesHexNo0xArrayProperty(data, 'signatures', 'response');
|
|
412
|
+
* data.signatures.forEach(sig => {
|
|
413
|
+
* console.log(sig); // e.g., "1234abcd..." (no 0x prefix)
|
|
414
|
+
* });
|
|
415
|
+
* }
|
|
416
|
+
* ```
|
|
417
|
+
*/
|
|
418
|
+
export declare function assertRecordBytesHexNo0xArrayProperty<K extends string>(record: unknown, property: K, recordName: string, options: {
|
|
419
|
+
byteLength?: ByteLength;
|
|
420
|
+
} & ErrorMetadataParams): asserts record is RecordWithPropertyType<K, BytesHexNo0x[]>;
|
|
421
|
+
export declare function isRecordUint8ArrayProperty<K extends string>(o: unknown, property: K): o is RecordUint8ArrayPropertyType<K>;
|
|
422
|
+
export declare function assertRecordUint8ArrayProperty<K extends string>(o: unknown, property: K, objName: string, options: ErrorMetadataParams): asserts o is RecordWithPropertyType<K, Uint8Array>;
|
|
423
|
+
/**
|
|
424
|
+
* Convert a Uint8Array to a hex string (without 0x prefix).
|
|
425
|
+
*
|
|
426
|
+
* @param bytes - The byte array to convert. If `undefined` or empty, returns `""`.
|
|
427
|
+
* @returns A lowercase hex string with even length (2 chars per byte), without `0x` prefix.
|
|
428
|
+
*
|
|
429
|
+
* @example
|
|
430
|
+
* bytesToHexNo0x(new Uint8Array([0x48, 0x65])) // "4865"
|
|
431
|
+
* bytesToHexNo0x(new Uint8Array([0x0a])) // "0a"
|
|
432
|
+
* bytesToHexNo0x(undefined) // ""
|
|
433
|
+
* bytesToHexNo0x(new Uint8Array([])) // ""
|
|
434
|
+
*/
|
|
435
|
+
export declare function bytesToHexNo0x(bytes: Uint8Array | undefined): BytesHexNo0x;
|
|
436
|
+
/**
|
|
437
|
+
* Convert a Uint8Array to a `0x`-prefixed hex string.
|
|
438
|
+
*
|
|
439
|
+
* @param bytes - The byte array to convert. If `undefined` or empty, returns `"0x"`.
|
|
440
|
+
* @returns A lowercase `0x`-prefixed hex string with even length (2 chars per byte after prefix).
|
|
441
|
+
*
|
|
442
|
+
* @example
|
|
443
|
+
* bytesToHex(new Uint8Array([0x48, 0x65])) // "0x4865"
|
|
444
|
+
* bytesToHex(new Uint8Array([0x0a])) // "0x0a"
|
|
445
|
+
* bytesToHex(undefined) // "0x"
|
|
446
|
+
* bytesToHex(new Uint8Array([])) // "0x"
|
|
447
|
+
*/
|
|
448
|
+
export declare function bytesToHex(bytes: Uint8Array | undefined): BytesHex;
|
|
449
|
+
/**
|
|
450
|
+
* Convert a 1-byte long Uint8Array to a 0x prefixed hex string (length=4)
|
|
451
|
+
*/
|
|
452
|
+
export declare function bytes1ToHex(bytes: unknown): Bytes1Hex;
|
|
453
|
+
/**
|
|
454
|
+
* Convert a 8-bytes long Uint8Array to a 0x prefixed hex string (length=18)
|
|
455
|
+
*/
|
|
456
|
+
export declare function bytes8ToHex(bytes: unknown): Bytes8Hex;
|
|
457
|
+
/**
|
|
458
|
+
* Convert a 20-bytes long Uint8Array to a 0x prefixed hex string (length=42)
|
|
459
|
+
*/
|
|
460
|
+
export declare function bytes20ToHex(bytes: unknown): Bytes20Hex;
|
|
461
|
+
/**
|
|
462
|
+
* Convert a 21-bytes long Uint8Array to a 0x prefixed hex string (length=44)
|
|
463
|
+
*/
|
|
464
|
+
export declare function bytes21ToHex(bytes: unknown): Bytes21Hex;
|
|
465
|
+
/**
|
|
466
|
+
* Convert a 32-bytes long Uint8Array to a 0x prefixed hex string (length=66).
|
|
467
|
+
*
|
|
468
|
+
* @param bytes - Input to convert (asserted to be Bytes32)
|
|
469
|
+
* @returns Hex string with 0x prefix
|
|
470
|
+
* @throws Error if bytes is not a valid 32-byte Uint8Array
|
|
471
|
+
*/
|
|
472
|
+
export declare function bytes32ToHex(bytes: unknown): Bytes32Hex;
|
|
473
|
+
/**
|
|
474
|
+
* Convert a 65-bytes long Uint8Array to a 0x prefixed hex string (length=132)
|
|
475
|
+
*/
|
|
476
|
+
export declare function bytes65ToHex(bytes: Uint8Array | undefined): Bytes65Hex;
|
|
477
|
+
/**
|
|
478
|
+
* Converts a Uint8Array to a hex string, optimized for large byte arrays.
|
|
479
|
+
*
|
|
480
|
+
* Unlike {@link bytesToHex}, this function avoids `Array.from` and string
|
|
481
|
+
* concatenation, making it more efficient for large inputs.
|
|
482
|
+
*
|
|
483
|
+
* @param bytes - The byte array to convert
|
|
484
|
+
* @param no0x - If `true`, returns the hex string without the `0x` prefix
|
|
485
|
+
* @returns The hex string representation of the bytes
|
|
486
|
+
* @example bytesToHexLarge(new Uint8Array([255, 0]), false) // '0xff00'
|
|
487
|
+
* @example bytesToHexLarge(new Uint8Array([255, 0]), true) // 'ff00'
|
|
488
|
+
*/
|
|
489
|
+
export declare function bytesToHexLarge(bytes: Uint8Array, no0x: true): BytesHexNo0x;
|
|
490
|
+
export declare function bytesToHexLarge(bytes: Uint8Array, no0x?: false): BytesHex;
|
|
491
|
+
/**
|
|
492
|
+
* Convert a hex string prefixed by 0x or not to a Uint8Array
|
|
493
|
+
* Any invalid byte string is converted to 0
|
|
494
|
+
* "0xzzff" = [0, 255]
|
|
495
|
+
* "0xzfff" = [0, 255]
|
|
496
|
+
*/
|
|
497
|
+
export declare function hexToBytes(hexString: string): Uint8Array;
|
|
498
|
+
/**
|
|
499
|
+
* Convert a hex string (with or without 0x prefix) to a 1-byte Uint8Array.
|
|
500
|
+
* Left-pads with zeros if shorter than 1 byte.
|
|
501
|
+
* Empty string or "0x" returns 1 zero byte.
|
|
502
|
+
*
|
|
503
|
+
* @param hexString - Hex string with or without 0x prefix
|
|
504
|
+
* @returns 1-byte Uint8Array
|
|
505
|
+
* @throws Error if hex string has odd length or exceeds 2 hex characters
|
|
506
|
+
*
|
|
507
|
+
* @example
|
|
508
|
+
* // Full 1-byte input
|
|
509
|
+
* hexToBytes1("0xff") // Uint8Array [255]
|
|
510
|
+
*
|
|
511
|
+
* @example
|
|
512
|
+
* // Empty input - returns 1 zero byte
|
|
513
|
+
* hexToBytes1("") // Uint8Array [0]
|
|
514
|
+
* hexToBytes1("0x") // Uint8Array [0]
|
|
515
|
+
*/
|
|
516
|
+
export declare function hexToBytes1(hexString: string): Bytes1;
|
|
517
|
+
/**
|
|
518
|
+
* Convert a hex string (with or without 0x prefix) to an 8-byte Uint8Array.
|
|
519
|
+
* Left-pads with zeros if shorter than 8 bytes.
|
|
520
|
+
* Empty string or "0x" returns 8 zero bytes.
|
|
521
|
+
*
|
|
522
|
+
* @param hexString - Hex string with or without 0x prefix
|
|
523
|
+
* @returns 8-byte Uint8Array
|
|
524
|
+
* @throws Error if hex string has odd length or exceeds 16 hex characters
|
|
525
|
+
*
|
|
526
|
+
* @example
|
|
527
|
+
* // Full 8-byte input
|
|
528
|
+
* hexToBytes8("0x0102030405060708") // Uint8Array [1,2,3,4,5,6,7,8]
|
|
529
|
+
*
|
|
530
|
+
* @example
|
|
531
|
+
* // Short input - left-padded with zeros
|
|
532
|
+
* hexToBytes8("0x1234") // Uint8Array [0,0,0,0,0,0,0x12,0x34]
|
|
533
|
+
* hexToBytes8("1234") // Same result, 0x prefix optional
|
|
534
|
+
* hexToBytes8("0xff") // Uint8Array [0,0,0,0,0,0,0,255]
|
|
535
|
+
*
|
|
536
|
+
* @example
|
|
537
|
+
* // Empty input - returns 8 zero bytes
|
|
538
|
+
* hexToBytes8("") // Uint8Array [0,0,0,0,0,0,0,0]
|
|
539
|
+
* hexToBytes8("0x") // Uint8Array [0,0,0,0,0,0,0,0]
|
|
540
|
+
*/
|
|
541
|
+
export declare function hexToBytes8(hexString: string): Bytes8;
|
|
542
|
+
/**
|
|
543
|
+
* Convert a hex string (with or without 0x prefix) to a 20-byte Uint8Array.
|
|
544
|
+
* Left-pads with zeros if shorter than 20 bytes.
|
|
545
|
+
* Empty string or "0x" returns 20 zero bytes.
|
|
546
|
+
*
|
|
547
|
+
* @param hexString - Hex string with or without 0x prefix
|
|
548
|
+
* @returns 20-byte Uint8Array (suitable for Ethereum addresses)
|
|
549
|
+
* @throws Error if hex string has odd length or exceeds 40 hex characters
|
|
550
|
+
*
|
|
551
|
+
* @example
|
|
552
|
+
* // Full 20-byte address
|
|
553
|
+
* hexToBytes20("0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00")
|
|
554
|
+
* // Uint8Array [0x74,0x2d,0x35,...,0xf8,0xfe,0x00]
|
|
555
|
+
*
|
|
556
|
+
* @example
|
|
557
|
+
* // Short input - left-padded with zeros
|
|
558
|
+
* hexToBytes20("0x1234") // Uint8Array [0,0,...,0,0x12,0x34] (18 zeros + 2 bytes)
|
|
559
|
+
* hexToBytes20("0xff") // Uint8Array [0,0,...,0,255] (19 zeros + 1 byte)
|
|
560
|
+
*
|
|
561
|
+
* @example
|
|
562
|
+
* // Empty input - returns 20 zero bytes
|
|
563
|
+
* hexToBytes20("") // Uint8Array [0,0,0,...,0] (20 zeros)
|
|
564
|
+
* hexToBytes20("0x") // Uint8Array [0,0,0,...,0] (20 zeros)
|
|
565
|
+
*/
|
|
566
|
+
export declare function hexToBytes20(hexString: string): Bytes20;
|
|
567
|
+
/**
|
|
568
|
+
* Convert a hex string (with or without 0x prefix) to a 21-byte Uint8Array.
|
|
569
|
+
* Left-pads with zeros if shorter than 21 bytes.
|
|
570
|
+
* Empty string or "0x" returns 21 zero bytes.
|
|
571
|
+
*
|
|
572
|
+
* @param hexString - Hex string with or without 0x prefix
|
|
573
|
+
* @returns 21-byte Uint8Array
|
|
574
|
+
* @throws Error if hex string has odd length or exceeds 42 hex characters
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* // Full 21-byte input
|
|
578
|
+
* hexToBytes21("0x01" + "00".repeat(20)) // Uint8Array [1,0,0,...,0] (21 bytes)
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
* // Short input - left-padded with zeros
|
|
582
|
+
* hexToBytes21("0x1234") // Uint8Array [0,0,...,0,0x12,0x34] (19 zeros + 2 bytes)
|
|
583
|
+
* hexToBytes21("0xff") // Uint8Array [0,0,...,0,255] (20 zeros + 1 byte)
|
|
584
|
+
*
|
|
585
|
+
* @example
|
|
586
|
+
* // Empty input - returns 21 zero bytes
|
|
587
|
+
* hexToBytes21("") // Uint8Array [0,0,0,...,0] (21 zeros)
|
|
588
|
+
* hexToBytes21("0x") // Uint8Array [0,0,0,...,0] (21 zeros)
|
|
589
|
+
*/
|
|
590
|
+
export declare function hexToBytes21(hexString: string): Bytes21;
|
|
591
|
+
/**
|
|
592
|
+
* Convert a hex string (with or without 0x prefix) to a 32-byte Uint8Array.
|
|
593
|
+
* Left-pads with zeros if shorter than 32 bytes.
|
|
594
|
+
* Empty string or "0x" returns 32 zero bytes.
|
|
595
|
+
*
|
|
596
|
+
* @param hexString - Hex string with or without 0x prefix
|
|
597
|
+
* @returns 32-byte Uint8Array (suitable for hashes, private keys, etc.)
|
|
598
|
+
* @throws Error if hex string has odd length or exceeds 64 hex characters
|
|
599
|
+
*
|
|
600
|
+
* @example
|
|
601
|
+
* // Full 32-byte hash
|
|
602
|
+
* hexToBytes32("0xabcdef..." /* 64 hex chars *\/) // Uint8Array [0xab,0xcd,0xef,...]
|
|
603
|
+
*
|
|
604
|
+
* @example
|
|
605
|
+
* // Short input - left-padded with zeros (useful for encoding small numbers)
|
|
606
|
+
* hexToBytes32("0x1234") // Uint8Array [0,0,...,0,0x12,0x34] (30 zeros + 2 bytes)
|
|
607
|
+
* hexToBytes32("0x01") // Uint8Array [0,0,...,0,1] (31 zeros + 1 byte)
|
|
608
|
+
* hexToBytes32("0xff") // Uint8Array [0,0,...,0,255] (31 zeros + 1 byte)
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* // Empty input - returns 32 zero bytes
|
|
612
|
+
* hexToBytes32("") // Uint8Array [0,0,0,...,0] (32 zeros)
|
|
613
|
+
* hexToBytes32("0x") // Uint8Array [0,0,0,...,0] (32 zeros)
|
|
614
|
+
*/
|
|
615
|
+
export declare function hexToBytes32(hexString: string): Bytes32;
|
|
616
|
+
/**
|
|
617
|
+
* Convert a hex string (with or without 0x prefix) to a 65-byte Uint8Array.
|
|
618
|
+
* Left-pads with zeros if shorter than 65 bytes.
|
|
619
|
+
* Empty string or "0x" returns 65 zero bytes.
|
|
620
|
+
*
|
|
621
|
+
* @param hexString - Hex string with or without 0x prefix
|
|
622
|
+
* @returns 65-byte Uint8Array (suitable for ECDSA signatures with recovery byte)
|
|
623
|
+
* @throws Error if hex string has odd length or exceeds 130 hex characters
|
|
624
|
+
*
|
|
625
|
+
* @example
|
|
626
|
+
* // Full 65-byte signature (r + s + v)
|
|
627
|
+
* hexToBytes65("0x" + "ab".repeat(65)) // Uint8Array [0xab,0xab,...] (65 bytes)
|
|
628
|
+
*
|
|
629
|
+
* @example
|
|
630
|
+
* // Short input - left-padded with zeros
|
|
631
|
+
* hexToBytes65("0x1234") // Uint8Array [0,0,...,0,0x12,0x34] (63 zeros + 2 bytes)
|
|
632
|
+
* hexToBytes65("0xff") // Uint8Array [0,0,...,0,255] (64 zeros + 1 byte)
|
|
633
|
+
*
|
|
634
|
+
* @example
|
|
635
|
+
* // Empty input - returns 65 zero bytes
|
|
636
|
+
* hexToBytes65("") // Uint8Array [0,0,0,...,0] (65 zeros)
|
|
637
|
+
* hexToBytes65("0x") // Uint8Array [0,0,0,...,0] (65 zeros)
|
|
638
|
+
*/
|
|
639
|
+
export declare function hexToBytes65(hexString: string): Bytes65;
|
|
640
|
+
/**
|
|
641
|
+
* Convert a hex string prefixed by 0x or not to a Uint8Array
|
|
642
|
+
*/
|
|
643
|
+
export declare function hexToBytesFaster(hexString: string, options?: {
|
|
644
|
+
strict?: boolean;
|
|
645
|
+
byteLength?: ByteLength;
|
|
646
|
+
subject?: string;
|
|
647
|
+
} & ErrorMetadataParams): Uint8Array;
|
|
648
|
+
/**
|
|
649
|
+
* Convert a Uint8Array to a bigint (big-endian interpretation).
|
|
650
|
+
* The most significant byte is at index 0.
|
|
651
|
+
*
|
|
652
|
+
* @param byteArray - The byte array to convert (big-endian)
|
|
653
|
+
* @returns The bigint representation of the bytes
|
|
654
|
+
*
|
|
655
|
+
* @example
|
|
656
|
+
* // Standard conversion (big-endian)
|
|
657
|
+
* bytesToBigInt(new Uint8Array([0x01, 0x00])) // 256n (0x0100)
|
|
658
|
+
* bytesToBigInt(new Uint8Array([0xff])) // 255n
|
|
659
|
+
* bytesToBigInt(new Uint8Array([0x01, 0x02, 0x03])) // 66051n (0x010203)
|
|
660
|
+
*
|
|
661
|
+
* @example
|
|
662
|
+
* // Edge cases
|
|
663
|
+
* bytesToBigInt(new Uint8Array([])) // 0n
|
|
664
|
+
* bytesToBigInt(new Uint8Array([0])) // 0n
|
|
665
|
+
* bytesToBigInt(undefined) // 0n
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* // 32-byte value (e.g., uint256)
|
|
669
|
+
* const bytes32 = new Uint8Array(32);
|
|
670
|
+
* bytes32[31] = 0x2a; // 42 in last byte
|
|
671
|
+
* bytesToBigInt(bytes32) // 42n
|
|
672
|
+
*/
|
|
673
|
+
export declare function bytesToBigInt(byteArray: Uint8Array | undefined): UintBigInt;
|
|
674
|
+
/**
|
|
675
|
+
* Converts a non-negative bigint to a `0x`-prefixed hex string.
|
|
676
|
+
*
|
|
677
|
+
* When `byteLength` is provided, the output is zero-padded to exactly
|
|
678
|
+
* that many bytes and an overflow check is performed.
|
|
679
|
+
* When omitted, the output is the minimal even-length hex representation.
|
|
680
|
+
*
|
|
681
|
+
* @param value - Non-negative bigint to convert
|
|
682
|
+
* @param options.byteLength - Fixed byte width (enables zero-padding and overflow check)
|
|
683
|
+
* @param options.subject - Name used in error messages
|
|
684
|
+
* @returns `0x`-prefixed hex string
|
|
685
|
+
* @throws {InvalidTypeError} If value is negative or exceeds the byte length
|
|
686
|
+
*
|
|
687
|
+
* @example
|
|
688
|
+
* ```typescript
|
|
689
|
+
* bigIntToBytesHex(0n) // '0x00'
|
|
690
|
+
* bigIntToBytesHex(255n) // '0xff'
|
|
691
|
+
* bigIntToBytesHex(256n) // '0x0100'
|
|
692
|
+
* bigIntToBytesHex(1n, { byteLength: 4 }) // '0x00000001'
|
|
693
|
+
* bigIntToBytesHex(255n, { byteLength: 1 }) // '0xff'
|
|
694
|
+
* bigIntToBytesHex(256n, { byteLength: 1 }) // throws (overflow)
|
|
695
|
+
* bigIntToBytesHex(-1n) // throws (negative)
|
|
696
|
+
* ```
|
|
697
|
+
*/
|
|
698
|
+
export declare function bigIntToBytesHex(value: bigint, options: {
|
|
699
|
+
byteLength: 1;
|
|
700
|
+
subject?: string;
|
|
701
|
+
} & ErrorMetadataParams): Bytes1Hex;
|
|
702
|
+
export declare function bigIntToBytesHex(value: bigint, options: {
|
|
703
|
+
byteLength: 8;
|
|
704
|
+
subject?: string;
|
|
705
|
+
} & ErrorMetadataParams): Bytes8Hex;
|
|
706
|
+
export declare function bigIntToBytesHex(value: bigint, options: {
|
|
707
|
+
byteLength: 20;
|
|
708
|
+
subject?: string;
|
|
709
|
+
} & ErrorMetadataParams): Bytes20Hex;
|
|
710
|
+
export declare function bigIntToBytesHex(value: bigint, options: {
|
|
711
|
+
byteLength: 32;
|
|
712
|
+
subject?: string;
|
|
713
|
+
} & ErrorMetadataParams): Bytes32Hex;
|
|
714
|
+
export declare function bigIntToBytesHex(value: bigint, options?: {
|
|
715
|
+
byteLength?: 1 | 2 | 4 | 8 | 16 | 20 | 32;
|
|
716
|
+
subject?: string;
|
|
717
|
+
} & ErrorMetadataParams): BytesHex;
|
|
718
|
+
/**
|
|
719
|
+
* Converts an array of Bytes32 or Bytes32Hex values to a uniform Bytes32Hex array.
|
|
720
|
+
* Accepts mixed input: both 32-byte Uint8Arrays and hex strings are normalized to Bytes32Hex.
|
|
721
|
+
*
|
|
722
|
+
* @param arr - Array of Bytes32 (Uint8Array) or Bytes32Hex (string) or Bytes32HexAble values.
|
|
723
|
+
* @returns Array of Bytes32Hex strings.
|
|
724
|
+
*/
|
|
725
|
+
export declare function toBytes32HexArray(arr: readonly unknown[]): Bytes32Hex[];
|
|
726
|
+
/**
|
|
727
|
+
* Converts a Bytes32 or Bytes32Hex values to a Bytes32.
|
|
728
|
+
* Accepts mixed input: both 32-byte Uint8Arrays and hex strings are normalized to Bytes32.
|
|
729
|
+
*/
|
|
730
|
+
export declare function toBytes32(value: unknown): Bytes32;
|
|
731
|
+
/**
|
|
732
|
+
* Converts a Bytes or BytesHex values to a Bytes.
|
|
733
|
+
* Accepts mixed input: both n-byte Uint8Arrays and hex strings are normalized to Bytes.
|
|
734
|
+
*/
|
|
735
|
+
export declare function toBytes(value: unknown, options?: {
|
|
736
|
+
byteLength?: ByteLength;
|
|
737
|
+
subject?: string;
|
|
738
|
+
copy?: boolean;
|
|
739
|
+
} & ErrorMetadataParams): Bytes;
|
|
740
|
+
export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array;
|
|
741
|
+
export declare function concatBytesHex(values: BytesHex[]): BytesHex;
|
|
742
|
+
/**
|
|
743
|
+
* Compares two byte arrays for equality.
|
|
744
|
+
*
|
|
745
|
+
* **⚠️ WARNING: NOT TIMING-SAFE**
|
|
746
|
+
*
|
|
747
|
+
* This function uses early-exit comparison which leaks timing information
|
|
748
|
+
* about where the first difference occurs. Do NOT use for comparing:
|
|
749
|
+
* - Secret keys or passwords
|
|
750
|
+
* - HMACs or authentication tags
|
|
751
|
+
* - Any security-sensitive data
|
|
752
|
+
*
|
|
753
|
+
* For security-sensitive comparisons, use a timing-safe equals function instead.
|
|
754
|
+
*
|
|
755
|
+
* @param a - First byte array
|
|
756
|
+
* @param b - Second byte array
|
|
757
|
+
* @returns true if arrays are equal, false otherwise
|
|
758
|
+
*/
|
|
759
|
+
export declare function unsafeBytesEquals(a: unknown, b: unknown): boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Normalizes byte-like values to a Uint8Array.
|
|
762
|
+
*
|
|
763
|
+
* Handles both same-realm and cross-realm inputs (e.g., from iframes or
|
|
764
|
+
* different JavaScript contexts).
|
|
765
|
+
*
|
|
766
|
+
* Supported input types:
|
|
767
|
+
* - `Uint8Array` - returned as-is (same-realm) or re-wrapped (cross-realm)
|
|
768
|
+
* - `ArrayBuffer` - wrapped in a new Uint8Array
|
|
769
|
+
*
|
|
770
|
+
* Other TypedArray types (Uint16Array, Int32Array, etc.) are explicitly
|
|
771
|
+
* rejected to prevent silent endianness-dependent byte reinterpretation.
|
|
772
|
+
*
|
|
773
|
+
* @param value - The value to normalize
|
|
774
|
+
* @returns A `Uint8Array` representing the bytes
|
|
775
|
+
* @throws `TypeError` If the value is not a Uint8Array or ArrayBuffer
|
|
776
|
+
*
|
|
777
|
+
* @example
|
|
778
|
+
* ```ts
|
|
779
|
+
* normalizeBytes(new Uint8Array([1, 2, 3])); // ✅ returns as-is
|
|
780
|
+
* normalizeBytes(new ArrayBuffer(8)); // ✅ wraps in Uint8Array
|
|
781
|
+
* normalizeBytes(new Uint16Array([1, 2])); // ❌ throws TypeError
|
|
782
|
+
* normalizeBytes(iframeUint8Array); // ✅ cross-realm supported
|
|
783
|
+
* ```
|
|
784
|
+
*/
|
|
785
|
+
export declare function normalizeBytes(value: unknown): Bytes;
|
|
786
|
+
/**
|
|
787
|
+
* Extracts a single byte from a bytes array at the given byte position.
|
|
788
|
+
* @param bytes - The bytes array (Uint8Array)
|
|
789
|
+
* @param position - Byte position (0-indexed)
|
|
790
|
+
* @returns The byte value as Uint8Number (0-255)
|
|
791
|
+
* @throws RangeError if position is out of bounds
|
|
792
|
+
*/
|
|
793
|
+
export declare function bytesUint8At(bytes: Bytes, position: Uint8Number): Uint8Number;
|
|
794
|
+
/**
|
|
795
|
+
* Extracts a single byte from a 0x-hex string at the given byte position.
|
|
796
|
+
* @param bytesHex - The hex string (0x-prefixed)
|
|
797
|
+
* @param position - Byte position (0-indexed)
|
|
798
|
+
* @throws `RangeError` if position is out of bounds
|
|
799
|
+
*/
|
|
800
|
+
export declare function bytesHexUint8At(bytesHex: BytesHex, position: Uint8Number): Uint8Number;
|
|
801
|
+
/**
|
|
802
|
+
* Extracts a Uint64 (8 bytes) from a 0x-hex string at the given byte position.
|
|
803
|
+
* @param bytesHex - The hex string (0x-prefixed)
|
|
804
|
+
* @param position - Byte position (0-indexed)
|
|
805
|
+
* @throws `RangeError` if position is out of bounds
|
|
806
|
+
*/
|
|
807
|
+
export declare function bytesHexUint64At(bytesHex: BytesHex, position: Uint8Number): Uint64BigInt;
|
|
808
|
+
/**
|
|
809
|
+
* Extracts a slice of bytes from a hex string starting at the given byte position.
|
|
810
|
+
* @param bytesHex - The hex string (0x-prefixed)
|
|
811
|
+
* @param position - Starting byte position (0-indexed)
|
|
812
|
+
* @param length - Number of bytes to extract (1, 8, 20, 21, 32, 65 for typed result, or any number for BytesHex)
|
|
813
|
+
* @throws `RangeError` if position + length is out of bounds
|
|
814
|
+
*/
|
|
815
|
+
export declare function bytesHexSlice(bytesHex: BytesHex, position: Uint8Number, length: 1): Bytes1Hex;
|
|
816
|
+
export declare function bytesHexSlice(bytesHex: BytesHex, position: Uint8Number, length: 8): Bytes8Hex;
|
|
817
|
+
export declare function bytesHexSlice(bytesHex: BytesHex, position: Uint8Number, length: 20): Bytes20Hex;
|
|
818
|
+
export declare function bytesHexSlice(bytesHex: BytesHex, position: Uint8Number, length: 21): Bytes21Hex;
|
|
819
|
+
export declare function bytesHexSlice(bytesHex: BytesHex, position: Uint8Number, length: 32): Bytes32Hex;
|
|
820
|
+
export declare function bytesHexSlice(bytesHex: BytesHex, position: Uint8Number, length: 65): Bytes65Hex;
|
|
821
|
+
export declare function bytesHexSlice(bytesHex: BytesHex, position: Uint8Number, length: UintNumber): BytesHex;
|
|
822
|
+
//# sourceMappingURL=bytes.d.ts.map
|