@aptos-labs/ts-sdk 1.16.0 → 1.17.0-zeta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/dist/common/{accountAddress-ccLvlUQe.d.ts → accountAddress-jP2Ua0t9.d.ts} +97 -5
  2. package/dist/common/chunk-BHKSQXUZ.js +2 -0
  3. package/dist/common/chunk-BHKSQXUZ.js.map +1 -0
  4. package/dist/common/cli/index.d.ts +1 -1
  5. package/dist/common/cli/index.js +1 -1
  6. package/dist/common/index.d.ts +857 -122
  7. package/dist/common/index.js +28 -28
  8. package/dist/common/index.js.map +1 -1
  9. package/dist/esm/{Ed25519Account-B1VMJOY2.d.mts → Ed25519Account-9zBaZEnp.d.mts} +1 -1
  10. package/dist/esm/account/Account.d.mts +2 -2
  11. package/dist/esm/account/Account.mjs +1 -1
  12. package/dist/esm/account/Ed25519Account.d.mts +2 -2
  13. package/dist/esm/account/Ed25519Account.mjs +1 -1
  14. package/dist/esm/account/EphemeralKeyPair.d.mts +90 -0
  15. package/dist/esm/account/EphemeralKeyPair.mjs +2 -0
  16. package/dist/esm/account/KeylessAccount.d.mts +206 -0
  17. package/dist/esm/account/KeylessAccount.mjs +2 -0
  18. package/dist/esm/account/MultiKeyAccount.d.mts +13 -7
  19. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  20. package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
  21. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  22. package/dist/esm/account/index.d.mts +9 -2
  23. package/dist/esm/account/index.mjs +1 -1
  24. package/dist/esm/api/account.d.mts +4 -4
  25. package/dist/esm/api/account.mjs +1 -1
  26. package/dist/esm/api/ans.d.mts +4 -4
  27. package/dist/esm/api/ans.mjs +1 -1
  28. package/dist/esm/api/aptos.d.mts +12 -3
  29. package/dist/esm/api/aptos.mjs +1 -1
  30. package/dist/esm/api/aptosConfig.d.mts +20 -0
  31. package/dist/esm/api/aptosConfig.mjs +1 -1
  32. package/dist/esm/api/coin.d.mts +5 -5
  33. package/dist/esm/api/coin.mjs +1 -1
  34. package/dist/esm/api/digitalAsset.d.mts +6 -6
  35. package/dist/esm/api/digitalAsset.mjs +1 -1
  36. package/dist/esm/api/event.d.mts +1 -1
  37. package/dist/esm/api/event.mjs +1 -1
  38. package/dist/esm/api/faucet.mjs +1 -1
  39. package/dist/esm/api/fungibleAsset.d.mts +3 -3
  40. package/dist/esm/api/fungibleAsset.mjs +1 -1
  41. package/dist/esm/api/general.d.mts +3 -3
  42. package/dist/esm/api/general.mjs +1 -1
  43. package/dist/esm/api/index.d.mts +10 -2
  44. package/dist/esm/api/index.mjs +1 -1
  45. package/dist/esm/api/keyless.d.mts +85 -0
  46. package/dist/esm/api/keyless.mjs +2 -0
  47. package/dist/esm/api/keyless.mjs.map +1 -0
  48. package/dist/esm/api/staking.d.mts +2 -2
  49. package/dist/esm/api/staking.mjs +1 -1
  50. package/dist/esm/api/table.d.mts +1 -1
  51. package/dist/esm/api/table.mjs +1 -1
  52. package/dist/esm/api/transaction.d.mts +3 -3
  53. package/dist/esm/api/transaction.mjs +1 -1
  54. package/dist/esm/api/transactionSubmission/build.d.mts +3 -3
  55. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  56. package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
  57. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  58. package/dist/esm/api/transactionSubmission/sign.d.mts +4 -4
  59. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  60. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  61. package/dist/esm/api/transactionSubmission/simulate.d.mts +3 -3
  62. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  63. package/dist/esm/api/transactionSubmission/submit.d.mts +3 -3
  64. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  65. package/dist/esm/api/utils.mjs +1 -1
  66. package/dist/esm/bcs/deserializer.d.mts +32 -0
  67. package/dist/esm/bcs/deserializer.mjs +1 -1
  68. package/dist/esm/bcs/index.mjs +1 -1
  69. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  70. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  71. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  72. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  73. package/dist/esm/bcs/serializer.d.mts +42 -0
  74. package/dist/esm/bcs/serializer.mjs +1 -1
  75. package/dist/esm/chunk-2G4IGSGM.mjs +2 -0
  76. package/dist/esm/{chunk-XHEZAVN3.mjs.map → chunk-2G4IGSGM.mjs.map} +1 -1
  77. package/dist/esm/{chunk-BCLP2ENK.mjs → chunk-2H24BEJI.mjs} +2 -2
  78. package/dist/esm/chunk-37FFZSIM.mjs +2 -0
  79. package/dist/esm/chunk-37FFZSIM.mjs.map +1 -0
  80. package/dist/esm/{chunk-DO444YYD.mjs → chunk-3AIEYUPP.mjs} +2 -2
  81. package/dist/esm/chunk-3IFR6T3V.mjs +2 -0
  82. package/dist/esm/chunk-3IFR6T3V.mjs.map +1 -0
  83. package/dist/esm/chunk-3RJZNUCQ.mjs +2 -0
  84. package/dist/esm/chunk-3SACE4I2.mjs +2 -0
  85. package/dist/esm/{chunk-T2WZWN6W.mjs.map → chunk-3SACE4I2.mjs.map} +1 -1
  86. package/dist/esm/chunk-472OGHMG.mjs +2 -0
  87. package/dist/esm/chunk-474YDCFP.mjs +2 -0
  88. package/dist/esm/chunk-474YDCFP.mjs.map +1 -0
  89. package/dist/esm/chunk-4BJA3QUQ.mjs +2 -0
  90. package/dist/esm/{chunk-NYXLPBKE.mjs.map → chunk-4BJA3QUQ.mjs.map} +1 -1
  91. package/dist/esm/chunk-4CUDBBTC.mjs +2 -0
  92. package/dist/esm/chunk-4CUDBBTC.mjs.map +1 -0
  93. package/dist/esm/chunk-4VPCPASN.mjs +2 -0
  94. package/dist/esm/chunk-4W7T4HRZ.mjs +2 -0
  95. package/dist/esm/chunk-4W7T4HRZ.mjs.map +1 -0
  96. package/dist/esm/chunk-54LCK6EN.mjs +2 -0
  97. package/dist/esm/chunk-54LCK6EN.mjs.map +1 -0
  98. package/dist/esm/{chunk-DBC2JY65.mjs → chunk-5C5GZJ57.mjs} +2 -2
  99. package/dist/esm/chunk-5SEAQESO.mjs +2 -0
  100. package/dist/esm/chunk-5SEAQESO.mjs.map +1 -0
  101. package/dist/esm/{chunk-HZ3YB6TN.mjs → chunk-5UXARGTJ.mjs} +2 -2
  102. package/dist/esm/{chunk-I3MG3W4J.mjs → chunk-5X5GQF3E.mjs} +2 -2
  103. package/dist/esm/{chunk-GHYE26Q5.mjs → chunk-6FBKUTGF.mjs} +2 -2
  104. package/dist/esm/chunk-7BW2N4IE.mjs +2 -0
  105. package/dist/esm/{chunk-MEXWNZY6.mjs → chunk-7M6OCGHL.mjs} +2 -2
  106. package/dist/esm/chunk-7Z6DYLCA.mjs +1 -0
  107. package/dist/esm/chunk-7Z6DYLCA.mjs.map +1 -0
  108. package/dist/esm/{chunk-BCUSI3N6.mjs → chunk-AOCNYMMX.mjs} +2 -2
  109. package/dist/esm/chunk-AQ4I7VVB.mjs +1 -0
  110. package/dist/esm/chunk-AQ4I7VVB.mjs.map +1 -0
  111. package/dist/esm/{chunk-VJL6AF64.mjs → chunk-ASK3DESW.mjs} +2 -2
  112. package/dist/esm/{chunk-JWTZDA6A.mjs → chunk-BO44HPGU.mjs} +2 -2
  113. package/dist/esm/chunk-CKQ74DYE.mjs +2 -0
  114. package/dist/esm/chunk-CKQ74DYE.mjs.map +1 -0
  115. package/dist/esm/chunk-DJPYZIJY.mjs +2 -0
  116. package/dist/esm/chunk-DJPYZIJY.mjs.map +1 -0
  117. package/dist/esm/{chunk-JNDRFTEA.mjs → chunk-DPWEHSHH.mjs} +2 -2
  118. package/dist/esm/{chunk-WNVUG2UF.mjs → chunk-EFMAZTIM.mjs} +2 -2
  119. package/dist/esm/chunk-EQF5MW2W.mjs +2 -0
  120. package/dist/esm/chunk-EQF5MW2W.mjs.map +1 -0
  121. package/dist/esm/{chunk-UF5B4XMN.mjs → chunk-ET4WC6TJ.mjs} +2 -2
  122. package/dist/esm/{chunk-UEI62FBQ.mjs → chunk-F3ZVWLDH.mjs} +2 -2
  123. package/dist/esm/{chunk-UEI62FBQ.mjs.map → chunk-F3ZVWLDH.mjs.map} +1 -1
  124. package/dist/esm/chunk-FBPNHF54.mjs +2 -0
  125. package/dist/esm/{chunk-YJIRT3GJ.mjs → chunk-FGGRPEQ3.mjs} +2 -2
  126. package/dist/esm/chunk-FIG65OJD.mjs +2 -0
  127. package/dist/esm/{chunk-ISIUQQMV.mjs → chunk-FNFQA7NS.mjs} +2 -2
  128. package/dist/esm/{chunk-XXBMHWNV.mjs → chunk-FR6UGCOX.mjs} +2 -2
  129. package/dist/esm/chunk-FR6UGCOX.mjs.map +1 -0
  130. package/dist/esm/chunk-GRHLQDHF.mjs +2 -0
  131. package/dist/esm/chunk-GSCM444Z.mjs +2 -0
  132. package/dist/esm/{chunk-QKV2H27T.mjs → chunk-HJAB473N.mjs} +2 -2
  133. package/dist/esm/chunk-HP6YVTTT.mjs +2 -0
  134. package/dist/esm/{chunk-LGOZUIGE.mjs.map → chunk-HP6YVTTT.mjs.map} +1 -1
  135. package/dist/esm/chunk-IBDBKQMF.mjs +2 -0
  136. package/dist/esm/chunk-IBDBKQMF.mjs.map +1 -0
  137. package/dist/esm/chunk-IBN7ETCB.mjs +2 -0
  138. package/dist/esm/{chunk-5NSXEM3O.mjs.map → chunk-IBN7ETCB.mjs.map} +1 -1
  139. package/dist/esm/chunk-IEVABWIO.mjs +2 -0
  140. package/dist/esm/chunk-IEVABWIO.mjs.map +1 -0
  141. package/dist/esm/{chunk-YTJ73ZX3.mjs → chunk-IFAWCHUG.mjs} +2 -2
  142. package/dist/esm/chunk-IT7YNITU.mjs +2 -0
  143. package/dist/esm/chunk-IVVWQKCF.mjs +2 -0
  144. package/dist/esm/chunk-IVVWQKCF.mjs.map +1 -0
  145. package/dist/esm/{chunk-TZCETTAW.mjs → chunk-IXFYYWAC.mjs} +2 -2
  146. package/dist/esm/{chunk-FW6TF3O2.mjs → chunk-J7HG6SQO.mjs} +2 -2
  147. package/dist/esm/{chunk-HMTYASEZ.mjs → chunk-JLXE5JF6.mjs} +2 -2
  148. package/dist/esm/{chunk-AKJZL3HT.mjs → chunk-KDLQ2V3L.mjs} +2 -2
  149. package/dist/esm/{chunk-OOH7MH2H.mjs → chunk-KGKEU2WI.mjs} +2 -2
  150. package/dist/esm/chunk-L5CPAOUM.mjs +2 -0
  151. package/dist/esm/chunk-L5CPAOUM.mjs.map +1 -0
  152. package/dist/esm/{chunk-FLUCRNGU.mjs → chunk-L5ZHZWHI.mjs} +2 -2
  153. package/dist/esm/chunk-M3KFXIQ6.mjs +2 -0
  154. package/dist/esm/chunk-M3KFXIQ6.mjs.map +1 -0
  155. package/dist/esm/{chunk-S5AGI7RQ.mjs → chunk-MLX6DFMR.mjs} +2 -2
  156. package/dist/esm/chunk-MNTLX37G.mjs +2 -0
  157. package/dist/esm/chunk-MNTLX37G.mjs.map +1 -0
  158. package/dist/esm/{chunk-RC6B45PP.mjs → chunk-MRUDDEJ3.mjs} +2 -2
  159. package/dist/esm/chunk-NMD45OTM.mjs +2 -0
  160. package/dist/esm/chunk-NMD45OTM.mjs.map +1 -0
  161. package/dist/esm/chunk-NW3WUTTD.mjs +2 -0
  162. package/dist/esm/{chunk-LVYNEPH4.mjs → chunk-O6QLAP7N.mjs} +2 -2
  163. package/dist/esm/{chunk-LKVJZTBM.mjs → chunk-OHZHYL3E.mjs} +2 -2
  164. package/dist/esm/chunk-OHZHYL3E.mjs.map +1 -0
  165. package/dist/esm/{chunk-QIELBIZW.mjs → chunk-P67NJHS5.mjs} +2 -2
  166. package/dist/esm/{chunk-TAVPFLW5.mjs → chunk-PBMSO6WI.mjs} +2 -2
  167. package/dist/esm/chunk-Q6LFIZ3L.mjs +2 -0
  168. package/dist/esm/chunk-Q6LFIZ3L.mjs.map +1 -0
  169. package/dist/esm/{chunk-43HKFNUB.mjs → chunk-QFVQSFBZ.mjs} +2 -2
  170. package/dist/esm/{chunk-YMHX6GC2.mjs → chunk-R5THMTSP.mjs} +2 -2
  171. package/dist/esm/chunk-SCHZ67F3.mjs +2 -0
  172. package/dist/esm/chunk-SCHZ67F3.mjs.map +1 -0
  173. package/dist/esm/{chunk-AR3GW64L.mjs → chunk-SNDFJWYM.mjs} +2 -2
  174. package/dist/esm/{chunk-JHBMHOSV.mjs → chunk-T5YEMU53.mjs} +2 -2
  175. package/dist/esm/{chunk-DPWXEJP6.mjs → chunk-TAT3K5M7.mjs} +2 -2
  176. package/dist/esm/{chunk-LM7CN4LT.mjs → chunk-TCK35M7E.mjs} +2 -2
  177. package/dist/esm/chunk-TJDC5PWD.mjs +2 -0
  178. package/dist/esm/{chunk-LF6IQT54.mjs → chunk-TUCCV62K.mjs} +2 -2
  179. package/dist/esm/{chunk-OLKEU7WZ.mjs → chunk-U2R36WTE.mjs} +2 -2
  180. package/dist/esm/chunk-U5F4NL24.mjs +2 -0
  181. package/dist/esm/{chunk-4KMISR2H.mjs → chunk-UMLUOYFK.mjs} +2 -2
  182. package/dist/esm/{chunk-4KMISR2H.mjs.map → chunk-UMLUOYFK.mjs.map} +1 -1
  183. package/dist/esm/chunk-VAKWRPVP.mjs +2 -0
  184. package/dist/esm/chunk-VAKWRPVP.mjs.map +1 -0
  185. package/dist/esm/chunk-VJFCEX7W.mjs +2 -0
  186. package/dist/esm/chunk-VJFCEX7W.mjs.map +1 -0
  187. package/dist/esm/chunk-WA2NTBYY.mjs +2 -0
  188. package/dist/esm/{chunk-X6BYF2UD.mjs → chunk-WIYDJE6F.mjs} +2 -2
  189. package/dist/esm/chunk-XBVVP7O2.mjs +2 -0
  190. package/dist/esm/chunk-XBVVP7O2.mjs.map +1 -0
  191. package/dist/esm/chunk-XH33BXEY.mjs +2 -0
  192. package/dist/esm/chunk-XH33BXEY.mjs.map +1 -0
  193. package/dist/esm/{chunk-CX4BEIQT.mjs → chunk-XVZBWW46.mjs} +2 -2
  194. package/dist/esm/{chunk-V367QLY3.mjs → chunk-Y4E6NTAS.mjs} +2 -2
  195. package/dist/esm/{chunk-6SK246YU.mjs → chunk-YA4XTZNZ.mjs} +2 -2
  196. package/dist/esm/chunk-YD5IB4TH.mjs +2 -0
  197. package/dist/esm/chunk-YD5IB4TH.mjs.map +1 -0
  198. package/dist/esm/{chunk-A7J2UMLS.mjs → chunk-YDNOKWV3.mjs} +2 -2
  199. package/dist/esm/chunk-YE5B2S5L.mjs +2 -0
  200. package/dist/esm/chunk-YE5B2S5L.mjs.map +1 -0
  201. package/dist/esm/{chunk-4D42AAH3.mjs → chunk-YRUF6N3U.mjs} +2 -2
  202. package/dist/esm/chunk-YTQVMLFD.mjs +2 -0
  203. package/dist/esm/chunk-YTQVMLFD.mjs.map +1 -0
  204. package/dist/esm/{chunk-ZMXURV35.mjs → chunk-ZIDLP5MI.mjs} +2 -2
  205. package/dist/esm/{chunk-OO5EJW3B.mjs → chunk-ZMHGGT4E.mjs} +2 -2
  206. package/dist/esm/{chunk-AWPRGMUP.mjs → chunk-ZV5MKFV7.mjs} +2 -2
  207. package/dist/esm/cli/index.mjs +1 -1
  208. package/dist/esm/cli/localNode.mjs +1 -1
  209. package/dist/esm/client/core.mjs +1 -1
  210. package/dist/esm/client/get.d.mts +8 -1
  211. package/dist/esm/client/get.mjs +1 -1
  212. package/dist/esm/client/index.d.mts +2 -2
  213. package/dist/esm/client/index.mjs +1 -1
  214. package/dist/esm/client/post.d.mts +9 -1
  215. package/dist/esm/client/post.mjs +1 -1
  216. package/dist/esm/client/types.mjs +1 -1
  217. package/dist/esm/core/account/index.mjs +1 -1
  218. package/dist/esm/core/account/utils/address.mjs +1 -1
  219. package/dist/esm/core/account/utils/index.mjs +1 -1
  220. package/dist/esm/core/accountAddress.mjs +1 -1
  221. package/dist/esm/core/authenticationKey.d.mts +1 -1
  222. package/dist/esm/core/authenticationKey.mjs +1 -1
  223. package/dist/esm/core/common.mjs +1 -1
  224. package/dist/esm/core/crypto/cryptoHashable.d.mts +21 -0
  225. package/dist/esm/core/crypto/cryptoHashable.mjs +2 -0
  226. package/dist/esm/core/crypto/cryptoHashable.mjs.map +1 -0
  227. package/dist/esm/core/crypto/ed25519.d.mts +1 -1
  228. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  229. package/dist/esm/core/crypto/ephemeral.d.mts +73 -0
  230. package/dist/esm/core/crypto/ephemeral.mjs +2 -0
  231. package/dist/esm/core/crypto/ephemeral.mjs.map +1 -0
  232. package/dist/esm/core/crypto/index.d.mts +7 -1
  233. package/dist/esm/core/crypto/index.mjs +1 -1
  234. package/dist/esm/core/crypto/keyless.d.mts +321 -0
  235. package/dist/esm/core/crypto/keyless.mjs +2 -0
  236. package/dist/esm/core/crypto/keyless.mjs.map +1 -0
  237. package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
  238. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  239. package/dist/esm/core/crypto/multiKey.d.mts +1 -1
  240. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  241. package/dist/esm/core/crypto/poseidon.d.mts +19 -0
  242. package/dist/esm/core/crypto/poseidon.mjs +2 -0
  243. package/dist/esm/core/crypto/poseidon.mjs.map +1 -0
  244. package/dist/esm/core/crypto/privateKey.d.mts +1 -1
  245. package/dist/esm/core/crypto/proof.d.mts +21 -0
  246. package/dist/esm/core/crypto/proof.mjs +2 -0
  247. package/dist/esm/core/crypto/proof.mjs.map +1 -0
  248. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  249. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  250. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  251. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  252. package/dist/esm/core/crypto/signature.mjs +1 -1
  253. package/dist/esm/core/crypto/singleKey.d.mts +1 -1
  254. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  255. package/dist/esm/core/crypto/utils.mjs +1 -1
  256. package/dist/esm/core/hex.mjs +1 -1
  257. package/dist/esm/core/index.d.mts +7 -1
  258. package/dist/esm/core/index.mjs +1 -1
  259. package/dist/esm/index.d.mts +15 -7
  260. package/dist/esm/index.mjs +1 -1
  261. package/dist/esm/internal/account.d.mts +3 -3
  262. package/dist/esm/internal/account.mjs +1 -1
  263. package/dist/esm/internal/ans.d.mts +2 -2
  264. package/dist/esm/internal/ans.mjs +1 -1
  265. package/dist/esm/internal/coin.d.mts +4 -4
  266. package/dist/esm/internal/coin.mjs +1 -1
  267. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  268. package/dist/esm/internal/digitalAsset.mjs +1 -1
  269. package/dist/esm/internal/event.d.mts +1 -1
  270. package/dist/esm/internal/event.mjs +1 -1
  271. package/dist/esm/internal/faucet.d.mts +3 -3
  272. package/dist/esm/internal/faucet.mjs +1 -1
  273. package/dist/esm/internal/fungibleAsset.d.mts +3 -3
  274. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  275. package/dist/esm/internal/general.d.mts +2 -16
  276. package/dist/esm/internal/general.mjs +1 -1
  277. package/dist/esm/internal/keyless.d.mts +73 -0
  278. package/dist/esm/internal/keyless.mjs +2 -0
  279. package/dist/esm/internal/keyless.mjs.map +1 -0
  280. package/dist/esm/internal/staking.d.mts +2 -2
  281. package/dist/esm/internal/staking.mjs +1 -1
  282. package/dist/esm/internal/table.mjs +1 -1
  283. package/dist/esm/internal/transaction.d.mts +16 -2
  284. package/dist/esm/internal/transaction.mjs +1 -1
  285. package/dist/esm/internal/transactionSubmission.d.mts +6 -6
  286. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  287. package/dist/esm/internal/view.d.mts +1 -1
  288. package/dist/esm/internal/view.mjs +1 -1
  289. package/dist/esm/transactions/authenticator/account.d.mts +1 -1
  290. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  291. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  292. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  293. package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
  294. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  295. package/dist/esm/transactions/index.d.mts +2 -2
  296. package/dist/esm/transactions/index.mjs +1 -1
  297. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  298. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  299. package/dist/esm/transactions/instances/index.d.mts +1 -1
  300. package/dist/esm/transactions/instances/index.mjs +1 -1
  301. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  302. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  303. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  304. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
  305. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  306. package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
  307. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  308. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  309. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  310. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  311. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  312. package/dist/esm/transactions/management/index.d.mts +2 -2
  313. package/dist/esm/transactions/management/index.mjs +1 -1
  314. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  315. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  316. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
  317. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  318. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  319. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  320. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +3 -3
  321. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  322. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +4 -1
  323. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  324. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +1 -1
  325. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  326. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  327. package/dist/esm/transactions/typeTag/parser.d.mts +3 -1
  328. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  329. package/dist/esm/transactions/types.d.mts +23 -5
  330. package/dist/esm/types/index.d.mts +21 -5
  331. package/dist/esm/types/index.mjs +1 -1
  332. package/dist/esm/types/keyless.d.mts +52 -0
  333. package/dist/esm/types/keyless.mjs +1 -0
  334. package/dist/esm/types/keyless.mjs.map +1 -0
  335. package/dist/esm/utils/apiEndpoints.d.mts +3 -1
  336. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  337. package/dist/esm/utils/const.d.mts +3 -1
  338. package/dist/esm/utils/const.mjs +1 -1
  339. package/dist/esm/utils/helpers.d.mts +4 -1
  340. package/dist/esm/utils/helpers.mjs +1 -1
  341. package/dist/esm/utils/index.d.mts +1 -1
  342. package/dist/esm/utils/index.mjs +1 -1
  343. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  344. package/dist/esm/version.d.mts +1 -1
  345. package/dist/esm/version.mjs +1 -1
  346. package/package.json +11 -4
  347. package/src/account/EphemeralKeyPair.ts +158 -0
  348. package/src/account/KeylessAccount.ts +360 -0
  349. package/src/account/MultiKeyAccount.ts +11 -0
  350. package/src/account/index.ts +2 -0
  351. package/src/api/aptos.ts +6 -0
  352. package/src/api/aptosConfig.ts +46 -1
  353. package/src/api/general.ts +1 -2
  354. package/src/api/keyless.ts +51 -0
  355. package/src/bcs/deserializer.ts +46 -0
  356. package/src/bcs/serializer.ts +58 -0
  357. package/src/client/core.ts +4 -0
  358. package/src/client/get.ts +12 -0
  359. package/src/client/post.ts +18 -0
  360. package/src/core/crypto/cryptoHashable.ts +16 -0
  361. package/src/core/crypto/ephemeral.ts +138 -0
  362. package/src/core/crypto/index.ts +2 -0
  363. package/src/core/crypto/keyless.ts +679 -0
  364. package/src/core/crypto/poseidon.ts +144 -0
  365. package/src/core/crypto/proof.ts +16 -0
  366. package/src/core/crypto/singleKey.ts +11 -0
  367. package/src/internal/general.ts +1 -38
  368. package/src/internal/keyless.ts +121 -0
  369. package/src/internal/transaction.ts +92 -0
  370. package/src/internal/transactionSubmission.ts +6 -1
  371. package/src/transactions/management/accountSequenceNumber.ts +5 -8
  372. package/src/transactions/transactionBuilder/remoteAbi.ts +3 -2
  373. package/src/transactions/transactionBuilder/signingMessage.ts +4 -1
  374. package/src/transactions/transactionBuilder/transactionBuilder.ts +22 -2
  375. package/src/transactions/typeTag/parser.ts +98 -52
  376. package/src/transactions/types.ts +22 -3
  377. package/src/types/index.ts +24 -2
  378. package/src/types/keyless.ts +42 -0
  379. package/src/utils/apiEndpoints.ts +16 -0
  380. package/src/utils/const.ts +2 -0
  381. package/src/utils/helpers.ts +22 -0
  382. package/src/version.ts +1 -1
  383. package/dist/common/chunk-KSEUZTKY.js +0 -2
  384. package/dist/common/chunk-KSEUZTKY.js.map +0 -1
  385. package/dist/esm/chunk-2XVDVF5C.mjs +0 -2
  386. package/dist/esm/chunk-3JPVQHOR.mjs +0 -2
  387. package/dist/esm/chunk-3JPVQHOR.mjs.map +0 -1
  388. package/dist/esm/chunk-43YYG5VO.mjs +0 -2
  389. package/dist/esm/chunk-43YYG5VO.mjs.map +0 -1
  390. package/dist/esm/chunk-5NSXEM3O.mjs +0 -2
  391. package/dist/esm/chunk-5SQAHWDI.mjs +0 -2
  392. package/dist/esm/chunk-5TTCAW72.mjs +0 -2
  393. package/dist/esm/chunk-5TTCAW72.mjs.map +0 -1
  394. package/dist/esm/chunk-6IFMQ5AS.mjs +0 -2
  395. package/dist/esm/chunk-6IFMQ5AS.mjs.map +0 -1
  396. package/dist/esm/chunk-6JFZZLRC.mjs +0 -2
  397. package/dist/esm/chunk-6JFZZLRC.mjs.map +0 -1
  398. package/dist/esm/chunk-AFTMLXYT.mjs +0 -2
  399. package/dist/esm/chunk-CCQRMKD2.mjs +0 -2
  400. package/dist/esm/chunk-CCQRMKD2.mjs.map +0 -1
  401. package/dist/esm/chunk-CYNQRMO5.mjs +0 -2
  402. package/dist/esm/chunk-CYNQRMO5.mjs.map +0 -1
  403. package/dist/esm/chunk-EUUIYMYC.mjs +0 -2
  404. package/dist/esm/chunk-F7EMGK4M.mjs +0 -2
  405. package/dist/esm/chunk-F7J7ZW4H.mjs +0 -2
  406. package/dist/esm/chunk-FNKDXPPQ.mjs +0 -2
  407. package/dist/esm/chunk-FVN6MJTH.mjs +0 -2
  408. package/dist/esm/chunk-FVN6MJTH.mjs.map +0 -1
  409. package/dist/esm/chunk-FWPK5KC2.mjs +0 -2
  410. package/dist/esm/chunk-FWPK5KC2.mjs.map +0 -1
  411. package/dist/esm/chunk-HYCGMFC2.mjs +0 -2
  412. package/dist/esm/chunk-HYCGMFC2.mjs.map +0 -1
  413. package/dist/esm/chunk-JE7INUQ2.mjs +0 -2
  414. package/dist/esm/chunk-JE7INUQ2.mjs.map +0 -1
  415. package/dist/esm/chunk-LG7RJQ57.mjs +0 -2
  416. package/dist/esm/chunk-LGOZUIGE.mjs +0 -2
  417. package/dist/esm/chunk-LKVJZTBM.mjs.map +0 -1
  418. package/dist/esm/chunk-LX53BIRN.mjs +0 -2
  419. package/dist/esm/chunk-NYXLPBKE.mjs +0 -2
  420. package/dist/esm/chunk-OIH4KBXW.mjs +0 -2
  421. package/dist/esm/chunk-OIH4KBXW.mjs.map +0 -1
  422. package/dist/esm/chunk-OWW6SIDP.mjs +0 -2
  423. package/dist/esm/chunk-OWW6SIDP.mjs.map +0 -1
  424. package/dist/esm/chunk-P2CIREOD.mjs +0 -2
  425. package/dist/esm/chunk-R5NNAF5B.mjs +0 -2
  426. package/dist/esm/chunk-R5NNAF5B.mjs.map +0 -1
  427. package/dist/esm/chunk-ROXFCLDT.mjs +0 -2
  428. package/dist/esm/chunk-RTSWVT2Q.mjs +0 -2
  429. package/dist/esm/chunk-RTSWVT2Q.mjs.map +0 -1
  430. package/dist/esm/chunk-T2WZWN6W.mjs +0 -2
  431. package/dist/esm/chunk-UO3NZ5AH.mjs +0 -1
  432. package/dist/esm/chunk-UVSRX4SV.mjs +0 -1
  433. package/dist/esm/chunk-V3DEJBS6.mjs +0 -2
  434. package/dist/esm/chunk-V6J6AW5T.mjs +0 -2
  435. package/dist/esm/chunk-V6J6AW5T.mjs.map +0 -1
  436. package/dist/esm/chunk-VEB6NALT.mjs +0 -2
  437. package/dist/esm/chunk-VEB6NALT.mjs.map +0 -1
  438. package/dist/esm/chunk-WZSVQBPA.mjs +0 -2
  439. package/dist/esm/chunk-XHEZAVN3.mjs +0 -2
  440. package/dist/esm/chunk-XXBMHWNV.mjs.map +0 -1
  441. /package/dist/esm/{chunk-UO3NZ5AH.mjs.map → account/EphemeralKeyPair.mjs.map} +0 -0
  442. /package/dist/esm/{chunk-UVSRX4SV.mjs.map → account/KeylessAccount.mjs.map} +0 -0
  443. /package/dist/esm/{chunk-BCLP2ENK.mjs.map → chunk-2H24BEJI.mjs.map} +0 -0
  444. /package/dist/esm/{chunk-DO444YYD.mjs.map → chunk-3AIEYUPP.mjs.map} +0 -0
  445. /package/dist/esm/{chunk-ROXFCLDT.mjs.map → chunk-3RJZNUCQ.mjs.map} +0 -0
  446. /package/dist/esm/{chunk-LX53BIRN.mjs.map → chunk-472OGHMG.mjs.map} +0 -0
  447. /package/dist/esm/{chunk-AFTMLXYT.mjs.map → chunk-4VPCPASN.mjs.map} +0 -0
  448. /package/dist/esm/{chunk-DBC2JY65.mjs.map → chunk-5C5GZJ57.mjs.map} +0 -0
  449. /package/dist/esm/{chunk-HZ3YB6TN.mjs.map → chunk-5UXARGTJ.mjs.map} +0 -0
  450. /package/dist/esm/{chunk-I3MG3W4J.mjs.map → chunk-5X5GQF3E.mjs.map} +0 -0
  451. /package/dist/esm/{chunk-GHYE26Q5.mjs.map → chunk-6FBKUTGF.mjs.map} +0 -0
  452. /package/dist/esm/{chunk-2XVDVF5C.mjs.map → chunk-7BW2N4IE.mjs.map} +0 -0
  453. /package/dist/esm/{chunk-MEXWNZY6.mjs.map → chunk-7M6OCGHL.mjs.map} +0 -0
  454. /package/dist/esm/{chunk-BCUSI3N6.mjs.map → chunk-AOCNYMMX.mjs.map} +0 -0
  455. /package/dist/esm/{chunk-VJL6AF64.mjs.map → chunk-ASK3DESW.mjs.map} +0 -0
  456. /package/dist/esm/{chunk-JWTZDA6A.mjs.map → chunk-BO44HPGU.mjs.map} +0 -0
  457. /package/dist/esm/{chunk-JNDRFTEA.mjs.map → chunk-DPWEHSHH.mjs.map} +0 -0
  458. /package/dist/esm/{chunk-WNVUG2UF.mjs.map → chunk-EFMAZTIM.mjs.map} +0 -0
  459. /package/dist/esm/{chunk-UF5B4XMN.mjs.map → chunk-ET4WC6TJ.mjs.map} +0 -0
  460. /package/dist/esm/{chunk-LG7RJQ57.mjs.map → chunk-FBPNHF54.mjs.map} +0 -0
  461. /package/dist/esm/{chunk-YJIRT3GJ.mjs.map → chunk-FGGRPEQ3.mjs.map} +0 -0
  462. /package/dist/esm/{chunk-5SQAHWDI.mjs.map → chunk-FIG65OJD.mjs.map} +0 -0
  463. /package/dist/esm/{chunk-ISIUQQMV.mjs.map → chunk-FNFQA7NS.mjs.map} +0 -0
  464. /package/dist/esm/{chunk-FNKDXPPQ.mjs.map → chunk-GRHLQDHF.mjs.map} +0 -0
  465. /package/dist/esm/{chunk-WZSVQBPA.mjs.map → chunk-GSCM444Z.mjs.map} +0 -0
  466. /package/dist/esm/{chunk-QKV2H27T.mjs.map → chunk-HJAB473N.mjs.map} +0 -0
  467. /package/dist/esm/{chunk-YTJ73ZX3.mjs.map → chunk-IFAWCHUG.mjs.map} +0 -0
  468. /package/dist/esm/{chunk-EUUIYMYC.mjs.map → chunk-IT7YNITU.mjs.map} +0 -0
  469. /package/dist/esm/{chunk-TZCETTAW.mjs.map → chunk-IXFYYWAC.mjs.map} +0 -0
  470. /package/dist/esm/{chunk-FW6TF3O2.mjs.map → chunk-J7HG6SQO.mjs.map} +0 -0
  471. /package/dist/esm/{chunk-HMTYASEZ.mjs.map → chunk-JLXE5JF6.mjs.map} +0 -0
  472. /package/dist/esm/{chunk-AKJZL3HT.mjs.map → chunk-KDLQ2V3L.mjs.map} +0 -0
  473. /package/dist/esm/{chunk-OOH7MH2H.mjs.map → chunk-KGKEU2WI.mjs.map} +0 -0
  474. /package/dist/esm/{chunk-FLUCRNGU.mjs.map → chunk-L5ZHZWHI.mjs.map} +0 -0
  475. /package/dist/esm/{chunk-S5AGI7RQ.mjs.map → chunk-MLX6DFMR.mjs.map} +0 -0
  476. /package/dist/esm/{chunk-RC6B45PP.mjs.map → chunk-MRUDDEJ3.mjs.map} +0 -0
  477. /package/dist/esm/{chunk-P2CIREOD.mjs.map → chunk-NW3WUTTD.mjs.map} +0 -0
  478. /package/dist/esm/{chunk-LVYNEPH4.mjs.map → chunk-O6QLAP7N.mjs.map} +0 -0
  479. /package/dist/esm/{chunk-QIELBIZW.mjs.map → chunk-P67NJHS5.mjs.map} +0 -0
  480. /package/dist/esm/{chunk-TAVPFLW5.mjs.map → chunk-PBMSO6WI.mjs.map} +0 -0
  481. /package/dist/esm/{chunk-43HKFNUB.mjs.map → chunk-QFVQSFBZ.mjs.map} +0 -0
  482. /package/dist/esm/{chunk-YMHX6GC2.mjs.map → chunk-R5THMTSP.mjs.map} +0 -0
  483. /package/dist/esm/{chunk-AR3GW64L.mjs.map → chunk-SNDFJWYM.mjs.map} +0 -0
  484. /package/dist/esm/{chunk-JHBMHOSV.mjs.map → chunk-T5YEMU53.mjs.map} +0 -0
  485. /package/dist/esm/{chunk-DPWXEJP6.mjs.map → chunk-TAT3K5M7.mjs.map} +0 -0
  486. /package/dist/esm/{chunk-LM7CN4LT.mjs.map → chunk-TCK35M7E.mjs.map} +0 -0
  487. /package/dist/esm/{chunk-F7EMGK4M.mjs.map → chunk-TJDC5PWD.mjs.map} +0 -0
  488. /package/dist/esm/{chunk-LF6IQT54.mjs.map → chunk-TUCCV62K.mjs.map} +0 -0
  489. /package/dist/esm/{chunk-OLKEU7WZ.mjs.map → chunk-U2R36WTE.mjs.map} +0 -0
  490. /package/dist/esm/{chunk-V3DEJBS6.mjs.map → chunk-U5F4NL24.mjs.map} +0 -0
  491. /package/dist/esm/{chunk-F7J7ZW4H.mjs.map → chunk-WA2NTBYY.mjs.map} +0 -0
  492. /package/dist/esm/{chunk-X6BYF2UD.mjs.map → chunk-WIYDJE6F.mjs.map} +0 -0
  493. /package/dist/esm/{chunk-CX4BEIQT.mjs.map → chunk-XVZBWW46.mjs.map} +0 -0
  494. /package/dist/esm/{chunk-V367QLY3.mjs.map → chunk-Y4E6NTAS.mjs.map} +0 -0
  495. /package/dist/esm/{chunk-6SK246YU.mjs.map → chunk-YA4XTZNZ.mjs.map} +0 -0
  496. /package/dist/esm/{chunk-A7J2UMLS.mjs.map → chunk-YDNOKWV3.mjs.map} +0 -0
  497. /package/dist/esm/{chunk-4D42AAH3.mjs.map → chunk-YRUF6N3U.mjs.map} +0 -0
  498. /package/dist/esm/{chunk-ZMXURV35.mjs.map → chunk-ZIDLP5MI.mjs.map} +0 -0
  499. /package/dist/esm/{chunk-OO5EJW3B.mjs.map → chunk-ZMHGGT4E.mjs.map} +0 -0
  500. /package/dist/esm/{chunk-AWPRGMUP.mjs.map → chunk-ZV5MKFV7.mjs.map} +0 -0
  501. /package/dist/esm/{publicKey-B3XRNhHO.d.mts → publicKey-lq5djCIY.d.mts} +0 -0
