@fhevm/sdk 1.1.0-alpha.3 → 1.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (855) hide show
  1. package/_cjs/core/_version.js +1 -1
  2. package/_cjs/core/actions/base/canDecryptPublicValue.js +1 -1
  3. package/_cjs/core/actions/base/canDecryptPublicValue.js.map +1 -1
  4. package/_cjs/core/actions/base/canDecryptPublicValues.js +1 -1
  5. package/_cjs/core/actions/base/canDecryptPublicValues.js.map +1 -1
  6. package/_cjs/core/actions/base/{fetchKmsSignedcryptedShares.js → fetchKmsSigncryptedShares.js} +5 -5
  7. package/_cjs/core/actions/base/fetchKmsSigncryptedShares.js.map +1 -0
  8. package/_cjs/core/actions/base/index.js +3 -3
  9. package/_cjs/core/actions/base/index.js.map +1 -1
  10. package/_cjs/core/actions/base/readKmsSignersContext.js +2 -1
  11. package/_cjs/core/actions/base/readKmsSignersContext.js.map +1 -1
  12. package/_cjs/core/actions/chain/parseTransportKeyPair.js.map +1 -1
  13. package/_cjs/core/actions/decrypt/decryptKmsSigncryptedShares.js +13 -0
  14. package/_cjs/core/actions/decrypt/decryptKmsSigncryptedShares.js.map +1 -0
  15. package/_cjs/core/actions/decrypt/decryptValue.js +3 -1
  16. package/_cjs/core/actions/decrypt/decryptValue.js.map +1 -1
  17. package/_cjs/core/actions/decrypt/decryptValues.js +3 -1
  18. package/_cjs/core/actions/decrypt/decryptValues.js.map +1 -1
  19. package/_cjs/core/actions/decrypt/decryptValuesFromPairs.js +3 -1
  20. package/_cjs/core/actions/decrypt/decryptValuesFromPairs.js.map +1 -1
  21. package/_cjs/core/actions/decrypt/generateTransportKeyPair.js +3 -1
  22. package/_cjs/core/actions/decrypt/generateTransportKeyPair.js.map +1 -1
  23. package/_cjs/core/actions/decrypt/index.js +3 -3
  24. package/_cjs/core/actions/decrypt/index.js.map +1 -1
  25. package/_cjs/core/actions/encrypt/encryptValue.js +3 -1
  26. package/_cjs/core/actions/encrypt/encryptValue.js.map +1 -1
  27. package/_cjs/core/actions/encrypt/encryptValues.js +3 -1
  28. package/_cjs/core/actions/encrypt/encryptValues.js.map +1 -1
  29. package/_cjs/core/actions/encrypt/generateZkProof.js +5 -1
  30. package/_cjs/core/actions/encrypt/generateZkProof.js.map +1 -1
  31. package/_cjs/core/actions/host/readFhevmExecutorContractData.js +7 -7
  32. package/_cjs/core/actions/host/readFhevmExecutorContractData.js.map +1 -1
  33. package/_cjs/core/actions/host/readInputVerifierContractData.js +1 -1
  34. package/_cjs/core/actions/host/readInputVerifierContractData.js.map +1 -1
  35. package/_cjs/core/actions/host/readKmsVerifierContractData.js +6 -5
  36. package/_cjs/core/actions/host/readKmsVerifierContractData.js.map +1 -1
  37. package/_cjs/core/actions/host/resolveFhevmConfig.js +7 -1
  38. package/_cjs/core/actions/host/resolveFhevmConfig.js.map +1 -1
  39. package/_cjs/core/base/auth.js +8 -6
  40. package/_cjs/core/base/auth.js.map +1 -1
  41. package/_cjs/core/base/errors/InvalidUrlError.js +17 -0
  42. package/_cjs/core/base/errors/InvalidUrlError.js.map +1 -0
  43. package/_cjs/core/base/fetch.js +37 -0
  44. package/_cjs/core/base/fetch.js.map +1 -1
  45. package/_cjs/core/base/object.js +23 -0
  46. package/_cjs/core/base/object.js.map +1 -1
  47. package/_cjs/core/base/semver.js +166 -0
  48. package/_cjs/core/base/semver.js.map +1 -0
  49. package/_cjs/core/base/string.js +10 -0
  50. package/_cjs/core/base/string.js.map +1 -1
  51. package/_cjs/core/base/uint.js +20 -3
  52. package/_cjs/core/base/uint.js.map +1 -1
  53. package/_cjs/core/chains/definitions/localTestnet.js +3 -0
  54. package/_cjs/core/chains/definitions/localTestnet.js.map +1 -1
  55. package/_cjs/core/chains/definitions/mainnet.js +1 -0
  56. package/_cjs/core/chains/definitions/mainnet.js.map +1 -1
  57. package/_cjs/core/chains/definitions/sepolia.js +1 -0
  58. package/_cjs/core/chains/definitions/sepolia.js.map +1 -1
  59. package/_cjs/core/clients/decorators/base.js +5 -0
  60. package/_cjs/core/clients/decorators/base.js.map +1 -1
  61. package/_cjs/core/clients/decorators/decrypt-p.js +13 -0
  62. package/_cjs/core/clients/decorators/decrypt-p.js.map +1 -0
  63. package/_cjs/core/clients/decorators/decrypt.js +4 -7
  64. package/_cjs/core/clients/decorators/decrypt.js.map +1 -1
  65. package/_cjs/core/clients/decorators/encrypt-p.js +5 -1
  66. package/_cjs/core/clients/decorators/encrypt-p.js.map +1 -1
  67. package/_cjs/core/clients/decorators/encrypt.js.map +1 -1
  68. package/_cjs/core/coprocessor/ZkProof-p.js +4 -2
  69. package/_cjs/core/coprocessor/ZkProof-p.js.map +1 -1
  70. package/_cjs/core/coprocessor/ZkProofBuilder-p.js +2 -1
  71. package/_cjs/core/coprocessor/ZkProofBuilder-p.js.map +1 -1
  72. package/_cjs/core/coprocessor/encrypt.js +1 -1
  73. package/_cjs/core/coprocessor/encrypt.js.map +1 -1
  74. package/_cjs/core/errors/RelayerResponseStatusError.js +3 -2
  75. package/_cjs/core/errors/RelayerResponseStatusError.js.map +1 -1
  76. package/_cjs/core/host-contracts/HostContractVersion-p.js +26 -4
  77. package/_cjs/core/host-contracts/HostContractVersion-p.js.map +1 -1
  78. package/_cjs/core/host-contracts/KmsSignersContext-p.js +23 -5
  79. package/_cjs/core/host-contracts/KmsSignersContext-p.js.map +1 -1
  80. package/_cjs/core/host-contracts/abi-fragments/fragments.js +21 -1
  81. package/_cjs/core/host-contracts/abi-fragments/fragments.js.map +1 -1
  82. package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js +1 -1
  83. package/_cjs/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -1
  84. package/_cjs/core/host-contracts/checkAllowedForDecryption.js +2 -2
  85. package/_cjs/core/host-contracts/checkAllowedForDecryption.js.map +1 -1
  86. package/_cjs/core/host-contracts/checkDelegation.js +8 -8
  87. package/_cjs/core/host-contracts/checkDelegation.js.map +1 -1
  88. package/_cjs/core/host-contracts/checkPersistAllowed.js +9 -9
  89. package/_cjs/core/host-contracts/checkPersistAllowed.js.map +1 -1
  90. package/_cjs/core/host-contracts/getAclAddress-p.js +1 -2
  91. package/_cjs/core/host-contracts/getAclAddress-p.js.map +1 -1
  92. package/_cjs/core/host-contracts/getCurrentKmsContextAndEpoch-p.js +51 -0
  93. package/_cjs/core/host-contracts/getCurrentKmsContextAndEpoch-p.js.map +1 -0
  94. package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js +4 -5
  95. package/_cjs/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -1
  96. package/_cjs/core/host-contracts/getFhevmExecutorAddress-p.js +1 -1
  97. package/_cjs/core/host-contracts/getFhevmExecutorAddress-p.js.map +1 -1
  98. package/_cjs/core/host-contracts/getHandleVersion-p.js +1 -2
  99. package/_cjs/core/host-contracts/getHandleVersion-p.js.map +1 -1
  100. package/_cjs/core/host-contracts/getHcuLimitAddress-p.js +1 -2
  101. package/_cjs/core/host-contracts/getHcuLimitAddress-p.js.map +1 -1
  102. package/_cjs/core/host-contracts/getInputVerifierAddress-p.js +1 -2
  103. package/_cjs/core/host-contracts/getInputVerifierAddress-p.js.map +1 -1
  104. package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js +5 -7
  105. package/_cjs/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -1
  106. package/_cjs/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js +4 -5
  107. package/_cjs/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js.map +1 -1
  108. package/_cjs/core/host-contracts/getSignersForKmsContext-p.js +3 -5
  109. package/_cjs/core/host-contracts/getSignersForKmsContext-p.js.map +1 -1
  110. package/_cjs/core/host-contracts/isAllowedForDecryption.js +4 -4
  111. package/_cjs/core/host-contracts/isAllowedForDecryption.js.map +1 -1
  112. package/_cjs/core/host-contracts/isHandleDelegatedForUserDecryption-p.js +5 -5
  113. package/_cjs/core/host-contracts/isHandleDelegatedForUserDecryption-p.js.map +1 -1
  114. package/_cjs/core/host-contracts/isUserDecryptable.js +2 -2
  115. package/_cjs/core/host-contracts/isUserDecryptable.js.map +1 -1
  116. package/_cjs/core/host-contracts/persistAllowed.js +4 -4
  117. package/_cjs/core/host-contracts/persistAllowed.js.map +1 -1
  118. package/_cjs/core/host-contracts/readKmsSignersContext-p.js +74 -25
  119. package/_cjs/core/host-contracts/readKmsSignersContext-p.js.map +1 -1
  120. package/_cjs/core/key/FheEncryptionKeyWasm-p.js +12 -4
  121. package/_cjs/core/key/FheEncryptionKeyWasm-p.js.map +1 -1
  122. package/_cjs/core/key/deserializeFheEncryptionKey.js +3 -0
  123. package/_cjs/core/key/deserializeFheEncryptionKey.js.map +1 -1
  124. package/_cjs/core/key/fetchFheEncryptionKey.js +1 -1
  125. package/_cjs/core/key/fetchFheEncryptionKey.js.map +1 -1
  126. package/_cjs/core/key/fetchFheEncryptionKeyBytes.js.map +1 -1
  127. package/_cjs/core/key/serializeFheEncryptionKey.js +4 -1
  128. package/_cjs/core/key/serializeFheEncryptionKey.js.map +1 -1
  129. package/_cjs/core/kms/KmsSigncryptedShares-p.js +9 -1
  130. package/_cjs/core/kms/KmsSigncryptedShares-p.js.map +1 -1
  131. package/_cjs/core/kms/SignedDecryptionPermit-p.js +5 -1
  132. package/_cjs/core/kms/SignedDecryptionPermit-p.js.map +1 -1
  133. package/_cjs/core/kms/TransportKeyPair-p.js +31 -7
  134. package/_cjs/core/kms/TransportKeyPair-p.js.map +1 -1
  135. package/_cjs/core/kms/createKmsUserDecryptEip712.js +4 -0
  136. package/_cjs/core/kms/createKmsUserDecryptEip712.js.map +1 -1
  137. package/_cjs/core/kms/createKmsUserDecryptEip712V2.js +97 -0
  138. package/_cjs/core/kms/createKmsUserDecryptEip712V2.js.map +1 -0
  139. package/_cjs/core/kms/{decryptKmsSignedcryptedShares-p.js → decryptKmsSigncryptedShares-p.js} +10 -3
  140. package/_cjs/core/kms/decryptKmsSigncryptedShares-p.js.map +1 -0
  141. package/_cjs/core/kms/decryptValuesFromPairs.js +4 -4
  142. package/_cjs/core/kms/decryptValuesFromPairs.js.map +1 -1
  143. package/_cjs/core/kms/{fetchKmsSignedcryptedShares-p.js → fetchKmsSigncryptedShares-p.js} +10 -6
  144. package/_cjs/core/kms/fetchKmsSigncryptedShares-p.js.map +1 -0
  145. package/_cjs/core/kms/kmsExtraData.js +53 -10
  146. package/_cjs/core/kms/kmsExtraData.js.map +1 -1
  147. package/_cjs/core/kms/kmsUserDecryptEip712V2Types.js +25 -0
  148. package/_cjs/core/kms/kmsUserDecryptEip712V2Types.js.map +1 -0
  149. package/_cjs/core/kms/publicDecrypt.js +5 -3
  150. package/_cjs/core/kms/publicDecrypt.js.map +1 -1
  151. package/_cjs/core/modules/decrypt/mock.js +1 -23
  152. package/_cjs/core/modules/decrypt/mock.js.map +1 -1
  153. package/_cjs/core/modules/decrypt/module/api-p.js +51 -23
  154. package/_cjs/core/modules/decrypt/module/api-p.js.map +1 -1
  155. package/_cjs/core/modules/decrypt/module/index.js +5 -27
  156. package/_cjs/core/modules/decrypt/module/index.js.map +1 -1
  157. package/_cjs/core/modules/decrypt/module/init-p.js +40 -19
  158. package/_cjs/core/modules/decrypt/module/init-p.js.map +1 -1
  159. package/_cjs/core/modules/encrypt/mock.js +26 -8
  160. package/_cjs/core/modules/encrypt/mock.js.map +1 -1
  161. package/_cjs/core/modules/encrypt/module/api-p.js +50 -21
  162. package/_cjs/core/modules/encrypt/module/api-p.js.map +1 -1
  163. package/_cjs/core/modules/encrypt/module/index.js +3 -3
  164. package/_cjs/core/modules/encrypt/module/index.js.map +1 -1
  165. package/_cjs/core/modules/encrypt/module/init-p.js +63 -24
  166. package/_cjs/core/modules/encrypt/module/init-p.js.map +1 -1
  167. package/_cjs/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js +1 -1
  168. package/_cjs/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js.map +1 -1
  169. package/_cjs/core/modules/relayer/cleartext/fetchUserDecrypt.js +1 -1
  170. package/_cjs/core/modules/relayer/cleartext/fetchUserDecrypt.js.map +1 -1
  171. package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js +44 -11
  172. package/_cjs/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
  173. package/_cjs/core/modules/relayer/module/fetchCoprocessorSignatures.js +5 -2
  174. package/_cjs/core/modules/relayer/module/fetchCoprocessorSignatures.js.map +1 -1
  175. package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecrypt.js +5 -1
  176. package/_cjs/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +1 -1
  177. package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeySource.js +15 -6
  178. package/_cjs/core/modules/relayer/module/fetchFheEncryptionKeySource.js.map +1 -1
  179. package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js +5 -1
  180. package/_cjs/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -1
  181. package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js +5 -1
  182. package/_cjs/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
  183. package/_cjs/core/modules/relayer/module/readErrorMessage.js +29 -0
  184. package/_cjs/core/modules/relayer/module/readErrorMessage.js.map +1 -0
  185. package/_cjs/core/modules/relayer/module/relayerUrl.js +33 -27
  186. package/_cjs/core/modules/relayer/module/relayerUrl.js.map +1 -1
  187. package/_cjs/core/runtime/CoreFhevm-p.js +171 -5
  188. package/_cjs/core/runtime/CoreFhevm-p.js.map +1 -1
  189. package/_cjs/core/runtime/HyperWasmSolver-p.js +187 -0
  190. package/_cjs/core/runtime/HyperWasmSolver-p.js.map +1 -0
  191. package/_cjs/core/runtime/ProtocolVersionResolver-p.js +270 -0
  192. package/_cjs/core/runtime/ProtocolVersionResolver-p.js.map +1 -0
  193. package/_cjs/core/runtime/initFhevmDecryptRuntime-p.js +1 -1
  194. package/_cjs/core/runtime/initFhevmDecryptRuntime-p.js.map +1 -1
  195. package/_cjs/core/runtime/initFhevmEncryptRuntime-p.js +1 -1
  196. package/_cjs/core/runtime/initFhevmEncryptRuntime-p.js.map +1 -1
  197. package/_cjs/core/runtime/initFhevmRuntime-p.js +4 -1
  198. package/_cjs/core/runtime/initFhevmRuntime-p.js.map +1 -1
  199. package/_cjs/core/runtime/resolveFhevmVersions-p.js +48 -0
  200. package/_cjs/core/runtime/resolveFhevmVersions-p.js.map +1 -0
  201. package/_cjs/core/runtimeConfig-p.js +10 -0
  202. package/_cjs/core/runtimeConfig-p.js.map +1 -1
  203. package/_cjs/core/types/{zkProofBuilder.js → moduleVersions.js} +1 -1
  204. package/_cjs/core/types/moduleVersions.js.map +1 -0
  205. package/_cjs/core/types/{fhevmUser.js → wasmAssets.js} +1 -1
  206. package/_cjs/core/types/wasmAssets.js.map +1 -0
  207. package/_cjs/core/types/{fhevmDecryptionKey.js → zkProofBuilder-p.js} +1 -1
  208. package/_cjs/core/types/zkProofBuilder-p.js.map +1 -0
  209. package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js +1 -0
  210. package/_cjs/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -1
  211. package/_cjs/ethers/internal/config.js +1 -18
  212. package/_cjs/ethers/internal/config.js.map +1 -1
  213. package/_cjs/viem/internal/config.js +1 -18
  214. package/_cjs/viem/internal/config.js.map +1 -1
  215. package/_cjs/wasm/tfhe/loadTfheLib.js.map +1 -1
  216. package/_cjs/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
  217. package/_cjs/wasm/tfhe/v1.5.3/tfhe.js +6 -1
  218. package/_cjs/wasm/tfhe/v1.5.3/tfhe.js.map +2 -2
  219. package/_cjs/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
  220. package/_cjs/wasm/tfhe/v1.6.1/tfhe.js +6 -1
  221. package/_cjs/wasm/tfhe/v1.6.1/tfhe.js.map +2 -2
  222. package/_cjs/wasm/tkms/loadKmsLib.js.map +1 -1
  223. package/_cjs/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
  224. package/_cjs/wasm/tkms/v0.13.10/kms_lib.js +6 -1
  225. package/_cjs/wasm/tkms/v0.13.10/kms_lib.js.map +2 -2
  226. package/_cjs/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
  227. package/_cjs/wasm/tkms/v0.13.20-0/kms_lib.js +6 -1
  228. package/_cjs/wasm/tkms/v0.13.20-0/kms_lib.js.map +2 -2
  229. package/_cjs/wasm/wasmBaseUrl.js +23 -7
  230. package/_cjs/wasm/wasmBaseUrl.js.map +2 -2
  231. package/_esm/core/_version.js +1 -1
  232. package/_esm/core/actions/base/canDecryptPublicValue.js +1 -1
  233. package/_esm/core/actions/base/canDecryptPublicValue.js.map +1 -1
  234. package/_esm/core/actions/base/canDecryptPublicValues.js +1 -1
  235. package/_esm/core/actions/base/canDecryptPublicValues.js.map +1 -1
  236. package/_esm/core/actions/base/{fetchKmsSignedcryptedShares.js → fetchKmsSigncryptedShares.js} +4 -4
  237. package/_esm/core/actions/base/fetchKmsSigncryptedShares.js.map +1 -0
  238. package/_esm/core/actions/base/index.js +1 -1
  239. package/_esm/core/actions/base/index.js.map +1 -1
  240. package/_esm/core/actions/base/readKmsSignersContext.js +2 -1
  241. package/_esm/core/actions/base/readKmsSignersContext.js.map +1 -1
  242. package/_esm/core/actions/chain/parseTransportKeyPair.js.map +1 -1
  243. package/_esm/core/actions/decrypt/decryptKmsSigncryptedShares.js +11 -0
  244. package/_esm/core/actions/decrypt/decryptKmsSigncryptedShares.js.map +1 -0
  245. package/_esm/core/actions/decrypt/decryptValue.js +3 -1
  246. package/_esm/core/actions/decrypt/decryptValue.js.map +1 -1
  247. package/_esm/core/actions/decrypt/decryptValues.js +3 -1
  248. package/_esm/core/actions/decrypt/decryptValues.js.map +1 -1
  249. package/_esm/core/actions/decrypt/decryptValuesFromPairs.js +3 -1
  250. package/_esm/core/actions/decrypt/decryptValuesFromPairs.js.map +1 -1
  251. package/_esm/core/actions/decrypt/generateTransportKeyPair.js +3 -1
  252. package/_esm/core/actions/decrypt/generateTransportKeyPair.js.map +1 -1
  253. package/_esm/core/actions/decrypt/index.js +1 -1
  254. package/_esm/core/actions/decrypt/index.js.map +1 -1
  255. package/_esm/core/actions/encrypt/encryptValue.js +3 -1
  256. package/_esm/core/actions/encrypt/encryptValue.js.map +1 -1
  257. package/_esm/core/actions/encrypt/encryptValues.js +3 -1
  258. package/_esm/core/actions/encrypt/encryptValues.js.map +1 -1
  259. package/_esm/core/actions/encrypt/generateZkProof.js +5 -1
  260. package/_esm/core/actions/encrypt/generateZkProof.js.map +1 -1
  261. package/_esm/core/actions/host/readFhevmExecutorContractData.js +8 -8
  262. package/_esm/core/actions/host/readFhevmExecutorContractData.js.map +1 -1
  263. package/_esm/core/actions/host/readInputVerifierContractData.js +2 -2
  264. package/_esm/core/actions/host/readInputVerifierContractData.js.map +1 -1
  265. package/_esm/core/actions/host/readKmsVerifierContractData.js +7 -6
  266. package/_esm/core/actions/host/readKmsVerifierContractData.js.map +1 -1
  267. package/_esm/core/actions/host/resolveFhevmConfig.js +7 -1
  268. package/_esm/core/actions/host/resolveFhevmConfig.js.map +1 -1
  269. package/_esm/core/base/auth.js +8 -6
  270. package/_esm/core/base/auth.js.map +1 -1
  271. package/_esm/core/base/errors/InvalidUrlError.js +13 -0
  272. package/_esm/core/base/errors/InvalidUrlError.js.map +1 -0
  273. package/_esm/core/base/fetch.js +96 -0
  274. package/_esm/core/base/fetch.js.map +1 -1
  275. package/_esm/core/base/object.js +28 -0
  276. package/_esm/core/base/object.js.map +1 -1
  277. package/_esm/core/base/semver.js +164 -0
  278. package/_esm/core/base/semver.js.map +1 -0
  279. package/_esm/core/base/string.js +9 -0
  280. package/_esm/core/base/string.js.map +1 -1
  281. package/_esm/core/base/uint.js +23 -2
  282. package/_esm/core/base/uint.js.map +1 -1
  283. package/_esm/core/chains/definitions/localTestnet.js +3 -0
  284. package/_esm/core/chains/definitions/localTestnet.js.map +1 -1
  285. package/_esm/core/chains/definitions/mainnet.js +1 -0
  286. package/_esm/core/chains/definitions/mainnet.js.map +1 -1
  287. package/_esm/core/chains/definitions/sepolia.js +1 -0
  288. package/_esm/core/chains/definitions/sepolia.js.map +1 -1
  289. package/_esm/core/clients/decorators/base.js +6 -1
  290. package/_esm/core/clients/decorators/base.js.map +1 -1
  291. package/_esm/core/clients/decorators/decrypt-p.js +11 -0
  292. package/_esm/core/clients/decorators/decrypt-p.js.map +1 -0
  293. package/_esm/core/clients/decorators/decrypt.js +3 -7
  294. package/_esm/core/clients/decorators/decrypt.js.map +1 -1
  295. package/_esm/core/clients/decorators/encrypt-p.js +6 -2
  296. package/_esm/core/clients/decorators/encrypt-p.js.map +1 -1
  297. package/_esm/core/clients/decorators/encrypt.js.map +1 -1
  298. package/_esm/core/coprocessor/ZkProof-p.js +4 -2
  299. package/_esm/core/coprocessor/ZkProof-p.js.map +1 -1
  300. package/_esm/core/coprocessor/ZkProofBuilder-p.js +2 -1
  301. package/_esm/core/coprocessor/ZkProofBuilder-p.js.map +1 -1
  302. package/_esm/core/coprocessor/encrypt.js +1 -1
  303. package/_esm/core/coprocessor/encrypt.js.map +1 -1
  304. package/_esm/core/errors/RelayerResponseStatusError.js +7 -2
  305. package/_esm/core/errors/RelayerResponseStatusError.js.map +1 -1
  306. package/_esm/core/host-contracts/HostContractVersion-p.js +34 -3
  307. package/_esm/core/host-contracts/HostContractVersion-p.js.map +1 -1
  308. package/_esm/core/host-contracts/KmsSignersContext-p.js +24 -6
  309. package/_esm/core/host-contracts/KmsSignersContext-p.js.map +1 -1
  310. package/_esm/core/host-contracts/abi-fragments/fragments.js +24 -0
  311. package/_esm/core/host-contracts/abi-fragments/fragments.js.map +1 -1
  312. package/_esm/core/host-contracts/canDecryptValuesFromPairs.js +1 -1
  313. package/_esm/core/host-contracts/canDecryptValuesFromPairs.js.map +1 -1
  314. package/_esm/core/host-contracts/checkAllowedForDecryption.js +2 -2
  315. package/_esm/core/host-contracts/checkAllowedForDecryption.js.map +1 -1
  316. package/_esm/core/host-contracts/checkDelegation.js +8 -8
  317. package/_esm/core/host-contracts/checkDelegation.js.map +1 -1
  318. package/_esm/core/host-contracts/checkPersistAllowed.js +9 -9
  319. package/_esm/core/host-contracts/checkPersistAllowed.js.map +1 -1
  320. package/_esm/core/host-contracts/getAclAddress-p.js +1 -2
  321. package/_esm/core/host-contracts/getAclAddress-p.js.map +1 -1
  322. package/_esm/core/host-contracts/getCurrentKmsContextAndEpoch-p.js +63 -0
  323. package/_esm/core/host-contracts/getCurrentKmsContextAndEpoch-p.js.map +1 -0
  324. package/_esm/core/host-contracts/getCurrentKmsContextId-p.js +6 -7
  325. package/_esm/core/host-contracts/getCurrentKmsContextId-p.js.map +1 -1
  326. package/_esm/core/host-contracts/getFhevmExecutorAddress-p.js +1 -1
  327. package/_esm/core/host-contracts/getFhevmExecutorAddress-p.js.map +1 -1
  328. package/_esm/core/host-contracts/getHandleVersion-p.js +1 -2
  329. package/_esm/core/host-contracts/getHandleVersion-p.js.map +1 -1
  330. package/_esm/core/host-contracts/getHcuLimitAddress-p.js +1 -2
  331. package/_esm/core/host-contracts/getHcuLimitAddress-p.js.map +1 -1
  332. package/_esm/core/host-contracts/getInputVerifierAddress-p.js +1 -2
  333. package/_esm/core/host-contracts/getInputVerifierAddress-p.js.map +1 -1
  334. package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js +6 -8
  335. package/_esm/core/host-contracts/getKmsContextSignersAndThreshold-p.js.map +1 -1
  336. package/_esm/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js +5 -6
  337. package/_esm/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.js.map +1 -1
  338. package/_esm/core/host-contracts/getSignersForKmsContext-p.js +5 -7
  339. package/_esm/core/host-contracts/getSignersForKmsContext-p.js.map +1 -1
  340. package/_esm/core/host-contracts/isAllowedForDecryption.js +4 -4
  341. package/_esm/core/host-contracts/isAllowedForDecryption.js.map +1 -1
  342. package/_esm/core/host-contracts/isHandleDelegatedForUserDecryption-p.js +5 -5
  343. package/_esm/core/host-contracts/isHandleDelegatedForUserDecryption-p.js.map +1 -1
  344. package/_esm/core/host-contracts/isUserDecryptable.js +2 -2
  345. package/_esm/core/host-contracts/isUserDecryptable.js.map +1 -1
  346. package/_esm/core/host-contracts/persistAllowed.js +4 -4
  347. package/_esm/core/host-contracts/persistAllowed.js.map +1 -1
  348. package/_esm/core/host-contracts/readKmsSignersContext-p.js +89 -29
  349. package/_esm/core/host-contracts/readKmsSignersContext-p.js.map +1 -1
  350. package/_esm/core/key/FheEncryptionKeyWasm-p.js +12 -4
  351. package/_esm/core/key/FheEncryptionKeyWasm-p.js.map +1 -1
  352. package/_esm/core/key/deserializeFheEncryptionKey.js +3 -0
  353. package/_esm/core/key/deserializeFheEncryptionKey.js.map +1 -1
  354. package/_esm/core/key/fetchFheEncryptionKey.js +1 -1
  355. package/_esm/core/key/fetchFheEncryptionKey.js.map +1 -1
  356. package/_esm/core/key/fetchFheEncryptionKeyBytes.js.map +1 -1
  357. package/_esm/core/key/serializeFheEncryptionKey.js +4 -1
  358. package/_esm/core/key/serializeFheEncryptionKey.js.map +1 -1
  359. package/_esm/core/kms/KmsSigncryptedShares-p.js +9 -1
  360. package/_esm/core/kms/KmsSigncryptedShares-p.js.map +1 -1
  361. package/_esm/core/kms/SignedDecryptionPermit-p.js +5 -1
  362. package/_esm/core/kms/SignedDecryptionPermit-p.js.map +1 -1
  363. package/_esm/core/kms/TransportKeyPair-p.js +32 -7
  364. package/_esm/core/kms/TransportKeyPair-p.js.map +1 -1
  365. package/_esm/core/kms/createKmsUserDecryptEip712.js +4 -0
  366. package/_esm/core/kms/createKmsUserDecryptEip712.js.map +1 -1
  367. package/_esm/core/kms/createKmsUserDecryptEip712V2.js +98 -0
  368. package/_esm/core/kms/createKmsUserDecryptEip712V2.js.map +1 -0
  369. package/_esm/core/kms/{decryptKmsSignedcryptedShares-p.js → decryptKmsSigncryptedShares-p.js} +9 -2
  370. package/_esm/core/kms/decryptKmsSigncryptedShares-p.js.map +1 -0
  371. package/_esm/core/kms/decryptValuesFromPairs.js +4 -4
  372. package/_esm/core/kms/decryptValuesFromPairs.js.map +1 -1
  373. package/_esm/core/kms/{fetchKmsSignedcryptedShares-p.js → fetchKmsSigncryptedShares-p.js} +12 -6
  374. package/_esm/core/kms/fetchKmsSigncryptedShares-p.js.map +1 -0
  375. package/_esm/core/kms/kmsExtraData.js +70 -12
  376. package/_esm/core/kms/kmsExtraData.js.map +1 -1
  377. package/_esm/core/kms/kmsUserDecryptEip712V2Types.js +28 -0
  378. package/_esm/core/kms/kmsUserDecryptEip712V2Types.js.map +1 -0
  379. package/_esm/core/kms/publicDecrypt.js +5 -3
  380. package/_esm/core/kms/publicDecrypt.js.map +1 -1
  381. package/_esm/core/modules/decrypt/mock.js +0 -24
  382. package/_esm/core/modules/decrypt/mock.js.map +1 -1
  383. package/_esm/core/modules/decrypt/module/api-p.js +51 -23
  384. package/_esm/core/modules/decrypt/module/api-p.js.map +1 -1
  385. package/_esm/core/modules/decrypt/module/index.js +31 -25
  386. package/_esm/core/modules/decrypt/module/index.js.map +1 -1
  387. package/_esm/core/modules/decrypt/module/init-p.js +41 -19
  388. package/_esm/core/modules/decrypt/module/init-p.js.map +1 -1
  389. package/_esm/core/modules/encrypt/mock.js +26 -9
  390. package/_esm/core/modules/encrypt/mock.js.map +1 -1
  391. package/_esm/core/modules/encrypt/module/api-p.js +50 -21
  392. package/_esm/core/modules/encrypt/module/api-p.js.map +1 -1
  393. package/_esm/core/modules/encrypt/module/index.js +3 -3
  394. package/_esm/core/modules/encrypt/module/index.js.map +1 -1
  395. package/_esm/core/modules/encrypt/module/init-p.js +69 -29
  396. package/_esm/core/modules/encrypt/module/init-p.js.map +1 -1
  397. package/_esm/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js +2 -2
  398. package/_esm/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.js.map +1 -1
  399. package/_esm/core/modules/relayer/cleartext/fetchUserDecrypt.js +2 -2
  400. package/_esm/core/modules/relayer/cleartext/fetchUserDecrypt.js.map +1 -1
  401. package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js +74 -17
  402. package/_esm/core/modules/relayer/module/RelayerAsyncRequest.js.map +1 -1
  403. package/_esm/core/modules/relayer/module/fetchCoprocessorSignatures.js +5 -2
  404. package/_esm/core/modules/relayer/module/fetchCoprocessorSignatures.js.map +1 -1
  405. package/_esm/core/modules/relayer/module/fetchDelegatedUserDecrypt.js +6 -2
  406. package/_esm/core/modules/relayer/module/fetchDelegatedUserDecrypt.js.map +1 -1
  407. package/_esm/core/modules/relayer/module/fetchFheEncryptionKeySource.js +20 -8
  408. package/_esm/core/modules/relayer/module/fetchFheEncryptionKeySource.js.map +1 -1
  409. package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js +6 -2
  410. package/_esm/core/modules/relayer/module/fetchPublicDecrypt.js.map +1 -1
  411. package/_esm/core/modules/relayer/module/fetchUserDecrypt.js +6 -2
  412. package/_esm/core/modules/relayer/module/fetchUserDecrypt.js.map +1 -1
  413. package/_esm/core/modules/relayer/module/readErrorMessage.js +52 -0
  414. package/_esm/core/modules/relayer/module/readErrorMessage.js.map +1 -0
  415. package/_esm/core/modules/relayer/module/relayerUrl.js +55 -27
  416. package/_esm/core/modules/relayer/module/relayerUrl.js.map +1 -1
  417. package/_esm/core/runtime/CoreFhevm-p.js +167 -5
  418. package/_esm/core/runtime/CoreFhevm-p.js.map +1 -1
  419. package/_esm/core/runtime/HyperWasmSolver-p.js +268 -0
  420. package/_esm/core/runtime/HyperWasmSolver-p.js.map +1 -0
  421. package/_esm/core/runtime/ProtocolVersionResolver-p.js +326 -0
  422. package/_esm/core/runtime/ProtocolVersionResolver-p.js.map +1 -0
  423. package/_esm/core/runtime/initFhevmDecryptRuntime-p.js +1 -1
  424. package/_esm/core/runtime/initFhevmDecryptRuntime-p.js.map +1 -1
  425. package/_esm/core/runtime/initFhevmEncryptRuntime-p.js +1 -1
  426. package/_esm/core/runtime/initFhevmEncryptRuntime-p.js.map +1 -1
  427. package/_esm/core/runtime/initFhevmRuntime-p.js +4 -1
  428. package/_esm/core/runtime/initFhevmRuntime-p.js.map +1 -1
  429. package/_esm/core/runtime/resolveFhevmVersions-p.js +62 -0
  430. package/_esm/core/runtime/resolveFhevmVersions-p.js.map +1 -0
  431. package/_esm/core/runtimeConfig-p.js +9 -0
  432. package/_esm/core/runtimeConfig-p.js.map +1 -1
  433. package/_esm/core/types/moduleVersions.js +2 -0
  434. package/_esm/core/types/moduleVersions.js.map +1 -0
  435. package/_esm/core/types/wasmAssets.js +2 -0
  436. package/_esm/core/types/wasmAssets.js.map +1 -0
  437. package/_esm/core/types/zkProofBuilder-p.js +2 -0
  438. package/_esm/core/types/zkProofBuilder-p.js.map +1 -0
  439. package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js +1 -0
  440. package/_esm/core/utils-p/decrypt/verifyTkmsPublicKey.js.map +1 -1
  441. package/_esm/ethers/internal/config.js +1 -18
  442. package/_esm/ethers/internal/config.js.map +1 -1
  443. package/_esm/viem/internal/config.js +1 -18
  444. package/_esm/viem/internal/config.js.map +1 -1
  445. package/_esm/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
  446. package/_esm/wasm/tfhe/v1.5.3/tfhe.js +8 -0
  447. package/_esm/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
  448. package/_esm/wasm/tfhe/v1.6.1/tfhe.js +8 -0
  449. package/_esm/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
  450. package/_esm/wasm/tkms/v0.13.10/kms_lib.js +8 -0
  451. package/_esm/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
  452. package/_esm/wasm/tkms/v0.13.20-0/kms_lib.js +8 -0
  453. package/_esm/wasm/wasmBaseUrl.js +69 -4
  454. package/_types/core/actions/base/{fetchKmsSignedcryptedShares.d.ts → fetchKmsSigncryptedShares.d.ts} +7 -7
  455. package/_types/core/actions/base/fetchKmsSigncryptedShares.d.ts.map +1 -0
  456. package/_types/core/actions/base/index.d.ts +1 -1
  457. package/_types/core/actions/base/index.d.ts.map +1 -1
  458. package/_types/core/actions/base/readKmsSignersContext.d.ts.map +1 -1
  459. package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts +2 -2
  460. package/_types/core/actions/chain/parseSignedDecryptionPermit.d.ts.map +1 -1
  461. package/_types/core/actions/chain/parseTransportKeyPair.d.ts +1 -1
  462. package/_types/core/actions/chain/parseTransportKeyPair.d.ts.map +1 -1
  463. package/_types/core/actions/decrypt/{decryptKmsSignedcryptedShares.d.ts → decryptKmsSigncryptedShares.d.ts} +4 -4
  464. package/_types/core/actions/decrypt/decryptKmsSigncryptedShares.d.ts.map +1 -0
  465. package/_types/core/actions/decrypt/decryptValue.d.ts.map +1 -1
  466. package/_types/core/actions/decrypt/decryptValues.d.ts.map +1 -1
  467. package/_types/core/actions/decrypt/decryptValuesFromPairs.d.ts.map +1 -1
  468. package/_types/core/actions/decrypt/generateTransportKeyPair.d.ts +2 -2
  469. package/_types/core/actions/decrypt/generateTransportKeyPair.d.ts.map +1 -1
  470. package/_types/core/actions/decrypt/index.d.ts +1 -1
  471. package/_types/core/actions/decrypt/index.d.ts.map +1 -1
  472. package/_types/core/actions/encrypt/encryptValue.d.ts.map +1 -1
  473. package/_types/core/actions/encrypt/encryptValues.d.ts.map +1 -1
  474. package/_types/core/actions/encrypt/generateZkProof.d.ts.map +1 -1
  475. package/_types/core/actions/host/readKmsVerifierContractData.d.ts +1 -0
  476. package/_types/core/actions/host/readKmsVerifierContractData.d.ts.map +1 -1
  477. package/_types/core/actions/host/resolveFhevmConfig.d.ts +2 -0
  478. package/_types/core/actions/host/resolveFhevmConfig.d.ts.map +1 -1
  479. package/_types/core/base/auth.d.ts.map +1 -1
  480. package/_types/core/base/errors/InvalidUrlError.d.ts +14 -0
  481. package/_types/core/base/errors/InvalidUrlError.d.ts.map +1 -0
  482. package/_types/core/base/fetch.d.ts +57 -0
  483. package/_types/core/base/fetch.d.ts.map +1 -1
  484. package/_types/core/base/object.d.ts +7 -0
  485. package/_types/core/base/object.d.ts.map +1 -1
  486. package/_types/core/base/semver.d.ts +39 -0
  487. package/_types/core/base/semver.d.ts.map +1 -0
  488. package/_types/core/base/string.d.ts +1 -0
  489. package/_types/core/base/string.d.ts.map +1 -1
  490. package/_types/core/base/uint.d.ts +13 -2
  491. package/_types/core/base/uint.d.ts.map +1 -1
  492. package/_types/core/chains/definitions/localTestnet.d.ts +3 -0
  493. package/_types/core/chains/definitions/localTestnet.d.ts.map +1 -1
  494. package/_types/core/chains/definitions/mainnet.d.ts +1 -0
  495. package/_types/core/chains/definitions/mainnet.d.ts.map +1 -1
  496. package/_types/core/chains/definitions/sepolia.d.ts.map +1 -1
  497. package/_types/core/clients/decorators/base.d.ts.map +1 -1
  498. package/_types/core/clients/decorators/decrypt-p.d.ts +4 -0
  499. package/_types/core/clients/decorators/decrypt-p.d.ts.map +1 -0
  500. package/_types/core/clients/decorators/decrypt.d.ts +4 -2
  501. package/_types/core/clients/decorators/decrypt.d.ts.map +1 -1
  502. package/_types/core/clients/decorators/encrypt-p.d.ts +2 -3
  503. package/_types/core/clients/decorators/encrypt-p.d.ts.map +1 -1
  504. package/_types/core/clients/decorators/encrypt.d.ts +4 -2
  505. package/_types/core/clients/decorators/encrypt.d.ts.map +1 -1
  506. package/_types/core/coprocessor/ZkProof-p.d.ts +9 -2
  507. package/_types/core/coprocessor/ZkProof-p.d.ts.map +1 -1
  508. package/_types/core/coprocessor/ZkProofBuilder-p.d.ts +3 -1
  509. package/_types/core/coprocessor/ZkProofBuilder-p.d.ts.map +1 -1
  510. package/_types/core/coprocessor/encrypt.d.ts +2 -0
  511. package/_types/core/coprocessor/encrypt.d.ts.map +1 -1
  512. package/_types/core/errors/RelayerResponseStatusError.d.ts +7 -1
  513. package/_types/core/errors/RelayerResponseStatusError.d.ts.map +1 -1
  514. package/_types/core/host-contracts/HostContractVersion-p.d.ts +18 -1
  515. package/_types/core/host-contracts/HostContractVersion-p.d.ts.map +1 -1
  516. package/_types/core/host-contracts/KmsSignersContext-p.d.ts +2 -1
  517. package/_types/core/host-contracts/KmsSignersContext-p.d.ts.map +1 -1
  518. package/_types/core/host-contracts/abi-fragments/fragments.d.ts +5 -0
  519. package/_types/core/host-contracts/abi-fragments/fragments.d.ts.map +1 -1
  520. package/_types/core/host-contracts/checkAllowedForDecryption.d.ts +1 -1
  521. package/_types/core/host-contracts/checkAllowedForDecryption.d.ts.map +1 -1
  522. package/_types/core/host-contracts/checkDelegation.d.ts +1 -1
  523. package/_types/core/host-contracts/checkDelegation.d.ts.map +1 -1
  524. package/_types/core/host-contracts/checkPersistAllowed.d.ts +1 -1
  525. package/_types/core/host-contracts/checkPersistAllowed.d.ts.map +1 -1
  526. package/_types/core/host-contracts/getAclAddress-p.d.ts +1 -1
  527. package/_types/core/host-contracts/getAclAddress-p.d.ts.map +1 -1
  528. package/_types/core/host-contracts/getCurrentKmsContextAndEpoch-p.d.ts +30 -0
  529. package/_types/core/host-contracts/getCurrentKmsContextAndEpoch-p.d.ts.map +1 -0
  530. package/_types/core/host-contracts/getCurrentKmsContextId-p.d.ts +1 -1
  531. package/_types/core/host-contracts/getCurrentKmsContextId-p.d.ts.map +1 -1
  532. package/_types/core/host-contracts/getFhevmExecutorAddress-p.d.ts +1 -1
  533. package/_types/core/host-contracts/getFhevmExecutorAddress-p.d.ts.map +1 -1
  534. package/_types/core/host-contracts/getHandleVersion-p.d.ts +1 -1
  535. package/_types/core/host-contracts/getHandleVersion-p.d.ts.map +1 -1
  536. package/_types/core/host-contracts/getHcuLimitAddress-p.d.ts +1 -1
  537. package/_types/core/host-contracts/getHcuLimitAddress-p.d.ts.map +1 -1
  538. package/_types/core/host-contracts/getInputVerifierAddress-p.d.ts +1 -1
  539. package/_types/core/host-contracts/getInputVerifierAddress-p.d.ts.map +1 -1
  540. package/_types/core/host-contracts/getKmsContextSignersAndThreshold-p.d.ts +1 -1
  541. package/_types/core/host-contracts/getKmsContextSignersAndThreshold-p.d.ts.map +1 -1
  542. package/_types/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.d.ts +1 -1
  543. package/_types/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.d.ts.map +1 -1
  544. package/_types/core/host-contracts/getSignersForKmsContext-p.d.ts +2 -2
  545. package/_types/core/host-contracts/getSignersForKmsContext-p.d.ts.map +1 -1
  546. package/_types/core/host-contracts/isAllowedForDecryption.d.ts +1 -1
  547. package/_types/core/host-contracts/isAllowedForDecryption.d.ts.map +1 -1
  548. package/_types/core/host-contracts/isHandleDelegatedForUserDecryption-p.d.ts +1 -1
  549. package/_types/core/host-contracts/isHandleDelegatedForUserDecryption-p.d.ts.map +1 -1
  550. package/_types/core/host-contracts/isUserDecryptable.d.ts +1 -1
  551. package/_types/core/host-contracts/isUserDecryptable.d.ts.map +1 -1
  552. package/_types/core/host-contracts/persistAllowed.d.ts +1 -1
  553. package/_types/core/host-contracts/persistAllowed.d.ts.map +1 -1
  554. package/_types/core/host-contracts/readKmsSignersContext-p.d.ts +25 -7
  555. package/_types/core/host-contracts/readKmsSignersContext-p.d.ts.map +1 -1
  556. package/_types/core/key/FheEncryptionKeyWasm-p.d.ts +3 -1
  557. package/_types/core/key/FheEncryptionKeyWasm-p.d.ts.map +1 -1
  558. package/_types/core/key/deserializeFheEncryptionKey.d.ts +2 -0
  559. package/_types/core/key/deserializeFheEncryptionKey.d.ts.map +1 -1
  560. package/_types/core/key/fetchFheEncryptionKey.d.ts +3 -1
  561. package/_types/core/key/fetchFheEncryptionKey.d.ts.map +1 -1
  562. package/_types/core/key/fetchFheEncryptionKeyBytes.d.ts.map +1 -1
  563. package/_types/core/key/serializeFheEncryptionKey.d.ts.map +1 -1
  564. package/_types/core/kms/KmsSigncryptedShares-p.d.ts.map +1 -1
  565. package/_types/core/kms/SignedDecryptionPermit-p.d.ts.map +1 -1
  566. package/_types/core/kms/TransportKeyPair-p.d.ts +9 -0
  567. package/_types/core/kms/TransportKeyPair-p.d.ts.map +1 -1
  568. package/_types/core/kms/createKmsUserDecryptEip712.d.ts.map +1 -1
  569. package/_types/core/kms/createKmsUserDecryptEip712V2.d.ts +15 -0
  570. package/_types/core/kms/createKmsUserDecryptEip712V2.d.ts.map +1 -0
  571. package/_types/core/kms/{decryptKmsSignedcryptedShares-p.d.ts → decryptKmsSigncryptedShares-p.d.ts} +4 -2
  572. package/_types/core/kms/decryptKmsSigncryptedShares-p.d.ts.map +1 -0
  573. package/_types/core/kms/decryptValuesFromPairs.d.ts +2 -0
  574. package/_types/core/kms/decryptValuesFromPairs.d.ts.map +1 -1
  575. package/_types/core/kms/{fetchKmsSignedcryptedShares-p.d.ts → fetchKmsSigncryptedShares-p.d.ts} +2 -2
  576. package/_types/core/kms/fetchKmsSigncryptedShares-p.d.ts.map +1 -0
  577. package/_types/core/kms/kmsExtraData.d.ts +9 -2
  578. package/_types/core/kms/kmsExtraData.d.ts.map +1 -1
  579. package/_types/core/kms/kmsUserDecryptEip712V2Types.d.ts +3 -0
  580. package/_types/core/kms/kmsUserDecryptEip712V2Types.d.ts.map +1 -0
  581. package/_types/core/kms/publicDecrypt.d.ts.map +1 -1
  582. package/_types/core/modules/decrypt/mock.d.ts +1 -2
  583. package/_types/core/modules/decrypt/mock.d.ts.map +1 -1
  584. package/_types/core/modules/decrypt/module/api-p.d.ts +2 -2
  585. package/_types/core/modules/decrypt/module/api-p.d.ts.map +1 -1
  586. package/_types/core/modules/decrypt/module/index.d.ts +1 -2
  587. package/_types/core/modules/decrypt/module/index.d.ts.map +1 -1
  588. package/_types/core/modules/decrypt/module/init-p.d.ts +3 -3
  589. package/_types/core/modules/decrypt/module/init-p.d.ts.map +1 -1
  590. package/_types/core/modules/decrypt/types.d.ts +33 -34
  591. package/_types/core/modules/decrypt/types.d.ts.map +1 -1
  592. package/_types/core/modules/encrypt/mock.d.ts.map +1 -1
  593. package/_types/core/modules/encrypt/module/api-p.d.ts.map +1 -1
  594. package/_types/core/modules/encrypt/module/index.d.ts.map +1 -1
  595. package/_types/core/modules/encrypt/module/init-p.d.ts +11 -4
  596. package/_types/core/modules/encrypt/module/init-p.d.ts.map +1 -1
  597. package/_types/core/modules/encrypt/types.d.ts +31 -2
  598. package/_types/core/modules/encrypt/types.d.ts.map +1 -1
  599. package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts +19 -0
  600. package/_types/core/modules/relayer/module/RelayerAsyncRequest.d.ts.map +1 -1
  601. package/_types/core/modules/relayer/module/fetchCoprocessorSignatures.d.ts.map +1 -1
  602. package/_types/core/modules/relayer/module/fetchDelegatedUserDecrypt.d.ts.map +1 -1
  603. package/_types/core/modules/relayer/module/fetchFheEncryptionKeySource.d.ts.map +1 -1
  604. package/_types/core/modules/relayer/module/fetchPublicDecrypt.d.ts.map +1 -1
  605. package/_types/core/modules/relayer/module/fetchUserDecrypt.d.ts.map +1 -1
  606. package/_types/core/modules/relayer/module/readErrorMessage.d.ts +26 -0
  607. package/_types/core/modules/relayer/module/readErrorMessage.d.ts.map +1 -0
  608. package/_types/core/modules/relayer/module/relayerUrl.d.ts +24 -5
  609. package/_types/core/modules/relayer/module/relayerUrl.d.ts.map +1 -1
  610. package/_types/core/runtime/CoreFhevm-p.d.ts +15 -4
  611. package/_types/core/runtime/CoreFhevm-p.d.ts.map +1 -1
  612. package/_types/core/runtime/HyperWasmSolver-p.d.ts +71 -0
  613. package/_types/core/runtime/HyperWasmSolver-p.d.ts.map +1 -0
  614. package/_types/core/runtime/ProtocolVersionResolver-p.d.ts +29 -0
  615. package/_types/core/runtime/ProtocolVersionResolver-p.d.ts.map +1 -0
  616. package/_types/core/runtime/initFhevmRuntime-p.d.ts.map +1 -1
  617. package/_types/core/runtime/resolveFhevmVersions-p.d.ts +21 -0
  618. package/_types/core/runtime/resolveFhevmVersions-p.d.ts.map +1 -0
  619. package/_types/core/runtimeConfig-p.d.ts +3 -2
  620. package/_types/core/runtimeConfig-p.d.ts.map +1 -1
  621. package/_types/core/types/auth.d.ts +12 -1
  622. package/_types/core/types/auth.d.ts.map +1 -1
  623. package/_types/core/types/coreFhevmClient.d.ts +72 -2
  624. package/_types/core/types/coreFhevmClient.d.ts.map +1 -1
  625. package/_types/core/types/coreFhevmRuntime.d.ts +3 -9
  626. package/_types/core/types/coreFhevmRuntime.d.ts.map +1 -1
  627. package/_types/core/types/fheEncryptionKey.d.ts +2 -0
  628. package/_types/core/types/fheEncryptionKey.d.ts.map +1 -1
  629. package/_types/core/types/fhevmChain.d.ts +3 -0
  630. package/_types/core/types/fhevmChain.d.ts.map +1 -1
  631. package/_types/core/types/hostContract.d.ts +1 -0
  632. package/_types/core/types/hostContract.d.ts.map +1 -1
  633. package/_types/core/types/index.d.ts +1 -1
  634. package/_types/core/types/index.d.ts.map +1 -1
  635. package/_types/core/types/kms-p.d.ts +2 -0
  636. package/_types/core/types/kms-p.d.ts.map +1 -1
  637. package/_types/core/types/kms.d.ts +71 -21
  638. package/_types/core/types/kms.d.ts.map +1 -1
  639. package/_types/core/types/kmsSignersContext.d.ts +8 -0
  640. package/_types/core/types/kmsSignersContext.d.ts.map +1 -1
  641. package/_types/core/types/logger.d.ts +1 -0
  642. package/_types/core/types/logger.d.ts.map +1 -1
  643. package/_types/core/types/moduleVersions.d.ts +25 -0
  644. package/_types/core/types/moduleVersions.d.ts.map +1 -0
  645. package/_types/core/types/relayer.d.ts +1 -0
  646. package/_types/core/types/relayer.d.ts.map +1 -1
  647. package/_types/core/types/tkms-p.d.ts +2 -0
  648. package/_types/core/types/tkms-p.d.ts.map +1 -1
  649. package/_types/core/types/wasmAssets.d.ts +2 -0
  650. package/_types/core/types/wasmAssets.d.ts.map +1 -0
  651. package/_types/core/types/{zkProofBuilder.d.ts → zkProofBuilder-p.d.ts} +8 -3
  652. package/_types/core/types/zkProofBuilder-p.d.ts.map +1 -0
  653. package/_types/core/utils-p/decrypt/verifyTkmsPublicKey.d.ts +2 -0
  654. package/_types/core/utils-p/decrypt/verifyTkmsPublicKey.d.ts.map +1 -1
  655. package/_types/ethers/cleartext/createFhevmCleartextDecryptClient.d.ts +2 -2
  656. package/_types/ethers/cleartext/createFhevmCleartextDecryptClient.d.ts.map +1 -1
  657. package/_types/ethers/cleartext/createFhevmCleartextEncryptClient.d.ts +2 -2
  658. package/_types/ethers/cleartext/createFhevmCleartextEncryptClient.d.ts.map +1 -1
  659. package/_types/ethers/clients/createFhevmDecryptClient.d.ts +2 -2
  660. package/_types/ethers/clients/createFhevmDecryptClient.d.ts.map +1 -1
  661. package/_types/ethers/clients/createFhevmEncryptClient.d.ts +2 -2
  662. package/_types/ethers/clients/createFhevmEncryptClient.d.ts.map +1 -1
  663. package/_types/viem/cleartext/createFhevmCleartextDecryptClient.d.ts +2 -2
  664. package/_types/viem/cleartext/createFhevmCleartextDecryptClient.d.ts.map +1 -1
  665. package/_types/viem/cleartext/createFhevmCleartextEncryptClient.d.ts +2 -2
  666. package/_types/viem/cleartext/createFhevmCleartextEncryptClient.d.ts.map +1 -1
  667. package/_types/viem/clients/createFhevmDecryptClient.d.ts +2 -2
  668. package/_types/viem/clients/createFhevmDecryptClient.d.ts.map +1 -1
  669. package/_types/viem/clients/createFhevmEncryptClient.d.ts +2 -2
  670. package/_types/viem/clients/createFhevmEncryptClient.d.ts.map +1 -1
  671. package/_types/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
  672. package/_types/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
  673. package/_types/wasm/tfheModuleVersion-p.d.ts +1 -1
  674. package/_types/wasm/tfheModuleVersion-p.d.ts.map +1 -1
  675. package/_types/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
  676. package/_types/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
  677. package/_types/wasm/tkmsModuleVersion-p.d.ts +1 -1
  678. package/_types/wasm/tkmsModuleVersion-p.d.ts.map +1 -1
  679. package/core/_version.ts +1 -1
  680. package/core/actions/base/canDecryptPublicValue.ts +1 -1
  681. package/core/actions/base/canDecryptPublicValues.ts +1 -1
  682. package/core/actions/base/{fetchKmsSignedcryptedShares.ts → fetchKmsSigncryptedShares.ts} +16 -16
  683. package/core/actions/base/index.ts +5 -5
  684. package/core/actions/base/readKmsSignersContext.ts +2 -1
  685. package/core/actions/chain/parseSignedDecryptionPermit.ts +2 -2
  686. package/core/actions/chain/parseTransportKeyPair.ts +2 -1
  687. package/core/actions/decrypt/{decryptKmsSignedcryptedShares.ts → decryptKmsSigncryptedShares.ts} +12 -9
  688. package/core/actions/decrypt/decryptValue.ts +4 -1
  689. package/core/actions/decrypt/decryptValues.ts +4 -1
  690. package/core/actions/decrypt/decryptValuesFromPairs.ts +4 -1
  691. package/core/actions/decrypt/generateTransportKeyPair.ts +5 -3
  692. package/core/actions/decrypt/index.ts +4 -4
  693. package/core/actions/encrypt/encryptValue.ts +4 -1
  694. package/core/actions/encrypt/encryptValues.ts +4 -1
  695. package/core/actions/encrypt/generateZkProof.ts +9 -1
  696. package/core/actions/host/readFhevmExecutorContractData.ts +8 -8
  697. package/core/actions/host/readInputVerifierContractData.ts +2 -2
  698. package/core/actions/host/readKmsVerifierContractData.ts +8 -6
  699. package/core/actions/host/resolveFhevmConfig.ts +10 -1
  700. package/core/base/auth.ts +8 -6
  701. package/core/base/errors/InvalidUrlError.ts +24 -0
  702. package/core/base/fetch.ts +102 -0
  703. package/core/base/object.ts +38 -0
  704. package/core/base/semver.ts +231 -0
  705. package/core/base/string.ts +10 -0
  706. package/core/base/uint.ts +33 -4
  707. package/core/chains/definitions/localTestnet.ts +3 -0
  708. package/core/chains/definitions/mainnet.ts +1 -0
  709. package/core/chains/definitions/sepolia.ts +6 -6
  710. package/core/clients/decorators/base.ts +8 -1
  711. package/core/clients/decorators/decrypt-p.ts +18 -0
  712. package/core/clients/decorators/decrypt.ts +10 -15
  713. package/core/clients/decorators/encrypt-p.ts +12 -7
  714. package/core/clients/decorators/encrypt.ts +6 -4
  715. package/core/coprocessor/ZkProof-p.ts +17 -5
  716. package/core/coprocessor/ZkProofBuilder-p.ts +5 -2
  717. package/core/coprocessor/encrypt.ts +6 -1
  718. package/core/errors/RelayerResponseStatusError.ts +14 -2
  719. package/core/host-contracts/HostContractVersion-p.ts +60 -3
  720. package/core/host-contracts/KmsSignersContext-p.ts +36 -5
  721. package/core/host-contracts/abi-fragments/fragments.ts +28 -0
  722. package/core/host-contracts/canDecryptValuesFromPairs.ts +1 -1
  723. package/core/host-contracts/checkAllowedForDecryption.ts +3 -3
  724. package/core/host-contracts/checkDelegation.ts +9 -9
  725. package/core/host-contracts/checkPersistAllowed.ts +10 -10
  726. package/core/host-contracts/getAclAddress-p.ts +2 -3
  727. package/core/host-contracts/getCurrentKmsContextAndEpoch-p.ts +92 -0
  728. package/core/host-contracts/getCurrentKmsContextId-p.ts +8 -8
  729. package/core/host-contracts/getFhevmExecutorAddress-p.ts +2 -2
  730. package/core/host-contracts/getHandleVersion-p.ts +2 -3
  731. package/core/host-contracts/getHcuLimitAddress-p.ts +2 -3
  732. package/core/host-contracts/getInputVerifierAddress-p.ts +2 -3
  733. package/core/host-contracts/getKmsContextSignersAndThreshold-p.ts +7 -9
  734. package/core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.ts +6 -7
  735. package/core/host-contracts/getSignersForKmsContext-p.ts +6 -8
  736. package/core/host-contracts/isAllowedForDecryption.ts +6 -6
  737. package/core/host-contracts/isHandleDelegatedForUserDecryption-p.ts +7 -7
  738. package/core/host-contracts/isUserDecryptable.ts +3 -3
  739. package/core/host-contracts/persistAllowed.ts +6 -6
  740. package/core/host-contracts/readKmsSignersContext-p.ts +131 -41
  741. package/core/key/FheEncryptionKeyWasm-p.ts +24 -3
  742. package/core/key/deserializeFheEncryptionKey.ts +8 -1
  743. package/core/key/fetchFheEncryptionKey.ts +8 -4
  744. package/core/key/fetchFheEncryptionKeyBytes.ts +4 -2
  745. package/core/key/serializeFheEncryptionKey.ts +8 -2
  746. package/core/kms/KmsSigncryptedShares-p.ts +11 -1
  747. package/core/kms/SignedDecryptionPermit-p.ts +6 -1
  748. package/core/kms/TransportKeyPair-p.ts +56 -10
  749. package/core/kms/createKmsUserDecryptEip712.ts +4 -0
  750. package/core/kms/createKmsUserDecryptEip712V2.ts +159 -0
  751. package/core/kms/{decryptKmsSignedcryptedShares-p.ts → decryptKmsSigncryptedShares-p.ts} +12 -2
  752. package/core/kms/decryptValuesFromPairs.ts +6 -4
  753. package/core/kms/{fetchKmsSignedcryptedShares-p.ts → fetchKmsSigncryptedShares-p.ts} +12 -5
  754. package/core/kms/kmsExtraData.ts +82 -13
  755. package/core/kms/kmsUserDecryptEip712V2Types.ts +31 -0
  756. package/core/kms/publicDecrypt.ts +5 -3
  757. package/core/modules/decrypt/mock.ts +0 -35
  758. package/core/modules/decrypt/module/api-p.ts +88 -17
  759. package/core/modules/decrypt/module/index.ts +37 -34
  760. package/core/modules/decrypt/module/init-p.ts +60 -28
  761. package/core/modules/decrypt/types.ts +37 -65
  762. package/core/modules/encrypt/mock.ts +34 -4
  763. package/core/modules/encrypt/module/api-p.ts +66 -15
  764. package/core/modules/encrypt/module/index.ts +5 -3
  765. package/core/modules/encrypt/module/init-p.ts +99 -40
  766. package/core/modules/encrypt/types.ts +34 -2
  767. package/core/modules/relayer/cleartext/fetchDelegatedUserDecrypt.ts +2 -2
  768. package/core/modules/relayer/cleartext/fetchUserDecrypt.ts +2 -2
  769. package/core/modules/relayer/module/RelayerAsyncRequest.ts +79 -21
  770. package/core/modules/relayer/module/fetchCoprocessorSignatures.ts +6 -2
  771. package/core/modules/relayer/module/fetchDelegatedUserDecrypt.ts +7 -2
  772. package/core/modules/relayer/module/fetchFheEncryptionKeySource.ts +21 -8
  773. package/core/modules/relayer/module/fetchPublicDecrypt.ts +7 -2
  774. package/core/modules/relayer/module/fetchUserDecrypt.ts +7 -2
  775. package/core/modules/relayer/module/readErrorMessage.ts +56 -0
  776. package/core/modules/relayer/module/relayerUrl.ts +66 -27
  777. package/core/runtime/CoreFhevm-p.ts +247 -22
  778. package/core/runtime/HyperWasmSolver-p.ts +417 -0
  779. package/core/runtime/ProtocolVersionResolver-p.ts +463 -0
  780. package/core/runtime/initFhevmDecryptRuntime-p.ts +1 -1
  781. package/core/runtime/initFhevmEncryptRuntime-p.ts +1 -1
  782. package/core/runtime/initFhevmRuntime-p.ts +4 -1
  783. package/core/runtime/resolveFhevmVersions-p.ts +85 -0
  784. package/core/runtimeConfig-p.ts +17 -2
  785. package/core/types/auth.ts +12 -1
  786. package/core/types/coreFhevmClient.ts +89 -4
  787. package/core/types/coreFhevmRuntime.ts +3 -18
  788. package/core/types/fheEncryptionKey.ts +2 -0
  789. package/core/types/fhevmChain.ts +3 -0
  790. package/core/types/hostContract.ts +1 -0
  791. package/core/types/index.ts +1 -1
  792. package/core/types/kms-p.ts +2 -0
  793. package/core/types/kms.ts +48 -18
  794. package/core/types/kmsSignersContext.ts +8 -0
  795. package/core/types/logger.ts +1 -0
  796. package/core/types/moduleVersions.ts +35 -0
  797. package/core/types/relayer.ts +1 -0
  798. package/core/types/tkms-p.ts +3 -0
  799. package/core/types/wasmAssets.ts +6 -0
  800. package/core/types/{zkProofBuilder.ts → zkProofBuilder-p.ts} +3 -2
  801. package/core/utils-p/decrypt/verifyTkmsPublicKey.ts +3 -1
  802. package/ethers/cleartext/createFhevmCleartextDecryptClient.ts +2 -2
  803. package/ethers/cleartext/createFhevmCleartextEncryptClient.ts +2 -2
  804. package/ethers/clients/createFhevmDecryptClient.ts +2 -2
  805. package/ethers/clients/createFhevmEncryptClient.ts +2 -2
  806. package/ethers/internal/config.ts +2 -30
  807. package/package.json +1 -1
  808. package/viem/cleartext/createFhevmCleartextDecryptClient.ts +2 -2
  809. package/viem/cleartext/createFhevmCleartextEncryptClient.ts +2 -2
  810. package/viem/clients/createFhevmDecryptClient.ts +2 -2
  811. package/viem/clients/createFhevmEncryptClient.ts +2 -2
  812. package/viem/internal/config.ts +2 -30
  813. package/wasm/tfhe/v1.5.3/tfhe.d.ts +4 -0
  814. package/wasm/tfhe/v1.5.3/tfhe.js +8 -0
  815. package/wasm/tfhe/v1.6.0-dev/tfhe.d.ts +4 -0
  816. package/wasm/tfhe/v1.6.0-dev/tfhe.js +8 -0
  817. package/wasm/tfhe/v1.6.1/tfhe.d.ts +4 -0
  818. package/wasm/tfhe/v1.6.1/tfhe.js +8 -0
  819. package/wasm/tfheModuleVersion-p.ts +1 -1
  820. package/wasm/tkms/v0.13.10/kms_lib.d.ts +4 -0
  821. package/wasm/tkms/v0.13.10/kms_lib.js +8 -0
  822. package/wasm/tkms/v0.13.20-0/kms_lib.d.ts +4 -0
  823. package/wasm/tkms/v0.13.20-0/kms_lib.js +8 -0
  824. package/wasm/tkmsModuleVersion-p.ts +1 -1
  825. package/wasm/wasmBaseUrl.js +69 -4
  826. package/_cjs/core/actions/base/fetchKmsSignedcryptedShares.js.map +0 -1
  827. package/_cjs/core/actions/decrypt/decryptKmsSignedcryptedShares.js +0 -11
  828. package/_cjs/core/actions/decrypt/decryptKmsSignedcryptedShares.js.map +0 -1
  829. package/_cjs/core/kms/decryptKmsSignedcryptedShares-p.js.map +0 -1
  830. package/_cjs/core/kms/fetchKmsSignedcryptedShares-p.js.map +0 -1
  831. package/_cjs/core/types/fhevmDecryptionKey.js.map +0 -1
  832. package/_cjs/core/types/fhevmUser.js.map +0 -1
  833. package/_cjs/core/types/zkProofBuilder.js.map +0 -1
  834. package/_esm/core/actions/base/fetchKmsSignedcryptedShares.js.map +0 -1
  835. package/_esm/core/actions/decrypt/decryptKmsSignedcryptedShares.js +0 -9
  836. package/_esm/core/actions/decrypt/decryptKmsSignedcryptedShares.js.map +0 -1
  837. package/_esm/core/kms/decryptKmsSignedcryptedShares-p.js.map +0 -1
  838. package/_esm/core/kms/fetchKmsSignedcryptedShares-p.js.map +0 -1
  839. package/_esm/core/types/fhevmDecryptionKey.js +0 -2
  840. package/_esm/core/types/fhevmDecryptionKey.js.map +0 -1
  841. package/_esm/core/types/fhevmUser.js +0 -2
  842. package/_esm/core/types/fhevmUser.js.map +0 -1
  843. package/_esm/core/types/zkProofBuilder.js +0 -2
  844. package/_esm/core/types/zkProofBuilder.js.map +0 -1
  845. package/_types/core/actions/base/fetchKmsSignedcryptedShares.d.ts.map +0 -1
  846. package/_types/core/actions/decrypt/decryptKmsSignedcryptedShares.d.ts.map +0 -1
  847. package/_types/core/kms/decryptKmsSignedcryptedShares-p.d.ts.map +0 -1
  848. package/_types/core/kms/fetchKmsSignedcryptedShares-p.d.ts.map +0 -1
  849. package/_types/core/types/fhevmDecryptionKey.d.ts +0 -4
  850. package/_types/core/types/fhevmDecryptionKey.d.ts.map +0 -1
  851. package/_types/core/types/fhevmUser.d.ts +0 -7
  852. package/_types/core/types/fhevmUser.d.ts.map +0 -1
  853. package/_types/core/types/zkProofBuilder.d.ts.map +0 -1
  854. package/core/types/fhevmDecryptionKey.ts +0 -8
  855. package/core/types/fhevmUser.ts +0 -7
