@aptos-labs/ts-sdk 1.14.0-zeta.3 → 1.15.0-win.0

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 (492) hide show
  1. package/dist/common/{accountAddress-u9wEan9p.d.ts → accountAddress-ccLvlUQe.d.ts} +22 -49
  2. package/dist/common/cli/index.d.ts +1 -1
  3. package/dist/common/cli/index.js +1 -1
  4. package/dist/common/cli/index.js.map +1 -1
  5. package/dist/common/index.d.ts +103 -550
  6. package/dist/common/index.js +55 -26
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/{Ed25519Account-9zBaZEnp.d.mts → Ed25519Account-B1VMJOY2.d.mts} +1 -1
  9. package/dist/esm/account/Account.d.mts +2 -2
  10. package/dist/esm/account/Account.mjs +1 -1
  11. package/dist/esm/account/Ed25519Account.d.mts +2 -2
  12. package/dist/esm/account/Ed25519Account.mjs +1 -1
  13. package/dist/esm/account/MultiKeyAccount.d.mts +7 -12
  14. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  15. package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
  16. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  17. package/dist/esm/account/index.d.mts +2 -8
  18. package/dist/esm/account/index.mjs +1 -1
  19. package/dist/esm/api/account.d.mts +2 -2
  20. package/dist/esm/api/account.mjs +1 -1
  21. package/dist/esm/api/ans.d.mts +2 -2
  22. package/dist/esm/api/ans.mjs +1 -1
  23. package/dist/esm/api/aptos.d.mts +5 -10
  24. package/dist/esm/api/aptos.mjs +1 -1
  25. package/dist/esm/api/aptosConfig.d.mts +0 -20
  26. package/dist/esm/api/aptosConfig.mjs +1 -1
  27. package/dist/esm/api/coin.d.mts +1 -1
  28. package/dist/esm/api/coin.mjs +1 -1
  29. package/dist/esm/api/digitalAsset.d.mts +2 -2
  30. package/dist/esm/api/digitalAsset.mjs +1 -1
  31. package/dist/esm/api/event.mjs +1 -1
  32. package/dist/esm/api/faucet.mjs +1 -1
  33. package/dist/esm/api/fungibleAsset.d.mts +2 -2
  34. package/dist/esm/api/fungibleAsset.mjs +1 -1
  35. package/dist/esm/api/general.d.mts +2 -27
  36. package/dist/esm/api/general.mjs +1 -1
  37. package/dist/esm/api/index.d.mts +3 -8
  38. package/dist/esm/api/index.mjs +1 -1
  39. package/dist/esm/api/staking.mjs +1 -1
  40. package/dist/esm/api/table.d.mts +84 -0
  41. package/dist/esm/api/table.mjs +2 -0
  42. package/dist/esm/api/transaction.d.mts +2 -2
  43. package/dist/esm/api/transaction.mjs +1 -1
  44. package/dist/esm/api/transactionSubmission/build.d.mts +1 -1
  45. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  46. package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
  47. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  48. package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
  49. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  50. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  51. package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -1
  52. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  53. package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
  54. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  55. package/dist/esm/api/utils.mjs +1 -1
  56. package/dist/esm/bcs/deserializer.d.mts +0 -26
  57. package/dist/esm/bcs/deserializer.mjs +1 -1
  58. package/dist/esm/bcs/index.mjs +1 -1
  59. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  60. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  61. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  62. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  63. package/dist/esm/bcs/serializer.d.mts +0 -2
  64. package/dist/esm/bcs/serializer.mjs +1 -1
  65. package/dist/esm/{chunk-3CUVYW32.mjs → chunk-2X7A4HUS.mjs} +2 -2
  66. package/dist/esm/chunk-2XK53QFA.mjs +2 -0
  67. package/dist/esm/{chunk-WM2NCYZL.mjs.map → chunk-2XK53QFA.mjs.map} +1 -1
  68. package/dist/esm/{chunk-Y4SSUCPJ.mjs → chunk-2YZSEM2G.mjs} +2 -2
  69. package/dist/esm/{chunk-ZNEBMSNC.mjs → chunk-35EWRSDK.mjs} +2 -2
  70. package/dist/esm/{chunk-TVRJ3M7B.mjs → chunk-36QXVFR5.mjs} +2 -2
  71. package/dist/esm/{chunk-TVRJ3M7B.mjs.map → chunk-36QXVFR5.mjs.map} +1 -1
  72. package/dist/esm/chunk-3HSXKDOC.mjs +2 -0
  73. package/dist/esm/chunk-3HSXKDOC.mjs.map +1 -0
  74. package/dist/esm/chunk-3N6N3KOS.mjs +2 -0
  75. package/dist/esm/{chunk-HYDDIAJ6.mjs.map → chunk-3N6N3KOS.mjs.map} +1 -1
  76. package/dist/esm/{chunk-SLI3KELH.mjs → chunk-477G7LHJ.mjs} +2 -2
  77. package/dist/esm/chunk-4NHWV5AI.mjs +2 -0
  78. package/dist/esm/{chunk-7STYQ5ZE.mjs → chunk-5EN52MUT.mjs} +2 -2
  79. package/dist/esm/{chunk-P7JMD7KZ.mjs → chunk-5VIESFOC.mjs} +2 -2
  80. package/dist/esm/{chunk-TE3WIJ26.mjs → chunk-5YLAWRI2.mjs} +2 -2
  81. package/dist/esm/chunk-6IFMQ5AS.mjs +2 -0
  82. package/dist/esm/chunk-6IFMQ5AS.mjs.map +1 -0
  83. package/dist/esm/{chunk-3CMS2KOX.mjs → chunk-6JLYD5Q2.mjs} +2 -2
  84. package/dist/esm/{chunk-HMFL7AOJ.mjs → chunk-6XWDDCQD.mjs} +2 -2
  85. package/dist/esm/{chunk-CS7B3FVO.mjs → chunk-7NEETXEA.mjs} +2 -2
  86. package/dist/esm/chunk-7VRZLDIJ.mjs +2 -0
  87. package/dist/esm/{chunk-24ZOKI52.mjs → chunk-ACG4ZGRQ.mjs} +2 -2
  88. package/dist/esm/chunk-AQAH67IV.mjs +2 -0
  89. package/dist/esm/chunk-B7X6PSE7.mjs +2 -0
  90. package/dist/esm/{chunk-AOCNYMMX.mjs → chunk-BCUSI3N6.mjs} +2 -2
  91. package/dist/esm/{chunk-HYU23YVP.mjs → chunk-BHLICYAI.mjs} +2 -2
  92. package/dist/esm/chunk-BO2TLWNT.mjs +2 -0
  93. package/dist/esm/chunk-CEHCDA3G.mjs +2 -0
  94. package/dist/esm/chunk-CJDEPZ4J.mjs +2 -0
  95. package/dist/esm/{chunk-NBEXLW7P.mjs.map → chunk-CJDEPZ4J.mjs.map} +1 -1
  96. package/dist/esm/{chunk-WWGROAKX.mjs → chunk-CWUH4PNH.mjs} +2 -2
  97. package/dist/esm/chunk-CYNQRMO5.mjs +2 -0
  98. package/dist/esm/chunk-CYNQRMO5.mjs.map +1 -0
  99. package/dist/esm/chunk-DLAIJ2UM.mjs +2 -0
  100. package/dist/esm/chunk-DLAIJ2UM.mjs.map +1 -0
  101. package/dist/esm/{chunk-DD2VWOMZ.mjs → chunk-E2NVC2VR.mjs} +2 -2
  102. package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
  103. package/dist/esm/{chunk-EB7AI4B4.mjs → chunk-G56GPLTB.mjs} +2 -2
  104. package/dist/esm/{chunk-RKHPXZM6.mjs → chunk-GHYE26Q5.mjs} +2 -2
  105. package/dist/esm/{chunk-RKHPXZM6.mjs.map → chunk-GHYE26Q5.mjs.map} +1 -1
  106. package/dist/esm/{chunk-7IMWGGA6.mjs → chunk-GIAABV7R.mjs} +2 -2
  107. package/dist/esm/{chunk-KMKSA7LM.mjs → chunk-GKJ2NJG5.mjs} +2 -2
  108. package/dist/esm/{chunk-NC5HHEEM.mjs → chunk-GM56MMNJ.mjs} +2 -2
  109. package/dist/esm/{chunk-GQ6HIKZT.mjs → chunk-HMARHACL.mjs} +2 -2
  110. package/dist/esm/chunk-HNEAPYNI.mjs +2 -0
  111. package/dist/esm/{chunk-P2WALKSW.mjs → chunk-HSJTQLI2.mjs} +2 -2
  112. package/dist/esm/chunk-HYCGMFC2.mjs +2 -0
  113. package/dist/esm/chunk-HYCGMFC2.mjs.map +1 -0
  114. package/dist/esm/chunk-IENCDVPF.mjs +2 -0
  115. package/dist/esm/chunk-IENCDVPF.mjs.map +1 -0
  116. package/dist/esm/{chunk-23MNZ5LZ.mjs → chunk-IZQV2SU6.mjs} +2 -2
  117. package/dist/esm/chunk-J6OFSYUA.mjs +2 -0
  118. package/dist/esm/chunk-J6OFSYUA.mjs.map +1 -0
  119. package/dist/esm/chunk-JB5H65CE.mjs +2 -0
  120. package/dist/esm/chunk-JB5H65CE.mjs.map +1 -0
  121. package/dist/esm/{chunk-XZGQMZ2H.mjs → chunk-JFIAWBCK.mjs} +2 -2
  122. package/dist/esm/chunk-JQIGQMNZ.mjs +2 -0
  123. package/dist/esm/chunk-JQIGQMNZ.mjs.map +1 -0
  124. package/dist/esm/chunk-K7HX7JQH.mjs +2 -0
  125. package/dist/esm/chunk-K7HX7JQH.mjs.map +1 -0
  126. package/dist/esm/{chunk-HGZGTBA4.mjs → chunk-KAGLWBIJ.mjs} +2 -2
  127. package/dist/esm/chunk-LG7RJQ57.mjs +2 -0
  128. package/dist/esm/{chunk-HHVAU5HU.mjs → chunk-MCRRHBFQ.mjs} +2 -2
  129. package/dist/esm/{chunk-PFFAQZHT.mjs → chunk-MJPUASSD.mjs} +2 -2
  130. package/dist/esm/{chunk-7XYECSW6.mjs → chunk-MQI2IE6Y.mjs} +2 -2
  131. package/dist/esm/chunk-N3U47Y6Y.mjs +2 -0
  132. package/dist/esm/{chunk-L5WUYZ35.mjs → chunk-NZETF6Z4.mjs} +2 -2
  133. package/dist/esm/chunk-OWW6SIDP.mjs +2 -0
  134. package/dist/esm/chunk-OWW6SIDP.mjs.map +1 -0
  135. package/dist/esm/{chunk-CB6CNNM2.mjs → chunk-P6GWG2CY.mjs} +2 -2
  136. package/dist/esm/chunk-PF57EOJY.mjs +2 -0
  137. package/dist/esm/{chunk-JLWKIYHV.mjs → chunk-PIVZMT5D.mjs} +2 -2
  138. package/dist/esm/{chunk-R52BRP36.mjs → chunk-PLXGSUZA.mjs} +2 -2
  139. package/dist/esm/{chunk-AHNE2QA3.mjs → chunk-PPO4IXE4.mjs} +2 -2
  140. package/dist/esm/{chunk-PMPTAPM3.mjs → chunk-QIHR7HD6.mjs} +2 -2
  141. package/dist/esm/{chunk-BTLFW3YY.mjs → chunk-QQ5PHEJF.mjs} +2 -2
  142. package/dist/esm/{chunk-T23OVRNF.mjs → chunk-QRS4DGP3.mjs} +2 -2
  143. package/dist/esm/{chunk-T23OVRNF.mjs.map → chunk-QRS4DGP3.mjs.map} +1 -1
  144. package/dist/esm/{chunk-LDQ6JFEF.mjs → chunk-QSHLNSUP.mjs} +2 -2
  145. package/dist/esm/{chunk-LDQ6JFEF.mjs.map → chunk-QSHLNSUP.mjs.map} +1 -1
  146. package/dist/esm/chunk-ROXFCLDT.mjs +2 -0
  147. package/dist/esm/chunk-RTSWVT2Q.mjs +2 -0
  148. package/dist/esm/chunk-RTSWVT2Q.mjs.map +1 -0
  149. package/dist/esm/{chunk-Y33CIIZX.mjs → chunk-RVWYURXG.mjs} +2 -2
  150. package/dist/esm/{chunk-U5C2PXC6.mjs → chunk-RYD6HRW7.mjs} +2 -2
  151. package/dist/esm/chunk-S2VSJJRJ.mjs +2 -0
  152. package/dist/esm/chunk-S2VSJJRJ.mjs.map +1 -0
  153. package/dist/esm/{chunk-S4SEFF4K.mjs → chunk-S3EDNXZE.mjs} +46 -17
  154. package/dist/esm/chunk-S3EDNXZE.mjs.map +1 -0
  155. package/dist/esm/chunk-SRDIYE3M.mjs +2 -0
  156. package/dist/esm/{chunk-6RBUXB5I.mjs.map → chunk-SRDIYE3M.mjs.map} +1 -1
  157. package/dist/esm/{chunk-SI7MPP6G.mjs → chunk-T2AGN5YT.mjs} +2 -2
  158. package/dist/esm/chunk-TGQARO3F.mjs +2 -0
  159. package/dist/esm/chunk-TGQARO3F.mjs.map +1 -0
  160. package/dist/esm/chunk-TM7NDDT3.mjs +2 -0
  161. package/dist/esm/chunk-TM7NDDT3.mjs.map +1 -0
  162. package/dist/esm/{chunk-HSFG2AIK.mjs → chunk-TT2XR5ZI.mjs} +2 -2
  163. package/dist/esm/{chunk-3VGX3TXH.mjs → chunk-U3YYSIIT.mjs} +2 -2
  164. package/dist/esm/chunk-UGPALAPN.mjs +2 -0
  165. package/dist/esm/{chunk-7SIQDOYY.mjs → chunk-UKSRF2Q3.mjs} +2 -2
  166. package/dist/esm/chunk-UO3NZ5AH.mjs +1 -0
  167. package/dist/esm/{chunk-TICM455H.mjs → chunk-UPSCPEEE.mjs} +2 -2
  168. package/dist/esm/chunk-UVSRX4SV.mjs +1 -0
  169. package/dist/esm/chunk-WXWWYH73.mjs +2 -0
  170. package/dist/esm/chunk-WXWWYH73.mjs.map +1 -0
  171. package/dist/esm/{chunk-O3PLAAN7.mjs → chunk-XBHFMNYB.mjs} +2 -2
  172. package/dist/esm/{chunk-GNNNICLW.mjs → chunk-XD46HTI2.mjs} +2 -2
  173. package/dist/esm/{chunk-6WIB3GGF.mjs → chunk-XFSDV3ND.mjs} +2 -2
  174. package/dist/esm/chunk-YMB2XW2O.mjs +2 -0
  175. package/dist/esm/{chunk-YNNPWCF6.mjs.map → chunk-YMB2XW2O.mjs.map} +1 -1
  176. package/dist/esm/{chunk-ZPMS2Q37.mjs → chunk-ZBXOX3S7.mjs} +2 -2
  177. package/dist/esm/cli/index.mjs +1 -1
  178. package/dist/esm/cli/move.mjs +1 -1
  179. package/dist/esm/client/core.mjs +1 -1
  180. package/dist/esm/client/get.d.mts +1 -2
  181. package/dist/esm/client/get.mjs +1 -1
  182. package/dist/esm/client/index.d.mts +2 -2
  183. package/dist/esm/client/index.mjs +1 -1
  184. package/dist/esm/client/post.d.mts +1 -3
  185. package/dist/esm/client/post.mjs +1 -1
  186. package/dist/esm/client/types.d.mts +1 -5
  187. package/dist/esm/client/types.mjs +1 -1
  188. package/dist/esm/core/account/index.mjs +1 -1
  189. package/dist/esm/core/account/utils/address.mjs +1 -1
  190. package/dist/esm/core/account/utils/index.mjs +1 -1
  191. package/dist/esm/core/accountAddress.mjs +1 -1
  192. package/dist/esm/core/authenticationKey.d.mts +1 -1
  193. package/dist/esm/core/authenticationKey.mjs +1 -1
  194. package/dist/esm/core/common.mjs +1 -1
  195. package/dist/esm/core/crypto/ed25519.d.mts +1 -1
  196. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  197. package/dist/esm/core/crypto/index.d.mts +1 -4
  198. package/dist/esm/core/crypto/index.mjs +1 -1
  199. package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
  200. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  201. package/dist/esm/core/crypto/multiKey.d.mts +1 -1
  202. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  203. package/dist/esm/core/crypto/privateKey.d.mts +1 -1
  204. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  205. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  206. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  207. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  208. package/dist/esm/core/crypto/signature.mjs +1 -1
  209. package/dist/esm/core/crypto/singleKey.d.mts +1 -1
  210. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  211. package/dist/esm/core/crypto/utils.mjs +1 -1
  212. package/dist/esm/core/hex.mjs +1 -1
  213. package/dist/esm/core/index.d.mts +1 -4
  214. package/dist/esm/core/index.mjs +1 -1
  215. package/dist/esm/index.d.mts +9 -14
  216. package/dist/esm/index.mjs +1 -1
  217. package/dist/esm/internal/account.d.mts +2 -2
  218. package/dist/esm/internal/account.mjs +1 -1
  219. package/dist/esm/internal/ans.d.mts +2 -2
  220. package/dist/esm/internal/ans.mjs +1 -1
  221. package/dist/esm/internal/coin.d.mts +1 -1
  222. package/dist/esm/internal/coin.mjs +1 -1
  223. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  224. package/dist/esm/internal/digitalAsset.mjs +1 -1
  225. package/dist/esm/internal/event.mjs +1 -1
  226. package/dist/esm/internal/faucet.mjs +1 -1
  227. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  228. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  229. package/dist/esm/internal/general.d.mts +2 -8
  230. package/dist/esm/internal/general.mjs +1 -1
  231. package/dist/esm/internal/staking.mjs +1 -1
  232. package/dist/esm/internal/table.d.mts +31 -0
  233. package/dist/esm/internal/table.mjs +2 -0
  234. package/dist/esm/internal/transaction.mjs +1 -1
  235. package/dist/esm/internal/transactionSubmission.d.mts +2 -2
  236. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  237. package/dist/esm/internal/view.d.mts +1 -1
  238. package/dist/esm/internal/view.mjs +1 -1
  239. package/dist/esm/transactions/authenticator/account.d.mts +1 -1
  240. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  241. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  242. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  243. package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
  244. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  245. package/dist/esm/transactions/index.d.mts +1 -1
  246. package/dist/esm/transactions/index.mjs +1 -1
  247. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  248. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  249. package/dist/esm/transactions/instances/index.d.mts +1 -1
  250. package/dist/esm/transactions/instances/index.mjs +1 -1
  251. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  252. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  253. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  254. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
  255. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  256. package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
  257. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  258. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  259. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  260. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  261. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  262. package/dist/esm/transactions/management/index.d.mts +2 -2
  263. package/dist/esm/transactions/management/index.mjs +1 -1
  264. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  265. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  266. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
  267. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  268. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  269. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  270. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
  271. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  272. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -1
  273. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  274. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  275. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  276. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  277. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  278. package/dist/esm/transactions/types.d.mts +1 -1
  279. package/dist/esm/types/generated/operations.d.mts +31 -2
  280. package/dist/esm/types/generated/queries.d.mts +6 -2
  281. package/dist/esm/types/generated/queries.mjs +1 -1
  282. package/dist/esm/types/generated/types.d.mts +212 -7
  283. package/dist/esm/types/generated/types.mjs +1 -1
  284. package/dist/esm/types/generated/types.mjs.map +1 -1
  285. package/dist/esm/types/index.d.mts +4 -20
  286. package/dist/esm/types/index.mjs +1 -1
  287. package/dist/esm/types/indexer.d.mts +4 -2
  288. package/dist/esm/utils/apiEndpoints.d.mts +1 -3
  289. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  290. package/dist/esm/utils/const.d.mts +1 -3
  291. package/dist/esm/utils/const.mjs +1 -1
  292. package/dist/esm/utils/index.d.mts +1 -1
  293. package/dist/esm/utils/index.mjs +1 -1
  294. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  295. package/dist/esm/version.d.mts +1 -1
  296. package/dist/esm/version.mjs +1 -1
  297. package/package.json +3 -11
  298. package/src/account/MultiKeyAccount.ts +0 -10
  299. package/src/account/index.ts +0 -2
  300. package/src/api/aptos.ts +5 -5
  301. package/src/api/aptosConfig.ts +1 -46
  302. package/src/api/general.ts +0 -26
  303. package/src/api/table.ts +108 -0
  304. package/src/bcs/deserializer.ts +0 -40
  305. package/src/bcs/serializer.ts +0 -18
  306. package/src/cli/move.ts +1 -1
  307. package/src/client/core.ts +0 -8
  308. package/src/client/get.ts +0 -6
  309. package/src/client/post.ts +0 -12
  310. package/src/client/types.ts +1 -1
  311. package/src/core/crypto/index.ts +0 -2
  312. package/src/core/crypto/singleKey.ts +0 -11
  313. package/src/internal/account.ts +2 -1
  314. package/src/internal/general.ts +1 -20
  315. package/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql +1 -0
  316. package/src/internal/queries/getTableItemsData.graphql +15 -0
  317. package/src/internal/queries/getTableItemsMetadata.graphql +12 -0
  318. package/src/internal/table.ts +82 -0
  319. package/src/internal/transactionSubmission.ts +7 -20
  320. package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -16
  321. package/src/types/generated/operations.ts +29 -0
  322. package/src/types/generated/queries.ts +59 -0
  323. package/src/types/generated/types.ts +223 -4
  324. package/src/types/index.ts +0 -22
  325. package/src/types/indexer.ts +4 -0
  326. package/src/utils/apiEndpoints.ts +0 -14
  327. package/src/utils/const.ts +0 -2
  328. package/src/version.ts +1 -1
  329. package/dist/esm/account/EphemeralKeyPair.d.mts +0 -80
  330. package/dist/esm/account/EphemeralKeyPair.mjs +0 -2
  331. package/dist/esm/account/KeylessAccount.d.mts +0 -145
  332. package/dist/esm/account/KeylessAccount.mjs +0 -2
  333. package/dist/esm/api/keyless.d.mts +0 -81
  334. package/dist/esm/api/keyless.mjs +0 -2
  335. package/dist/esm/chunk-25H3DXTL.mjs +0 -2
  336. package/dist/esm/chunk-25H3DXTL.mjs.map +0 -1
  337. package/dist/esm/chunk-2ECWQRBB.mjs +0 -2
  338. package/dist/esm/chunk-2HD2G4AH.mjs +0 -2
  339. package/dist/esm/chunk-2HD2G4AH.mjs.map +0 -1
  340. package/dist/esm/chunk-3COVJN6Z.mjs +0 -2
  341. package/dist/esm/chunk-3COVJN6Z.mjs.map +0 -1
  342. package/dist/esm/chunk-3FVRXELT.mjs +0 -2
  343. package/dist/esm/chunk-3S3GIUQY.mjs +0 -2
  344. package/dist/esm/chunk-5XOFEQWC.mjs +0 -2
  345. package/dist/esm/chunk-6RBUXB5I.mjs +0 -2
  346. package/dist/esm/chunk-75J7H3XD.mjs +0 -2
  347. package/dist/esm/chunk-75J7H3XD.mjs.map +0 -1
  348. package/dist/esm/chunk-7KOC7VNK.mjs +0 -2
  349. package/dist/esm/chunk-7KOC7VNK.mjs.map +0 -1
  350. package/dist/esm/chunk-7Z6DYLCA.mjs +0 -1
  351. package/dist/esm/chunk-AJ7UC2G3.mjs +0 -2
  352. package/dist/esm/chunk-AJ7UC2G3.mjs.map +0 -1
  353. package/dist/esm/chunk-AQ4I7VVB.mjs +0 -1
  354. package/dist/esm/chunk-AQ4I7VVB.mjs.map +0 -1
  355. package/dist/esm/chunk-C3L4ETUF.mjs +0 -2
  356. package/dist/esm/chunk-CO53EOHE.mjs +0 -2
  357. package/dist/esm/chunk-CO53EOHE.mjs.map +0 -1
  358. package/dist/esm/chunk-COW5IGYC.mjs +0 -2
  359. package/dist/esm/chunk-FBPNHF54.mjs +0 -2
  360. package/dist/esm/chunk-FLYEALDB.mjs +0 -2
  361. package/dist/esm/chunk-FLYEALDB.mjs.map +0 -1
  362. package/dist/esm/chunk-H62IKYXG.mjs +0 -2
  363. package/dist/esm/chunk-HYDDIAJ6.mjs +0 -2
  364. package/dist/esm/chunk-JM2B5E2I.mjs +0 -2
  365. package/dist/esm/chunk-JM2B5E2I.mjs.map +0 -1
  366. package/dist/esm/chunk-JM544NRW.mjs +0 -2
  367. package/dist/esm/chunk-JM544NRW.mjs.map +0 -1
  368. package/dist/esm/chunk-MGOHPDX4.mjs +0 -2
  369. package/dist/esm/chunk-MOKAU77C.mjs +0 -2
  370. package/dist/esm/chunk-MOKAU77C.mjs.map +0 -1
  371. package/dist/esm/chunk-MWUJCP27.mjs +0 -2
  372. package/dist/esm/chunk-N466X3S6.mjs +0 -2
  373. package/dist/esm/chunk-N466X3S6.mjs.map +0 -1
  374. package/dist/esm/chunk-NBEXLW7P.mjs +0 -2
  375. package/dist/esm/chunk-PGCBIU33.mjs +0 -2
  376. package/dist/esm/chunk-PGCBIU33.mjs.map +0 -1
  377. package/dist/esm/chunk-PYUWGGAW.mjs +0 -2
  378. package/dist/esm/chunk-PYUWGGAW.mjs.map +0 -1
  379. package/dist/esm/chunk-RKTM5GBP.mjs +0 -2
  380. package/dist/esm/chunk-RKTM5GBP.mjs.map +0 -1
  381. package/dist/esm/chunk-S4SEFF4K.mjs.map +0 -1
  382. package/dist/esm/chunk-STYDBDYL.mjs +0 -2
  383. package/dist/esm/chunk-TJDC5PWD.mjs +0 -2
  384. package/dist/esm/chunk-UTXJOB3O.mjs +0 -2
  385. package/dist/esm/chunk-VL6EYA53.mjs +0 -2
  386. package/dist/esm/chunk-VL6EYA53.mjs.map +0 -1
  387. package/dist/esm/chunk-VPKPQBKL.mjs +0 -2
  388. package/dist/esm/chunk-VPKPQBKL.mjs.map +0 -1
  389. package/dist/esm/chunk-VSD2AWUR.mjs +0 -2
  390. package/dist/esm/chunk-VSD2AWUR.mjs.map +0 -1
  391. package/dist/esm/chunk-VT6XJSRO.mjs +0 -2
  392. package/dist/esm/chunk-VT6XJSRO.mjs.map +0 -1
  393. package/dist/esm/chunk-WM2NCYZL.mjs +0 -2
  394. package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
  395. package/dist/esm/chunk-YE5B2S5L.mjs.map +0 -1
  396. package/dist/esm/chunk-YGOJYDJA.mjs +0 -2
  397. package/dist/esm/chunk-YGOJYDJA.mjs.map +0 -1
  398. package/dist/esm/chunk-YNNPWCF6.mjs +0 -2
  399. package/dist/esm/chunk-YV7OBLK2.mjs +0 -2
  400. package/dist/esm/chunk-YV7OBLK2.mjs.map +0 -1
  401. package/dist/esm/chunk-ZKRG4C4U.mjs +0 -2
  402. package/dist/esm/chunk-ZKRG4C4U.mjs.map +0 -1
  403. package/dist/esm/core/crypto/ephemeral.d.mts +0 -73
  404. package/dist/esm/core/crypto/ephemeral.mjs +0 -2
  405. package/dist/esm/core/crypto/ephemeral.mjs.map +0 -1
  406. package/dist/esm/core/crypto/keyless.d.mts +0 -232
  407. package/dist/esm/core/crypto/keyless.mjs +0 -2
  408. package/dist/esm/core/crypto/keyless.mjs.map +0 -1
  409. package/dist/esm/core/crypto/poseidon.d.mts +0 -7
  410. package/dist/esm/core/crypto/poseidon.mjs +0 -2
  411. package/dist/esm/core/crypto/poseidon.mjs.map +0 -1
  412. package/dist/esm/core/crypto/proof.d.mts +0 -21
  413. package/dist/esm/core/crypto/proof.mjs +0 -2
  414. package/dist/esm/core/crypto/proof.mjs.map +0 -1
  415. package/dist/esm/internal/keyless.d.mts +0 -68
  416. package/dist/esm/internal/keyless.mjs +0 -2
  417. package/dist/esm/internal/keyless.mjs.map +0 -1
  418. package/dist/esm/types/keyless.d.mts +0 -69
  419. package/dist/esm/types/keyless.mjs +0 -2
  420. package/dist/esm/types/keyless.mjs.map +0 -1
  421. package/src/account/EphemeralKeyPair.ts +0 -161
  422. package/src/account/KeylessAccount.ts +0 -341
  423. package/src/api/keyless.ts +0 -48
  424. package/src/core/crypto/ephemeral.ts +0 -138
  425. package/src/core/crypto/keyless.ts +0 -453
  426. package/src/core/crypto/poseidon.ts +0 -134
  427. package/src/core/crypto/proof.ts +0 -16
  428. package/src/internal/keyless.ts +0 -119
  429. package/src/types/keyless.ts +0 -37
  430. /package/dist/esm/{account/EphemeralKeyPair.mjs.map → api/table.mjs.map} +0 -0
  431. /package/dist/esm/{chunk-3CUVYW32.mjs.map → chunk-2X7A4HUS.mjs.map} +0 -0
  432. /package/dist/esm/{chunk-Y4SSUCPJ.mjs.map → chunk-2YZSEM2G.mjs.map} +0 -0
  433. /package/dist/esm/{chunk-ZNEBMSNC.mjs.map → chunk-35EWRSDK.mjs.map} +0 -0
  434. /package/dist/esm/{chunk-SLI3KELH.mjs.map → chunk-477G7LHJ.mjs.map} +0 -0
  435. /package/dist/esm/{chunk-COW5IGYC.mjs.map → chunk-4NHWV5AI.mjs.map} +0 -0
  436. /package/dist/esm/{chunk-7STYQ5ZE.mjs.map → chunk-5EN52MUT.mjs.map} +0 -0
  437. /package/dist/esm/{chunk-P7JMD7KZ.mjs.map → chunk-5VIESFOC.mjs.map} +0 -0
  438. /package/dist/esm/{chunk-TE3WIJ26.mjs.map → chunk-5YLAWRI2.mjs.map} +0 -0
  439. /package/dist/esm/{chunk-3CMS2KOX.mjs.map → chunk-6JLYD5Q2.mjs.map} +0 -0
  440. /package/dist/esm/{chunk-HMFL7AOJ.mjs.map → chunk-6XWDDCQD.mjs.map} +0 -0
  441. /package/dist/esm/{chunk-CS7B3FVO.mjs.map → chunk-7NEETXEA.mjs.map} +0 -0
  442. /package/dist/esm/{chunk-H62IKYXG.mjs.map → chunk-7VRZLDIJ.mjs.map} +0 -0
  443. /package/dist/esm/{chunk-24ZOKI52.mjs.map → chunk-ACG4ZGRQ.mjs.map} +0 -0
  444. /package/dist/esm/{chunk-3S3GIUQY.mjs.map → chunk-AQAH67IV.mjs.map} +0 -0
  445. /package/dist/esm/{chunk-MGOHPDX4.mjs.map → chunk-B7X6PSE7.mjs.map} +0 -0
  446. /package/dist/esm/{chunk-AOCNYMMX.mjs.map → chunk-BCUSI3N6.mjs.map} +0 -0
  447. /package/dist/esm/{chunk-HYU23YVP.mjs.map → chunk-BHLICYAI.mjs.map} +0 -0
  448. /package/dist/esm/{chunk-2ECWQRBB.mjs.map → chunk-BO2TLWNT.mjs.map} +0 -0
  449. /package/dist/esm/{chunk-3FVRXELT.mjs.map → chunk-CEHCDA3G.mjs.map} +0 -0
  450. /package/dist/esm/{chunk-WWGROAKX.mjs.map → chunk-CWUH4PNH.mjs.map} +0 -0
  451. /package/dist/esm/{chunk-DD2VWOMZ.mjs.map → chunk-E2NVC2VR.mjs.map} +0 -0
  452. /package/dist/esm/{chunk-TJDC5PWD.mjs.map → chunk-F7EMGK4M.mjs.map} +0 -0
  453. /package/dist/esm/{chunk-EB7AI4B4.mjs.map → chunk-G56GPLTB.mjs.map} +0 -0
  454. /package/dist/esm/{chunk-7IMWGGA6.mjs.map → chunk-GIAABV7R.mjs.map} +0 -0
  455. /package/dist/esm/{chunk-KMKSA7LM.mjs.map → chunk-GKJ2NJG5.mjs.map} +0 -0
  456. /package/dist/esm/{chunk-NC5HHEEM.mjs.map → chunk-GM56MMNJ.mjs.map} +0 -0
  457. /package/dist/esm/{chunk-GQ6HIKZT.mjs.map → chunk-HMARHACL.mjs.map} +0 -0
  458. /package/dist/esm/{chunk-5XOFEQWC.mjs.map → chunk-HNEAPYNI.mjs.map} +0 -0
  459. /package/dist/esm/{chunk-P2WALKSW.mjs.map → chunk-HSJTQLI2.mjs.map} +0 -0
  460. /package/dist/esm/{chunk-23MNZ5LZ.mjs.map → chunk-IZQV2SU6.mjs.map} +0 -0
  461. /package/dist/esm/{chunk-XZGQMZ2H.mjs.map → chunk-JFIAWBCK.mjs.map} +0 -0
  462. /package/dist/esm/{chunk-HGZGTBA4.mjs.map → chunk-KAGLWBIJ.mjs.map} +0 -0
  463. /package/dist/esm/{chunk-FBPNHF54.mjs.map → chunk-LG7RJQ57.mjs.map} +0 -0
  464. /package/dist/esm/{chunk-HHVAU5HU.mjs.map → chunk-MCRRHBFQ.mjs.map} +0 -0
  465. /package/dist/esm/{chunk-PFFAQZHT.mjs.map → chunk-MJPUASSD.mjs.map} +0 -0
  466. /package/dist/esm/{chunk-7XYECSW6.mjs.map → chunk-MQI2IE6Y.mjs.map} +0 -0
  467. /package/dist/esm/{chunk-C3L4ETUF.mjs.map → chunk-N3U47Y6Y.mjs.map} +0 -0
  468. /package/dist/esm/{chunk-L5WUYZ35.mjs.map → chunk-NZETF6Z4.mjs.map} +0 -0
  469. /package/dist/esm/{chunk-CB6CNNM2.mjs.map → chunk-P6GWG2CY.mjs.map} +0 -0
  470. /package/dist/esm/{chunk-MWUJCP27.mjs.map → chunk-PF57EOJY.mjs.map} +0 -0
  471. /package/dist/esm/{chunk-JLWKIYHV.mjs.map → chunk-PIVZMT5D.mjs.map} +0 -0
  472. /package/dist/esm/{chunk-R52BRP36.mjs.map → chunk-PLXGSUZA.mjs.map} +0 -0
  473. /package/dist/esm/{chunk-AHNE2QA3.mjs.map → chunk-PPO4IXE4.mjs.map} +0 -0
  474. /package/dist/esm/{chunk-PMPTAPM3.mjs.map → chunk-QIHR7HD6.mjs.map} +0 -0
  475. /package/dist/esm/{chunk-BTLFW3YY.mjs.map → chunk-QQ5PHEJF.mjs.map} +0 -0
  476. /package/dist/esm/{chunk-UTXJOB3O.mjs.map → chunk-ROXFCLDT.mjs.map} +0 -0
  477. /package/dist/esm/{chunk-Y33CIIZX.mjs.map → chunk-RVWYURXG.mjs.map} +0 -0
  478. /package/dist/esm/{chunk-U5C2PXC6.mjs.map → chunk-RYD6HRW7.mjs.map} +0 -0
  479. /package/dist/esm/{chunk-SI7MPP6G.mjs.map → chunk-T2AGN5YT.mjs.map} +0 -0
  480. /package/dist/esm/{chunk-HSFG2AIK.mjs.map → chunk-TT2XR5ZI.mjs.map} +0 -0
  481. /package/dist/esm/{chunk-3VGX3TXH.mjs.map → chunk-U3YYSIIT.mjs.map} +0 -0
  482. /package/dist/esm/{chunk-STYDBDYL.mjs.map → chunk-UGPALAPN.mjs.map} +0 -0
  483. /package/dist/esm/{chunk-7SIQDOYY.mjs.map → chunk-UKSRF2Q3.mjs.map} +0 -0
  484. /package/dist/esm/{account/KeylessAccount.mjs.map → chunk-UO3NZ5AH.mjs.map} +0 -0
  485. /package/dist/esm/{chunk-TICM455H.mjs.map → chunk-UPSCPEEE.mjs.map} +0 -0
  486. /package/dist/esm/{api/keyless.mjs.map → chunk-UVSRX4SV.mjs.map} +0 -0
  487. /package/dist/esm/{chunk-O3PLAAN7.mjs.map → chunk-XBHFMNYB.mjs.map} +0 -0
  488. /package/dist/esm/{chunk-GNNNICLW.mjs.map → chunk-XD46HTI2.mjs.map} +0 -0
  489. /package/dist/esm/{chunk-6WIB3GGF.mjs.map → chunk-XFSDV3ND.mjs.map} +0 -0
  490. /package/dist/esm/{chunk-ZPMS2Q37.mjs.map → chunk-ZBXOX3S7.mjs.map} +0 -0
  491. /package/dist/esm/{chunk-7Z6DYLCA.mjs.map → internal/table.mjs.map} +0 -0
  492. /package/dist/esm/{publicKey-lq5djCIY.d.mts → publicKey-B3XRNhHO.d.mts} +0 -0