@@ -1,5 +1,5 @@
1
- import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, N as Network, C as Client, i as ClientConfig, F as FullNodeConfig, I as IndexerConfig, j as FaucetConfig, k as AptosSettings, M as MoveModuleId, l as ScriptFunctionArgument, m as MoveFunctionId, n as AccountAddressInput, o as MoveFunctionGenericTypeParam, p as SigningSchemeInput, q as SigningScheme, r as AccountData, P as PaginationArgs, L as LedgerVersionArg, s as MoveModuleBytecode, t as TransactionResponse, u as MoveResource, v as MoveStructId, w as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, x as GetAccountOwnedTokensFromCollectionResponse, y as GetAccountCollectionsWithOwnedTokenResponse, z as GetAccountCoinsDataResponse, W as WhereArg, B as GetAccountOwnedObjectsResponse, J as GetCollectionDataResponse, K as GetTokenDataResponse, Q as GetCurrentTokenOwnershipResponse, R as GetOwnedTokensResponse, V as GetTokenActivityResponse, X as GetEventsResponse, Y as WaitForTransactionOptions, Z as UserTransactionResponse, _ as MoveFunction, $ as GetFungibleAssetMetadataResponse, a0 as GetFungibleAssetActivitiesResponse, a1 as GetCurrentFungibleAssetBalancesResponse, a2 as LedgerInfo, a3 as Block, a4 as MoveValue, a5 as GetChainTopUserTransactionsResponse, a6 as GraphqlQuery, a7 as GetProcessorStatusResponse, a8 as GetANSNameResponse, a9 as GetNumberOfDelegatorsResponse, aa as GetDelegatedStakingActivitiesResponse, ab as PendingTransactionResponse, ac as CommittedTransactionResponse, ad as GasEstimation, ae as TableItemRequest, af as GetTableItemsDataResponse, ag as GetTableItemsMetadataResponse, ah as AptosRequest, ai as ClientRequest, aj as ClientResponse, ak as MimeType } from './accountAddress-ccLvlUQe.js';
2
- export { ax as AccountAuthenticatorVariant, bc as AccountSignature, ao as AddressInvalidReason, ay as AnySignatureVariant, aL as BlockMetadataTransactionResponse, aC as ClientHeadersType, aV as DecodedTableData, aW as DeletedTableData, bz as DeriveScheme, bf as DirectWriteSet, aY as EntryFunctionPayloadResponse, bh as Event, bg as EventGuid, bC as GenerateAccount, bA as GenerateAccountWithEd25519, bB as GenerateAccountWithSingleSignerSecp256k1Key, a$ as GenesisPayload, aK as GenesisTransactionResponse, ar as HexInvalidReason, bu as MoveAbility, bo as MoveAddressType, bt as MoveFunctionVisibility, bw as MoveModule, bp as MoveObjectType, bq as MoveOptionType, b0 as MoveScriptBytecode, bx as MoveStruct, bv as MoveStructField, br as MoveStructType, bs as MoveType, bm as MoveUint128Type, bj as MoveUint16Type, bn as MoveUint256Type, bk as MoveUint32Type, bl as MoveUint64Type, bi as MoveUint8Type, a_ as MultisigPayloadResponse, bJ as NetworkToChainId, bI as NetworkToFaucetAPI, bG as NetworkToIndexerAPI, bK as NetworkToNetworkName, bH as NetworkToNodeAPI, bD as OrderBy, bE as OrderByValue, ap as ParsingError, aq as ParsingResult, by as RoleType, aZ as ScriptPayloadResponse, at as ScriptTransactionArgumentVariants, be as ScriptWriteSet, aM as StateCheckpointTransactionResponse, bF as TokenStandard, aw as TransactionAuthenticatorVariant, b7 as TransactionEd25519Signature, bb as TransactionFeePayerSignature, ba as TransactionMultiAgentSignature, b9 as TransactionMultiEd25519Signature, aX as TransactionPayloadResponse, au as TransactionPayloadVariants, aD as TransactionResponseType, b8 as TransactionSecp256k1Signature, b1 as TransactionSignature, av as TransactionVariants, as as TypeTagVariants, aA as Uint128, aB as Uint256, az as Uint64, aN as ValidatorTransactionResponse, bd as WriteSet, aO as WriteSetChange, aP as WriteSetChangeDeleteModule, aQ as WriteSetChangeDeleteResource, aR as WriteSetChangeDeleteTableItem, aS as WriteSetChangeWriteModule, aT as WriteSetChangeWriteResource, aU as WriteSetChangeWriteTableItem, al as ensureBoolean, aH as isBlockMetadataTransactionResponse, b2 as isEd25519Signature, b5 as isFeePayerSignature, aG as isGenesisTransactionResponse, b4 as isMultiAgentSignature, b6 as isMultiEd25519Signature, aE as isPendingTransactionResponse, b3 as isSecp256k1Signature, aI as isStateCheckpointTransactionResponse, aF as isUserTransactionResponse, aJ as isValidatorTransactionResponse, am as outOfRangeErrorMessage, an as validateNumberInRange } from './accountAddress-ccLvlUQe.js';
1
+ import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, M as MoveModuleId, n as ScriptFunctionArgument, o as MoveFunctionId, p as AccountAddressInput, q as MoveFunctionGenericTypeParam, r as SigningSchemeInput, s as SigningScheme, t as AccountData, P as PaginationArgs, u as MoveModuleBytecode, v as TransactionResponse, w as MoveResource, x as MoveStructId, y as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, z as GetAccountOwnedTokensFromCollectionResponse, B as GetAccountCollectionsWithOwnedTokenResponse, J as GetAccountCoinsDataResponse, W as WhereArg, K as GetAccountOwnedObjectsResponse, Q as GetCollectionDataResponse, R as GetTokenDataResponse, V as GetCurrentTokenOwnershipResponse, X as GetOwnedTokensResponse, Y as GetTokenActivityResponse, _ as GetEventsResponse, $ as WaitForTransactionOptions, a0 as UserTransactionResponse, a1 as MoveFunction, a2 as GetFungibleAssetMetadataResponse, a3 as GetFungibleAssetActivitiesResponse, a4 as GetCurrentFungibleAssetBalancesResponse, a5 as LedgerInfo, a6 as Block, a7 as MoveValue, a8 as GetChainTopUserTransactionsResponse, a9 as GraphqlQuery, aa as GetProcessorStatusResponse, ab as GetANSNameResponse, ac as GetNumberOfDelegatorsResponse, ad as GetDelegatedStakingActivitiesResponse, ae as PendingTransactionResponse, af as CommittedTransactionResponse, ag as GasEstimation, ah as TableItemRequest, ai as GetTableItemsDataResponse, aj as GetTableItemsMetadataResponse, ak as AptosRequest, al as ClientRequest, am as ClientResponse, an as MimeType } from './accountAddress-jP2Ua0t9.js';
2
+ export { aA as AccountAuthenticatorVariant, bg as AccountSignature, ar as AddressInvalidReason, aB as AnySignatureVariant, aP as BlockMetadataTransactionResponse, aG as ClientHeadersType, aZ as DecodedTableData, a_ as DeletedTableData, bD as DeriveScheme, bj as DirectWriteSet, b0 as EntryFunctionPayloadResponse, aC as EphemeralSignatureVariant, bl as Event, bk as EventGuid, bG as GenerateAccount, bE as GenerateAccountWithEd25519, bF as GenerateAccountWithSingleSignerSecp256k1Key, b3 as GenesisPayload, aO as GenesisTransactionResponse, au as HexInvalidReason, by as MoveAbility, bs as MoveAddressType, bx as MoveFunctionVisibility, bA as MoveModule, bt as MoveObjectType, bu as MoveOptionType, b4 as MoveScriptBytecode, bB as MoveStruct, bz as MoveStructField, bv as MoveStructType, bw as MoveType, bq as MoveUint128Type, bn as MoveUint16Type, br as MoveUint256Type, bo as MoveUint32Type, bp as MoveUint64Type, bm as MoveUint8Type, b2 as MultisigPayloadResponse, bP as NetworkToChainId, bM as NetworkToFaucetAPI, bK as NetworkToIndexerAPI, bQ as NetworkToNetworkName, bL as NetworkToNodeAPI, bN as NetworkToPepperAPI, bO as NetworkToProverAPI, bH as OrderBy, bI as OrderByValue, as as ParsingError, at as ParsingResult, bC as RoleType, b1 as ScriptPayloadResponse, aw as ScriptTransactionArgumentVariants, bi as ScriptWriteSet, aQ as StateCheckpointTransactionResponse, bJ as TokenStandard, az as TransactionAuthenticatorVariant, bb as TransactionEd25519Signature, bf as TransactionFeePayerSignature, be as TransactionMultiAgentSignature, bd as TransactionMultiEd25519Signature, a$ as TransactionPayloadResponse, ax as TransactionPayloadVariants, aH as TransactionResponseType, bc as TransactionSecp256k1Signature, b5 as TransactionSignature, ay as TransactionVariants, av as TypeTagVariants, aE as Uint128, aF as Uint256, aD as Uint64, aR as ValidatorTransactionResponse, bh as WriteSet, aS as WriteSetChange, aT as WriteSetChangeDeleteModule, aU as WriteSetChangeDeleteResource, aV as WriteSetChangeDeleteTableItem, aW as WriteSetChangeWriteModule, aX as WriteSetChangeWriteResource, aY as WriteSetChangeWriteTableItem, ao as ensureBoolean, aL as isBlockMetadataTransactionResponse, b6 as isEd25519Signature, b9 as isFeePayerSignature, aK as isGenesisTransactionResponse, b8 as isMultiAgentSignature, ba as isMultiEd25519Signature, aI as isPendingTransactionResponse, b7 as isSecp256k1Signature, aM as isStateCheckpointTransactionResponse, aJ as isUserTransactionResponse, aN as isValidatorTransactionResponse, ap as outOfRangeErrorMessage, aq as validateNumberInRange } from './accountAddress-jP2Ua0t9.js';
3
3
  import EventEmitter from 'eventemitter3';