@@ -5,7 +5,7 @@ type Context = {
5
5
  readonly client: NonNullable<object>;
6
6
  };
7
7
  type Parameters = {
8
- readonly address: ChecksummedAddress;
8
+ readonly kmsVerifierAddress: ChecksummedAddress;
9
9
  };
10
10
  type ReturnType = Uint256BigInt;
11
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getCurrentKmsContextId-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getCurrentKmsContextId-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AASjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,CAAC;AAWhC;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GACvE,OAAO,CAAC,UAAU,CAAC,CAErB"}
1
+ {"version":3,"file":"getCurrentKmsContextId-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getCurrentKmsContextId-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AASjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;CACjD,CAAC;AAEF,KAAK,UAAU,GAAG,aAAa,CAAC;AAWhC;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GACvE,OAAO,CAAC,UAAU,CAAC,CAErB"}
@@ -5,7 +5,7 @@ type Context = {
5
5
  readonly client: NonNullable<object>;
6
6
  };
7
7
  type Parameters = {
8
- readonly address: ChecksummedAddress;
8
+ readonly aclAddress: ChecksummedAddress;
9
9
  };
10
10
  type ReturnType = ChecksummedAddress;
11
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getFhevmExecutorAddress-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getFhevmExecutorAddress-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG,kBAAkB,CAAC;AAIrC;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAoB3G"}
1
+ {"version":3,"file":"getFhevmExecutorAddress-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getFhevmExecutorAddress-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;CACzC,CAAC;AAEF,KAAK,UAAU,GAAG,kBAAkB,CAAC;AAIrC;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAoB3G"}
@@ -5,7 +5,7 @@ type Context = {
5
5
  readonly client: NonNullable<object>;
6
6
  };
