@fhevm/sdk 1.1.0-alpha.5 → 1.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/core/_version.js +1 -1
- package/_cjs/core/actions/base/index.js +1 -17
- package/_cjs/core/actions/base/index.js.map +1 -1
- package/_cjs/core/actions/base/signDecryptionPermit.js +0 -3
- package/_cjs/core/actions/base/signDecryptionPermit.js.map +1 -1
- package/_cjs/core/actions/chain/index.js +1 -13
- package/_cjs/core/actions/chain/index.js.map +1 -1
- package/_cjs/core/actions/chain/parseSignedDecryptionPermit.js.map +1 -1
- package/_cjs/core/actions/chain/serializeSignedDecryptionPermit.js.map +1 -1
- package/_cjs/core/actions/decrypt/canDecryptValue.js.map +1 -1
- package/_cjs/core/actions/decrypt/canDecryptValues.js.map +1 -1
- package/_cjs/core/actions/decrypt/canDecryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/actions/decrypt/decryptValue.js +1 -0
- package/_cjs/core/actions/decrypt/decryptValue.js.map +1 -1
- package/_cjs/core/actions/decrypt/decryptValues.js +2 -0
- package/_cjs/core/actions/decrypt/decryptValues.js.map +1 -1
- package/_cjs/core/actions/decrypt/decryptValuesFromPairs.js +2 -0
- package/_cjs/core/actions/decrypt/decryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/actions/decrypt/index.js +1 -3
- package/_cjs/core/actions/decrypt/index.js.map +1 -1
- package/_cjs/core/actions/host/index.js +1 -9
- package/_cjs/core/actions/host/index.js.map +1 -1
- package/_cjs/core/base/bytes.js +2 -1
- package/_cjs/core/base/bytes.js.map +1 -1
- package/_cjs/core/base/cachedFetch.js +2 -1
- package/_cjs/core/base/cachedFetch.js.map +1 -1
- package/_cjs/core/base/environment.js +122 -0
- package/_cjs/core/base/environment.js.map +1 -0
- package/_cjs/core/base/errors/Sha256VerificationError.js +15 -0
- package/_cjs/core/base/errors/Sha256VerificationError.js.map +1 -0
- package/_cjs/core/base/inflate.js +282 -0
- package/_cjs/core/base/inflate.js.map +1 -0
- package/_cjs/core/base/isomorphicFs.js +24 -0
- package/_cjs/core/base/isomorphicFs.js.map +1 -0
- package/_cjs/core/base/isomorphicWorker.js +42 -111
- package/_cjs/core/base/isomorphicWorker.js.map +1 -1
- package/_cjs/core/base/uint.js +7 -0
- package/_cjs/core/base/uint.js.map +1 -1
- package/_cjs/core/base/wasm.js +15 -55
- package/_cjs/core/base/wasm.js.map +1 -1
- package/_cjs/core/clients/decorators/base.js +1 -1
- package/_cjs/core/clients/decorators/base.js.map +1 -1
- package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js +4 -1
- package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js +1 -1
- package/_cjs/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js.map +1 -1
- package/_cjs/core/host-contracts/getCurrentKmsContextAndEpoch-p.js +1 -1
- package/_cjs/core/host-contracts/getCurrentKmsContextAndEpoch-p.js.map +1 -1
- package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js +1 -1
- package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -1
- package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js +1 -1
- package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -1
- package/_cjs/core/kms/PublicDecryptionProof-p.js +4 -4
- package/_cjs/core/kms/SignedDecryptionPermit-p.js +33 -199
- package/_cjs/core/kms/SignedDecryptionPermit-p.js.map +1 -1
- package/_cjs/core/kms/SignedDecryptionPermitV1-p.js +217 -0
- package/_cjs/core/kms/SignedDecryptionPermitV1-p.js.map +1 -0
- package/_cjs/core/kms/SignedDecryptionPermitV2-p.js +184 -0
- package/_cjs/core/kms/SignedDecryptionPermitV2-p.js.map +1 -0
- package/_cjs/core/kms/TransportKeyPair-p.js +0 -4
- package/_cjs/core/kms/TransportKeyPair-p.js.map +1 -1
- package/_cjs/core/kms/{createKmsDelegatedUserDecryptEip712.js → createKmsDelegatedUserDecryptEip712V1.js} +9 -9
- package/_cjs/core/kms/createKmsDelegatedUserDecryptEip712V1.js.map +1 -0
- package/_cjs/core/kms/{createKmsUserDecryptEip712.js → createKmsUserDecryptEip712V1.js} +18 -14
- package/_cjs/core/kms/createKmsUserDecryptEip712V1.js.map +1 -0
- package/_cjs/core/kms/decryptValuesFromPairs.js +18 -2
- package/_cjs/core/kms/decryptValuesFromPairs.js.map +1 -1
- package/_cjs/core/kms/{fetchKmsSigncryptedShares-p.js → fetchKmsSigncryptedSharesV1-p.js} +18 -8
- package/_cjs/core/kms/fetchKmsSigncryptedSharesV1-p.js.map +1 -0
- package/_cjs/core/kms/fetchKmsSigncryptedSharesV2-p.js +95 -0
- package/_cjs/core/kms/fetchKmsSigncryptedSharesV2-p.js.map +1 -0
- package/_cjs/core/kms/{kmsDelegatedUserDecryptEip712Types.js → kmsDelegatedUserDecryptEip712V1Types.js} +8 -8
- package/_cjs/core/kms/kmsDelegatedUserDecryptEip712V1Types.js.map +1 -0
- package/_cjs/core/kms/{kmsUserDecryptEip712Types.js → kmsUserDecryptEip712V1Types.js} +8 -8
- package/_cjs/core/kms/kmsUserDecryptEip712V1Types.js.map +1 -0
- package/_cjs/core/kms/kmsUserDecryptEip712V2Types.js.map +1 -1
- package/_cjs/core/kms/publicDecrypt.js +2 -2
- package/_cjs/core/kms/utils.js +0 -19
- package/_cjs/core/kms/utils.js.map +1 -1
- package/_cjs/core/kms/verifyKmsPublicDecryptEip712-p.js +1 -1
- package/_cjs/core/modules/decrypt/module/api-p.js +5 -5
- package/_cjs/core/modules/decrypt/module/init-p.js +124 -40
- package/_cjs/core/modules/decrypt/module/init-p.js.map +1 -1
- package/_cjs/core/modules/encrypt/module/init-p.js +153 -49
- package/_cjs/core/modules/encrypt/module/init-p.js.map +1 -1
- package/_cjs/core/modules/relayer/cleartext/fetchPublicDecrypt.js +3 -3
- package/_cjs/core/modules/relayer/cleartext/fetchUserDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/{fetchDelegatedUserDecrypt.js → fetchDelegatedUserDecryptV1.js} +1 -1
- package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecryptV1.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js +1 -1
- package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js +11 -45
- package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
- package/_cjs/core/modules/relayer/module/fetchUserDecryptV1.js +52 -0
- package/_cjs/core/modules/relayer/module/fetchUserDecryptV1.js.map +1 -0
- package/_cjs/core/modules/relayer/module/fetchUserDecryptV2.js +54 -0
- package/_cjs/core/modules/relayer/module/fetchUserDecryptV2.js.map +1 -0
- package/_cjs/core/modules/relayer/module/guards/RelayerResponseFailed.js +10 -2
- package/_cjs/core/modules/relayer/module/guards/RelayerResponseFailed.js.map +1 -1
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js +5 -2
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js.map +1 -1
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js +2 -0
- package/_cjs/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js.map +1 -1
- package/_cjs/core/modules/relayer/module/index.js +2 -2
- package/_cjs/core/modules/relayer/module/index.js.map +1 -1
- package/_cjs/core/runtime/HyperWasmSolver-p.js +5 -10
- package/_cjs/core/runtime/HyperWasmSolver-p.js.map +1 -1
- package/_cjs/core/runtime/initFhevmEncryptRuntime-p.js +1 -1
- package/_cjs/core/runtime/initFhevmRuntime-p.js +1 -1
- package/_cjs/core/utils-p/decrypt/{verifyKmsDelegatedUserDecryptEip712.js → verifyKmsDelegatedUserDecryptEip712V1.js} +5 -5
- package/_cjs/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712V1.js.map +1 -0
- package/_cjs/core/utils-p/decrypt/{verifyKmsUserDecryptEip712.js → verifyKmsUserDecryptEip712V1.js} +5 -5
- package/_cjs/core/utils-p/decrypt/verifyKmsUserDecryptEip712V1.js.map +1 -0
- package/_cjs/core/utils-p/decrypt/verifyKmsUserDecryptEip712V2.js +30 -0
- package/_cjs/core/utils-p/decrypt/verifyKmsUserDecryptEip712V2.js.map +1 -0
- package/_cjs/wasm/tfhe/TfheApi.d.ts +12 -12
- package/_cjs/wasm/tfhe/loadTfheLib.js +11 -11
- package/_cjs/wasm/tfhe/loadTfheLib.js.map +2 -2
- package/_cjs/wasm/tfhe/v1.5.3/startWorkers.js +26 -9
- package/_cjs/wasm/tfhe/v1.5.3/startWorkers.js.map +2 -2
- package/_cjs/wasm/tfhe/v1.5.3/tfhe.d.ts +3 -0
- package/_cjs/wasm/tfhe/{v1.6.1 → v1.6.2}/startWorkers.js +28 -11
- package/_cjs/wasm/tfhe/v1.6.2/startWorkers.js.map +7 -0
- package/_cjs/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe-worker.mjs +40 -40
- package/_cjs/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe.d.ts +88 -85
- package/_cjs/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe.js +245 -442
- package/_cjs/wasm/tfhe/v1.6.2/tfhe.js.map +7 -0
- package/_cjs/wasm/tfhe/v1.6.2/tfhe_bg.wasm +0 -0
- package/_cjs/wasm/tfhe/v1.6.2/tfhe_bg.wasm.base64.js +35 -0
- package/_cjs/wasm/tfhe/v1.6.2/tfhe_bg.wasm.base64.js.map +7 -0
- package/_cjs/wasm/tkms/loadKmsLib.js.map +1 -1
- package/_cjs/wasm/wasmBaseUrl.js +8 -19
- package/_cjs/wasm/wasmBaseUrl.js.map +2 -2
- package/_esm/core/_version.js +1 -1
- package/_esm/core/actions/base/index.js +0 -8
- package/_esm/core/actions/base/index.js.map +1 -1
- package/_esm/core/actions/base/signDecryptionPermit.js +0 -6
- package/_esm/core/actions/base/signDecryptionPermit.js.map +1 -1
- package/_esm/core/actions/chain/index.js +0 -6
- package/_esm/core/actions/chain/index.js.map +1 -1
- package/_esm/core/actions/chain/parseSignedDecryptionPermit.js.map +1 -1
- package/_esm/core/actions/chain/serializeSignedDecryptionPermit.js.map +1 -1
- package/_esm/core/actions/decrypt/canDecryptValue.js +40 -0
- package/_esm/core/actions/decrypt/canDecryptValue.js.map +1 -1
- package/_esm/core/actions/decrypt/canDecryptValues.js +1 -0
- package/_esm/core/actions/decrypt/canDecryptValues.js.map +1 -1
- package/_esm/core/actions/decrypt/canDecryptValuesFromPairs.js +1 -0
- package/_esm/core/actions/decrypt/canDecryptValuesFromPairs.js.map +1 -1
- package/_esm/core/actions/decrypt/decryptValue.js +1 -0
- package/_esm/core/actions/decrypt/decryptValue.js.map +1 -1
- package/_esm/core/actions/decrypt/decryptValues.js +2 -0
- package/_esm/core/actions/decrypt/decryptValues.js.map +1 -1
- package/_esm/core/actions/decrypt/decryptValuesFromPairs.js +2 -0
- package/_esm/core/actions/decrypt/decryptValuesFromPairs.js.map +1 -1
- package/_esm/core/actions/decrypt/index.js +0 -1
- package/_esm/core/actions/decrypt/index.js.map +1 -1
- package/_esm/core/actions/host/index.js +0 -4
- package/_esm/core/actions/host/index.js.map +1 -1
- package/_esm/core/base/bytes.js +2 -1
- package/_esm/core/base/bytes.js.map +1 -1
- package/_esm/core/base/cachedFetch.js +1 -0
- package/_esm/core/base/cachedFetch.js.map +1 -1
- package/_esm/core/base/environment.js +164 -0
- package/_esm/core/base/environment.js.map +1 -0
- package/_esm/core/base/errors/Sha256VerificationError.js +11 -0
- package/_esm/core/base/errors/Sha256VerificationError.js.map +1 -0
- package/_esm/core/base/inflate.js +337 -0
- package/_esm/core/base/inflate.js.map +1 -0
- package/_esm/core/base/isomorphicFs.js +21 -0
- package/_esm/core/base/isomorphicFs.js.map +1 -0
- package/_esm/core/base/isomorphicWorker.js +92 -85
- package/_esm/core/base/isomorphicWorker.js.map +1 -1
- package/_esm/core/base/uint.js +7 -0
- package/_esm/core/base/uint.js.map +1 -1
- package/_esm/core/base/wasm.js +25 -31
- package/_esm/core/base/wasm.js.map +1 -1
- package/_esm/core/clients/decorators/base.js +2 -4
- package/_esm/core/clients/decorators/base.js.map +1 -1
- package/_esm/core/coprocessor/coprocessorEip712Types.js +2 -2
- package/_esm/core/host-contracts/canDecryptValuesFromPairs.js +5 -2
- package/_esm/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -1
- package/_esm/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js +2 -2
- package/_esm/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.js.map +1 -1
- package/_esm/core/host-contracts/getCurrentKmsContextAndEpoch-p.js +2 -2
- package/_esm/core/host-contracts/getCurrentKmsContextAndEpoch-p.js.map +1 -1
- package/_esm/core/host-contracts/getCurrentKmsContextId-p.js +2 -2
- package/_esm/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -1
- package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js +2 -2
- package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -1
- package/_esm/core/kms/PublicDecryptionProof-p.js +4 -4
- package/_esm/core/kms/SignedDecryptionPermit-p.js +48 -245
- package/_esm/core/kms/SignedDecryptionPermit-p.js.map +1 -1
- package/_esm/core/kms/SignedDecryptionPermitV1-p.js +258 -0
- package/_esm/core/kms/SignedDecryptionPermitV1-p.js.map +1 -0
- package/_esm/core/kms/SignedDecryptionPermitV2-p.js +204 -0
- package/_esm/core/kms/SignedDecryptionPermitV2-p.js.map +1 -0
- package/_esm/core/kms/TransportKeyPair-p.js +0 -4
- package/_esm/core/kms/TransportKeyPair-p.js.map +1 -1
- package/_esm/core/kms/{createKmsDelegatedUserDecryptEip712.js → createKmsDelegatedUserDecryptEip712V1.js} +8 -8
- package/_esm/core/kms/createKmsDelegatedUserDecryptEip712V1.js.map +1 -0
- package/_esm/core/kms/createKmsPublicDecryptEip712.js +1 -1
- package/_esm/core/kms/{createKmsUserDecryptEip712.js → createKmsUserDecryptEip712V1.js} +18 -14
- package/_esm/core/kms/createKmsUserDecryptEip712V1.js.map +1 -0
- package/_esm/core/kms/decryptValuesFromPairs.js +18 -2
- package/_esm/core/kms/decryptValuesFromPairs.js.map +1 -1
- package/_esm/core/kms/{fetchKmsSigncryptedShares-p.js → fetchKmsSigncryptedSharesV1-p.js} +23 -13
- package/_esm/core/kms/fetchKmsSigncryptedSharesV1-p.js.map +1 -0
- package/_esm/core/kms/fetchKmsSigncryptedSharesV2-p.js +119 -0
- package/_esm/core/kms/fetchKmsSigncryptedSharesV2-p.js.map +1 -0
- package/_esm/core/kms/{kmsDelegatedUserDecryptEip712Types.js → kmsDelegatedUserDecryptEip712V1Types.js} +9 -8
- package/_esm/core/kms/kmsDelegatedUserDecryptEip712V1Types.js.map +1 -0
- package/_esm/core/kms/kmsPublicDecryptEip712Types.js +1 -1
- package/_esm/core/kms/{kmsUserDecryptEip712Types.js → kmsUserDecryptEip712V1Types.js} +9 -8
- package/_esm/core/kms/kmsUserDecryptEip712V1Types.js.map +1 -0
- package/_esm/core/kms/kmsUserDecryptEip712V2Types.js +2 -1
- package/_esm/core/kms/kmsUserDecryptEip712V2Types.js.map +1 -1
- package/_esm/core/kms/publicDecrypt.js +2 -2
- package/_esm/core/kms/utils.js +0 -18
- package/_esm/core/kms/utils.js.map +1 -1
- package/_esm/core/kms/verifyKmsPublicDecryptEip712-p.js +2 -2
- package/_esm/core/modules/decrypt/module/api-p.js +6 -6
- package/_esm/core/modules/decrypt/module/init-p.js +110 -55
- package/_esm/core/modules/decrypt/module/init-p.js.map +1 -1
- package/_esm/core/modules/encrypt/module/init-p.js +306 -57
- package/_esm/core/modules/encrypt/module/init-p.js.map +1 -1
- package/_esm/core/modules/relayer/cleartext/fetchPublicDecrypt.js +3 -3
- package/_esm/core/modules/relayer/cleartext/fetchUserDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/{fetchDelegatedUserDecrypt.js → fetchDelegatedUserDecryptV1.js} +1 -1
- package/_esm/core/modules/relayer/module/fetchDelegatedUserDecryptV1.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js +1 -1
- package/_esm/core/modules/relayer/module/fetchUserDecrypt.js +11 -46
- package/_esm/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
- package/_esm/core/modules/relayer/module/fetchUserDecryptV1.js +53 -0
- package/_esm/core/modules/relayer/module/fetchUserDecryptV1.js.map +1 -0
- package/_esm/core/modules/relayer/module/fetchUserDecryptV2.js +56 -0
- package/_esm/core/modules/relayer/module/fetchUserDecryptV2.js.map +1 -0
- package/_esm/core/modules/relayer/module/guards/RelayerResponseFailed.js +10 -2
- package/_esm/core/modules/relayer/module/guards/RelayerResponseFailed.js.map +1 -1
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js +6 -3
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.js.map +1 -1
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js +2 -0
- package/_esm/core/modules/relayer/module/guards/api-errors/RelayerApiError503.js.map +1 -1
- package/_esm/core/modules/relayer/module/index.js +1 -1
- package/_esm/core/modules/relayer/module/index.js.map +1 -1
- package/_esm/core/runtime/HyperWasmSolver-p.js +5 -10
- package/_esm/core/runtime/HyperWasmSolver-p.js.map +1 -1
- package/_esm/core/runtime/initFhevmEncryptRuntime-p.js +1 -1
- package/_esm/core/runtime/initFhevmRuntime-p.js +1 -1
- package/_esm/core/utils-p/decrypt/{verifyKmsDelegatedUserDecryptEip712.js → verifyKmsDelegatedUserDecryptEip712V1.js} +5 -5
- package/_esm/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712V1.js.map +1 -0
- package/_esm/core/utils-p/decrypt/{verifyKmsUserDecryptEip712.js → verifyKmsUserDecryptEip712V1.js} +5 -5
- package/_esm/core/utils-p/decrypt/verifyKmsUserDecryptEip712V1.js.map +1 -0
- package/_esm/core/utils-p/decrypt/verifyKmsUserDecryptEip712V2.js +27 -0
- package/_esm/core/utils-p/decrypt/verifyKmsUserDecryptEip712V2.js.map +1 -0
- package/_esm/wasm/tfhe/TfheApi.d.ts +12 -12
- package/_esm/wasm/tfhe/loadTfheLib.js +11 -11
- package/_esm/wasm/tfhe/v1.5.3/startWorkers.js +41 -20
- package/_esm/wasm/tfhe/v1.5.3/tfhe.d.ts +3 -0
- package/_esm/wasm/tfhe/{v1.6.1 → v1.6.2}/startWorkers.js +46 -25
- package/_esm/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe-worker.mjs +40 -40
- package/_esm/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe.d.ts +88 -85
- package/_esm/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe.js +245 -442
- package/_esm/wasm/tfhe/v1.6.2/tfhe_bg.wasm +0 -0
- package/_esm/wasm/tfhe/v1.6.2/tfhe_bg.wasm.base64.js +7 -0
- package/_esm/wasm/wasmBaseUrl.js +17 -54
- package/_types/core/actions/base/index.d.ts +0 -8
- package/_types/core/actions/base/index.d.ts.map +1 -1
- package/_types/core/actions/base/signDecryptionPermit.d.ts +4 -5
- package/_types/core/actions/base/signDecryptionPermit.d.ts.map +1 -1
- package/_types/core/actions/chain/index.d.ts +1 -7
- package/_types/core/actions/chain/index.d.ts.map +1 -1
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts +1 -0
- package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts.map +1 -1
- package/_types/core/actions/chain/serializeSignedDecryptionPermit.d.ts +3 -2
- package/_types/core/actions/chain/serializeSignedDecryptionPermit.d.ts.map +1 -1
- package/_types/core/actions/decrypt/canDecryptValue.d.ts +3 -4
- package/_types/core/actions/decrypt/canDecryptValue.d.ts.map +1 -1
- package/_types/core/actions/decrypt/canDecryptValues.d.ts +3 -4
- package/_types/core/actions/decrypt/canDecryptValues.d.ts.map +1 -1
- package/_types/core/actions/decrypt/canDecryptValuesFromPairs.d.ts +3 -4
- package/_types/core/actions/decrypt/canDecryptValuesFromPairs.d.ts.map +1 -1
- package/_types/core/actions/decrypt/decryptValue.d.ts.map +1 -1
- package/_types/core/actions/decrypt/decryptValues.d.ts.map +1 -1
- package/_types/core/actions/decrypt/decryptValuesFromPairs.d.ts.map +1 -1
- package/_types/core/actions/decrypt/index.d.ts +0 -1
- package/_types/core/actions/decrypt/index.d.ts.map +1 -1
- package/_types/core/actions/host/index.d.ts +0 -4
- package/_types/core/actions/host/index.d.ts.map +1 -1
- package/_types/core/base/bytes.d.ts.map +1 -1
- package/_types/core/base/cachedFetch.d.ts +1 -0
- package/_types/core/base/cachedFetch.d.ts.map +1 -1
- package/_types/core/base/environment.d.ts +92 -0
- package/_types/core/base/environment.d.ts.map +1 -0
- package/_types/core/base/errors/Sha256VerificationError.d.ts +14 -0
- package/_types/core/base/errors/Sha256VerificationError.d.ts.map +1 -0
- package/_types/core/base/inflate.d.ts +25 -0
- package/_types/core/base/inflate.d.ts.map +1 -0
- package/_types/core/base/isomorphicFs.d.ts +2 -0
- package/_types/core/base/isomorphicFs.d.ts.map +1 -0
- package/_types/core/base/isomorphicWorker.d.ts +27 -43
- package/_types/core/base/isomorphicWorker.d.ts.map +1 -1
- package/_types/core/base/uint.d.ts +2 -1
- package/_types/core/base/uint.d.ts.map +1 -1
- package/_types/core/base/wasm.d.ts +0 -8
- package/_types/core/base/wasm.d.ts.map +1 -1
- package/_types/core/clients/decorators/base.d.ts +12 -23
- package/_types/core/clients/decorators/base.d.ts.map +1 -1
- package/_types/core/host-contracts/canDecryptValuesFromPairs.d.ts +2 -2
- package/_types/core/host-contracts/canDecryptValuesFromPairs.d.ts.map +1 -1
- package/_types/core/kms/PublicDecryptionProof-p.d.ts +1 -1
- package/_types/core/kms/SignedDecryptionPermit-p.d.ts +15 -29
- package/_types/core/kms/SignedDecryptionPermit-p.d.ts.map +1 -1
- package/_types/core/kms/SignedDecryptionPermitV1-p.d.ts +7 -0
- package/_types/core/kms/SignedDecryptionPermitV1-p.d.ts.map +1 -0
- package/_types/core/kms/SignedDecryptionPermitV2-p.d.ts +7 -0
- package/_types/core/kms/SignedDecryptionPermitV2-p.d.ts.map +1 -0
- package/_types/core/kms/TransportKeyPair-p.d.ts.map +1 -1
- package/_types/core/kms/createKmsDelegatedUserDecryptEip712V1.d.ts +15 -0
- package/_types/core/kms/createKmsDelegatedUserDecryptEip712V1.d.ts.map +1 -0
- package/_types/core/kms/createKmsUserDecryptEip712V1.d.ts +26 -0
- package/_types/core/kms/createKmsUserDecryptEip712V1.d.ts.map +1 -0
- package/_types/core/kms/createKmsUserDecryptEip712V2.d.ts +1 -1
- package/_types/core/kms/createKmsUserDecryptEip712V2.d.ts.map +1 -1
- package/_types/core/kms/decryptValuesFromPairs.d.ts +4 -11
- package/_types/core/kms/decryptValuesFromPairs.d.ts.map +1 -1
- package/_types/core/kms/{fetchKmsSigncryptedShares-p.d.ts → fetchKmsSigncryptedSharesV1-p.d.ts} +10 -12
- package/_types/core/kms/fetchKmsSigncryptedSharesV1-p.d.ts.map +1 -0
- package/_types/core/kms/fetchKmsSigncryptedSharesV2-p.d.ts +28 -0
- package/_types/core/kms/fetchKmsSigncryptedSharesV2-p.d.ts.map +1 -0
- package/_types/core/kms/kmsDelegatedUserDecryptEip712V1Types.d.ts +3 -0
- package/_types/core/kms/kmsDelegatedUserDecryptEip712V1Types.d.ts.map +1 -0
- package/_types/core/kms/kmsUserDecryptEip712V1Types.d.ts +3 -0
- package/_types/core/kms/kmsUserDecryptEip712V1Types.d.ts.map +1 -0
- package/_types/core/kms/kmsUserDecryptEip712V2Types.d.ts.map +1 -1
- package/_types/core/kms/utils.d.ts +0 -4
- package/_types/core/kms/utils.d.ts.map +1 -1
- package/_types/core/kms/verifyKmsPublicDecryptEip712-p.d.ts +1 -1
- package/_types/core/modules/decrypt/module/init-p.d.ts.map +1 -1
- package/_types/core/modules/encrypt/module/init-p.d.ts.map +1 -1
- package/_types/core/modules/relayer/cleartext/fetchUserDecrypt.d.ts +2 -2
- package/_types/core/modules/relayer/cleartext/fetchUserDecrypt.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/{fetchDelegatedUserDecrypt.d.ts → fetchDelegatedUserDecryptV1.d.ts} +1 -1
- package/_types/core/modules/relayer/module/fetchDelegatedUserDecryptV1.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchUserDecrypt.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/fetchUserDecryptV1.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchUserDecryptV1.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/fetchUserDecryptV2.d.ts +3 -0
- package/_types/core/modules/relayer/module/fetchUserDecryptV2.d.ts.map +1 -0
- package/_types/core/modules/relayer/module/guards/RelayerResponseFailed.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.d.ts +1 -1
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.d.ts.map +1 -1
- package/_types/core/modules/relayer/module/guards/api-errors/RelayerApiError503.d.ts.map +1 -1
- package/_types/core/modules/relayer/types.d.ts +18 -5
- package/_types/core/modules/relayer/types.d.ts.map +1 -1
- package/_types/core/types/kms.d.ts +18 -19
- package/_types/core/types/kms.d.ts.map +1 -1
- package/_types/core/types/logger.d.ts +3 -3
- package/_types/core/types/logger.d.ts.map +1 -1
- package/_types/core/types/record-p.d.ts +2 -1
- package/_types/core/types/record-p.d.ts.map +1 -1
- package/_types/core/types/relayer-p.d.ts +27 -5
- package/_types/core/types/relayer-p.d.ts.map +1 -1
- package/_types/core/types/signedDecryptionPermit.d.ts +37 -26
- package/_types/core/types/signedDecryptionPermit.d.ts.map +1 -1
- package/_types/core/types/wasmAssets.d.ts.map +1 -1
- package/_types/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712V1.d.ts +14 -0
- package/_types/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712V1.d.ts.map +1 -0
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712V1.d.ts +14 -0
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712V1.d.ts.map +1 -0
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712V2.d.ts +14 -0
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712V2.d.ts.map +1 -0
- package/_types/core/utils-p/runtime/recoverSigners.d.ts +2 -2
- package/_types/wasm/tfhe/TfheApi.d.ts +12 -12
- package/_types/wasm/tfhe/v1.5.3/tfhe.d.ts +3 -0
- package/_types/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe.d.ts +88 -85
- package/core/_version.ts +1 -1
- package/core/actions/base/index.ts +0 -42
- package/core/actions/base/signDecryptionPermit.ts +3 -31
- package/core/actions/chain/index.ts +0 -28
- package/core/actions/chain/parseSignedDecryptionPermit.ts +1 -0
- package/core/actions/chain/serializeSignedDecryptionPermit.ts +3 -2
- package/core/actions/decrypt/canDecryptValue.ts +2 -16
- package/core/actions/decrypt/canDecryptValues.ts +2 -16
- package/core/actions/decrypt/canDecryptValuesFromPairs.ts +2 -16
- package/core/actions/decrypt/decryptValue.ts +2 -1
- package/core/actions/decrypt/decryptValues.ts +3 -1
- package/core/actions/decrypt/decryptValuesFromPairs.ts +3 -1
- package/core/actions/decrypt/index.ts +0 -6
- package/core/actions/host/index.ts +0 -20
- package/core/base/bytes.ts +2 -1
- package/core/base/cachedFetch.ts +1 -0
- package/core/base/environment.ts +210 -0
- package/core/base/errors/Sha256VerificationError.ts +22 -0
- package/core/base/inflate.ts +373 -0
- package/core/base/isomorphicFs.ts +23 -0
- package/core/base/isomorphicWorker.ts +96 -123
- package/core/base/uint.ts +18 -1
- package/core/base/wasm.ts +28 -35
- package/core/clients/decorators/base.ts +13 -37
- package/core/coprocessor/coprocessorEip712Types.ts +2 -2
- package/core/host-contracts/canDecryptValuesFromPairs.ts +7 -7
- package/core/host-contracts/getCoprocessorContextSignersAndThreshold-p.ts +2 -2
- package/core/host-contracts/getCurrentKmsContextAndEpoch-p.ts +2 -2
- package/core/host-contracts/getCurrentKmsContextId-p.ts +2 -2
- package/core/host-contracts/getKmsContextSignersAndThreshold-p.ts +2 -2
- package/core/kms/PublicDecryptionProof-p.ts +5 -5
- package/core/kms/SignedDecryptionPermit-p.ts +67 -357
- package/core/kms/SignedDecryptionPermitV1-p.ts +350 -0
- package/core/kms/SignedDecryptionPermitV2-p.ts +292 -0
- package/core/kms/TransportKeyPair-p.ts +0 -5
- package/core/kms/{createKmsDelegatedUserDecryptEip712.ts → createKmsDelegatedUserDecryptEip712V1.ts} +16 -16
- package/core/kms/createKmsPublicDecryptEip712.ts +1 -1
- package/core/kms/{createKmsUserDecryptEip712.ts → createKmsUserDecryptEip712V1.ts} +31 -22
- package/core/kms/createKmsUserDecryptEip712V2.ts +1 -1
- package/core/kms/decryptValuesFromPairs.ts +34 -22
- package/core/kms/{fetchKmsSigncryptedShares-p.ts → fetchKmsSigncryptedSharesV1-p.ts} +35 -30
- package/core/kms/fetchKmsSigncryptedSharesV2-p.ts +176 -0
- package/core/kms/{kmsDelegatedUserDecryptEip712Types.ts → kmsDelegatedUserDecryptEip712V1Types.ts} +9 -8
- package/core/kms/kmsPublicDecryptEip712Types.ts +1 -1
- package/core/kms/{kmsUserDecryptEip712Types.ts → kmsUserDecryptEip712V1Types.ts} +9 -8
- package/core/kms/kmsUserDecryptEip712V2Types.ts +2 -1
- package/core/kms/publicDecrypt.ts +2 -2
- package/core/kms/utils.ts +0 -32
- package/core/kms/verifyKmsPublicDecryptEip712-p.ts +3 -3
- package/core/modules/decrypt/module/api-p.ts +8 -8
- package/core/modules/decrypt/module/init-p.ts +149 -60
- package/core/modules/encrypt/module/init-p.ts +377 -67
- package/core/modules/relayer/cleartext/fetchPublicDecrypt.ts +3 -3
- package/core/modules/relayer/cleartext/fetchUserDecrypt.ts +2 -2
- package/core/modules/relayer/module/fetchPublicDecrypt.ts +1 -1
- package/core/modules/relayer/module/fetchUserDecrypt.ts +20 -56
- package/core/modules/relayer/module/fetchUserDecryptV1.ts +69 -0
- package/core/modules/relayer/module/fetchUserDecryptV2.ts +71 -0
- package/core/modules/relayer/module/guards/RelayerResponseFailed.ts +10 -2
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError400NoDetails.ts +6 -3
- package/core/modules/relayer/module/guards/api-errors/RelayerApiError503.ts +2 -0
- package/core/modules/relayer/module/index.ts +1 -1
- package/core/modules/relayer/types.ts +24 -5
- package/core/runtime/HyperWasmSolver-p.ts +5 -9
- package/core/runtime/initFhevmEncryptRuntime-p.ts +1 -1
- package/core/runtime/initFhevmRuntime-p.ts +1 -1
- package/core/types/kms.ts +40 -28
- package/core/types/logger.ts +3 -3
- package/core/types/record-p.ts +2 -1
- package/core/types/relayer-p.ts +48 -5
- package/core/types/signedDecryptionPermit.ts +47 -26
- package/core/types/wasmAssets.ts +58 -0
- package/core/utils-p/decrypt/{verifyKmsDelegatedUserDecryptEip712.ts → verifyKmsDelegatedUserDecryptEip712V1.ts} +9 -9
- package/core/utils-p/decrypt/{verifyKmsUserDecryptEip712.ts → verifyKmsUserDecryptEip712V1.ts} +9 -9
- package/core/utils-p/decrypt/verifyKmsUserDecryptEip712V2.ts +43 -0
- package/core/utils-p/runtime/recoverSigners.ts +2 -2
- package/package.json +1 -1
- package/wasm/tfhe/TfheApi.d.ts +12 -12
- package/wasm/tfhe/loadTfheLib.js +11 -11
- package/wasm/tfhe/v1.5.3/startWorkers.js +41 -20
- package/wasm/tfhe/v1.5.3/tfhe.d.ts +3 -0
- package/wasm/tfhe/v1.6.0-dev/startWorkers.js +41 -20
- package/wasm/tfhe/v1.6.0-dev/tfhe.d.ts +3 -0
- package/wasm/tfhe/{v1.6.1 → v1.6.2}/startWorkers.js +46 -25
- package/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe-worker.mjs +40 -40
- package/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe.d.ts +88 -85
- package/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe.js +245 -442
- package/wasm/tfhe/v1.6.2/tfhe_bg.wasm +0 -0
- package/wasm/tfhe/v1.6.2/tfhe_bg.wasm.base64.js +7 -0
- package/wasm/wasmBaseUrl.js +17 -54
- package/_cjs/core/actions/base/createVerifiedInputProofFromRawBytes.js +0 -10
- package/_cjs/core/actions/base/createVerifiedInputProofFromRawBytes.js.map +0 -1
- package/_cjs/core/actions/base/fetchKmsSigncryptedShares.js +0 -19
- package/_cjs/core/actions/base/fetchKmsSigncryptedShares.js.map +0 -1
- package/_cjs/core/actions/base/fetchVerifiedInputProof.js +0 -11
- package/_cjs/core/actions/base/fetchVerifiedInputProof.js.map +0 -1
- package/_cjs/core/actions/base/readKmsSignersContext.js +0 -11
- package/_cjs/core/actions/base/readKmsSignersContext.js.map +0 -1
- package/_cjs/core/actions/base/verifyHandlesCoprocessorSignatures.js +0 -31
- package/_cjs/core/actions/base/verifyHandlesCoprocessorSignatures.js.map +0 -1
- package/_cjs/core/actions/base/verifyInputProof.js +0 -24
- package/_cjs/core/actions/base/verifyInputProof.js.map +0 -1
- package/_cjs/core/actions/base/verifyZkProofCoprocessorSignatures.js +0 -17
- package/_cjs/core/actions/base/verifyZkProofCoprocessorSignatures.js.map +0 -1
- package/_cjs/core/actions/chain/createCoprocessorEip712Domain.js +0 -11
- package/_cjs/core/actions/chain/createCoprocessorEip712Domain.js.map +0 -1
- package/_cjs/core/actions/chain/createKmsDelegatedUserDecryptEip712.js +0 -17
- package/_cjs/core/actions/chain/createKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_cjs/core/actions/chain/createKmsEip712Domain.js +0 -11
- package/_cjs/core/actions/chain/createKmsEip712Domain.js.map +0 -1
- package/_cjs/core/actions/chain/createKmsUserDecryptEip712.js +0 -16
- package/_cjs/core/actions/chain/createKmsUserDecryptEip712.js.map +0 -1
- package/_cjs/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.js +0 -8
- package/_cjs/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_cjs/core/actions/chain/verifyKmsUserDecryptEip712.js +0 -8
- package/_cjs/core/actions/chain/verifyKmsUserDecryptEip712.js.map +0 -1
- package/_cjs/core/actions/decrypt/decryptKmsSigncryptedShares.js +0 -13
- package/_cjs/core/actions/decrypt/decryptKmsSigncryptedShares.js.map +0 -1
- package/_cjs/core/kms/createKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_cjs/core/kms/createKmsUserDecryptEip712.js.map +0 -1
- package/_cjs/core/kms/fetchKmsSigncryptedShares-p.js.map +0 -1
- package/_cjs/core/kms/kmsDelegatedUserDecryptEip712Types.js.map +0 -1
- package/_cjs/core/kms/kmsUserDecryptEip712Types.js.map +0 -1
- package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +0 -1
- package/_cjs/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_cjs/core/utils-p/decrypt/verifyKmsUserDecryptEip712.js.map +0 -1
- package/_cjs/wasm/tfhe/v1.6.1/startWorkers.js.map +0 -7
- package/_cjs/wasm/tfhe/v1.6.1/tfhe.js.map +0 -7
- package/_cjs/wasm/tfhe/v1.6.1/tfhe_bg.wasm +0 -0
- package/_cjs/wasm/tfhe/v1.6.1/tfhe_bg.wasm.base64.js +0 -35
- package/_cjs/wasm/tfhe/v1.6.1/tfhe_bg.wasm.base64.js.map +0 -7
- package/_esm/core/actions/base/createVerifiedInputProofFromRawBytes.js +0 -7
- package/_esm/core/actions/base/createVerifiedInputProofFromRawBytes.js.map +0 -1
- package/_esm/core/actions/base/fetchKmsSigncryptedShares.js +0 -17
- package/_esm/core/actions/base/fetchKmsSigncryptedShares.js.map +0 -1
- package/_esm/core/actions/base/fetchVerifiedInputProof.js +0 -8
- package/_esm/core/actions/base/fetchVerifiedInputProof.js.map +0 -1
- package/_esm/core/actions/base/readKmsSignersContext.js +0 -10
- package/_esm/core/actions/base/readKmsSignersContext.js.map +0 -1
- package/_esm/core/actions/base/verifyHandlesCoprocessorSignatures.js +0 -35
- package/_esm/core/actions/base/verifyHandlesCoprocessorSignatures.js.map +0 -1
- package/_esm/core/actions/base/verifyInputProof.js +0 -22
- package/_esm/core/actions/base/verifyInputProof.js.map +0 -1
- package/_esm/core/actions/base/verifyZkProofCoprocessorSignatures.js +0 -14
- package/_esm/core/actions/base/verifyZkProofCoprocessorSignatures.js.map +0 -1
- package/_esm/core/actions/chain/createCoprocessorEip712Domain.js +0 -8
- package/_esm/core/actions/chain/createCoprocessorEip712Domain.js.map +0 -1
- package/_esm/core/actions/chain/createKmsDelegatedUserDecryptEip712.js +0 -15
- package/_esm/core/actions/chain/createKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_esm/core/actions/chain/createKmsEip712Domain.js +0 -8
- package/_esm/core/actions/chain/createKmsEip712Domain.js.map +0 -1
- package/_esm/core/actions/chain/createKmsUserDecryptEip712.js +0 -14
- package/_esm/core/actions/chain/createKmsUserDecryptEip712.js.map +0 -1
- package/_esm/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.js +0 -5
- package/_esm/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_esm/core/actions/chain/verifyKmsUserDecryptEip712.js +0 -5
- package/_esm/core/actions/chain/verifyKmsUserDecryptEip712.js.map +0 -1
- package/_esm/core/actions/decrypt/decryptKmsSigncryptedShares.js +0 -11
- package/_esm/core/actions/decrypt/decryptKmsSigncryptedShares.js.map +0 -1
- package/_esm/core/kms/createKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_esm/core/kms/createKmsUserDecryptEip712.js.map +0 -1
- package/_esm/core/kms/fetchKmsSigncryptedShares-p.js.map +0 -1
- package/_esm/core/kms/kmsDelegatedUserDecryptEip712Types.js.map +0 -1
- package/_esm/core/kms/kmsUserDecryptEip712Types.js.map +0 -1
- package/_esm/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +0 -1
- package/_esm/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.js.map +0 -1
- package/_esm/core/utils-p/decrypt/verifyKmsUserDecryptEip712.js.map +0 -1
- package/_esm/wasm/tfhe/v1.6.1/tfhe_bg.wasm +0 -0
- package/_esm/wasm/tfhe/v1.6.1/tfhe_bg.wasm.base64.js +0 -7
- package/_types/core/actions/base/createVerifiedInputProofFromRawBytes.d.ts +0 -14
- package/_types/core/actions/base/createVerifiedInputProofFromRawBytes.d.ts.map +0 -1
- package/_types/core/actions/base/fetchKmsSigncryptedShares.d.ts +0 -41
- package/_types/core/actions/base/fetchKmsSigncryptedShares.d.ts.map +0 -1
- package/_types/core/actions/base/fetchVerifiedInputProof.d.ts +0 -14
- package/_types/core/actions/base/fetchVerifiedInputProof.d.ts.map +0 -1
- package/_types/core/actions/base/readKmsSignersContext.d.ts +0 -6
- package/_types/core/actions/base/readKmsSignersContext.d.ts.map +0 -1
- package/_types/core/actions/base/verifyHandlesCoprocessorSignatures.d.ts +0 -14
- package/_types/core/actions/base/verifyHandlesCoprocessorSignatures.d.ts.map +0 -1
- package/_types/core/actions/base/verifyInputProof.d.ts +0 -14
- package/_types/core/actions/base/verifyInputProof.d.ts.map +0 -1
- package/_types/core/actions/base/verifyZkProofCoprocessorSignatures.d.ts +0 -11
- package/_types/core/actions/base/verifyZkProofCoprocessorSignatures.d.ts.map +0 -1
- package/_types/core/actions/chain/createCoprocessorEip712Domain.d.ts +0 -7
- package/_types/core/actions/chain/createCoprocessorEip712Domain.d.ts.map +0 -1
- package/_types/core/actions/chain/createKmsDelegatedUserDecryptEip712.d.ts +0 -15
- package/_types/core/actions/chain/createKmsDelegatedUserDecryptEip712.d.ts.map +0 -1
- package/_types/core/actions/chain/createKmsEip712Domain.d.ts +0 -7
- package/_types/core/actions/chain/createKmsEip712Domain.d.ts.map +0 -1
- package/_types/core/actions/chain/createKmsUserDecryptEip712.d.ts +0 -14
- package/_types/core/actions/chain/createKmsUserDecryptEip712.d.ts.map +0 -1
- package/_types/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.d.ts +0 -7
- package/_types/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.d.ts.map +0 -1
- package/_types/core/actions/chain/verifyKmsUserDecryptEip712.d.ts +0 -7
- package/_types/core/actions/chain/verifyKmsUserDecryptEip712.d.ts.map +0 -1
- package/_types/core/actions/decrypt/decryptKmsSigncryptedShares.d.ts +0 -13
- package/_types/core/actions/decrypt/decryptKmsSigncryptedShares.d.ts.map +0 -1
- package/_types/core/kms/createKmsDelegatedUserDecryptEip712.d.ts +0 -15
- package/_types/core/kms/createKmsDelegatedUserDecryptEip712.d.ts.map +0 -1
- package/_types/core/kms/createKmsUserDecryptEip712.d.ts +0 -26
- package/_types/core/kms/createKmsUserDecryptEip712.d.ts.map +0 -1
- package/_types/core/kms/fetchKmsSigncryptedShares-p.d.ts.map +0 -1
- package/_types/core/kms/kmsDelegatedUserDecryptEip712Types.d.ts +0 -3
- package/_types/core/kms/kmsDelegatedUserDecryptEip712Types.d.ts.map +0 -1
- package/_types/core/kms/kmsUserDecryptEip712Types.d.ts +0 -3
- package/_types/core/kms/kmsUserDecryptEip712Types.d.ts.map +0 -1
- package/_types/core/modules/relayer/module/fetchDelegatedUserDecrypt.d.ts.map +0 -1
- package/_types/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.d.ts +0 -14
- package/_types/core/utils-p/decrypt/verifyKmsDelegatedUserDecryptEip712.d.ts.map +0 -1
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712.d.ts +0 -14
- package/_types/core/utils-p/decrypt/verifyKmsUserDecryptEip712.d.ts.map +0 -1
- package/core/actions/base/createVerifiedInputProofFromRawBytes.ts +0 -24
- package/core/actions/base/fetchKmsSigncryptedShares.ts +0 -83
- package/core/actions/base/fetchVerifiedInputProof.ts +0 -25
- package/core/actions/base/readKmsSignersContext.ts +0 -20
- package/core/actions/base/verifyHandlesCoprocessorSignatures.ts +0 -60
- package/core/actions/base/verifyInputProof.ts +0 -45
- package/core/actions/base/verifyZkProofCoprocessorSignatures.ts +0 -32
- package/core/actions/chain/createCoprocessorEip712Domain.ts +0 -16
- package/core/actions/chain/createKmsDelegatedUserDecryptEip712.ts +0 -36
- package/core/actions/chain/createKmsEip712Domain.ts +0 -16
- package/core/actions/chain/createKmsUserDecryptEip712.ts +0 -34
- package/core/actions/chain/verifyKmsDelegatedUserDecryptEip712.ts +0 -16
- package/core/actions/chain/verifyKmsUserDecryptEip712.ts +0 -16
- package/core/actions/decrypt/decryptKmsSigncryptedShares.ts +0 -34
- package/wasm/tfhe/v1.6.1/tfhe_bg.wasm +0 -0
- package/wasm/tfhe/v1.6.1/tfhe_bg.wasm.base64.js +0 -7
- /package/_cjs/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe_bg.wasm.base64.d.ts +0 -0
- /package/_esm/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe_bg.wasm.base64.d.ts +0 -0
- /package/_types/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe_bg.wasm.base64.d.ts +0 -0
- /package/core/modules/relayer/module/{fetchDelegatedUserDecrypt.ts → fetchDelegatedUserDecryptV1.ts} +0 -0
- /package/wasm/tfhe/{v1.6.1 → v1.6.2}/tfhe_bg.wasm.base64.d.ts +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JS-runtime environment detection and capability probes.
|
|
3
|
+
*
|
|
4
|
+
* Everything in this file answers one of two questions about the host
|
|
5
|
+
* environment the SDK happens to be running in:
|
|
6
|
+
*
|
|
7
|
+
* - *Which* runtime is this? — {@link isNodeLike}, {@link isBrowserLike}
|
|
8
|
+
* - *What* does it support? — {@link getNodeBuffer}
|
|
9
|
+
*
|
|
10
|
+
* Detection is intentionally capability-leaning rather than UA-based: edge
|
|
11
|
+
* runtimes (Vercel Edge, Cloudflare Workers, Next.js edge) are neither Node nor
|
|
12
|
+
* browser, so probes return the safe answer (`false` / `undefined`) and callers
|
|
13
|
+
* fall back to web-standard APIs.
|
|
14
|
+
*/
|
|
15
|
+
export function isNodeLike() {
|
|
16
|
+
return (
|
|
17
|
+
// eslint-disable-next-line no-restricted-globals
|
|
18
|
+
typeof process !== 'undefined' &&
|
|
19
|
+
// eslint-disable-next-line no-restricted-globals, @typescript-eslint/no-unnecessary-condition
|
|
20
|
+
typeof process.versions?.node === 'string');
|
|
21
|
+
}
|
|
22
|
+
export function isBrowserLike() {
|
|
23
|
+
return (
|
|
24
|
+
// @ts-expect-error - Bun is a runtime global only under Bun
|
|
25
|
+
typeof Bun === 'undefined' &&
|
|
26
|
+
!isNodeLike() &&
|
|
27
|
+
typeof location !== 'undefined' &&
|
|
28
|
+
typeof location.href === 'string' &&
|
|
29
|
+
typeof addEventListener === 'function' &&
|
|
30
|
+
typeof removeEventListener === 'function');
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Imports a Node built-in module by name, returning `undefined` when it isn't
|
|
34
|
+
* importable (browsers, and edge runtimes: Vercel Edge, Cloudflare Workers,
|
|
35
|
+
* Next.js edge). The id is built indirectly so bundlers don't statically
|
|
36
|
+
* resolve/polyfill the module (a polyfill would bloat browser bundles).
|
|
37
|
+
*
|
|
38
|
+
* Every major bundler must be told NOT to analyze this computed dynamic import,
|
|
39
|
+
* each via its own magic comment, or it errors at build/runtime:
|
|
40
|
+
* - `@vite-ignore` — Vite.
|
|
41
|
+
* - `webpackIgnore` — webpack.
|
|
42
|
+
* - `turbopackIgnore` — Turbopack (Next.js). Without it, Turbopack can't analyze
|
|
43
|
+
* the parameter-derived specifier, can't bundle a `node:` builtin as a
|
|
44
|
+
* candidate, and replaces the call with a stub that throws
|
|
45
|
+
* `Cannot find module 'unknown'` — which silently disabled the Node
|
|
46
|
+
* `worker_threads` backend (→ single-threaded TFHE) in Next server components.
|
|
47
|
+
*
|
|
48
|
+
* Each comment instructs its bundler to emit a plain native `import()` that the
|
|
49
|
+
* runtime resolves; in the browser that throws and is caught below (→ undefined).
|
|
50
|
+
* Each capability accessor below wraps this and memoizes its result.
|
|
51
|
+
*/
|
|
52
|
+
async function _importNodeModule(name) {
|
|
53
|
+
try {
|
|
54
|
+
const id = `node:${name}`;
|
|
55
|
+
return (await import(/* @vite-ignore */ /* webpackIgnore: true */ /* turbopackIgnore: true */ id));
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
let _nodeBufferPromise;
|
|
62
|
+
/**
|
|
63
|
+
* Resolves Node's `Buffer` if `node:buffer` is importable, else `undefined`.
|
|
64
|
+
*
|
|
65
|
+
* Memoized — the answer can't change within a process lifetime. Returns the
|
|
66
|
+
* `Buffer` reference (not a boolean) because `Buffer` is not a global: the
|
|
67
|
+
* caller needs the actual constructor, so probing and use share one import.
|
|
68
|
+
*
|
|
69
|
+
* Returns `undefined` in non-Node runtimes that also lack `node:buffer`
|
|
70
|
+
* (browsers, and edge runtimes: Vercel Edge, Cloudflare Workers, Next.js edge).
|
|
71
|
+
*/
|
|
72
|
+
export function getNodeBuffer() {
|
|
73
|
+
_nodeBufferPromise ??= (async () => {
|
|
74
|
+
const mod = await _importNodeModule('buffer');
|
|
75
|
+
return typeof mod?.Buffer?.from === 'function' ? mod.Buffer : undefined;
|
|
76
|
+
})();
|
|
77
|
+
return _nodeBufferPromise;
|
|
78
|
+
}
|
|
79
|
+
let _nodeFsPromise;
|
|
80
|
+
/**
|
|
81
|
+
* Resolves Node's `fs/promises` (`readFile`, `access`) if importable, else
|
|
82
|
+
* `undefined` (browsers and edge runtimes). Memoized. See {@link getNodeBuffer}
|
|
83
|
+
* for why this returns the module reference rather than a boolean.
|
|
84
|
+
*/
|
|
85
|
+
export function getNodeFs() {
|
|
86
|
+
_nodeFsPromise ??= (async () => {
|
|
87
|
+
const mod = await _importNodeModule('fs/promises');
|
|
88
|
+
return typeof mod?.readFile === 'function' ? mod : undefined;
|
|
89
|
+
})();
|
|
90
|
+
return _nodeFsPromise;
|
|
91
|
+
}
|
|
92
|
+
let _nodeUrlPromise;
|
|
93
|
+
/**
|
|
94
|
+
* Resolves Node's `url` (`fileURLToPath`) if importable, else `undefined`
|
|
95
|
+
* (browsers and edge runtimes). Memoized. See {@link getNodeBuffer} for why
|
|
96
|
+
* this returns the module reference rather than a boolean.
|
|
97
|
+
*/
|
|
98
|
+
export function getNodeUrl() {
|
|
99
|
+
_nodeUrlPromise ??= (async () => {
|
|
100
|
+
const mod = await _importNodeModule('url');
|
|
101
|
+
return typeof mod?.fileURLToPath === 'function' ? mod : undefined;
|
|
102
|
+
})();
|
|
103
|
+
return _nodeUrlPromise;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Returns whether the Web Worker API is available (browsers, Deno, and other
|
|
107
|
+
* web-standard runtimes). Synchronous — checks for the required globals only.
|
|
108
|
+
*/
|
|
109
|
+
export function supportsWebWorkerApi() {
|
|
110
|
+
return (typeof Worker === 'function' &&
|
|
111
|
+
typeof Blob === 'function' &&
|
|
112
|
+
typeof URL !== 'undefined' &&
|
|
113
|
+
typeof URL.createObjectURL === 'function');
|
|
114
|
+
}
|
|
115
|
+
let _decompressionStreamSupported;
|
|
116
|
+
/**
|
|
117
|
+
* Returns whether `DecompressionStream` is actually *usable* (plus the `Blob`
|
|
118
|
+
* pipeline it feeds). Needed to inflate compressed embedded WASM.
|
|
119
|
+
*
|
|
120
|
+
* A `typeof` presence check is insufficient: some runtimes — notably the Next.js
|
|
121
|
+
* Edge Runtime — expose `DecompressionStream` as a global **stub that throws on
|
|
122
|
+
* construction**, so presence is a false positive that crashes later inside the
|
|
123
|
+
* compile path. We therefore *construct* one (synchronous, cheap) and memoize the
|
|
124
|
+
* result (support can't change within a process lifetime).
|
|
125
|
+
*
|
|
126
|
+
* Returns `false` on older browsers (Firefox <113, Safari <16.4) and edge runtimes,
|
|
127
|
+
* so callers fall back (uncompressed / URL-based / JS-inflate WASM loading).
|
|
128
|
+
*/
|
|
129
|
+
export function supportsDecompressionStream() {
|
|
130
|
+
if (_decompressionStreamSupported === undefined) {
|
|
131
|
+
if (typeof DecompressionStream !== 'function' || typeof Blob !== 'function') {
|
|
132
|
+
_decompressionStreamSupported = false;
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
try {
|
|
136
|
+
// Construction is the probe — the Next.js Edge stub throws here; a real
|
|
137
|
+
// implementation does not. Assigned (not bare `new`) so it reads as a value
|
|
138
|
+
// probe, and discarded.
|
|
139
|
+
const probe = new DecompressionStream('gzip');
|
|
140
|
+
void probe;
|
|
141
|
+
_decompressionStreamSupported = true;
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
_decompressionStreamSupported = false;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return _decompressionStreamSupported;
|
|
149
|
+
}
|
|
150
|
+
let _nodeWorkerPromise;
|
|
151
|
+
/**
|
|
152
|
+
* Resolves Node's `worker_threads` `Worker` constructor if importable, else
|
|
153
|
+
* `undefined` (browser, sandboxed Electron renderer, edge runtimes). Memoized.
|
|
154
|
+
* See {@link getNodeBuffer} for why this returns the constructor rather than a
|
|
155
|
+
* boolean.
|
|
156
|
+
*/
|
|
157
|
+
export function getNodeWorker() {
|
|
158
|
+
_nodeWorkerPromise ??= (async () => {
|
|
159
|
+
const mod = await _importNodeModule('worker_threads');
|
|
160
|
+
return typeof mod?.Worker === 'function' ? mod.Worker : undefined;
|
|
161
|
+
})();
|
|
162
|
+
return _nodeWorkerPromise;
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../core/base/environment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,UAAU,UAAU;IACxB,OAAO;IACL,iDAAiD;IACjD,OAAO,OAAO,KAAK,WAAW;QAC9B,8FAA8F;QAC9F,OAAO,OAAO,CAAC,QAAQ,EAAE,IAAI,KAAK,QAAQ,CAC3C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO;IACL,4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IAC3B,kBAAkB,KAAK,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAqC,gBAAgB,CAAC,CAAC;QAC1F,OAAO,OAAO,GAAG,EAAE,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACpE,CAAC,CAAC,EAAE,CAAC;IACL,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ErrorBase } from './ErrorBase.js';
|
|
2
|
+
export class Sha256VerificationError extends ErrorBase {
|
|
3
|
+
constructor(params, options) {
|
|
4
|
+
super({
|
|
5
|
+
...options,
|
|
6
|
+
message: `SHA-256 mismatch for ${params.subject}: expected ${params.expected}, got ${params.actual}`,
|
|
7
|
+
name: 'Sha256VerificationError',
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=Sha256VerificationError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sha256VerificationError.js","sourceRoot":"","sources":["../../../../core/base/errors/Sha256VerificationError.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAY3C,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpD,YAAY,MAAqC,EAAE,OAA4B;QAC7E,KAAK,CAAC;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,wBAAwB,MAAM,CAAC,OAAO,cAAc,MAAM,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE;YACpG,IAAI,EAAE,yBAAyB;SAChC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
+
// Vendored, dependency-free DEFLATE / gzip / zlib inflater.
|
|
3
|
+
//
|
|
4
|
+
// Why this exists: the SDK embeds its WASM as gzip-compressed base64 and normally
|
|
5
|
+
// inflates it with the platform `DecompressionStream`. Some runtimes have no usable
|
|
6
|
+
// `DecompressionStream` — older browsers (Firefox <113, Safari <16.4) and the
|
|
7
|
+
// Next.js Edge Runtime (which exposes a global stub that throws on construction, see
|
|
8
|
+
// `supportsDecompressionStream` in environment.ts). For those, callers fall back to
|
|
9
|
+
// this pure-JS inflater, which runs in any JS runtime with no platform API and no
|
|
10
|
+
// third-party dependency.
|
|
11
|
+
//
|
|
12
|
+
// The DEFLATE decoder is a TypeScript reimplementation of the public-domain "tinf"
|
|
13
|
+
// inflate (Joergen Ibsen), itself derived from Mark Adler's zlib "puff" reference.
|
|
14
|
+
// It supports all RFC 1951 block types (stored, fixed-Huffman, dynamic-Huffman) and
|
|
15
|
+
// adds the RFC 1952 (gzip) and RFC 1950 (zlib) container framings. Per-call state is
|
|
16
|
+
// allocated fresh (no shared mutable globals); only the immutable static tables are
|
|
17
|
+
// shared. Decompression happens once per WASM load, so allocation cost is irrelevant.
|
|
18
|
+
function newTree(maxSymbols) {
|
|
19
|
+
return { counts: new Uint16Array(16), symbols: new Uint16Array(maxSymbols) };
|
|
20
|
+
}
|
|
21
|
+
// ---- Immutable static tables (built once at module load) --------------------
|
|
22
|
+
// Length codes 257..285: extra-bit counts and base lengths (index = symbol - 257).
|
|
23
|
+
const LENGTH_BITS = new Uint8Array(30);
|
|
24
|
+
const LENGTH_BASE = new Uint16Array(30);
|
|
25
|
+
// Distance codes 0..29: extra-bit counts and base distances.
|
|
26
|
+
const DIST_BITS = new Uint8Array(30);
|
|
27
|
+
const DIST_BASE = new Uint16Array(30);
|
|
28
|
+
// Order in which code-length-code lengths are stored (RFC 1951 §3.2.7).
|
|
29
|
+
const CLC_ORDER = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
30
|
+
const FIXED_LTREE = newTree(288);
|
|
31
|
+
const FIXED_DTREE = newTree(30);
|
|
32
|
+
function buildBitsBase(bits, base, delta, first) {
|
|
33
|
+
for (let i = 0; i < delta; i++) {
|
|
34
|
+
bits[i] = 0;
|
|
35
|
+
}
|
|
36
|
+
for (let i = 0; i < 30 - delta; i++) {
|
|
37
|
+
bits[i + delta] = Math.floor(i / delta);
|
|
38
|
+
}
|
|
39
|
+
let sum = first;
|
|
40
|
+
for (let i = 0; i < 30; i++) {
|
|
41
|
+
base[i] = sum;
|
|
42
|
+
sum += 1 << bits[i];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function buildFixedTrees(lt, dt) {
|
|
46
|
+
for (let i = 0; i < 7; i++) {
|
|
47
|
+
lt.counts[i] = 0;
|
|
48
|
+
}
|
|
49
|
+
lt.counts[7] = 24;
|
|
50
|
+
lt.counts[8] = 152;
|
|
51
|
+
lt.counts[9] = 112;
|
|
52
|
+
for (let i = 0; i < 24; i++) {
|
|
53
|
+
lt.symbols[i] = 256 + i;
|
|
54
|
+
}
|
|
55
|
+
for (let i = 0; i < 144; i++) {
|
|
56
|
+
lt.symbols[24 + i] = i;
|
|
57
|
+
}
|
|
58
|
+
for (let i = 0; i < 8; i++) {
|
|
59
|
+
lt.symbols[24 + 144 + i] = 280 + i;
|
|
60
|
+
}
|
|
61
|
+
for (let i = 0; i < 112; i++) {
|
|
62
|
+
lt.symbols[24 + 144 + 8 + i] = 144 + i;
|
|
63
|
+
}
|
|
64
|
+
for (let i = 0; i < 5; i++) {
|
|
65
|
+
dt.counts[i] = 0;
|
|
66
|
+
}
|
|
67
|
+
dt.counts[5] = 32;
|
|
68
|
+
for (let i = 0; i < 32; i++) {
|
|
69
|
+
dt.symbols[i] = i;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
buildBitsBase(LENGTH_BITS, LENGTH_BASE, 4, 3);
|
|
73
|
+
buildBitsBase(DIST_BITS, DIST_BASE, 2, 1);
|
|
74
|
+
// Length code 285 has no extra bits and a fixed length of 258 (the generic formula
|
|
75
|
+
// above would assign it extra bits; override it).
|
|
76
|
+
LENGTH_BITS[28] = 0;
|
|
77
|
+
LENGTH_BASE[28] = 258;
|
|
78
|
+
buildFixedTrees(FIXED_LTREE, FIXED_DTREE);
|
|
79
|
+
// ---- Bit reader -------------------------------------------------------------
|
|
80
|
+
function readBits(d, num, base) {
|
|
81
|
+
if (num === 0) {
|
|
82
|
+
return base;
|
|
83
|
+
}
|
|
84
|
+
while (d.bitcount < 24) {
|
|
85
|
+
d.tag |= d.source[d.pos++] << d.bitcount;
|
|
86
|
+
d.bitcount += 8;
|
|
87
|
+
}
|
|
88
|
+
const val = d.tag & (0xffff >>> (16 - num));
|
|
89
|
+
d.tag >>>= num;
|
|
90
|
+
d.bitcount -= num;
|
|
91
|
+
return val + base;
|
|
92
|
+
}
|
|
93
|
+
function decodeSymbol(d, t) {
|
|
94
|
+
while (d.bitcount < 24) {
|
|
95
|
+
d.tag |= d.source[d.pos++] << d.bitcount;
|
|
96
|
+
d.bitcount += 8;
|
|
97
|
+
}
|
|
98
|
+
let sum = 0;
|
|
99
|
+
let cur = 0;
|
|
100
|
+
let len = 0;
|
|
101
|
+
let tag = d.tag;
|
|
102
|
+
// Walk the canonical-Huffman code one bit at a time until the running code
|
|
103
|
+
// value falls within the range of codes of the current length.
|
|
104
|
+
do {
|
|
105
|
+
cur = 2 * cur + (tag & 1);
|
|
106
|
+
tag >>>= 1;
|
|
107
|
+
len++;
|
|
108
|
+
sum += t.counts[len];
|
|
109
|
+
cur -= t.counts[len];
|
|
110
|
+
} while (cur >= 0);
|
|
111
|
+
d.tag = tag;
|
|
112
|
+
d.bitcount -= len;
|
|
113
|
+
return t.symbols[sum + cur];
|
|
114
|
+
}
|
|
115
|
+
// ---- Tree / block decoding --------------------------------------------------
|
|
116
|
+
function buildTree(t, lengths, off, num) {
|
|
117
|
+
for (let i = 0; i < 16; i++) {
|
|
118
|
+
t.counts[i] = 0;
|
|
119
|
+
}
|
|
120
|
+
for (let i = 0; i < num; i++) {
|
|
121
|
+
const codeLen = lengths[off + i];
|
|
122
|
+
t.counts[codeLen] = t.counts[codeLen] + 1;
|
|
123
|
+
}
|
|
124
|
+
t.counts[0] = 0;
|
|
125
|
+
const offsets = new Uint16Array(16);
|
|
126
|
+
let sum = 0;
|
|
127
|
+
for (let i = 0; i < 16; i++) {
|
|
128
|
+
offsets[i] = sum;
|
|
129
|
+
sum += t.counts[i];
|
|
130
|
+
}
|
|
131
|
+
for (let i = 0; i < num; i++) {
|
|
132
|
+
const codeLen = lengths[off + i];
|
|
133
|
+
if (codeLen !== 0) {
|
|
134
|
+
const slot = offsets[codeLen];
|
|
135
|
+
t.symbols[slot] = i;
|
|
136
|
+
offsets[codeLen] = slot + 1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function decodeTrees(d, lt, dt) {
|
|
141
|
+
const codeTree = newTree(19);
|
|
142
|
+
const lengths = new Uint8Array(288 + 32);
|
|
143
|
+
const hlit = readBits(d, 5, 257);
|
|
144
|
+
const hdist = readBits(d, 5, 1);
|
|
145
|
+
const hclen = readBits(d, 4, 4);
|
|
146
|
+
for (let i = 0; i < hclen; i++) {
|
|
147
|
+
lengths[CLC_ORDER[i]] = readBits(d, 3, 0);
|
|
148
|
+
}
|
|
149
|
+
buildTree(codeTree, lengths, 0, 19);
|
|
150
|
+
let num = 0;
|
|
151
|
+
while (num < hlit + hdist) {
|
|
152
|
+
const sym = decodeSymbol(d, codeTree);
|
|
153
|
+
if (sym === 16) {
|
|
154
|
+
// Repeat previous code length 3..6 times.
|
|
155
|
+
const prev = lengths[num - 1];
|
|
156
|
+
for (let length = readBits(d, 2, 3); length > 0; length--) {
|
|
157
|
+
lengths[num++] = prev;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
else if (sym === 17) {
|
|
161
|
+
// Repeat zero 3..10 times.
|
|
162
|
+
for (let length = readBits(d, 3, 3); length > 0; length--) {
|
|
163
|
+
lengths[num++] = 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
else if (sym === 18) {
|
|
167
|
+
// Repeat zero 11..138 times.
|
|
168
|
+
for (let length = readBits(d, 7, 11); length > 0; length--) {
|
|
169
|
+
lengths[num++] = 0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
lengths[num++] = sym;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
buildTree(lt, lengths, 0, hlit);
|
|
177
|
+
buildTree(dt, lengths, hlit, hdist);
|
|
178
|
+
}
|
|
179
|
+
function ensureCapacity(d, extra) {
|
|
180
|
+
const needed = d.destLen + extra;
|
|
181
|
+
if (needed <= d.dest.length) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
let newLen = d.dest.length * 2;
|
|
185
|
+
while (newLen < needed) {
|
|
186
|
+
newLen *= 2;
|
|
187
|
+
}
|
|
188
|
+
const bigger = new Uint8Array(newLen);
|
|
189
|
+
bigger.set(d.dest);
|
|
190
|
+
d.dest = bigger;
|
|
191
|
+
}
|
|
192
|
+
function inflateBlock(d, lt, dt) {
|
|
193
|
+
for (;;) {
|
|
194
|
+
let sym = decodeSymbol(d, lt);
|
|
195
|
+
if (sym === 256) {
|
|
196
|
+
return; // end of block
|
|
197
|
+
}
|
|
198
|
+
if (sym < 256) {
|
|
199
|
+
ensureCapacity(d, 1);
|
|
200
|
+
d.dest[d.destLen++] = sym;
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
sym -= 257;
|
|
204
|
+
const length = readBits(d, LENGTH_BITS[sym], LENGTH_BASE[sym]);
|
|
205
|
+
const distSym = decodeSymbol(d, dt);
|
|
206
|
+
const dist = readBits(d, DIST_BITS[distSym], DIST_BASE[distSym]);
|
|
207
|
+
const start = d.destLen - dist;
|
|
208
|
+
ensureCapacity(d, length);
|
|
209
|
+
// LZ77 back-reference: copy byte-by-byte (ranges may overlap, e.g. run-length).
|
|
210
|
+
for (let i = 0; i < length; i++) {
|
|
211
|
+
d.dest[d.destLen++] = d.dest[start + i];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function inflateStoredBlock(d) {
|
|
217
|
+
// Stored blocks are byte-aligned: push whole bytes back into the source so the
|
|
218
|
+
// LEN/NLEN fields are read from byte boundaries.
|
|
219
|
+
while (d.bitcount > 8) {
|
|
220
|
+
d.pos--;
|
|
221
|
+
d.bitcount -= 8;
|
|
222
|
+
}
|
|
223
|
+
const length = (d.source[d.pos + 1] << 8) | d.source[d.pos];
|
|
224
|
+
const invLength = (d.source[d.pos + 3] << 8) | d.source[d.pos + 2];
|
|
225
|
+
if (length !== (~invLength & 0xffff) >>> 0) {
|
|
226
|
+
throw new Error('inflate: invalid stored block length');
|
|
227
|
+
}
|
|
228
|
+
d.pos += 4;
|
|
229
|
+
ensureCapacity(d, length);
|
|
230
|
+
for (let i = length; i > 0; i--) {
|
|
231
|
+
d.dest[d.destLen++] = d.source[d.pos++];
|
|
232
|
+
}
|
|
233
|
+
d.tag = 0;
|
|
234
|
+
d.bitcount = 0;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Inflates a raw DEFLATE (RFC 1951) byte stream — no gzip/zlib container.
|
|
238
|
+
*
|
|
239
|
+
* @param source - raw DEFLATE bytes.
|
|
240
|
+
* @param sizeHint - expected uncompressed size, if known (e.g. gzip ISIZE). Used to
|
|
241
|
+
* pre-size the output buffer and avoid reallocation; correctness does not depend on
|
|
242
|
+
* it (the buffer grows as needed).
|
|
243
|
+
*/
|
|
244
|
+
export function inflateRaw(source, sizeHint) {
|
|
245
|
+
const initialSize = sizeHint !== undefined && sizeHint > 0 ? sizeHint : Math.max(source.length * 4, 1024);
|
|
246
|
+
const d = {
|
|
247
|
+
source,
|
|
248
|
+
pos: 0,
|
|
249
|
+
tag: 0,
|
|
250
|
+
bitcount: 0,
|
|
251
|
+
dest: new Uint8Array(initialSize),
|
|
252
|
+
destLen: 0,
|
|
253
|
+
};
|
|
254
|
+
for (;;) {
|
|
255
|
+
const bfinal = readBits(d, 1, 0);
|
|
256
|
+
const btype = readBits(d, 2, 0);
|
|
257
|
+
if (btype === 0) {
|
|
258
|
+
inflateStoredBlock(d);
|
|
259
|
+
}
|
|
260
|
+
else if (btype === 1) {
|
|
261
|
+
inflateBlock(d, FIXED_LTREE, FIXED_DTREE);
|
|
262
|
+
}
|
|
263
|
+
else if (btype === 2) {
|
|
264
|
+
const lt = newTree(288);
|
|
265
|
+
const dt = newTree(32);
|
|
266
|
+
decodeTrees(d, lt, dt);
|
|
267
|
+
inflateBlock(d, lt, dt);
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
throw new Error('inflate: invalid block type');
|
|
271
|
+
}
|
|
272
|
+
if (bfinal !== 0) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return d.dest.subarray(0, d.destLen);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Decompresses a gzip (RFC 1952) stream: validates the magic + method, skips the
|
|
280
|
+
* optional header fields, inflates the DEFLATE body, and pre-sizes the output from
|
|
281
|
+
* the trailer's ISIZE (uncompressed size mod 2^32).
|
|
282
|
+
*/
|
|
283
|
+
export function gunzip(source) {
|
|
284
|
+
if (source.length < 18 || source[0] !== 0x1f || source[1] !== 0x8b) {
|
|
285
|
+
throw new Error('gunzip: not a gzip stream');
|
|
286
|
+
}
|
|
287
|
+
if (source[2] !== 8) {
|
|
288
|
+
throw new Error(`gunzip: unsupported compression method ${String(source[2])}`);
|
|
289
|
+
}
|
|
290
|
+
const flg = source[3];
|
|
291
|
+
let pos = 10; // fixed gzip header size
|
|
292
|
+
if ((flg & 0x04) !== 0) {
|
|
293
|
+
// FEXTRA: 2-byte length + payload
|
|
294
|
+
pos += 2 + ((source[pos] | (source[pos + 1] << 8)) >>> 0);
|
|
295
|
+
}
|
|
296
|
+
if ((flg & 0x08) !== 0) {
|
|
297
|
+
// FNAME: NUL-terminated
|
|
298
|
+
while (source[pos] !== 0) {
|
|
299
|
+
pos++;
|
|
300
|
+
}
|
|
301
|
+
pos++;
|
|
302
|
+
}
|
|
303
|
+
if ((flg & 0x10) !== 0) {
|
|
304
|
+
// FCOMMENT: NUL-terminated
|
|
305
|
+
while (source[pos] !== 0) {
|
|
306
|
+
pos++;
|
|
307
|
+
}
|
|
308
|
+
pos++;
|
|
309
|
+
}
|
|
310
|
+
if ((flg & 0x02) !== 0) {
|
|
311
|
+
// FHCRC: 2-byte header CRC
|
|
312
|
+
pos += 2;
|
|
313
|
+
}
|
|
314
|
+
const n = source.length;
|
|
315
|
+
const isize = (source[n - 4] | (source[n - 3] << 8) | (source[n - 2] << 16) | (source[n - 1] << 24)) >>> 0;
|
|
316
|
+
return inflateRaw(source.subarray(pos), isize);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Pure-JS equivalent of `DecompressionStream` for the formats the SDK emits.
|
|
320
|
+
* Use as the fallback when `supportsDecompressionStream()` is false.
|
|
321
|
+
*
|
|
322
|
+
* - `gzip` — RFC 1952 (magic + header + DEFLATE + CRC/ISIZE trailer).
|
|
323
|
+
* - `deflate` — RFC 1950 zlib (2-byte header + DEFLATE + Adler-32 trailer).
|
|
324
|
+
* - `deflate-raw` — RFC 1951 raw DEFLATE.
|
|
325
|
+
*/
|
|
326
|
+
export function inflateDecompress(source, format) {
|
|
327
|
+
if (format === 'gzip') {
|
|
328
|
+
return gunzip(source);
|
|
329
|
+
}
|
|
330
|
+
if (format === 'deflate-raw') {
|
|
331
|
+
return inflateRaw(source);
|
|
332
|
+
}
|
|
333
|
+
// 'deflate' (zlib): skip the 2-byte CMF/FLG header; inflate stops at the final
|
|
334
|
+
// block, so the 4-byte Adler-32 trailer is simply never read.
|
|
335
|
+
return inflateRaw(source.subarray(2));
|
|
336
|
+
}
|
|
337
|
+
//# sourceMappingURL=inflate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inflate.js","sourceRoot":"","sources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AC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getNodeFs, getNodeUrl, isNodeLike } from './environment.js';
|
|
2
|
+
export async function isomorphicFileUrlExists(url) {
|
|
3
|
+
if (url?.protocol !== 'file:') {
|
|
4
|
+
return false;
|
|
5
|
+
}
|
|
6
|
+
if (!isNodeLike()) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
const [fs, urlMod] = await Promise.all([getNodeFs(), getNodeUrl()]);
|
|
10
|
+
if (!fs || !urlMod) {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
await fs.access(urlMod.fileURLToPath(url));
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=isomorphicFs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isomorphicFs.js","sourceRoot":"","sources":["../../../core/base/isomorphicFs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAErE,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,GAAoB;IAChE,IAAI,GAAG,EAAE,QAAQ,KAAK,OAAO,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;IACpE,IAAI,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|