4
4
 
5
5
  type Maybe<T> = T | null;
@@ -1367,6 +1367,519 @@ declare class MultiKeySignature extends Signature {
1367
1367
  static deserialize(deserializer: Deserializer): MultiKeySignature;
1368
1368
  }
1369
1369
 
1370
+ /**
1371
+ * Represents ephemeral public keys for Aptos Keyless accounts.
1372
+ *
1373
+ * These are not public keys used as a public key on an account. They are only used ephemerally on Keyless accounts.
1374
+ */
1375
+ declare class EphemeralPublicKey extends PublicKey {
1376
+ /**
1377
+ * The public key itself
1378
+ */
1379
+ readonly publicKey: PublicKey;
1380
+ /**
1381
+ * An enum indicating the scheme of the ephemeral public key
1382
+ */
1383
+ readonly variant: EphemeralPublicKeyVariant;
1384
+ constructor(publicKey: PublicKey);
1385
+ /**
1386
+ * Get the public key in bytes (Uint8Array).
1387
+ *
1388
+ * @returns Uint8Array representation of the public key
1389
+ */
1390
+ toUint8Array(): Uint8Array;
1391
+ /**
1392
+ * Verifies a signed data with a the ephemeral public key
1393
+ *
1394
+ * @param args.message message
1395
+ * @param args.signature The signature that was signed by the private key of the ephemeral public key
1396
+ * @returns true if the signature is valid
1397
+ */
1398
+ verifySignature(args: {
1399
+ message: HexInput;
1400
+ signature: EphemeralSignature;
1401
+ }): boolean;
1402
+ serialize(serializer: Serializer): void;
1403
+ static deserialize(deserializer: Deserializer): EphemeralPublicKey;
1404
+ static isPublicKey(publicKey: PublicKey): publicKey is EphemeralPublicKey;
1405
+ }
1406
+ /**
1407
+ * Represents ephemeral signatures used in Aptos Keyless accounts.
1408
+ *
1409
+ * These signatures are used inside of KeylessSignature
1410
+ */
1411
+ declare class EphemeralSignature extends Signature {
1412
+ /**
1413
+ * The signature signed by the private key of an EphemeralKeyPair
1414
+ */
1415
+ readonly signature: Signature;
1416
+ constructor(signature: Signature);
1417
+ /**
1418
+ * Get the public key in bytes (Uint8Array).
1419
+ *
1420
+ * @returns Uint8Array representation of the public key
1421
+ */
1422
+ toUint8Array(): Uint8Array;
1423
+ static fromHex(hexInput: HexInput): EphemeralSignature;
1424
+ serialize(serializer: Serializer): void;
1425
+ static deserialize(deserializer: Deserializer): EphemeralSignature;
1426
+ }
1427
+
1428
+ /**
1429
+ * An abstract representation of a crypto proof.
1430
+ * associated to a specific zero knowledge proof schemes e.g. Groth16, PLONK
1431
+ */
1432
+ declare abstract class Proof extends Serializable {
1433
+ /**
1434
+ * Get the proof as a hex string with a 0x prefix e.g. 0x123456...
1435
+ */
1436
+ toString(): string;
1437
+ }
1438
+
1439
+ type Groth16VerificationKeyResponse = {
1440
+ alpha_g1: string;
1441
+ beta_g2: string;
1442
+ delta_g2: string;
1443
+ gamma_abc_g1: [string, string];
1444
+ gamma_g2: string;
1445
+ };
1446
+
1447
+ /**
1448
+ * Type of API endpoint for request routing
1449
+ */
1450
+ declare enum AptosApiType {
1451
+ FULLNODE = "Fullnode",
1452
+ INDEXER = "Indexer",
1453
+ FAUCET = "Faucet",
1454
+ PEPPER = "Pepper",
1455
+ PROVER = "Prover"
1456
+ }
1457
+ /**
1458
+ * The default max gas amount when none is given.
1459
+ *
1460
+ * This is the maximum number of gas units that will be used by a transaction before being rejected.
1461
+ *
1462
+ * Note that max gas amount varies based on the transaction. A larger transaction will go over this
1463
+ * default gas amount, and the value will need to be changed for the specific transaction.
1464
+ */
1465
+ declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
1466
+ /**
1467
+ * The default transaction expiration seconds from now.
1468
+ *
1469
+ * This time is how long until the blockchain nodes will reject the transaction.
1470
+ *
1471
+ * Note that the transaction expiration time varies based on network connection and network load. It may need to be
1472
+ * increased for the transaction to be processed.
1473
+ */
1474
+ declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
1475
+ /**
1476
+ * The default number of seconds to wait for a transaction to be processed.
1477
+ *
1478
+ * This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
1479
+ * the results of the transaction. It may take longer based on network connection and network load.
1480
+ */
1481
+ declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
1482
+ /**
1483
+ * The default gas currency for the network.
1484
+ */
1485
+ declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
1486
+ declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
1487
+ declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
1488
+ /**
1489
+ * The list of supported Processor types for our indexer api.
1490
+ *
1491
+ * These can be found from the processor_status table in the indexer database.
1492
+ * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
1493
+ */
1494
+ declare enum ProcessorType {
1495
+ ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
1496
+ DEFAULT = "default_processor",
1497
+ EVENTS_PROCESSOR = "events_processor",
1498
+ FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
1499
+ STAKE_PROCESSOR = "stake_processor",
1500
+ TOKEN_V2_PROCESSOR = "token_v2_processor",
1501
+ USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
1502
+ }
1503
+
1504
+ /**
1505
+ * This class holds the config information for the SDK client instance.
1506
+ *
1507
+ * @example
1508
+ *
1509
+ * const aptosConfig = new AptosConfig({network:Network.TESTNET})
1510
+ */
1511
+ declare class AptosConfig {
1512
+ /**
1513
+ * The Network that this SDK is associated with. Defaults to DEVNET
1514
+ */
1515
+ readonly network: Network;
1516
+ /**
1517
+ * The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
1518
+ */
1519
+ readonly client: Client;
1520
+ /**
1521
+ * The optional hardcoded fullnode URL to send requests to instead of using the network
1522
+ */
1523
+ readonly fullnode?: string;
1524
+ /**
1525
+ * The optional hardcoded faucet URL to send requests to instead of using the network
1526
+ */
1527
+ readonly faucet?: string;
1528
+ /**
1529
+ * The optional hardcoded pepper service URL to send requests to instead of using the network
1530
+ */
1531
+ readonly pepper?: string;
1532
+ /**
1533
+ * The optional hardcoded prover service URL to send requests to instead of using the network
1534
+ */
1535
+ readonly prover?: string;
1536
+ /**
1537
+ * The optional hardcoded indexer URL to send requests to instead of using the network
1538
+ */
1539
+ readonly indexer?: string;
1540
+ /**
1541
+ * Optional client configurations
1542
+ */
1543
+ readonly clientConfig?: ClientConfig;
1544
+ /**
1545
+ * Optional specific Fullnode configurations
1546
+ */
1547
+ readonly fullnodeConfig?: FullNodeConfig;
1548
+ /**
1549
+ * Optional specific Indexer configurations
1550
+ */
1551
+ readonly indexerConfig?: IndexerConfig;
1552
+ /**
1553
+ * Optional specific Faucet configurations
1554
+ */
1555
+ readonly faucetConfig?: FaucetConfig;
1556
+ constructor(settings?: AptosSettings);
1557
+ /**
1558
+ * Returns the URL endpoint to send the request to.
1559
+ * If a custom URL was provided in the config, that URL is returned.
1560
+ * If a custom URL was provided but not URL endpoints, an error is thrown.
1561
+ * Otherwise, the URL endpoint is derived from the network.
1562
+ *
1563
+ * @param apiType - The type of Aptos API to get the URL for.
1564
+ *
1565
+ * @internal
1566
+ */
1567
+ getRequestUrl(apiType: AptosApiType): string;
1568
+ /**
1569
+ * Checks if the URL is a known pepper service endpoint
1570
+ *
1571
+ * @internal
1572
+ * */
1573
+ isPepperServiceRequest(url: string): boolean;
1574
+ /**
1575
+ * Checks if the URL is a known prover service endpoint
1576
+ *
1577
+ * @internal
1578
+ * */
1579
+ isProverServiceRequest(url: string): boolean;
1580
+ }
1581
+
1582
+ declare const EPK_HORIZON_SECS = 10000000;
1583
+ declare const MAX_AUD_VAL_BYTES = 120;
1584
+ declare const MAX_UID_KEY_BYTES = 30;
1585
+ declare const MAX_UID_VAL_BYTES = 330;
1586
+ declare const MAX_ISS_VAL_BYTES = 120;
1587
+ declare const MAX_EXTRA_FIELD_BYTES = 350;
1588
+ declare const MAX_JWT_HEADER_B64_BYTES = 300;
1589
+ declare const MAX_COMMITED_EPK_BYTES = 93;
1590
+ /**
1591
+ * Represents the KeylessPublicKey public key
1592
+ *
1593
+ * KeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
1594
+ */
1595
+ declare class KeylessPublicKey extends AccountPublicKey {
1596
+ /**
1597
+ * The number of bytes that `idCommitment` should be
1598
+ */
1599
+ static readonly ID_COMMITMENT_LENGTH: number;
1600
+ /**
1601
+ * The value of the 'iss' claim on the JWT which identifies the OIDC provider.
1602
+ */
1603
+ readonly iss: string;
1604
+ /**
1605
+ * A value representing a cryptographic commitment to a user identity.
1606
+ *
1607
+ * It is calculated from the aud, uidKey, uidVal, pepper.
1608
+ */
1609
+ readonly idCommitment: Uint8Array;
1610
+ constructor(iss: string, idCommitment: HexInput);
1611
+ /**
1612
+ * Get the authentication key for the keyless public key
1613
+ *
1614
+ * @returns AuthenticationKey
1615
+ */
1616
+ authKey(): AuthenticationKey;
1617
+ /**
1618
+ * Get the public key in bytes (Uint8Array).
1619
+ *
1620
+ * @returns Uint8Array representation of the public key
1621
+ */
1622
+ toUint8Array(): Uint8Array;
1623
+ /**
1624
+ * Get the public key as a hex string with the 0x prefix.
1625
+ *
1626
+ * @returns string representation of the public key
1627
+ */
1628
+ toString(): string;
1629
+ /**
1630
+ * Verifies a signed data with a public key
1631
+ *
1632
+ * @param args.message message
1633
+ * @param args.signature The signature
1634
+ * @returns true if the signature is valid
1635
+ */
1636
+ verifySignature(args: {
1637
+ message: HexInput;
1638
+ signature: KeylessSignature;
1639
+ }): boolean;
1640
+ serialize(serializer: Serializer): void;
1641
+ static deserialize(deserializer: Deserializer): KeylessPublicKey;
1642
+ static load(deserializer: Deserializer): KeylessPublicKey;
1643
+ static isPublicKey(publicKey: PublicKey): publicKey is KeylessPublicKey;
1644
+ /**
1645
+ * Creates a KeylessPublicKey from the JWT components plus pepper
1646
+ *
1647
+ * @param args.iss the iss of the identity
1648
+ * @param args.uidKey the key to use to get the uidVal in the JWT token
1649
+ * @param args.uidVal the value of the uidKey in the JWT token
1650
+ * @param args.aud the client ID of the application
1651
+ * @param args.pepper The pepper used to maintain privacy of the account
1652
+ * @returns KeylessPublicKey
1653
+ */
1654
+ static create(args: {
1655
+ iss: string;
1656
+ uidKey: string;
1657
+ uidVal: string;
1658
+ aud: string;
1659
+ pepper: HexInput;
1660
+ }): KeylessPublicKey;
1661
+ static fromJWTAndPepper(args: {
1662
+ jwt: string;
1663
+ pepper: HexInput;
1664
+ uidKey?: string;
1665
+ }): KeylessPublicKey;
1666
+ }
1667
+ /**
1668
+ * A signature of a message signed via Keyless Accounnt that uses proofs or the jwt token to authenticate.
1669
+ */
1670
+ declare class KeylessSignature extends Signature {
1671
+ /**
1672
+ * The inner signature ZeroKnowledgeSigniature or OpenIdSignature
1673
+ */
1674
+ readonly ephemeralCertificate: EphemeralCertificate;
1675
+ /**
1676
+ * The jwt header in the token used to create the proof/signature. In json string representation.
1677
+ */
1678
+ readonly jwtHeader: string;
1679
+ /**
1680
+ * The expiry timestamp in seconds of the EphemeralKeyPair used to sign
1681
+ */
1682
+ readonly expiryDateSecs: number;
1683
+ /**
1684
+ * The ephemeral public key used to verify the signature
1685
+ */
1686
+ readonly ephemeralPublicKey: EphemeralPublicKey;
1687
+ /**
1688
+ * The signature resulting from signing with the private key of the EphemeralKeyPair
1689
+ */
1690
+ readonly ephemeralSignature: EphemeralSignature;
1691
+ constructor(args: {
1692
+ jwtHeader: string;
1693
+ ephemeralCertificate: EphemeralCertificate;
1694
+ expiryDateSecs: number;
1695
+ ephemeralPublicKey: EphemeralPublicKey;
1696
+ ephemeralSignature: EphemeralSignature;
1697
+ });
1698
+ /**
1699
+ * Get the signature in bytes (Uint8Array).
1700
+ *
1701
+ * @returns Uint8Array representation of the signature
1702
+ */
1703
+ toUint8Array(): Uint8Array;
1704
+ serialize(serializer: Serializer): void;
1705
+ static deserialize(deserializer: Deserializer): KeylessSignature;
1706
+ static getSimulationSignature(): KeylessSignature;
1707
+ static isSignature(signature: Signature): signature is KeylessSignature;
1708
+ }
1709
+ /**
1710
+ * A container for a signature that is a ZeroKnowledgeSig. Can be expanded to support OpenIdSignature.
1711
+ */
1712
+ declare class EphemeralCertificate extends Signature {
1713
+ readonly signature: Signature;
1714
+ /**
1715
+ * Index of the underlying enum variant
1716
+ */
1717
+ private readonly variant;
1718
+ constructor(signature: Signature, variant: EphemeralCertificateVariant);
1719
+ /**
1720
+ * Get the public key in bytes (Uint8Array).
1721
+ *
1722
+ * @returns Uint8Array representation of the public key
1723
+ */
1724
+ toUint8Array(): Uint8Array;
1725
+ serialize(serializer: Serializer): void;
1726
+ static deserialize(deserializer: Deserializer): EphemeralCertificate;
1727
+ }
1728
+ declare class G1Bytes extends Serializable {
1729
+ data: Uint8Array;
1730
+ constructor(data: HexInput);
1731
+ serialize(serializer: Serializer): void;
1732
+ static deserialize(deserializer: Deserializer): G1Bytes;
1733
+ }
1734
+ declare class G2Bytes extends Serializable {
1735
+ data: Uint8Array;
1736
+ constructor(data: HexInput);
1737
+ serialize(serializer: Serializer): void;
1738
+ static deserialize(deserializer: Deserializer): G2Bytes;
1739
+ }
1740
+ /**
1741
+ * A representation of a Groth16 proof. The points are the compressed serialization of affine reprentation of the proof.
1742
+ */
1743
+ declare class Groth16Zkp extends Proof {
1744
+ /**
1745
+ * The bytes of G1 proof point a
1746
+ */
1747
+ a: G1Bytes;
1748
+ /**
1749
+ * The bytes of G2 proof point b
1750
+ */
1751
+ b: G2Bytes;
1752
+ /**
1753
+ * The bytes of G1 proof point c
1754
+ */
1755
+ c: G1Bytes;
1756
+ constructor(args: {
1757
+ a: HexInput;
1758
+ b: HexInput;
1759
+ c: HexInput;
1760
+ });
1761
+ serialize(serializer: Serializer): void;
1762
+ static deserialize(deserializer: Deserializer): Groth16Zkp;
1763
+ }
1764
+ /**
1765
+ * A container for a different zero knowledge proof types
1766
+ */
1767
+ declare class ZkProof extends Serializable {
1768
+ readonly proof: Proof;
1769
+ /**
1770
+ * Index of the underlying enum variant
1771
+ */
1772
+ private readonly variant;
1773
+ constructor(proof: Proof, variant: ZkpVariant);
1774
+ serialize(serializer: Serializer): void;
1775
+ static deserialize(deserializer: Deserializer): ZkProof;
1776
+ }
1777
+ /**
1778
+ * The signature representation of a proof
1779
+ */
1780
+ declare class ZeroKnowledgeSig extends Signature {
1781
+ /**
1782
+ * The proof
1783
+ */
1784
+ readonly proof: ZkProof;
1785
+ /**
1786
+ * The max lifespan of the proof
1787
+ */
1788
+ readonly expHorizonSecs: number;
1789
+ /**
1790
+ * A key value pair on the JWT token that can be specified on the signature which would reveal the value on chain.
1791
+ * Can be used to assert identity or other attributes.
1792
+ */
1793
+ readonly extraField?: string;
1794
+ /**
1795
+ * The 'aud' value of the recovery service which is set when recovering an account.
1796
+ */
1797
+ readonly overrideAudVal?: string;
1798
+ /**
1799
+ * The training wheels signature
1800
+ */
1801
+ readonly trainingWheelsSignature?: EphemeralSignature;
1802
+ constructor(args: {
1803
+ proof: ZkProof;
1804
+ expHorizonSecs: number;
1805
+ extraField?: string;
1806
+ overrideAudVal?: string;
1807
+ trainingWheelsSignature?: EphemeralSignature;
1808
+ });
1809
+ /**
1810
+ * Get the signature in bytes (Uint8Array).
1811
+ *
1812
+ * @returns Uint8Array representation of the signature
1813
+ */
1814
+ toUint8Array(): Uint8Array;
1815
+ /**
1816
+ * Return a ZeroKnowledgeSig object from its bcs serialization in bytes.
1817
+ *
1818
+ * @returns ZeroKnowledgeSig
1819
+ */
1820
+ static fromBytes(bytes: Uint8Array): ZeroKnowledgeSig;
1821
+ serialize(serializer: Serializer): void;
1822
+ static deserialize(deserializer: Deserializer): ZeroKnowledgeSig;
1823
+ }
1824
+ /**
1825
+ * A class which represents the on-chain configuration for how Keyless accounts work
1826
+ */
1827
+ declare class KeylessConfiguration {
1828
+ /**
1829
+ * The verification key used to verify Groth16 proofs on chain
1830
+ */
1831
+ readonly verficationKey: Groth16VerificationKey;
1832
+ /**
1833
+ * The maximum lifespan of an ephemeral key pair. This is configured on chain.
1834
+ */
1835
+ readonly maxExpHorizonSecs: number;
1836
+ constructor(verficationKey: Groth16VerificationKey, maxExpHorizonSecs: number);
1837
+ static create(res: Groth16VerificationKeyResponse, maxExpHorizonSecs: number): KeylessConfiguration;
1838
+ }
1839
+ /**
1840
+ * A representation of the verification key stored on chain used to verify Groth16 proofs
1841
+ */
1842
+ declare class Groth16VerificationKey {
1843
+ /**
1844
+ * The `alpha * G`, where `G` is the generator of G1
1845
+ */
1846
+ readonly alphaG1: G1Bytes;
1847
+ /**
1848
+ * The `alpha * H`, where `H` is the generator of G2
1849
+ */
1850
+ readonly betaG2: G2Bytes;
1851
+ /**
1852
+ * The `delta * H`, where `H` is the generator of G2
1853
+ */
1854
+ readonly deltaG2: G2Bytes;
1855
+ /**
1856
+ * The `gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H`, where H is the generator of G1
1857
+ */
1858
+ readonly gammaAbcG1: G1Bytes[];
1859
+ /**
1860
+ * The `gamma * H`, where `H` is the generator of G2
1861
+ */
1862
+ readonly gammaG2: G2Bytes;
1863
+ constructor(args: {
1864
+ alphaG1: HexInput;
1865
+ betaG2: HexInput;
1866
+ deltaG2: HexInput;
1867
+ gammaAbcG1: [HexInput, HexInput];
1868
+ gammaG2: HexInput;
1869
+ });
1870
+ static fromGroth16VerificationKeyResponse(res: Groth16VerificationKeyResponse): Groth16VerificationKey;
1871
+ }
1872
+ /**
1873
+ * Gets the parameters of how Keyless Accounts are configured on chain including the verifying key and the max expiry horizon
1874
+ *
1875
+ * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
1876
+ * @returns KeylessConfiguration
1877
+ */
1878
+ declare function getKeylessConfig(args: {
1879
+ aptosConfig: AptosConfig;
1880
+ options?: LedgerVersionArg;
1881
+ }): Promise<KeylessConfiguration>;
1882
+
1370
1883
  /**
1371
1884
  * Represents the Secp256k1 ecdsa public key
1372
1885
  *
@@ -1563,119 +2076,6 @@ declare class AccountAuthenticatorMultiKey extends AccountAuthenticator {
1563
2076
  static load(deserializer: Deserializer): AccountAuthenticatorMultiKey;
1564
2077
  }
1565
2078
 
1566
- /**
1567
- * Type of API endpoint for request routing
1568
- */
1569
- declare enum AptosApiType {
1570
- FULLNODE = "Fullnode",
1571
- INDEXER = "Indexer",
1572
- FAUCET = "Faucet"
1573
- }
1574
- /**
1575
- * The default max gas amount when none is given.
1576
- *
1577
- * This is the maximum number of gas units that will be used by a transaction before being rejected.
1578
- *
1579
- * Note that max gas amount varies based on the transaction. A larger transaction will go over this
1580
- * default gas amount, and the value will need to be changed for the specific transaction.
1581
- */
1582
- declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
1583
- /**
1584
- * The default transaction expiration seconds from now.
1585
- *
1586
- * This time is how long until the blockchain nodes will reject the transaction.
1587
- *
1588
- * Note that the transaction expiration time varies based on network connection and network load. It may need to be
1589
- * increased for the transaction to be processed.
1590
- */
1591
- declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
1592
- /**
1593
- * The default number of seconds to wait for a transaction to be processed.
1594
- *
1595
- * This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
1596
- * the results of the transaction. It may take longer based on network connection and network load.
1597
- */
1598
- declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
1599
- /**
1600
- * The default gas currency for the network.
1601
- */
1602
- declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
1603
- declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
1604
- declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
1605
- /**
1606
- * The list of supported Processor types for our indexer api.
1607
- *
1608
- * These can be found from the processor_status table in the indexer database.
1609
- * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
1610
- */
1611
- declare enum ProcessorType {
1612
- ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
1613
- DEFAULT = "default_processor",
1614
- EVENTS_PROCESSOR = "events_processor",
1615
- FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
1616
- STAKE_PROCESSOR = "stake_processor",
1617
- TOKEN_V2_PROCESSOR = "token_v2_processor",
1618
- USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
1619
- }
1620
-
1621
- /**
1622
- * This class holds the config information for the SDK client instance.
1623
- *
1624
- * @example
1625
- *
1626
- * const aptosConfig = new AptosConfig({network:Network.TESTNET})
1627
- */
1628
- declare class AptosConfig {
1629
- /**
1630
- * The Network that this SDK is associated with. Defaults to DEVNET
1631
- */
1632
- readonly network: Network;
1633
- /**
1634
- * The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
1635
- */
1636
- readonly client: Client;
1637
- /**
1638
- * The optional hardcoded fullnode URL to send requests to instead of using the network
1639
- */
1640
- readonly fullnode?: string;
1641
- /**
1642
- * The optional hardcoded faucet URL to send requests to instead of using the network
1643
- */
1644
- readonly faucet?: string;
1645
- /**
1646
- * The optional hardcoded indexer URL to send requests to instead of using the network
1647
- */
1648
- readonly indexer?: string;
1649
- /**
1650
- * Optional client configurations
1651
- */
1652
- readonly clientConfig?: ClientConfig;
1653
- /**
1654
- * Optional specific Fullnode configurations
1655
- */
1656
- readonly fullnodeConfig?: FullNodeConfig;
1657
- /**
1658
- * Optional specific Indexer configurations
1659
- */
1660
- readonly indexerConfig?: IndexerConfig;
1661
- /**
1662
- * Optional specific Faucet configurations
1663
- */
1664
- readonly faucetConfig?: FaucetConfig;
1665
- constructor(settings?: AptosSettings);
1666
- /**
1667
- * Returns the URL endpoint to send the request to.
1668
- * If a custom URL was provided in the config, that URL is returned.
1669
- * If a custom URL was provided but not URL endpoints, an error is thrown.
1670
- * Otherwise, the URL endpoint is derived from the network.
1671
- *
1672
- * @param apiType - The type of Aptos API to get the URL for.
1673
- *
1674
- * @internal
1675
- */
1676
- getRequestUrl(apiType: AptosApiType): string;
1677
- }
1678
-
1679
2079
  /**
1680
2080
  * Representation of a ChainId that can serialized and deserialized
1681
2081
  */