7
7
  type Parameters = {
8
- readonly address: ChecksummedAddress;
8
+ readonly fhevmExecutorAddress: ChecksummedAddress;
9
9
  };
10
10
  type ReturnType = Uint8Number;
11
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getHandleVersion-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getHandleVersion-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG,WAAW,CAAC;AAI9B;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAgBpG"}
1
+ {"version":3,"file":"getHandleVersion-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getHandleVersion-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;CACnD,CAAC;AAEF,KAAK,UAAU,GAAG,WAAW,CAAC;AAI9B;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAepG"}
@@ -5,7 +5,7 @@ type Context = {
5
5
  readonly client: NonNullable<object>;
6
6
  };
7
7
  type Parameters = {
8
- readonly address: ChecksummedAddress;
8
+ readonly fhevmExecutorAddress: ChecksummedAddress;
9
9
  };
10
10
  type ReturnType = ChecksummedAddress;
11
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getHcuLimitAddress-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getHcuLimitAddress-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG,kBAAkB,CAAC;AAIrC;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAoBtG"}
1
+ {"version":3,"file":"getHcuLimitAddress-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getHcuLimitAddress-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;CACnD,CAAC;AAEF,KAAK,UAAU,GAAG,kBAAkB,CAAC;AAIrC;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAmBtG"}
@@ -5,7 +5,7 @@ type Context = {
5
5
  readonly client: NonNullable<object>;
6
6
  };