@@ -1,68 +0,0 @@
1
- import { AptosConfig } from '../api/aptosConfig.mjs';
2
- import { HexInput } from '../types/index.mjs';
3
- import { ZeroKnowledgeSig } from '../core/crypto/keyless.mjs';
4
- import { EphemeralKeyPair } from '../account/EphemeralKeyPair.mjs';
5
- import { ProofFetchCallback, KeylessAccount } from '../account/KeylessAccount.mjs';
6
- import '../utils/apiEndpoints.mjs';
7
- import '../utils/const.mjs';
8
- import '../types/indexer.mjs';
9
- import '../types/generated/operations.mjs';
10
- import '../types/generated/types.mjs';
11
- import '../publicKey-lq5djCIY.mjs';
12
- import '../bcs/serializer.mjs';
13
- import '../core/hex.mjs';
14
- import '../core/common.mjs';
15
- import '../core/accountAddress.mjs';
16
- import '../bcs/deserializer.mjs';
17
- import '../transactions/instances/transactionArgument.mjs';
18
- import '../core/crypto/signature.mjs';
19
- import '../core/crypto/ephemeral.mjs';
20
- import '../core/crypto/proof.mjs';
21
- import '../core/crypto/privateKey.mjs';
22
- import 'eventemitter3';
23
- import '../Ed25519Account-9zBaZEnp.mjs';
24
- import '../transactions/authenticator/account.mjs';
25
- import '../core/crypto/ed25519.mjs';
26
- import '../core/crypto/multiEd25519.mjs';
27
- import '../core/crypto/multiKey.mjs';
28
- import '../core/crypto/singleKey.mjs';
29
- import '../transactions/types.mjs';
30
- import '../bcs/serializable/moveStructs.mjs';
31
- import '../bcs/serializable/movePrimitives.mjs';
32
- import '../bcs/serializable/fixedBytes.mjs';
33
- import '../transactions/instances/rawTransaction.mjs';
34
- import '../transactions/instances/chainId.mjs';
35
- import '../transactions/instances/transactionPayload.mjs';
36
- import '../transactions/instances/identifier.mjs';
37
- import '../transactions/instances/moduleId.mjs';
38
- import '../transactions/typeTag/index.mjs';
39
- import '../transactions/instances/simpleTransaction.mjs';
40
- import '../transactions/instances/multiAgentTransaction.mjs';
41
-
42
- declare function getPepper(args: {
43
- aptosConfig: AptosConfig;
44
- jwt: string;
45
- ephemeralKeyPair: EphemeralKeyPair;
46
- uidKey?: string;
47
- derivationPath?: string;
48
- verify?: boolean;
49
- }): Promise<Uint8Array>;
50
- declare function getProof(args: {
51
- aptosConfig: AptosConfig;
52
- jwt: string;
53
- ephemeralKeyPair: EphemeralKeyPair;
54
- pepper: HexInput;
55
- uidKey?: string;
56
- extraFieldKey?: string;
57
- }): Promise<ZeroKnowledgeSig>;
58
- declare function deriveKeylessAccount(args: {
59
- aptosConfig: AptosConfig;
60
- jwt: string;
61
- ephemeralKeyPair: EphemeralKeyPair;
62
- uidKey?: string;
63
- pepper?: HexInput;
64
- extraFieldKey?: string;
65
- proofFetchCallback?: ProofFetchCallback;
66
- }): Promise<KeylessAccount>;
67
-
68
- export { deriveKeylessAccount, getPepper, getProof };
@@ -1,2 +0,0 @@
1
- import{a,b,c}from"../chunk-75J7H3XD.mjs";import"../chunk-7Z6DYLCA.mjs";import"../chunk-Y4SSUCPJ.mjs";import"../chunk-HMFL7AOJ.mjs";import"../chunk-VPKPQBKL.mjs";import"../chunk-VSD2AWUR.mjs";import"../chunk-RKTM5GBP.mjs";import"../chunk-Y33CIIZX.mjs";import"../chunk-XZGQMZ2H.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-5XOFEQWC.mjs";import"../chunk-CB6CNNM2.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-HYU23YVP.mjs";import"../chunk-2ECWQRBB.mjs";import"../chunk-H62IKYXG.mjs";import"../chunk-MWUJCP27.mjs";import"../chunk-ZNEBMSNC.mjs";import"../chunk-NC5HHEEM.mjs";import"../chunk-3VGX3TXH.mjs";import"../chunk-MGOHPDX4.mjs";import"../chunk-3S3GIUQY.mjs";import"../chunk-HYDDIAJ6.mjs";import"../chunk-RFSO3JRG.mjs";import"../chunk-AQ4I7VVB.mjs";import"../chunk-HHVAU5HU.mjs";import"../chunk-JLWKIYHV.mjs";import"../chunk-YV7OBLK2.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-3CUVYW32.mjs";import"../chunk-PGCBIU33.mjs";import"../chunk-FLYEALDB.mjs";import"../chunk-N466X3S6.mjs";import"../chunk-25H3DXTL.mjs";import"../chunk-SI7MPP6G.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-COW5IGYC.mjs";import"../chunk-STYDBDYL.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-7STYQ5ZE.mjs";import"../chunk-T23OVRNF.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-YGOJYDJA.mjs";import"../chunk-YNNPWCF6.mjs";import"../chunk-WM2NCYZL.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-UTXJOB3O.mjs";import"../chunk-RKHPXZM6.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-JM2B5E2I.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-VT6XJSRO.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-NBEXLW7P.mjs";import"../chunk-JM544NRW.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-FVA2OPG4.mjs";export{c as deriveKeylessAccount,a as getPepper,b as getProof};
2
- //# sourceMappingURL=keyless.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,69 +0,0 @@
1
- import { KeylessAccount } from '../account/KeylessAccount.mjs';
2
- import { AptosApiError } from '../client/types.mjs';
3
- import 'eventemitter3';
4
- import './index.mjs';
5
- import '../utils/apiEndpoints.mjs';
6
- import './indexer.mjs';
7
- import './generated/operations.mjs';
8
- import './generated/types.mjs';
9
- import '../core/accountAddress.mjs';
10
- import '../bcs/serializer.mjs';
11
- import '../core/hex.mjs';
12
- import '../core/common.mjs';
13
- import '../bcs/deserializer.mjs';
14
- import '../transactions/instances/transactionArgument.mjs';
15
- import '../core/crypto/signature.mjs';
16
- import '../core/crypto/keyless.mjs';
17
- import '../publicKey-lq5djCIY.mjs';
18
- import '../core/crypto/ephemeral.mjs';
19
- import '../core/crypto/proof.mjs';
20
- import '../Ed25519Account-9zBaZEnp.mjs';
21
- import '../transactions/authenticator/account.mjs';
22
- import '../core/crypto/ed25519.mjs';
23
- import '../core/crypto/privateKey.mjs';
24
- import '../core/crypto/multiEd25519.mjs';
25
- import '../core/crypto/multiKey.mjs';
26
- import '../core/crypto/singleKey.mjs';
27
- import '../transactions/types.mjs';
28
- import '../api/aptosConfig.mjs';
29
- import '../utils/const.mjs';
30
- import '../bcs/serializable/moveStructs.mjs';
31
- import '../bcs/serializable/movePrimitives.mjs';
32
- import '../bcs/serializable/fixedBytes.mjs';
33
- import '../transactions/instances/rawTransaction.mjs';
34
- import '../transactions/instances/chainId.mjs';
35
- import '../transactions/instances/transactionPayload.mjs';
36
- import '../transactions/instances/identifier.mjs';
37
- import '../transactions/instances/moduleId.mjs';
38
- import '../transactions/typeTag/index.mjs';
39
- import '../transactions/instances/simpleTransaction.mjs';
40
- import '../transactions/instances/multiAgentTransaction.mjs';
41
- import '../account/EphemeralKeyPair.mjs';
42
-
43
- type ProverResponse = {
44
- proof: {
45
- a: string;
46
- b: string;
47
- c: string;
48
- };
49
- public_inputs_hash: string;
50
- training_wheels_signature: string;
51
- };
52
- type PepperFetchResponse = {
53
- signature: string;
54
- pepper: string;
55
- address: string;
56
- };
57
- declare enum KeylessErrorType {
58
- JWK_EXPIRED = 0,
59
- EPK_EXPIRED = 1,
60
- UNKNOWN_INVALID_SIGNATURE = 2,
61
- UNKNOWN = 3
62
- }
63
- declare class KeylessError extends Error {
64
- readonly type: KeylessErrorType;
65
- private constructor();
66
- static fromAptosApiError(error: AptosApiError, signer: KeylessAccount): Promise<KeylessError>;
67
- }
68
-
69
- export { KeylessError, KeylessErrorType, type PepperFetchResponse, type ProverResponse };
@@ -1,2 +0,0 @@
1
- import{a,b}from"../chunk-3COVJN6Z.mjs";import"../chunk-FVA2OPG4.mjs";export{b as KeylessError,a as KeylessErrorType};
2
- //# sourceMappingURL=keyless.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,161 +0,0 @@
1
- // Copyright © Aptos Foundation
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { randomBytes } from "@noble/hashes/utils";
5
-
6
- import {
7
- EPK_HORIZON_SECS,
8
- Ed25519PrivateKey,
9
- EphemeralPublicKey,
10
- EphemeralSignature,
11
- PrivateKey,
12
- } from "../core/crypto";
13
- import { Hex } from "../core/hex";
14
- import { bytesToBigIntLE, padAndPackBytesWithLen, poseidonHash } from "../core/crypto/poseidon";
15
- import { EphemeralPublicKeyVariant, HexInput } from "../types";
16
- import { Deserializer, Serializable, Serializer } from "../bcs";
17
-
18
- export class EphemeralKeyPair extends Serializable {
19
- static readonly BLINDER_LENGTH: number = 31;
20
-
21
- /**
22
- * A byte array of length BLINDER_LENGTH used to obfuscate the public key from the IdP.
23
- * Used in calculating the nonce passed to the IdP and as a secret witness in proof generation.
24
- */
25
- readonly blinder: Uint8Array;
26
-
27
- /**
28
- * A timestamp in seconds indicating when the ephemeral key pair is expired. After expiry, a new
29
- * EphemeralKeyPair must be generated and a new JWT needs to be created.
30
- */
31
- readonly expiryDateSecs: bigint | number;
32
-
33
- /**
34
- * The value passed to the IdP when the user authenticates. It comprises of a hash of the
35
- * ephermeral public key, expiry date, and blinder.
36
- */
37
- readonly nonce: string;
38
-
39
- /**
40
- * A private key used to sign transactions. This private key is not tied to any account on the chain as it
41
- * is ephemeral in nature.
42
- */
43
- private privateKey: PrivateKey;
44
-
45
- /**
46
- * A public key used to verify transactions. This public key is not tied to any account on the chain as it
47
- * is ephemeral in nature.
48
- */
49
- private publicKey: EphemeralPublicKey;
50
-
51
- constructor(args: { privateKey: PrivateKey; expiryDateSecs?: bigint | number; blinder?: HexInput }) {
52
- super();
53
- const { privateKey, expiryDateSecs, blinder } = args;
54
- this.privateKey = privateKey;
55
- this.publicKey = new EphemeralPublicKey(privateKey.publicKey());
56
- // We set the expiry date to be the nearest floored hour
57
- this.expiryDateSecs = expiryDateSecs || BigInt(floorToWholeHour(currentTimeInSeconds() + EPK_HORIZON_SECS));
58
- // Generate the blinder if not provided
59
- this.blinder = blinder !== undefined ? Hex.fromHexInput(blinder).toUint8Array() : generateBlinder();
60
- // Calculate the nonce
61
- this.nonce = this.generateNonce();
62
- }
63
-
64
- /**
65
- * Returns the public key of the key pair.
66
- * @return EphemeralPublicKey
67
- */
68
- getPublicKey(): EphemeralPublicKey {
69
- return this.publicKey;
70
- }
71
-
72
- /**
73
- * Returns the public key of the key pair.
74
- * @return boolean
75
- */
76
- isExpired(): boolean {
77
- const currentTimeSecs: number = Math.floor(Date.now() / 1000);
78
- return currentTimeSecs > this.expiryDateSecs;
79
- }
80
-
81
- serialize(serializer: Serializer): void {
82
- serializer.serializeU32AsUleb128(this.publicKey.variant);
83
- serializer.serializeBytes(this.privateKey.toUint8Array());
84
- serializer.serializeU64(this.expiryDateSecs);
85
- serializer.serializeFixedBytes(this.blinder);
86
- }
87
-
88
- static deserialize(deserializer: Deserializer): EphemeralKeyPair {
89
- const variantIndex = deserializer.deserializeUleb128AsU32();
90
- let privateKey: PrivateKey;
91
- switch (variantIndex) {
92
- case EphemeralPublicKeyVariant.Ed25519:
93
- privateKey = Ed25519PrivateKey.deserialize(deserializer);
94
- break;
95
- default:
96
- throw new Error(`Unknown variant index for EphemeralPublicKey: ${variantIndex}`);
97
- }
98
- const expiryDateSecs = deserializer.deserializeU64();
99
- const blinder = deserializer.deserializeFixedBytes(31);
100
- return new EphemeralKeyPair({ privateKey, expiryDateSecs, blinder });
101
- }
102
-
103
- static fromBytes(bytes: Uint8Array): EphemeralKeyPair {
104
- return EphemeralKeyPair.deserialize(new Deserializer(bytes));
105
- }
106
-
107
- /**
108
- * Returns the public key of the key pair.
109
- * @param scheme the type of keypair to use for the EphemeralKeyPair. Only Ed25519 supported for now.
110
- * @return boolean
111
- */
112
- static generate(args?: { scheme: EphemeralPublicKeyVariant }): EphemeralKeyPair {
113
- let privateKey: PrivateKey;
114
-
115
- switch (args?.scheme) {
116
- case EphemeralPublicKeyVariant.Ed25519:
117
- default:
118
- privateKey = Ed25519PrivateKey.generate();
119
- }
120
-
121
- return new EphemeralKeyPair({ privateKey });
122
- }
123
-
124
- private generateNonce(): string {
125
- const fields = padAndPackBytesWithLen(this.publicKey.bcsToBytes(), 93);
126
- fields.push(BigInt(this.expiryDateSecs));
127
- fields.push(bytesToBigIntLE(this.blinder));
128
- const nonceHash = poseidonHash(fields);
129
- return nonceHash.toString();
130
- }
131
-
132
- /**
133
- * Sign the given message with the private key.
134
- *
135
- * @param data in HexInput format
136
- * @returns EphemeralSignature
137
- */
138
- sign(data: HexInput): EphemeralSignature {
139
- if (this.isExpired()) {
140
- throw new Error("EphemeralKeyPair has expired");
141
- }
142
- return new EphemeralSignature(this.privateKey.sign(data));
143
- }
144
- }
145
-
146
- function generateBlinder(): Uint8Array {
147
- return randomBytes(EphemeralKeyPair.BLINDER_LENGTH);
148
- }
149
-
150
- function currentTimeInSeconds(): number {
151
- return Math.floor(new Date().getTime() / 1000);
152
- }
153
-
154
- function floorToWholeHour(timestampInSeconds: number): number {
155
- const date = new Date(timestampInSeconds * 1000);
156
- // Reset minutes and seconds to zero
157
- date.setMinutes(0);
158
- date.setSeconds(0);
159
- date.setMilliseconds(0);
160
- return Math.floor(date.getTime() / 1000);
161
- }
@@ -1,341 +0,0 @@
1
- // Copyright © Aptos Foundation
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { JwtPayload, jwtDecode } from "jwt-decode";
5
- import { JwksClient } from "jwks-rsa";
6
- import { decode } from "js-base64";
7
- import EventEmitter from "eventemitter3";
8
- import { EphemeralCertificateVariant, HexInput, SigningScheme } from "../types";
9
- import { AccountAddress } from "../core/accountAddress";
10
- import {
11
- AnyPublicKey,
12
- AnySignature,
13
- KeylessPublicKey,
14
- KeylessSignature,
15
- EphemeralCertificate,
16
- Signature,
17
- ZeroKnowledgeSig,
18
- ZkProof,
19
- } from "../core/crypto";
20
-
21
- import { Account } from "./Account";
22
- import { EphemeralKeyPair } from "./EphemeralKeyPair";
23
- import { Hex } from "../core/hex";
24
- import { AccountAuthenticatorSingleKey } from "../transactions/authenticator/account";
25
- import { Deserializer, Serializable, Serializer } from "../bcs";
26
- import {
27
- deriveTransactionType,
28
- generateSigningMessageForSerializable,
29
- } from "../transactions/transactionBuilder/signingMessage";
30
- import { AnyRawTransaction, AnyRawTransactionInstance } from "../transactions/types";
31
-
32
- export const IssuerToJwkEndpoint: Record<string, string> = {
33
- "https://accounts.google.com": "https://www.googleapis.com/oauth2/v3/certs",
34
- };
35
-
36
- export class KeylessAccount extends Serializable implements Account {
37
- static readonly PEPPER_LENGTH: number = 31;
38
-
39
- readonly publicKey: KeylessPublicKey;
40
-
41
- readonly ephemeralKeyPair: EphemeralKeyPair;
42
-
43
- readonly uidKey: string;
44
-
45
- readonly uidVal: string;
46
-
47
- readonly aud: string;
48
-
49
- readonly pepper: Uint8Array;
50
-
51
- readonly accountAddress: AccountAddress;
52
-
53
- proof: ZeroKnowledgeSig | undefined;
54
-
55
- readonly proofOrPromise: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
56
-
57
- readonly signingScheme: SigningScheme;
58
-
59
- private jwt: string;
60
-
61
- private isJwtValid: boolean;
62
-
63
- readonly emitter: EventEmitter<ProofFetchEvents>;
64
-
65
- constructor(args: {
66
- address?: AccountAddress;
67
- ephemeralKeyPair: EphemeralKeyPair;
68
- iss: string;
69
- uidKey: string;
70
- uidVal: string;
71
- aud: string;
72
- pepper: HexInput;
73
- proofOrFetcher: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
74
- proofFetchCallback?: ProofFetchCallback;
75
- jwt: string;
76
- }) {
77
- super();
78
- const { address, ephemeralKeyPair, uidKey, uidVal, aud, pepper, proofOrFetcher, proofFetchCallback, jwt } = args;
79
- this.ephemeralKeyPair = ephemeralKeyPair;
80
- this.publicKey = KeylessPublicKey.create(args);
81
- this.accountAddress = address ? AccountAddress.from(address) : this.publicKey.authKey().derivedAddress();
82
- this.uidKey = uidKey;
83
- this.uidVal = uidVal;
84
- this.aud = aud;
85
- this.jwt = jwt;
86
- this.emitter = new EventEmitter<ProofFetchEvents>();
87
- this.proofOrPromise = proofOrFetcher;
88
- if (proofOrFetcher instanceof ZeroKnowledgeSig) {
89
- this.proof = proofOrFetcher;
90
- } else {
91
- if (proofFetchCallback === undefined) {
92
- throw new Error("Must provide callback for async proof fetch");
93
- }
94
- this.emitter.on("proofFetchFinish", async (status) => {
95
- await proofFetchCallback(status);
96
- this.emitter.removeAllListeners();
97
- });
98
- this.init(proofOrFetcher);
99
- }
100
- this.signingScheme = SigningScheme.SingleKey;
101
- const pepperBytes = Hex.fromHexInput(pepper).toUint8Array();
102
- if (pepperBytes.length !== KeylessAccount.PEPPER_LENGTH) {
103
- throw new Error(`Pepper length in bytes should be ${KeylessAccount.PEPPER_LENGTH}`);
104
- }
105
- this.pepper = pepperBytes;
106
- this.isJwtValid = true;
107
- }
108
-
109
- /**
110
- * This initializes the asyncronous proof fetch
111
- * @return
112
- */
113
- async init(promise: Promise<ZeroKnowledgeSig>) {
114
- try {
115
- this.proof = await promise;
116
- this.emitter.emit("proofFetchFinish", { status: "Success" });
117
- } catch (error) {
118
- if (error instanceof Error) {
119
- this.emitter.emit("proofFetchFinish", { status: "Failed", error: error.toString() });
120
- } else {
121
- this.emitter.emit("proofFetchFinish", { status: "Failed", error: "Unknown" });
122
- }
123
- }
124
- }
125
-
126
- serialize(serializer: Serializer): void {
127
- serializer.serializeStr(this.jwt);
128
- serializer.serializeStr(this.uidKey);
129
- serializer.serializeFixedBytes(this.pepper);
130
- this.ephemeralKeyPair.serialize(serializer);
131
- if (this.proof === undefined) {
132
- throw new Error("Connot serialize - proof undefined");
133
- }
134
- this.proof.serialize(serializer);
135
- }
136
-
137
- static deserialize(deserializer: Deserializer): KeylessAccount {
138
- const jwt = deserializer.deserializeStr();
139
- const uidKey = deserializer.deserializeStr();
140
- const pepper = deserializer.deserializeFixedBytes(31);
141
- const ephemeralKeyPair = EphemeralKeyPair.deserialize(deserializer);
142
- const proof = ZeroKnowledgeSig.deserialize(deserializer);
143
- return KeylessAccount.fromJWTAndProof({
144
- proof,
145
- pepper,
146
- uidKey,
147
- jwt,
148
- ephemeralKeyPair,
149
- });
150
- }
151
-
152
- /**
153
- * Checks if the proof is expired. If so the account must be rederived with a new EphemeralKeyPair
154
- * and JWT token.
155
- * @return boolean
156
- */
157
- isExpired(): boolean {
158
- return this.ephemeralKeyPair.isExpired();
159
- }
160
-
161
- /**
162
- * Checks if the the JWK used to verify the token still exists on the issuer's JWK uri.
163
- * Caches the result.
164
- * @return boolean
165
- */
166
- async checkJwkValidity(): Promise<boolean> {
167
- if (!this.isJwtValid) {
168
- return false;
169
- }
170
- const jwtHeader = jwtDecode(this.jwt, { header: true });
171
- const client = new JwksClient({
172
- jwksUri: IssuerToJwkEndpoint[this.publicKey.iss],
173
- });
174
- try {
175
- await client.getSigningKey(jwtHeader.kid);
176
- return true;
177
- } catch (error) {
178
- this.isJwtValid = false;
179
- return false;
180
- }
181
- }
182
-
183
- /**
184
- * Sign a message using Keyless.
185
- * @param message the message to sign, as binary input
186
- * @return the AccountAuthenticator containing the signature, together with the account's public key
187
- */
188
- signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey {
189
- const signature = new AnySignature(this.sign(message));
190
- const publicKey = new AnyPublicKey(this.publicKey);
191
- return new AccountAuthenticatorSingleKey(publicKey, signature);
192
- }
193
-
194
- /**
195
- * Sign a transaction using Keyless.
196
- * @param transaction the raw transaction
197
- * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
198
- */
199
- signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey {
200
- const signature = new AnySignature(this.signTransaction(transaction));
201
- const publicKey = new AnyPublicKey(this.publicKey);
202
- return new AccountAuthenticatorSingleKey(publicKey, signature);
203
- }
204
-
205
- /**
206
- * Waits for asyncronous proof fetching to finish.
207
- * @return
208
- */
209
- async waitForProofFetch() {
210
- if (this.proofOrPromise instanceof Promise) {
211
- await this.proofOrPromise;
212
- }
213
- }
214
-
215
- /**
216
- * Sign the given message using Keyless.
217
- * @param message in HexInput format
218
- * @returns Signature
219
- */
220
- sign(data: HexInput): KeylessSignature {
221
- const { expiryDateSecs } = this.ephemeralKeyPair;
222
- if (this.isExpired()) {
223
- throw new Error("Ephemeral key pair is expired.");
224
- }
225
- if (this.proof === undefined) {
226
- throw new Error("Proof not found");
227
- }
228
- if (!this.isJwtValid) {
229
- throw new Error("The proof has expired. Please refetch proof");
230
- }
231
- const ephemeralPublicKey = this.ephemeralKeyPair.getPublicKey();
232
- const ephemeralSignature = this.ephemeralKeyPair.sign(data);
233
-
234
- return new KeylessSignature({
235
- jwtHeader: base64UrlDecode(this.jwt.split(".")[0]),
236
- ephemeralCertificate: new EphemeralCertificate(this.proof, EphemeralCertificateVariant.ZkProof),
237
- expiryDateSecs,
238
- ephemeralPublicKey,
239
- ephemeralSignature,
240
- });
241
- }
242
-
243
- /**
244
- * Sign the given transaction with Keyless.
245
- * Signs the transaction and proof to guard against proof malleability.
246
- * @param transaction the transaction to be signed
247
- * @returns KeylessSignature
248
- */
249
- signTransaction(transaction: AnyRawTransaction): KeylessSignature {
250
- if (this.proof === undefined) {
251
- throw new Error("Proof not found");
252
- }
253
- const raw = deriveTransactionType(transaction);
254
- const txnAndProof = new TransactionAndProof(raw, this.proof.proof);
255
- const signMess = generateSigningMessageForSerializable(txnAndProof);
256
- return this.sign(signMess);
257
- }
258
-
259
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, class-methods-use-this
260
- verifySignature(args: { message: HexInput; signature: Signature }): boolean {
261
- throw new Error("Not implemented");
262
- }
263
-
264
- static fromBytes(bytes: Uint8Array): KeylessAccount {
265
- return KeylessAccount.deserialize(new Deserializer(bytes));
266
- }
267
-
268
- static fromJWTAndProof(args: {
269
- proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
270
- jwt: string;
271
- ephemeralKeyPair: EphemeralKeyPair;
272
- pepper: HexInput;
273
- uidKey?: string;
274
- proofFetchCallback?: ProofFetchCallback;
275
- }): KeylessAccount {
276
- const { proof, jwt, ephemeralKeyPair, pepper, proofFetchCallback } = args;
277
- const uidKey = args.uidKey ?? "sub";
278
-
279
- const jwtPayload = jwtDecode<JwtPayload & { [key: string]: string }>(jwt);
280
- const iss = jwtPayload.iss!;
281
- if (typeof jwtPayload.aud !== "string") {
282
- throw new Error("aud was not found or an array of values");
283
- }
284
- const aud = jwtPayload.aud!;
285
- const uidVal = jwtPayload[uidKey];
286
- return new KeylessAccount({
287
- proofOrFetcher: proof,
288
- ephemeralKeyPair,
289
- iss,
290
- uidKey,
291
- uidVal,
292
- aud,
293
- pepper,
294
- jwt,
295
- proofFetchCallback,
296
- });
297
- }
298
- }
299
-
300
- class TransactionAndProof extends Serializable {
301
- transaction: AnyRawTransactionInstance;
302
-
303
- proof?: ZkProof;
304
-
305
- constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof) {
306
- super();
307
- this.transaction = transaction;
308
- this.proof = proof;
309
- }
310
-
311
- serialize(serializer: Serializer): void {
312
- serializer.serializeFixedBytes(this.transaction.bcsToBytes());
313
- serializer.serializeOption(this.proof);
314
- }
315
- }
316
-
317
- function base64UrlDecode(base64Url: string): string {
318
- // Replace base64url-specific characters
319
- const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
320
- // Pad the string with '=' characters if needed
321
- const paddedBase64 = base64 + "==".substring(0, (3 - (base64.length % 3)) % 3);
322
- const decodedString = decode(paddedBase64);
323
- return decodedString;
324
- }
325
-
326
- export type ProofFetchSuccess = {
327
- status: "Success";
328
- };
329
-
330
- export type ProofFetchFailure = {
331
- status: "Failed";
332
- error: string;
333
- };
334
-
335
- export type ProofFetchStatus = ProofFetchSuccess | ProofFetchFailure;
336
-
337
- export type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;
338
-
339
- export interface ProofFetchEvents {
340
- proofFetchFinish: (status: ProofFetchStatus) => void;
341
- }