@@ -2291,6 +2691,24 @@ type EntryFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | Ac
2291
2691
  * Script function arguments to be used when building a raw transaction using BCS serialized arguments
2292
2692
  */
2293
2693
  type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<U8> | MoveString | FixedBytes;
2694
+ /**
2695
+ * TypeArgument inputs for Entry functions, view functions, and scripts
2696
+ *
2697
+ * This can be a string version of the type argument such as:
2698
+ * - u8
2699
+ * - u16
2700
+ * - u32
2701
+ * - u64
2702
+ * - u128
2703
+ * - u256
2704
+ * - bool
2705
+ * - address
2706
+ * - signer
2707
+ * - vector<Type>
2708
+ * - address::module::struct
2709
+ * - address::module::struct<Type1, Type2>
2710
+ */
2711
+ type TypeArgument = TypeTag | string;
2294
2712
  /**
2295
2713
  * Type that holds all raw transaction instances Aptos SDK supports
2296
2714
  */
@@ -2319,7 +2737,7 @@ type InputGenerateTransactionPayloadDataWithRemoteABI = InputScriptData | InputE
2319
2737
  */
2320
2738
  type InputEntryFunctionData = {
2321
2739
  function: MoveFunctionId;
2322
- typeArguments?: Array<TypeTag | string>;
2740
+ typeArguments?: Array<TypeArgument>;
2323
2741
  functionArguments: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
2324
2742
  abi?: EntryFunctionABI;
2325
2743
  };