7
7
  type Parameters = {
8
- readonly address: ChecksummedAddress;
8
+ readonly fhevmExecutorAddress: ChecksummedAddress;
9
9
  };
10
10
  type ReturnType = ChecksummedAddress;
11
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getInputVerifierAddress-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getInputVerifierAddress-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG,kBAAkB,CAAC;AAIrC;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAoB3G"}
1
+ {"version":3,"file":"getInputVerifierAddress-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getInputVerifierAddress-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAOjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;CACnD,CAAC;AAEF,KAAK,UAAU,GAAG,kBAAkB,CAAC;AAIrC;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAmB3G"}
@@ -8,7 +8,7 @@ type Context = {
8
8
  };
9
9
  };
10
10
  type Parameters = {
11
- readonly address: ChecksummedAddress;
11
+ readonly kmsVerifierAddress: ChecksummedAddress;
12
12
  };
13
13
  type ReturnType = {
14
14
  readonly threshold: Uint8Number;
@@ -1 +1 @@
1
- {"version":3,"file":"getKmsContextSignersAndThreshold-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getKmsContextSignersAndThreshold-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAYjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACjD,CAAC;AAaF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GACvE,OAAO,CAAC,UAAU,CAAC,CAErB"}
1
+ {"version":3,"file":"getKmsContextSignersAndThreshold-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getKmsContextSignersAndThreshold-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAYjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;CACjD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACjD,CAAC;AAaF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GACvE,OAAO,CAAC,UAAU,CAAC,CAErB"}
@@ -5,7 +5,7 @@ type Context = {
5
5
  readonly client: NonNullable<object>;
6
6
  };
7
7
  type Parameters = {
8
- readonly address: ChecksummedAddress;
8
+ readonly kmsVerifierAddress: ChecksummedAddress;
9
9
  readonly extraData: BytesHex;
10
10
  };
11
11
  type ReturnType = {
@@ -1 +1 @@
1
- {"version":3,"file":"getKmsContextSignersAndThresholdFromExtraData-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAWjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC;CAC9B,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACjD,CAAC;AAgBF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GACvE,OAAO,CAAC,UAAU,CAAC,CAIrB"}
1
+ {"version":3,"file":"getKmsContextSignersAndThresholdFromExtraData-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getKmsContextSignersAndThresholdFromExtraData-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAWjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC;CAC9B,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACjD,CAAC;AAgBF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GACvE,OAAO,CAAC,UAAU,CAAC,CAIrB"}
@@ -5,7 +5,7 @@ type Context = {
5
5
  readonly client: NonNullable<object>;
6
6
  };
7
7
  type Parameters = {
8
- readonly address: ChecksummedAddress;
8
+ readonly kmsVerifierAddress: ChecksummedAddress;
9
9
  readonly kmsContextId: Uint256BigInt;
10
10
  };
11
11
  type ReturnType = ChecksummedAddress[];
@@ -18,7 +18,7 @@ type ReturnType = ChecksummedAddress[];
18
18
  * Returns an empty array for KMSVerifier versions before v0.2.0 (where
19
19
  * per-context signers were not yet supported).
20
20
  *
21
- * @param parameters.address - The checksummed address of the KMSVerifier contract.
21
+ * @param parameters.kmsVerifierAddress - The checksummed address of the KMSVerifier contract.
22
22
  * @param parameters.kmsContextId - The context ID to query signers for.
23
23
  */
24
24
  export declare function getSignersForKmsContext(context: Context, parameters: Parameters): Promise<ReturnType>;
@@ -1 +1 @@
1
- {"version":3,"file":"getSignersForKmsContext-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/getSignersForKmsContext-p.ts"],"names":[],"mappings":"AAAA,OAAO,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AAE,CAAC;AAIvC;;;;;;;;;;;GAWG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CA4B3G;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,GAC3C,OAAO,CAAC,UAAU,CAAC,CAmBrB"}
@@ -9,7 +9,7 @@ type Context = {
9
9
  };
10
10
  };
11
11
  type Parameters = {
12
- readonly address: ChecksummedAddress;
12
+ readonly aclAddress: ChecksummedAddress;
13
13
  readonly handles: readonly Handle[];
14
14
  };
15
15
  type ReturnType = boolean[];
@@ -1 +1 @@
1
- {"version":3,"file":"isAllowedForDecryption.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/isAllowedForDecryption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAO3D,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,KAAK,UAAU,GAAG,OAAO,EAAE,CAAC;AAI5B,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAc1G"}
1
+ {"version":3,"file":"isAllowedForDecryption.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/isAllowedForDecryption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAO3D,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,KAAK,UAAU,GAAG,OAAO,EAAE,CAAC;AAI5B,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAc1G"}
@@ -9,7 +9,7 @@ type Context = {
9
9
  };
10
10
  };
11
11
  type Parameters = {
12
- readonly address: ChecksummedAddress;
12
+ readonly aclAddress: ChecksummedAddress;
13
13
  readonly delegate: ChecksummedAddress;
14
14
  readonly delegator: ChecksummedAddress;
15
15
  readonly pairs: readonly HandleContractPair[];
@@ -1 +1 @@
1
- {"version":3,"file":"isHandleDelegatedForUserDecryption-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/isHandleDelegatedForUserDecryption-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,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AG;IAChB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;CAC/C,CAAC;AAEF,KAAK,UAAU,GAAG,OAAO,EAAE,CAAC;AAI5B,wBAAsB,kCAAkC,CACtD,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,UAAU,CAAC,CAiBrB"}
@@ -9,7 +9,7 @@ type Context = {
9
9
  };
10
10
  };
11
11
  type Parameters = {
12
- readonly address: ChecksummedAddress;
12
+ readonly aclAddress: ChecksummedAddress;
13
13
  readonly userAddress: ChecksummedAddress;
14
14
  readonly handleContractPairs: ReadonlyArray<{
15
15
  readonly handle: Handle;
@@ -1 +1 @@
1
- {"version":3,"file":"isUserDecryptable.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/isUserDecryptable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAKjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;IACzC,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC;QAC1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AO,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B,CAAC,CAAC;AAIH;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAyDrG"}
@@ -9,7 +9,7 @@ type Context = {
9
9
  };
10
10
  };
11
11
  type Parameters = {
12
- readonly address: ChecksummedAddress;
12
+ readonly aclAddress: ChecksummedAddress;
13
13
  readonly pairs: readonly HandleAccountPair[];
14
14
  };
15
15
  type ReturnType = boolean[];
@@ -1 +1 @@
1
- {"version":3,"file":"persistAllowed.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/persistAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC9C,CAAC;AAEF,KAAK,UAAU,GAAG,OAAO,EAAE,CAAC;AAI5B,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAelG"}
1
+ {"version":3,"file":"persistAllowed.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/persistAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC9C,CAAC;AAEF,KAAK,UAAU,GAAG,OAAO,EAAE,CAAC;AAI5B,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAelG"}
@@ -9,9 +9,11 @@ type Context = {
9
9
  };
10
10
  };
11
11
  type Parameters = {
12
- readonly address: ChecksummedAddress;
12
+ readonly kmsVerifierAddress: ChecksummedAddress;
13
+ readonly protocolConfigAddress: ChecksummedAddress | undefined;
13
14
  readonly forceRefresh?: boolean | undefined;
14
15
  readonly kmsContextId?: Uint256BigInt | undefined;
16
+ readonly kmsEpochId?: Uint256BigInt | undefined;
15
17
  };
16
18
  type ReturnType = KmsSignersContext;
17
19
  export declare function readKmsSignersContext(context: Context, parameters: Parameters): Promise<ReturnType>;
@@ -32,13 +34,24 @@ export declare function readKmsSignersContext(context: Context, parameters: Para
32
34
  * - `requestedExtraData` — `kmsSignersContextToExtraData(requestedKmsSignersContext)`.
33
35
  * - `relayerKmsContextId` — `fromKmsExtraData(relayerExtraData).kmsContextId`.
34
36
  *
37
+ * ### Host-Contract Compatibility
38
+ *
39
+ * `extraData` is versioned independently from the host-contract package. The
40
+ * currently supported combinations are:
41
+ *
42
+ * - host-contracts v11 support `extraData` v0.
43
+ * - host-contracts v12 and v13 support `extraData` v0 and v1.
44
+ * - host-contracts v14 support `extraData` v0, v1, and v2.
45
+ *
35
46
  * ### Resolution (checked in order)
36
47
  *
37
48
  * 1. `relayerExtraData === requestedExtraData` → exact byte match, return
38
49
  * `requestedKmsSignersContext`. This is the **only** path that trusts cached data.
39
- * 2. Serialization version mismatch → **always throw**. The SDK and relayer must
50
+ * 2. In `'exact'` mode, any byte mismatch → **always throw**. This mode does
51
+ * not parse, refresh, or reconcile different `extraData`.
52
+ * 3. Serialization version mismatch → **always throw**. The SDK and relayer must
40
53
  * agree on the `extraData` encoding format, even if the context ID is the same.
41
- * 3. Context IDs differ → **full on-chain refetch**. The cached context is never
54
+ * 4. Context IDs differ → **full on-chain refetch**. The cached context is never
42
55
  * reused, because any mismatch means on-chain state may have diverged
43
56
  * (rotation, destruction, signer changes, etc.).
44
57
  * - Context is **valid** on-chain (current or non-destroyed) → return it.
@@ -46,14 +59,19 @@ export declare function readKmsSignersContext(context: Context, parameters: Para
46
59
  *
47
60
  * ### Modes
48
61
  *
49
- * - `'strict'` — Accept step 1 (exact match) or `relayerKmsContextId === currentKmsContextId`.
50
- * Rejects valid-but-not-current contexts.
62
+ * - `'exact'` — Accept only step 1 (byte-for-byte `extraData` equality).
63
+ * Rejects any relayer/context drift without parsing or on-chain recovery.
64
+ * - `'strict'` — Accept step 1 (exact match) or both `relayerKmsContextId === currentKmsContextId`
65
+ * and `relayerKmsEpochId === currentKmsEpochId`. Rejects valid-but-not-current contexts.
66
+ * The epoch check is required because RFC 005 introduces same-context epoch rotations
67
+ * (new shares, same party set) — a stale epoch must be rejected even if the context matches.
51
68
  * - `'loose'` — Accept any on-chain valid context (non-destroyed, in range),
52
69
  * regardless of whether it is current. Covers context rotations in either direction.
53
70
  */
54
- export type ReconcileMode = 'strict' | 'loose';
71
+ export type ReconcileMode = 'exact' | 'strict' | 'loose';
55
72
  export declare function reconcileKmsSignersContext(context: Context, parameters: {
56
- readonly address: ChecksummedAddress;
73
+ readonly kmsVerifierAddress: ChecksummedAddress;
74
+ readonly protocolConfigAddress: ChecksummedAddress | undefined;
57
75
  readonly requestedKmsSignersContext: KmsSignersContext;
58
76
  readonly relayerExtraData: BytesHex;
59
77
  readonly mode: ReconcileMode;
@@ -1 +1 @@
1
- {"version":3,"file":"readKmsSignersContext-p.d.ts","sourceRoot":"","sources":["../../../core/host-contracts/readKmsSignersContext-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,aAAa,EAAe,MAAM,wBAAwB,CAAC;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAcjE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF,KAAK,UAAU,GAAG,iBAAiB,CAAC;AAIpC,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAazG;AAsED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH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G,iBAAiB,CAAC;AAIpC,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAezG;AA0HD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAIH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE;IACV,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,QAAQ,CAAC,qBAAqB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,0BAA0B,EAAE,iBAAiB,CAAC;IACvD,QAAQ,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC9B,GACA,OAAO,CAAC,iBAAiB,CAAC,CAmE5B"}
@@ -1,13 +1,15 @@
1
1
  import type { FhevmRuntime } from '../types/coreFhevmRuntime.js';
2
+ import type { TfheVersion } from '../../wasm/tfhe/TfheApi.js';
2
3
  import type { FheEncryptionCrs, FheEncryptionKeyMetadata, FheEncryptionKeyWasm, FheEncryptionPublicKey } from '../types/fheEncryptionKey.js';
3
4
  export declare function createFheEncryptionKeyWasm(owner: WeakRef<FhevmRuntime>, parameters: {
4
5
  readonly publicKey: FheEncryptionPublicKey;
5
6
  readonly crs: FheEncryptionCrs;
6
7
  readonly metadata: FheEncryptionKeyMetadata;
8
+ readonly tfheVersion: TfheVersion;
7
9
  }): FheEncryptionKeyWasm;
8
10
  /**
9
11
  * Verifies that the given `FheEncryptionKeyWasm` instance is owned
10
12
  * by the given runtime. Throws if not.
11
13
  */
12
- export declare function assertFheEncryptionKeyWasmOwnedBy(data: FheEncryptionKeyWasm, owner: FhevmRuntime): void;
14
+ export declare function assertFheEncryptionKeyWasmOwnedBy(data: FheEncryptionKeyWasm, owner: FhevmRuntime, tfheVersion: TfheVersion): void;
13
15
  //# sourceMappingURL=FheEncryptionKeyWasm-p.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FheEncryptionKeyWasm-p.d.ts","sourceRoot":"","sources":["../../../core/key/FheEncryptionKeyWasm-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AAuEtC,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAC5B,UAAU,EAAE;IACV,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;IAC3C,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;CAC7C,GACA,oBAAoB,CAEtB;AAID;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,YAAY,GAAG,IAAI,CAEvG"}
1
+ {"version":3,"file":"FheEncryptionKeyWasm-p.d.ts","sourceRoot":"","sources":["../../../core/key/FheEncryptionKeyWasm-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AAsFtC,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAC5B,UAAU,EAAE;IACV,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;IAC3C,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC,GACA,oBAAoB,CAEtB;AAID;;;GAGG;AACH,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,oBAAoB,EAC1B,KAAK,EAAE,YAAY,EACnB,WAAW,EAAE,WAAW,GACvB,IAAI,CAEN"}
@@ -1,6 +1,8 @@
1
1
  import type { WithEncrypt } from '../types/coreFhevmRuntime.js';
2
2
  import type { FheEncryptionKeyWasm, FheEncryptionKeyBytes } from '../types/fheEncryptionKey.js';
3
+ import type { TfheVersion } from '../../wasm/tfhe/TfheApi.js';
3
4
  export declare function deserializeFheEncryptionKey(context: {
4
5
  readonly runtime: WithEncrypt;
6
+ readonly tfheVersion: TfheVersion;
5
7
  }, parameters: FheEncryptionKeyBytes): Promise<FheEncryptionKeyWasm>;
6
8
  //# sourceMappingURL=deserializeFheEncryptionKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deserializeFheEncryptionKey.d.ts","sourceRoot":"","sources":["../../../core/key/deserializeFheEncryptionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAKhG,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAAE,EAC1C,UAAU,EAAE,qBAAqB,GAChC,OAAO,CAAC,oBAAoB,CAAC,CAc/B"}
1
+ {"version":3,"file":"deserializeFheEncryptionKey.d.ts","sourceRoot":"","sources":["../../../core/key/deserializeFheEncryptionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAK9D,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE;IACP,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC,EACD,UAAU,EAAE,qBAAqB,GAChC,OAAO,CAAC,oBAAoB,CAAC,CAiB/B"}
@@ -2,10 +2,12 @@ import type { RelayerKeyUrlOptions } from '../types/relayer.js';
2
2
  import type { WithEncrypt } from '../types/coreFhevmRuntime.js';
3
3
  import type { FhevmChain } from '../types/fhevmChain.js';
4
4
  import type { FheEncryptionKeyWasm } from '../types/fheEncryptionKey.js';
5
+ import type { TfheVersion } from '../../wasm/tfhe/TfheApi.js';
5
6
  export declare function fetchFheEncryptionKeyWasm(context: {
6
7
  readonly chain: FhevmChain;
7
8
  readonly runtime: WithEncrypt;
8
- }, parameters?: {
9
+ readonly tfheVersion: TfheVersion;
10
+ }, parameters: {
9
11
  readonly options?: RelayerKeyUrlOptions | undefined;
10
12
  readonly ignoreCache?: boolean | undefined;
11
13
  }): Promise<FheEncryptionKeyWasm>;
@@ -1 +1 @@
1
- {"version":3,"file":"fetchFheEncryptionKey.d.ts","sourceRoot":"","sources":["../../../core/key/fetchFheEncryptionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAIzE,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAAE,EACtE,UAAU,CAAC,EAAE;IACX,QAAQ,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5C,GACA,OAAO,CAAC,oBAAoB,CAAC,CAgC/B"}
1
+ {"version":3,"file":"fetchFheEncryptionKey.d.ts","sourceRoot":"","sources":["../../../core/key/fetchFheEncryptionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAI9D,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE;IACP,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC,EACD,UAAU,EAAE;IACV,QAAQ,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5C,GACA,OAAO,CAAC,oBAAoB,CAAC,CA+B/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetchFheEncryptionKeyBytes.d.ts","sourceRoot":"","sources":["../../../core/key/fetchFheEncryptionKeyBytes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAwB,MAAM,8BAA8B,CAAC;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAQhE,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;CAAE,EACvE,UAAU,CAAC,EAAE;IACX,QAAQ,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5C,GACA,OAAO,CAAC,qBAAqB,CAAC,CA6BhC"}
1
+ {"version":3,"file":"fetchFheEncryptionKeyBytes.d.ts","sourceRoot":"","sources":["../../../core/key/fetchFheEncryptionKeyBytes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAwB,MAAM,8BAA8B,CAAC;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAQhE,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE;IACP,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;CAChC,EACD,UAAU,CAAC,EAAE;IACX,QAAQ,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5C,GACA,OAAO,CAAC,qBAAqB,CAAC,CA6BhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"serializeFheEncryptionKey.d.ts","sourceRoot":"","sources":["../../../core/key/serializeFheEncryptionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAG3B,MAAM,8BAA8B,CAAC;AAItC,wBAAsB,6BAA6B,CACjD,OAAO,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAAE,EAC1C,UAAU,EAAE,oBAAoB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAoBhC"}
1
+ {"version":3,"file":"serializeFheEncryptionKey.d.ts","sourceRoot":"","sources":["../../../core/key/serializeFheEncryptionKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAG3B,MAAM,8BAA8B,CAAC;AAItC,wBAAsB,6BAA6B,CACjD,OAAO,EAAE;IACP,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC/B,EACD,UAAU,EAAE,oBAAoB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAwBhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KmsSigncryptedShares-p.d.ts","sourceRoot":"","sources":["../../../core/kms/KmsSigncryptedShares-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAA6B,MAAM,iBAAiB,CAAC;AAGvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA6DzD,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAA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AE5C;;;;;;;;;;;;;GAaG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,2BAA2B,EACpC,UAAU,EAAE,kCAAkC,GAC7C,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACvC,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,2BAA2B,EACpC,UAAU,EAAE,uCAAuC,GAClD,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAuE5C,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE;IACP,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,EACD,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,sBAAsB,CAAC,CAkCjC"}
@@ -2,9 +2,13 @@ import type { ErrorMetadataParams } from '../base/errors/ErrorBase.js';
2
2
  import type { FhevmRuntime, WithDecrypt } from '../types/coreFhevmRuntime.js';
3
3
  import type { BytesHex } from '../types/primitives.js';
4
4
  import type { TkmsPrivateKey } from '../types/tkms-p.js';
5
+ import type { TkmsVersion } from '../../wasm/tkms/KmsLibApi.js';
6
+ import type { NativeClient, OptionalNativeClient } from '../types/coreFhevmClient.js';
7
+ import type { FhevmChain } from '../types/fhevmChain.js';
5
8
  declare const TransportKeyPairBrand: unique symbol;
6
9
  export type TransportKeyPair = {
7
10
  readonly publicKey: BytesHex;
11
+ readonly tkmsVersion: TkmsVersion;
8
12
  readonly [TransportKeyPairBrand]: true;
9
13
  };
10
14
  /** Type guard. */
@@ -16,6 +20,9 @@ export declare function assertIsTransportKeyPair(value: unknown, options: {
16
20
  /** Generates a fresh {@link TransportKeyPair}. */
17
21
  export declare function generateTransportKeyPair(context: {
18
22
  readonly runtime: WithDecrypt;
23
+ readonly chain: FhevmChain;
24
+ readonly client: NativeClient;
25
+ readonly tkmsVersion: TkmsVersion;
19
26
  }): Promise<TransportKeyPair>;
20
27
  /**
21
28
  * Converts an unknown value into a {@link TransportKeyPair}.
@@ -28,6 +35,8 @@ export declare function generateTransportKeyPair(context: {
28
35
  */
29
36
  export declare function toTransportKeyPair(context: {
30
37
  readonly runtime: FhevmRuntime;
38
+ readonly chain: FhevmChain;
39
+ readonly client?: OptionalNativeClient;
31
40
  }, value: unknown): Promise<TransportKeyPair>;
32
41
  /**
33
42
  * Serializes an {@link TransportKeyPair} including the private key.
@@ -1 +1 @@
1
- {"version":3,"file":"TransportKeyPair-p.d.ts","sourceRoot":"","sources":["../../../core/kms/TransportKeyPair-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,EAAS,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAazD,OAAO,CAAC,MAAM,qBAAqB,EAAE,OAAO,MAAM,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,CAAC,qBAAqB,CAAC,EAAE,IAAI,CAAC;CACxC,CAAC;AAyHF,kBAAkB;AAClB,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E;AAID,wFAAwF;AACxF,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,GAClD,OAAO,CAAC,KAAK,IAAI,gBAAgB,CAWnC;AAID,kDAAk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CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAC;CAC/C,CAiBA"}
@@ -0,0 +1,15 @@
1
+ import type { ErrorMetadataParams } from '../base/errors/ErrorBase.js';
2
+ import type { KmsUserDecryptEip712V2 } from '../types/kms.js';
3
+ export type CreateKmsUserDecryptEip712V2Parameters = {
4
+ readonly verifyingContractAddressDecryption: string;
5
+ readonly chainId: number | bigint;
6
+ readonly userAddress: string;
7
+ readonly publicKey: string | Uint8Array;
8
+ readonly allowedContracts: readonly string[];
9
+ readonly startTimestamp: number | bigint;
10
+ readonly durationSeconds: number | bigint;
11
+ readonly extraData: string;
12
+ };
13
+ export declare function createKmsUserDecryptEip712V2(parameters: CreateKmsUserDecryptEip712V2Parameters): KmsUserDecryptEip712V2;
14
+ export declare function assertIsKmsUserDecryptEip712V2(value: unknown, name: string, options: ErrorMetadataParams): asserts value is KmsUserDecryptEip712V2;
15
+ //# sourceMappingURL=createKmsUserDecryptEip712V2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createKmsUserDecryptEip712V2.d.ts","sourceRoot":"","sources":["../../../core/kms/createKmsUserDecryptEip712V2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAqB9D,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,CAAC,kCAAkC,EAAE,MAAM,CAAC;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IACzC,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B,CAAC;AAMF,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,sCAAsC,GACjD,sBAAsB,CAuDxB;AAID,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,KAAK,IAAI,sBAAsB,CAiBzC"}
@@ -2,14 +2,16 @@ import type { WithDecrypt } from '../types/coreFhevmRuntime.js';
2
2
  import type { KmsSigncryptedShares } from '../types/kms.js';
3
3
  import type { ClearValue } from '../types/encryptedTypes-p.js';
4
4
  import type { TransportKeyPair } from './TransportKeyPair-p.js';
5
+ import type { TkmsVersion } from '../../wasm/tkms/KmsLibApi.js';
5
6
  type Context = {
6
7
  readonly runtime: WithDecrypt;
8
+ readonly tkmsVersion: TkmsVersion;
7
9
  };
8
10
  type Parameters = {
9
11
  readonly kmsSigncryptedShares: KmsSigncryptedShares;
10
12
  readonly transportKeyPair: TransportKeyPair;
11
13
  };
12
14
  type ReturnType = readonly ClearValue[];
13
- export declare function decryptKmsSignedcryptedShares(context: Context, parameters: Parameters): Promise<ReturnType>;
15
+ export declare function decryptKmsSigncryptedShares(context: Context, parameters: Parameters): Promise<ReturnType>;
14
16
  export {};
15
- //# sourceMappingURL=decryptKmsSignedcryptedShares-p.d.ts.map
17
+ //# sourceMappingURL=decryptKmsSigncryptedShares-p.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decryptKmsSigncryptedShares-p.d.ts","sourceRoot":"","sources":["../../../core/kms/decryptKmsSigncryptedShares-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAOhE,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC7C,CAAC;AAEF,KAAK,UAAU,GAAG,SAAS,UAAU,EAAE,CAAC;AAIxC,wBAAsB,2BAA2B,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAqB/G"}
@@ -1,3 +1,4 @@
1
+ import type { TkmsVersion } from '../../wasm/tkms/KmsLibApi.js';
1
2
  import type { WithDecrypt } from '../types/coreFhevmRuntime.js';
2
3
  import type { Handle } from '../types/encryptedTypes-p.js';
3
4
  import type { FhevmChain } from '../types/fhevmChain.js';
@@ -9,6 +10,7 @@ type Context = {
9
10
  readonly chain: FhevmChain;
10
11
  readonly runtime: WithDecrypt;
11
12
  readonly client: NonNullable<object>;
13
+ readonly tkmsVersion: TkmsVersion;
12
14
  readonly options: {
13
15
  readonly batchRpcCalls: boolean;
14
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"decryptValuesFromPairs.d.ts","sourceRoot":"","sources":["../../../core/kms/decryptValuesFromPairs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,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,CAAC;KAC9C,CAAC,CAAC;IACH,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAClD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CAC1D,GACD;IACE,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;QAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,eAAe,EAAE,kBAAkB,CAAC;KAC9C,CAAC,CAAC;IACH,QAAQ,CAAC,YAAY,EAAE,+BAA+B,CAAC;IACvD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,kCAAkC,GAAG,SAAS,CAAC;CACnE,CAAC;AAEN,MAAM,MAAM,UAAU,GAAG,SAAS,UAAU,EAAE,CAAC;AAI/C,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAUxG"}
@@ -29,6 +29,6 @@ type Parameters = {
29
29
  readonly options?: RelayerDelegatedUserDecryptOptions | undefined;
30
30
  };
31
31
  type ReturnType = KmsSigncryptedShares;
32
- export declare function fetchKmsSignedcryptedShares(context: Context, parameters: Parameters): Promise<ReturnType>;
32
+ export declare function fetchKmsSigncryptedShares(context: Context, parameters: Parameters): Promise<ReturnType>;
33
33
  export {};
34
- //# sourceMappingURL=fetchKmsSignedcryptedShares-p.d.ts.map
34
+ //# sourceMappingURL=fetchKmsSigncryptedShares-p.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchKmsSigncryptedShares-p.d.ts","sourceRoot":"","sources":["../../../core/kms/fetchKmsSigncryptedShares-p.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EA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,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAqJ7G"}
@@ -1,16 +1,23 @@
1
1
  import type { BytesHex, Uint256BigInt, Uint8Number } from '../types/primitives.js';
2
2
  import type { ErrorMetadataParams } from '../base/errors/ErrorBase.js';
3
+ export declare const EXTRA_DATA_V0: Uint8Number;
4
+ export declare const EXTRA_DATA_V1: Uint8Number;
5
+ export declare const EXTRA_DATA_V2: Uint8Number;
3
6
  export declare function fromKmsExtraData(extraData: BytesHex): {
4
7
  version: Uint8Number;
5
8
  kmsContextId: Uint256BigInt;
9
+ kmsEpochId: Uint256BigInt;
6
10
  };
7
11
  /**
8
- * Encodes a KMS context ID into the v1 extraData format.
9
- * Layout: `0x` + `01` (version byte) + 32-byte big-endian context ID.
12
+ * Encodes a KMS context into an extraData format.
13
+ * v0: `0x00`
14
+ * v1: `0x01` + 32-byte big-endian context ID.
15
+ * v2: `0x02` + 32-byte big-endian context ID + 32-byte big-endian epoch ID.
10
16
  */
11
17
  export declare function toKmsExtraData(args: {
12
18
  readonly version: Uint8Number;
13
19
  readonly kmsContextId: Uint256BigInt;
20
+ readonly kmsEpochId: Uint256BigInt;
14
21
  }): BytesHex;
15
22
  export declare function assertIsKmsExtraData(value: unknown, options: {
16
23
  subject?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"kmsExtraData.d.ts","sourceRoot":"","sources":["../../../core/kms/kmsExtraData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA0B,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC3G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAMvE,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,QAAQ,GAAG;IACrD,OAAO,EAAE,WAAW,CAAC;IACrB,YAAY,EAAE,aAAa,CAAC;CAC7B,CAuBA;AAED;;;GAGG;AACH,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+ import type { KmsUserDecryptEip712V2Types } from '../types/kms.js';
2
+ export declare const kmsUserDecryptEip712V2Types: KmsUserDecryptEip712V2Types;
3
+ //# sourceMappingURL=kmsUserDecryptEip712V2Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kmsUserDecryptEip712V2Types.d.ts","sourceRoot":"","sources":["../../../core/kms/kmsUserDecryptEip712V2Types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAMnE,eAAO,MAAM,2BAA2B,EAAE,2BAkBhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"publicDecrypt.d.ts","sourceRoot":"","sources":["../../../core/kms/publicDecrypt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAU3D,KAAK,OAAO,GAAG;IACb,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CAC5D,CA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