@@ -2350,7 +2768,7 @@ type InputMultiSigDataWithRemoteABI = {
2350
2768
  */
2351
2769
  type InputScriptData = {
2352
2770
  bytecode: HexInput;
2353
- typeArguments?: Array<TypeTag>;
2771
+ typeArguments?: Array<TypeArgument>;
2354
2772
  functionArguments: Array<ScriptFunctionArgumentTypes>;
2355
2773
  };
2356
2774
  /**
@@ -2358,7 +2776,7 @@ type InputScriptData = {
2358
2776
  */
2359
2777
  type InputViewFunctionData = {
2360
2778
  function: MoveFunctionId;
2361
- typeArguments?: Array<TypeTag | string>;
2779
+ typeArguments?: Array<TypeArgument>;
2362
2780
  functionArguments?: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
2363
2781
  abi?: ViewFunctionABI;
2364
2782
  };
@@ -2836,6 +3254,254 @@ declare class Ed25519Account implements Account$1 {
2836
3254
  signTransaction(transaction: AnyRawTransaction): Ed25519Signature;
2837
3255
  }
2838
3256
 
3257
+ /**
3258
+ * A class which contains a key pair that is used in signing transactions via the Keyless authentication scheme. This key pair
3259
+ * is ephemeral and has an expiration time. For more details on how this class is used -
3260
+ * https://aptos.dev/guides/keyless-accounts/#1-present-the-user-with-a-sign-in-with-idp-button-on-the-ui
3261
+ */
3262
+ declare class EphemeralKeyPair extends Serializable {
3263
+ static readonly BLINDER_LENGTH: number;
3264
+ /**
3265
+ * A byte array of length BLINDER_LENGTH used to obfuscate the public key from the IdP.
3266
+ * Used in calculating the nonce passed to the IdP and as a secret witness in proof generation.
3267
+ */
3268
+ readonly blinder: Uint8Array;
3269
+ /**
3270
+ * A timestamp in seconds indicating when the ephemeral key pair is expired. After expiry, a new
3271
+ * EphemeralKeyPair must be generated and a new JWT needs to be created.
3272
+ */
3273
+ readonly expiryDateSecs: number;
3274
+ /**
3275
+ * The value passed to the IdP when the user authenticates. It comprises of a hash of the
3276
+ * ephermeral public key, expiry date, and blinder.
3277
+ */
3278
+ readonly nonce: string;
3279
+ /**
3280
+ * A private key used to sign transactions. This private key is not tied to any account on the chain as it
3281
+ * is ephemeral (not permanent) in nature.
3282
+ */
3283
+ private privateKey;
3284
+ /**
3285
+ * A public key used to verify transactions. This public key is not tied to any account on the chain as it
3286
+ * is ephemeral (not permanent) in nature.
3287
+ */
3288
+ private publicKey;
3289
+ constructor(args: {
3290
+ privateKey: PrivateKey;
3291
+ expiryDateSecs?: number;
3292
+ blinder?: HexInput;
3293
+ });
3294
+ /**
3295
+ * Returns the public key of the key pair.
3296
+ * @return EphemeralPublicKey
3297
+ */
3298
+ getPublicKey(): EphemeralPublicKey;
3299
+ /**
3300
+ * Returns the public key of the key pair.
3301
+ * @return boolean
3302
+ */
3303
+ isExpired(): boolean;
3304
+ serialize(serializer: Serializer): void;
3305
+ static deserialize(deserializer: Deserializer): EphemeralKeyPair;
3306
+ static fromBytes(bytes: Uint8Array): EphemeralKeyPair;
3307
+ /**
3308
+ * Returns the public key of the key pair.
3309
+ * @param scheme the type of keypair to use for the EphemeralKeyPair. Only Ed25519 supported for now.
3310
+ * @param expiryDateSecs the date of expiry.
3311
+ * @return boolean
3312
+ */
3313
+ static generate(args?: {
3314
+ scheme?: EphemeralPublicKeyVariant;
3315
+ expiryDateSecs?: number;
3316
+ }): EphemeralKeyPair;
3317
+ /**
3318
+ * From the ephemeral public key, expiry timestamp, and blinder, calculate the nonce to be used at authentication via OIDC.
3319
+ * @returns string
3320
+ */
3321
+ private generateNonce;
3322
+ /**
3323
+ * Sign the given message with the private key.
3324
+ * @param data in HexInput format
3325
+ * @returns EphemeralSignature
3326
+ */
3327
+ sign(data: HexInput): EphemeralSignature;
3328
+ }
3329
+
3330
+ type AptsoDomainSeparator = `APTOS::${string}`;
3331
+ declare abstract class CryptoHashable extends Serializable {
3332
+ abstract readonly domainSeparator: AptsoDomainSeparator;
3333
+ /**
3334
+ * Hashes the bcs serialized from of the class. This is the typescript corollary to the BCSCryptoHash macro in aptos-core.
3335
+ *
3336
+ * @returns Uint8Array
3337
+ */
3338
+ hash(): Uint8Array;
3339
+ }
3340
+
3341
+ /**
3342
+ * Account implementation for the Keyless authentication scheme.
3343
+ *
3344
+ * Used to represent a Keyless based account and sign transactions with it.
3345
+ *
3346
+ * Use KeylessAccount.fromJWTAndProof to instantiate a KeylessAccount with a JWT, proof and EphemeralKeyPair.
3347
+ *
3348
+ * When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
3349
+ * EphemeralKeyPair, and corresponding proof.
3350
+ */
3351
+ declare class KeylessAccount extends Serializable implements Account$1 {
3352
+ static readonly PEPPER_LENGTH: number;
3353
+ /**
3354
+ * The KeylessPublicKey associated with the account
3355
+ */
3356
+ readonly publicKey: KeylessPublicKey;
3357
+ /**
3358
+ * The EphemeralKeyPair used to generate sign.
3359
+ */
3360
+ readonly ephemeralKeyPair: EphemeralKeyPair;
3361
+ /**
3362
+ * The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
3363
+ */
3364
+ readonly uidKey: string;
3365
+ /**
3366
+ * The value of the uidKey claim on the JWT. This intended to be a stable user identifier.
3367
+ */
3368
+ readonly uidVal: string;
3369
+ /**
3370
+ * The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's
3371
+ * OIDC registration with the identity provider.
3372
+ */
3373
+ readonly aud: string;
3374
+ /**
3375
+ * A value contains 31 bytes of entropy that preserves privacy of the account. Typically fetched from a pepper provider.
3376
+ */
3377
+ readonly pepper: Uint8Array;
3378
+ /**
3379
+ * Account address associated with the account
3380
+ */
3381
+ readonly accountAddress: AccountAddress;
3382
+ /**
3383
+ * The zero knowledge signature (if ready) which contains the proof used to validate the EphemeralKeyPair.
3384
+ */
3385
+ proof: ZeroKnowledgeSig | undefined;
3386
+ /**
3387
+ * The proof of the EphemeralKeyPair or a promise that provides the proof. This is used to allow for awaiting on
3388
+ * fetching the proof.
3389
+ */
3390
+ readonly proofOrPromise: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
3391
+ /**
3392
+ * Signing scheme used to sign transactions
3393
+ */
3394
+ readonly signingScheme: SigningScheme;
3395
+ /**
3396
+ * The JWT token used to derive the account
3397
+ */
3398
+ readonly jwt: string;
3399
+ /**
3400
+ * An event emitter used to assist in handling asycronous proof fetching.
3401
+ */
3402
+ private readonly emitter;
3403
+ constructor(args: {
3404
+ address?: AccountAddress;
3405
+ ephemeralKeyPair: EphemeralKeyPair;
3406
+ iss: string;
3407
+ uidKey: string;
3408
+ uidVal: string;
3409
+ aud: string;
3410
+ pepper: HexInput;
3411
+ proofOrFetcher: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
3412
+ proofFetchCallback?: ProofFetchCallback;
3413
+ jwt: string;
3414
+ });
3415
+ /**
3416
+ * This initializes the asyncronous proof fetch
3417
+ * @return
3418
+ */
3419
+ init(promise: Promise<ZeroKnowledgeSig>): Promise<void>;
3420
+ serialize(serializer: Serializer): void;
3421
+ static deserialize(deserializer: Deserializer): KeylessAccount;
3422
+ /**
3423
+ * Checks if the proof is expired. If so the account must be rederived with a new EphemeralKeyPair
3424
+ * and JWT token.
3425
+ * @return boolean
3426
+ */
3427
+ isExpired(): boolean;
3428
+ /**
3429
+ * Sign a message using Keyless.
3430
+ * @param message the message to sign, as binary input
3431
+ * @return the AccountAuthenticator containing the signature, together with the account's public key
3432
+ */
3433
+ signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey;
3434
+ /**
3435
+ * Sign a transaction using Keyless.
3436
+ * @param transaction the raw transaction
3437
+ * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
3438
+ */
3439
+ signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
3440
+ /**
3441
+ * Waits for asyncronous proof fetching to finish.
3442
+ * @return
3443
+ */
3444
+ waitForProofFetch(): Promise<void>;
3445
+ /**
3446
+ * Sign the given message using Keyless.
3447
+ * @param message in HexInput format
3448
+ * @returns Signature
3449
+ */
3450
+ sign(data: HexInput): KeylessSignature;
3451
+ /**
3452
+ * Sign the given transaction with Keyless.
3453
+ * Signs the transaction and proof to guard against proof malleability.
3454
+ * @param transaction the transaction to be signed
3455
+ * @returns KeylessSignature
3456
+ */
3457
+ signTransaction(transaction: AnyRawTransaction): KeylessSignature;
3458
+ verifySignature(args: {
3459
+ message: HexInput;
3460
+ signature: Signature;
3461
+ }): boolean;
3462
+ static fromBytes(bytes: Uint8Array): KeylessAccount;
3463
+ static create(args: {
3464
+ proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
3465
+ jwt: string;
3466
+ ephemeralKeyPair: EphemeralKeyPair;
3467
+ pepper: HexInput;
3468
+ uidKey?: string;
3469
+ proofFetchCallback?: ProofFetchCallback;
3470
+ }): KeylessAccount;
3471
+ }
3472
+ /**
3473
+ * A container class to hold a transaction and a proof. It implements CryptoHashable which is used to create
3474
+ * the signing message for Keyless transactions. We sign over the proof to ensure non-malleability.
3475
+ */
3476
+ declare class TransactionAndProof extends CryptoHashable {
3477
+ /**
3478
+ * The transaction to sign.
3479
+ */
3480
+ transaction: AnyRawTransactionInstance;
3481
+ /**
3482
+ * The zero knowledge proof used in signing the transaction.
3483
+ */
3484
+ proof?: ZkProof;
3485
+ /**
3486
+ * The domain separator prefix used when hashing.
3487
+ */
3488
+ domainSeparator: AptsoDomainSeparator;
3489
+ constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof);
3490
+ serialize(serializer: Serializer): void;
3491
+ }
3492
+ type ProofFetchSuccess = {
3493
+ status: "Success";
3494
+ };
3495
+ type ProofFetchFailure = {
3496
+ status: "Failed";
3497
+ error: string;
3498
+ };
3499
+ type ProofFetchStatus = ProofFetchSuccess | ProofFetchFailure;
3500
+ type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;
3501
+ interface ProofFetchEvents {
3502
+ proofFetchFinish: (status: ProofFetchStatus) => void;
3503
+ }
3504
+
2839
3505
  interface VerifyMultiKeySignatureArgs {
2840
3506
  message: HexInput;
2841
3507
  signature: MultiKeySignature;
@@ -2911,6 +3577,12 @@ declare class MultiKeyAccount implements Account$1 {
2911
3577
  * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
2912
3578
  */
2913
3579
  signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorMultiKey;
3580
+ /**
3581
+ * Waits for any proofs on any KeylessAccount signers to be fetched. If the proof is fetched a syncronously, call this
3582
+ * to ensure signing with the KeylessAccount does not fail as the proof must be ready.
3583
+ * @return
3584
+ */
3585
+ waitForProofFetch(): Promise<void>;
2914
3586
  /**
2915
3587
  * Sign the given message using the MultiKeyAccount's signers
2916
3588
  * @param message in HexInput format
@@ -4082,7 +4754,7 @@ declare function generateUserTransactionHash(args: InputSubmitTransactionData):
4082
4754
  /**
4083
4755
  * Convert type arguments to only type tags, allowing for string representations of type tags
4084
4756
  */
4085
- declare function standardizeTypeTags(typeArguments?: Array<TypeTag | string>): Array<TypeTag>;
4757
+ declare function standardizeTypeTags(typeArguments?: Array<TypeArgument>): Array<TypeTag>;
4086
4758
  /**
4087
4759
  * Fetches a function ABI from the on-chain module ABI. It doesn't validate whether it's a view or entry function.
4088
4760
  * @param moduleAddress
@@ -4137,6 +4809,9 @@ declare function deriveTransactionType(transaction: AnyRawTransaction): AnyRawTr
4137
4809
  */
4138
4810
  declare function generateSigningMessage(bytes: Uint8Array, domainSeparator: string): Uint8Array;
4139
4811
  /**
4812
+ * @deprected
4813
+ * Use CryptoHashable instead by having your class implement it and call hash() to get the signing message.
4814
+ *
4140
4815
  * Generates the 'signing message' form of a serilizable value. It bcs serializes the value and uses the name of
4141
4816
  * its constructor as the domain separator.
4142
4817
  *
@@ -4164,11 +4839,13 @@ declare enum TypeTagParserErrorType {
4164
4839
  UnexpectedComma = "unexpected ','",
4165
4840
  TypeArgumentCountMismatch = "type argument count doesn't match expected amount",
4166
4841
  MissingTypeArgumentClose = "no matching '>' for '<'",
4842
+ MissingTypeArgument = "no type argument before ','",
4167
4843
  UnexpectedPrimitiveTypeArguments = "primitive types not expected to have type arguments",
4168
4844
  UnexpectedVectorTypeArgumentCount = "vector type expected to have exactly one type argument",
4169
4845
  UnexpectedStructFormat = "unexpected struct format, must be of the form 0xaddress::module_name::struct_name",
4170
4846
  InvalidModuleNameCharacter = "module name must only contain alphanumeric or '_' characters",
4171
- InvalidStructNameCharacter = "struct name must only contain alphanumeric or '_' characters"
4847
+ InvalidStructNameCharacter = "struct name must only contain alphanumeric or '_' characters",
4848
+ InvalidAddress = "struct address must be valid"
4172
4849
  }
4173
4850
  declare class TypeTagParserError extends Error {
4174
4851
  constructor(typeTagStr: string, invalidReason: TypeTagParserErrorType);
@@ -5509,6 +6186,48 @@ declare class Table {
5509
6186
  }): Promise<GetTableItemsMetadataResponse>;
5510
6187
  }
5511
6188
 
6189
+ /**
6190
+ * A class to query all `Keyless` related queries on Aptos.
6191
+ *
6192
+ * More documentation on how to integrate Keyless Accounts see the below
6193
+ * https://aptos.dev/guides/keyless-accounts/#aptos-keyless-integration-guide
6194
+ */
6195
+ declare class Keyless {
6196
+ readonly config: AptosConfig;
6197
+ constructor(config: AptosConfig);
6198
+ /**
6199
+ * Fetches the pepper from the Aptos pepper service API.
6200
+ *
6201
+ * @param args.jwt JWT token
6202
+ * @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
6203
+ * @returns The pepper which is a Uint8Array of length 31.
6204
+ */
6205
+ getPepper(args: {
6206
+ jwt: string;
6207
+ ephemeralKeyPair: EphemeralKeyPair;
6208
+ }): Promise<Uint8Array>;
6209
+ /**
6210
+ * Fetches the pepper from the Aptos pepper service API.
6211
+ *
6212
+ * @param args.jwt JWT token
6213
+ * @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
6214
+ * @param args.uidKey a key in the JWT token to use to set the uidVal in the IdCommitment
6215
+ * @param args.pepper the pepper
6216
+ * @param args.proofFetchCallback a callback function that if set, the fetch of the proof will be done in the background. Once
6217
+ * fetching finishes the callback function will be called. This should be used to provide a more responsive user experience as now
6218
+ * they are not blocked on fetching the proof. Thus the function will return much more quickly.
6219
+ *
6220
+ * @returns A KeylessAccount that can be used to sign transactions
6221
+ */
6222
+ deriveKeylessAccount(args: {
6223
+ jwt: string;
6224
+ ephemeralKeyPair: EphemeralKeyPair;
6225
+ uidKey?: string;
6226
+ pepper?: HexInput;
6227
+ proofFetchCallback?: ProofFetchCallback;
6228
+ }): Promise<KeylessAccount>;
6229
+ }
6230
+
5512
6231
  /**
5513
6232
  * This class is the main entry point into Aptos's
5514
6233
  * APIs and separates functionality into different namespaces.
@@ -5533,9 +6252,10 @@ declare class Aptos {
5533
6252
  readonly staking: Staking;
5534
6253
  readonly transaction: Transaction;
5535
6254
  readonly table: Table;
6255
+ readonly keyless: Keyless;
5536
6256
  constructor(settings?: AptosConfig);
5537
6257
  }
5538
- interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Table, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
6258
+ interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
5539
6259
  }
5540
6260
 
5541
6261
  /**
@@ -5646,6 +6366,13 @@ type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
5646
6366
  */
5647
6367
  declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
5648
6368
  declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6369
+ /**
6370
+ * Makes a get request to the pepper service
6371
+ *
6372
+ * @param options GetAptosRequestOptions
6373
+ * @returns AptosResponse
6374
+ */
6375
+ declare function getAptosPepperService<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5649
6376
  declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
5650
6377
 
5651
6378
  type PostRequestOptions = {
@@ -5697,5 +6424,13 @@ declare function post<Req extends {}, Res extends {}>(options: PostRequestOption
5697
6424
  declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5698
6425
  declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5699
6426
  declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6427
+ /**
6428
+ * Makes a post request to the pepper service
6429
+ *
6430
+ * @param options GetAptosRequestOptions
6431
+ * @returns AptosResponse
6432
+ */
6433
+ declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6434
+ declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5700
6435
 
5701
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
6436
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, KeylessAccount, KeylessConfiguration, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, getKeylessConfig, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };