@aptos-labs/ts-sdk 1.28.0-zeta.8 → 1.29.0-zeta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (613) hide show
  1. package/README.md +103 -82
  2. package/dist/common/{accountAddress-DiV7nV2O.d.ts → accountAddress-DUCC2ffJ.d.ts} +6 -0
  3. package/dist/common/cli/index.d.ts +1 -1
  4. package/dist/common/index.d.ts +53 -12
  5. package/dist/common/index.js +13 -13
  6. package/dist/common/index.js.map +1 -1
  7. package/dist/esm/account/{KeylessAccountCommon.d.mts → AbstractKeylessAccount.d.mts} +5 -5
  8. package/dist/esm/account/AbstractKeylessAccount.mjs +2 -0
  9. package/dist/esm/account/Account.mjs +1 -1
  10. package/dist/esm/account/Ed25519Account.mjs +1 -1
  11. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  12. package/dist/esm/account/FederatedKeylessAccount.d.mts +3 -3
  13. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  14. package/dist/esm/account/KeylessAccount.d.mts +3 -3
  15. package/dist/esm/account/KeylessAccount.mjs +1 -1
  16. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  17. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  18. package/dist/esm/account/index.d.mts +1 -1
  19. package/dist/esm/account/index.mjs +1 -1
  20. package/dist/esm/api/account.mjs +1 -1
  21. package/dist/esm/api/ans.mjs +1 -1
  22. package/dist/esm/api/aptos.d.mts +2 -1
  23. package/dist/esm/api/aptos.mjs +1 -1
  24. package/dist/esm/api/aptosConfig.mjs +1 -1
  25. package/dist/esm/api/coin.mjs +1 -1
  26. package/dist/esm/api/digitalAsset.mjs +1 -1
  27. package/dist/esm/api/event.mjs +1 -1
  28. package/dist/esm/api/faucet.mjs +1 -1
  29. package/dist/esm/api/fungibleAsset.mjs +1 -1
  30. package/dist/esm/api/general.mjs +1 -1
  31. package/dist/esm/api/index.d.mts +2 -1
  32. package/dist/esm/api/index.mjs +1 -1
  33. package/dist/esm/api/keyless.d.mts +1 -1
  34. package/dist/esm/api/keyless.mjs +1 -1
  35. package/dist/esm/api/object.mjs +1 -1
  36. package/dist/esm/api/staking.mjs +1 -1
  37. package/dist/esm/api/table.mjs +1 -1
  38. package/dist/esm/api/transaction.d.mts +33 -9
  39. package/dist/esm/api/transaction.mjs +1 -1
  40. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  41. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  42. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  43. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  44. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  45. package/dist/esm/api/utils.mjs +1 -1
  46. package/dist/esm/bcs/index.mjs +1 -1
  47. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  48. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  49. package/dist/esm/{chunk-WYQLUB4H.mjs → chunk-2AGCC7DU.mjs} +2 -2
  50. package/dist/esm/{chunk-54QUDAAC.mjs → chunk-3RBIEWVC.mjs} +2 -2
  51. package/dist/esm/chunk-3VKFVU25.mjs +2 -0
  52. package/dist/esm/chunk-3VKFVU25.mjs.map +1 -0
  53. package/dist/esm/{chunk-V3H27T2Q.mjs → chunk-43AF5CUP.mjs} +2 -2
  54. package/dist/esm/{chunk-23J256KA.mjs → chunk-44GYWUSH.mjs} +1 -1
  55. package/dist/esm/{chunk-23J256KA.mjs.map → chunk-44GYWUSH.mjs.map} +1 -1
  56. package/dist/esm/chunk-6VJ3HRHN.mjs +2 -0
  57. package/dist/esm/chunk-6VJ3HRHN.mjs.map +1 -0
  58. package/dist/esm/{chunk-PPAFIAG2.mjs → chunk-7NYFGX5Q.mjs} +2 -2
  59. package/dist/esm/{chunk-XN6MKWEO.mjs → chunk-7PDF3O5A.mjs} +2 -2
  60. package/dist/esm/chunk-7YLVCZYN.mjs +2 -0
  61. package/dist/esm/chunk-7YLVCZYN.mjs.map +1 -0
  62. package/dist/esm/{chunk-L46BAMVA.mjs → chunk-A3AGTDS6.mjs} +2 -2
  63. package/dist/esm/chunk-B3XOTMTY.mjs +2 -0
  64. package/dist/esm/chunk-B3XOTMTY.mjs.map +1 -0
  65. package/dist/esm/chunk-BHX5VMNA.mjs +2 -0
  66. package/dist/esm/chunk-BHX5VMNA.mjs.map +1 -0
  67. package/dist/esm/{chunk-3L5DX6JP.mjs → chunk-C26X2GLF.mjs} +2 -2
  68. package/dist/esm/{chunk-MYH7Q3VH.mjs → chunk-DUDSFTMJ.mjs} +2 -2
  69. package/dist/esm/{chunk-RKZOTGGH.mjs → chunk-E2X3MVIQ.mjs} +2 -2
  70. package/dist/esm/chunk-E6O72G24.mjs +2 -0
  71. package/dist/esm/chunk-E6O72G24.mjs.map +1 -0
  72. package/dist/esm/{chunk-ZAQKT56M.mjs → chunk-EDHO4MI7.mjs} +2 -2
  73. package/dist/esm/{chunk-J4GG7PQT.mjs → chunk-EG7QHK4U.mjs} +2 -2
  74. package/dist/esm/{chunk-ZCT6NDEU.mjs → chunk-F3C6KUOA.mjs} +2 -2
  75. package/dist/esm/{chunk-72SSWSHA.mjs → chunk-FL2G3JFQ.mjs} +2 -2
  76. package/dist/esm/{chunk-FFL4M7YG.mjs → chunk-G4JQEJQT.mjs} +2 -2
  77. package/dist/esm/{chunk-2CAGPXCX.mjs → chunk-GNJL4HRI.mjs} +2 -2
  78. package/dist/esm/{chunk-VSDISGIN.mjs → chunk-HCUQEDI6.mjs} +2 -2
  79. package/dist/esm/chunk-HCUQEDI6.mjs.map +1 -0
  80. package/dist/esm/chunk-HR5XRRIH.mjs +2 -0
  81. package/dist/esm/chunk-HR5XRRIH.mjs.map +1 -0
  82. package/dist/esm/{chunk-SNM4U3FC.mjs → chunk-HSIRO3LE.mjs} +2 -2
  83. package/dist/esm/chunk-HUYDR6MY.mjs +2 -0
  84. package/dist/esm/chunk-HUYDR6MY.mjs.map +1 -0
  85. package/dist/esm/{chunk-5NXUGQ6L.mjs → chunk-HXSCC3UV.mjs} +2 -2
  86. package/dist/esm/{chunk-ZFI2LQGD.mjs → chunk-KJBS5RFY.mjs} +2 -2
  87. package/dist/esm/{chunk-JH225EXU.mjs → chunk-KQYOM3J6.mjs} +2 -2
  88. package/dist/esm/{chunk-GGPA6QTN.mjs → chunk-LZMZCQXB.mjs} +2 -2
  89. package/dist/esm/{chunk-JUNVPIW4.mjs → chunk-M2GJ6B3I.mjs} +2 -2
  90. package/dist/esm/{chunk-VQVNUN5Y.mjs → chunk-MHRQHVM3.mjs} +2 -2
  91. package/dist/esm/{chunk-5P7MXLZA.mjs → chunk-MJ7K6MUZ.mjs} +2 -2
  92. package/dist/esm/{chunk-FH35HWRP.mjs → chunk-MQTQWVKC.mjs} +2 -2
  93. package/dist/esm/{chunk-FGIEEY6R.mjs → chunk-NJK4DINY.mjs} +2 -2
  94. package/dist/esm/{chunk-AE5KXM2X.mjs → chunk-NMD45OTM.mjs} +2 -2
  95. package/dist/esm/{chunk-RW5ISQXD.mjs → chunk-O7PQILE3.mjs} +2 -2
  96. package/dist/esm/chunk-OUZ7HH65.mjs +2 -0
  97. package/dist/esm/chunk-OUZ7HH65.mjs.map +1 -0
  98. package/dist/esm/{chunk-VEBU2C3H.mjs → chunk-POSSCOHV.mjs} +2 -2
  99. package/dist/esm/{chunk-OTNGLTKS.mjs → chunk-QB4XTGDH.mjs} +2 -2
  100. package/dist/esm/{chunk-F5PNGH44.mjs → chunk-R7FVBWBJ.mjs} +2 -2
  101. package/dist/esm/{chunk-HJRGKBC6.mjs → chunk-RONLES3F.mjs} +2 -2
  102. package/dist/esm/{chunk-AK4AHVRD.mjs → chunk-SCHHDWWN.mjs} +2 -2
  103. package/dist/esm/{chunk-C5JQQTMI.mjs → chunk-SCHZ67F3.mjs} +2 -2
  104. package/dist/esm/{chunk-C5JQQTMI.mjs.map → chunk-SCHZ67F3.mjs.map} +1 -1
  105. package/dist/esm/{chunk-ISOA3TPZ.mjs → chunk-SKBUDJFL.mjs} +2 -2
  106. package/dist/esm/chunk-SPQKH5BG.mjs +2 -0
  107. package/dist/esm/chunk-SPQKH5BG.mjs.map +1 -0
  108. package/dist/esm/chunk-SRPI2FFA.mjs +2 -0
  109. package/dist/esm/chunk-SRPI2FFA.mjs.map +1 -0
  110. package/dist/esm/{chunk-LS6G4DZV.mjs → chunk-SS4IPKAI.mjs} +2 -2
  111. package/dist/esm/chunk-SSYYCQGU.mjs +2 -0
  112. package/dist/esm/chunk-SSYYCQGU.mjs.map +1 -0
  113. package/dist/esm/{chunk-RTNQD3VQ.mjs → chunk-TEM2STPT.mjs} +2 -2
  114. package/dist/esm/chunk-UAEODDZS.mjs +2 -0
  115. package/dist/esm/{chunk-ZXVQ2OBJ.mjs.map → chunk-UAEODDZS.mjs.map} +1 -1
  116. package/dist/esm/{chunk-E6BAWWWF.mjs → chunk-UIM56NFQ.mjs} +2 -2
  117. package/dist/esm/{chunk-PDNA4H34.mjs → chunk-UIWXJU6Z.mjs} +2 -2
  118. package/dist/esm/{chunk-LMKBLXGR.mjs → chunk-ULQ4A44I.mjs} +2 -2
  119. package/dist/esm/{chunk-XSFX5XES.mjs → chunk-URF3VICX.mjs} +2 -2
  120. package/dist/esm/{chunk-3FD6IOED.mjs → chunk-V2YXCX3Q.mjs} +2 -2
  121. package/dist/esm/{chunk-ZRTXAUDS.mjs → chunk-VSMEQLV6.mjs} +2 -2
  122. package/dist/esm/{chunk-PA4LAE4B.mjs → chunk-VTHJWK3M.mjs} +2 -2
  123. package/dist/esm/{chunk-UBKS7KKY.mjs → chunk-VVHFK6WA.mjs} +2 -2
  124. package/dist/esm/{chunk-5TBIWC7N.mjs → chunk-VWQQLTCH.mjs} +2 -2
  125. package/dist/esm/{chunk-ZLKTE23A.mjs → chunk-WVITQ3K7.mjs} +2 -2
  126. package/dist/esm/{chunk-NKDHR2DA.mjs → chunk-XFT2EE4O.mjs} +2 -2
  127. package/dist/esm/{chunk-A657D5ZR.mjs → chunk-XP34ZZRH.mjs} +2 -2
  128. package/dist/esm/{chunk-JOROI7FE.mjs → chunk-Y35QNVIJ.mjs} +2 -2
  129. package/dist/esm/{chunk-ZP5VIQ73.mjs → chunk-YZ2IE7W2.mjs} +2 -2
  130. package/dist/esm/{chunk-SMZXGGBH.mjs → chunk-Z7G2ODBC.mjs} +2 -2
  131. package/dist/esm/{chunk-LZXQ4522.mjs → chunk-ZBDEBFLY.mjs} +2 -2
  132. package/dist/esm/client/core.mjs +1 -1
  133. package/dist/esm/client/get.mjs +1 -1
  134. package/dist/esm/client/index.mjs +1 -1
  135. package/dist/esm/client/post.mjs +1 -1
  136. package/dist/esm/core/account/index.mjs +1 -1
  137. package/dist/esm/core/account/utils/address.mjs +1 -1
  138. package/dist/esm/core/account/utils/index.mjs +1 -1
  139. package/dist/esm/core/accountAddress.mjs +1 -1
  140. package/dist/esm/core/authenticationKey.mjs +1 -1
  141. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  142. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  143. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  144. package/dist/esm/core/crypto/index.mjs +1 -1
  145. package/dist/esm/core/crypto/keyless.mjs +1 -1
  146. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  147. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  148. package/dist/esm/core/crypto/poseidon.mjs +1 -1
  149. package/dist/esm/core/crypto/proof.mjs +1 -1
  150. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  151. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  152. package/dist/esm/core/crypto/signature.mjs +1 -1
  153. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  154. package/dist/esm/core/index.mjs +1 -1
  155. package/dist/esm/index.d.mts +2 -1
  156. package/dist/esm/index.mjs +1 -1
  157. package/dist/esm/internal/account.d.mts +1 -7
  158. package/dist/esm/internal/account.mjs +1 -1
  159. package/dist/esm/internal/ans.mjs +1 -1
  160. package/dist/esm/internal/coin.mjs +1 -1
  161. package/dist/esm/internal/digitalAsset.mjs +1 -1
  162. package/dist/esm/internal/event.mjs +1 -1
  163. package/dist/esm/internal/faucet.mjs +1 -1
  164. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  165. package/dist/esm/internal/general.mjs +1 -1
  166. package/dist/esm/internal/keyless.d.mts +1 -1
  167. package/dist/esm/internal/keyless.mjs +1 -1
  168. package/dist/esm/internal/object.mjs +1 -1
  169. package/dist/esm/internal/staking.mjs +1 -1
  170. package/dist/esm/internal/table.mjs +1 -1
  171. package/dist/esm/internal/transaction.mjs +1 -1
  172. package/dist/esm/internal/transactionSubmission.d.mts +22 -2
  173. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  174. package/dist/esm/internal/view.mjs +1 -1
  175. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  176. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  177. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  178. package/dist/esm/transactions/index.mjs +1 -1
  179. package/dist/esm/transactions/instances/index.mjs +1 -1
  180. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  181. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  182. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  183. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  184. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  185. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  186. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  187. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  188. package/dist/esm/transactions/management/index.mjs +1 -1
  189. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  190. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  191. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  192. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  193. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  194. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  195. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  196. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  197. package/dist/esm/types/index.d.mts +6 -0
  198. package/dist/esm/types/index.mjs +1 -1
  199. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  200. package/dist/esm/utils/index.mjs +1 -1
  201. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  202. package/dist/esm/version.d.mts +1 -1
  203. package/dist/esm/version.mjs +1 -1
  204. package/package.json +21 -21
  205. package/src/account/{KeylessAccountCommon.ts → AbstractKeylessAccount.ts} +10 -10
  206. package/src/account/FederatedKeylessAccount.ts +9 -8
  207. package/src/account/KeylessAccount.ts +9 -8
  208. package/src/account/MultiKeyAccount.ts +4 -2
  209. package/src/account/index.ts +1 -1
  210. package/src/api/account.ts +68 -22
  211. package/src/api/transaction.ts +40 -20
  212. package/src/client/core.ts +1 -1
  213. package/src/core/crypto/keyless.ts +4 -3
  214. package/src/core/crypto/poseidon.ts +3 -7
  215. package/src/internal/account.ts +1 -54
  216. package/src/internal/keyless.ts +5 -1
  217. package/src/internal/transactionSubmission.ts +63 -10
  218. package/src/transactions/transactionBuilder/transactionBuilder.ts +13 -2
  219. package/src/types/index.ts +6 -0
  220. package/src/utils/apiEndpoints.ts +3 -3
  221. package/src/version.ts +1 -1
  222. package/dist/esm/account/KeylessAccountCommon.mjs +0 -2
  223. package/dist/esm/chunk-3TMGYL7A.mjs +0 -2
  224. package/dist/esm/chunk-3TMGYL7A.mjs.map +0 -1
  225. package/dist/esm/chunk-3ZX4UY4M.mjs +0 -2
  226. package/dist/esm/chunk-3ZX4UY4M.mjs.map +0 -1
  227. package/dist/esm/chunk-BVYF2IWN.mjs +0 -2
  228. package/dist/esm/chunk-BVYF2IWN.mjs.map +0 -1
  229. package/dist/esm/chunk-EXMQBH3I.mjs +0 -2
  230. package/dist/esm/chunk-EXMQBH3I.mjs.map +0 -1
  231. package/dist/esm/chunk-KBFUFNVV.mjs +0 -2
  232. package/dist/esm/chunk-KBFUFNVV.mjs.map +0 -1
  233. package/dist/esm/chunk-LPPYZUF3.mjs +0 -2
  234. package/dist/esm/chunk-LPPYZUF3.mjs.map +0 -1
  235. package/dist/esm/chunk-RRJ2DCWG.mjs +0 -2
  236. package/dist/esm/chunk-RRJ2DCWG.mjs.map +0 -1
  237. package/dist/esm/chunk-RZV5AX3S.mjs +0 -2
  238. package/dist/esm/chunk-RZV5AX3S.mjs.map +0 -1
  239. package/dist/esm/chunk-V46RMNID.mjs +0 -2
  240. package/dist/esm/chunk-V46RMNID.mjs.map +0 -1
  241. package/dist/esm/chunk-VSDISGIN.mjs.map +0 -1
  242. package/dist/esm/chunk-W3VWZSFH.mjs +0 -2
  243. package/dist/esm/chunk-W3VWZSFH.mjs.map +0 -1
  244. package/dist/esm/chunk-XYSNMCKB.mjs +0 -2
  245. package/dist/esm/chunk-XYSNMCKB.mjs.map +0 -1
  246. package/dist/esm/chunk-YQAWLH5T.mjs +0 -2
  247. package/dist/esm/chunk-YQAWLH5T.mjs.map +0 -1
  248. package/dist/esm/chunk-ZXVQ2OBJ.mjs +0 -2
  249. package/src/internal/move/jwks/build/jwk/BuildInfo.yaml +0 -56
  250. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/account.mv +0 -0
  251. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator.mv +0 -0
  252. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_factory.mv +0 -0
  253. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_v2.mv +0 -0
  254. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_account.mv +0 -0
  255. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_coin.mv +0 -0
  256. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_governance.mv +0 -0
  257. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/block.mv +0 -0
  258. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_id.mv +0 -0
  259. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_status.mv +0 -0
  260. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/code.mv +0 -0
  261. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/coin.mv +0 -0
  262. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/config_buffer.mv +0 -0
  263. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/consensus_config.mv +0 -0
  264. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/create_signer.mv +0 -0
  265. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/delegation_pool.mv +0 -0
  266. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dispatchable_fungible_asset.mv +0 -0
  267. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dkg.mv +0 -0
  268. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/event.mv +0 -0
  269. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/execution_config.mv +0 -0
  270. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/function_info.mv +0 -0
  271. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/fungible_asset.mv +0 -0
  272. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/gas_schedule.mv +0 -0
  273. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/genesis.mv +0 -0
  274. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/governance_proposal.mv +0 -0
  275. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/guid.mv +0 -0
  276. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwk_consensus_config.mv +0 -0
  277. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwks.mv +0 -0
  278. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/keyless_account.mv +0 -0
  279. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/managed_coin.mv +0 -0
  280. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/multisig_account.mv +0 -0
  281. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object.mv +0 -0
  282. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object_code_deployment.mv +0 -0
  283. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/optional_aggregator.mv +0 -0
  284. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/primary_fungible_store.mv +0 -0
  285. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness.mv +0 -0
  286. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_api_v0_config.mv +0 -0
  287. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config.mv +0 -0
  288. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config_seqnum.mv +0 -0
  289. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration.mv +0 -0
  290. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_state.mv +0 -0
  291. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_with_dkg.mv +0 -0
  292. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/resource_account.mv +0 -0
  293. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/stake.mv +0 -0
  294. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_config.mv +0 -0
  295. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_contract.mv +0 -0
  296. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_proxy.mv +0 -0
  297. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/state_storage.mv +0 -0
  298. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/storage_gas.mv +0 -0
  299. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/system_addresses.mv +0 -0
  300. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/timestamp.mv +0 -0
  301. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_context.mv +0 -0
  302. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_fee.mv +0 -0
  303. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_validation.mv +0 -0
  304. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/util.mv +0 -0
  305. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/validator_consensus_info.mv +0 -0
  306. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/version.mv +0 -0
  307. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/vesting.mv +0 -0
  308. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/voting.mv +0 -0
  309. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/any.mv +0 -0
  310. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/aptos_hash.mv +0 -0
  311. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/big_vector.mv +0 -0
  312. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381.mv +0 -0
  313. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381_algebra.mv +0 -0
  314. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bn254_algebra.mv +0 -0
  315. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/capability.mv +0 -0
  316. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/comparator.mv +0 -0
  317. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/copyable_any.mv +0 -0
  318. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/crypto_algebra.mv +0 -0
  319. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/debug.mv +0 -0
  320. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ed25519.mv +0 -0
  321. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/fixed_point64.mv +0 -0
  322. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/from_bcs.mv +0 -0
  323. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math128.mv +0 -0
  324. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math64.mv +0 -0
  325. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed.mv +0 -0
  326. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed64.mv +0 -0
  327. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/multi_ed25519.mv +0 -0
  328. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64.mv +0 -0
  329. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64_unbound.mv +0 -0
  330. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255.mv +0 -0
  331. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_bulletproofs.mv +0 -0
  332. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_elgamal.mv +0 -0
  333. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_pedersen.mv +0 -0
  334. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/secp256k1.mv +0 -0
  335. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/simple_map.mv +0 -0
  336. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_table.mv +0 -0
  337. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_vector.mv +0 -0
  338. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/string_utils.mv +0 -0
  339. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table.mv +0 -0
  340. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table_with_length.mv +0 -0
  341. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/type_info.mv +0 -0
  342. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/acl.mv +0 -0
  343. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bcs.mv +0 -0
  344. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bit_vector.mv +0 -0
  345. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/error.mv +0 -0
  346. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/features.mv +0 -0
  347. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/fixed_point32.mv +0 -0
  348. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/hash.mv +0 -0
  349. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/option.mv +0 -0
  350. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/signer.mv +0 -0
  351. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/string.mv +0 -0
  352. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/vector.mv +0 -0
  353. package/src/internal/move/jwks/build/jwk/bytecode_scripts/main.mv +0 -0
  354. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/account.mvsm +0 -0
  355. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator.mvsm +0 -0
  356. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_factory.mvsm +0 -0
  357. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_v2.mvsm +0 -0
  358. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_account.mvsm +0 -0
  359. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_coin.mvsm +0 -0
  360. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_governance.mvsm +0 -0
  361. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/block.mvsm +0 -0
  362. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_id.mvsm +0 -0
  363. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_status.mvsm +0 -0
  364. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/code.mvsm +0 -0
  365. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/coin.mvsm +0 -0
  366. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/config_buffer.mvsm +0 -0
  367. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/consensus_config.mvsm +0 -0
  368. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/create_signer.mvsm +0 -0
  369. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/delegation_pool.mvsm +0 -0
  370. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dispatchable_fungible_asset.mvsm +0 -0
  371. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dkg.mvsm +0 -0
  372. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/event.mvsm +0 -0
  373. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/execution_config.mvsm +0 -0
  374. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/function_info.mvsm +0 -0
  375. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/fungible_asset.mvsm +0 -0
  376. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/gas_schedule.mvsm +0 -0
  377. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/genesis.mvsm +0 -0
  378. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/governance_proposal.mvsm +0 -0
  379. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/guid.mvsm +0 -0
  380. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwk_consensus_config.mvsm +0 -0
  381. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwks.mvsm +0 -0
  382. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/keyless_account.mvsm +0 -0
  383. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/managed_coin.mvsm +0 -0
  384. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/multisig_account.mvsm +0 -0
  385. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object.mvsm +0 -0
  386. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object_code_deployment.mvsm +0 -0
  387. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/optional_aggregator.mvsm +0 -0
  388. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/primary_fungible_store.mvsm +0 -0
  389. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness.mvsm +0 -0
  390. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_api_v0_config.mvsm +0 -0
  391. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config.mvsm +0 -0
  392. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config_seqnum.mvsm +0 -0
  393. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration.mvsm +0 -0
  394. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_state.mvsm +0 -0
  395. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_with_dkg.mvsm +0 -0
  396. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/resource_account.mvsm +0 -0
  397. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/stake.mvsm +0 -0
  398. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_config.mvsm +0 -0
  399. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_contract.mvsm +0 -0
  400. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_proxy.mvsm +0 -0
  401. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/state_storage.mvsm +0 -0
  402. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/storage_gas.mvsm +0 -0
  403. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/system_addresses.mvsm +0 -0
  404. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/timestamp.mvsm +0 -0
  405. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_context.mvsm +0 -0
  406. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_fee.mvsm +0 -0
  407. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_validation.mvsm +0 -0
  408. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/util.mvsm +0 -0
  409. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/validator_consensus_info.mvsm +0 -0
  410. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/version.mvsm +0 -0
  411. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/vesting.mvsm +0 -0
  412. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/voting.mvsm +0 -0
  413. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/any.mvsm +0 -0
  414. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/aptos_hash.mvsm +0 -0
  415. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/big_vector.mvsm +0 -0
  416. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381.mvsm +0 -0
  417. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381_algebra.mvsm +0 -0
  418. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bn254_algebra.mvsm +0 -0
  419. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/capability.mvsm +0 -0
  420. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/comparator.mvsm +0 -0
  421. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/copyable_any.mvsm +0 -0
  422. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/crypto_algebra.mvsm +0 -0
  423. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/debug.mvsm +0 -0
  424. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ed25519.mvsm +0 -0
  425. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/fixed_point64.mvsm +0 -0
  426. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/from_bcs.mvsm +0 -0
  427. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math128.mvsm +0 -0
  428. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math64.mvsm +0 -0
  429. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed.mvsm +0 -0
  430. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed64.mvsm +0 -0
  431. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/multi_ed25519.mvsm +0 -0
  432. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64.mvsm +0 -0
  433. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64_unbound.mvsm +0 -0
  434. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255.mvsm +0 -0
  435. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_bulletproofs.mvsm +0 -0
  436. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_elgamal.mvsm +0 -0
  437. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_pedersen.mvsm +0 -0
  438. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/secp256k1.mvsm +0 -0
  439. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/simple_map.mvsm +0 -0
  440. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_table.mvsm +0 -0
  441. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_vector.mvsm +0 -0
  442. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/string_utils.mvsm +0 -0
  443. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table.mvsm +0 -0
  444. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table_with_length.mvsm +0 -0
  445. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/type_info.mvsm +0 -0
  446. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/acl.mvsm +0 -0
  447. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bcs.mvsm +0 -0
  448. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bit_vector.mvsm +0 -0
  449. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/error.mvsm +0 -0
  450. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/features.mvsm +0 -0
  451. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/fixed_point32.mvsm +0 -0
  452. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/hash.mvsm +0 -0
  453. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/option.mvsm +0 -0
  454. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/signer.mvsm +0 -0
  455. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/string.mvsm +0 -0
  456. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/vector.mvsm +0 -0
  457. package/src/internal/move/jwks/build/jwk/source_maps/main.mvsm +0 -0
  458. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/account.move +0 -1533
  459. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator.move +0 -48
  460. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_factory.move +0 -66
  461. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_v2.move +0 -280
  462. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_account.move +0 -443
  463. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_coin.move +0 -204
  464. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_governance.move +0 -1387
  465. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/block.move +0 -394
  466. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_id.move +0 -41
  467. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_status.move +0 -48
  468. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/code.move +0 -367
  469. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/coin.move +0 -2214
  470. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/config_buffer.move +0 -101
  471. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/consensus_config.move +0 -77
  472. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/create_signer.move +0 -21
  473. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/delegation_pool.move +0 -5568
  474. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dispatchable_fungible_asset.move +0 -228
  475. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dkg.move +0 -121
  476. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/event.move +0 -92
  477. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/execution_config.move +0 -66
  478. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/function_info.move +0 -100
  479. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/fungible_asset.move +0 -1566
  480. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/gas_schedule.move +0 -176
  481. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/genesis.move +0 -550
  482. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/governance_proposal.move +0 -23
  483. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/guid.move +0 -68
  484. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwk_consensus_config.move +0 -148
  485. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwks.move +0 -817
  486. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/keyless_account.move +0 -312
  487. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/managed_coin.move +0 -205
  488. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/multisig_account.move +0 -2477
  489. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object.move +0 -1073
  490. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object_code_deployment.move +0 -147
  491. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/optional_aggregator.move +0 -295
  492. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/primary_fungible_store.move +0 -405
  493. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness.move +0 -574
  494. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_api_v0_config.move +0 -57
  495. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config.move +0 -153
  496. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config_seqnum.move +0 -49
  497. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration.move +0 -237
  498. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_state.move +0 -132
  499. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_with_dkg.move +0 -69
  500. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/resource_account.move +0 -267
  501. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/stake.move +0 -3286
  502. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_config.move +0 -686
  503. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_contract.move +0 -1618
  504. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_proxy.move +0 -228
  505. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/state_storage.move +0 -90
  506. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/storage_gas.move +0 -622
  507. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/system_addresses.move +0 -82
  508. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/timestamp.move +0 -88
  509. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_context.move +0 -262
  510. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_fee.move +0 -457
  511. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_validation.move +0 -501
  512. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/util.move +0 -16
  513. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/validator_consensus_info.move +0 -42
  514. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/version.move +0 -115
  515. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/vesting.move +0 -2183
  516. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/voting.move +0 -1279
  517. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/any.move +0 -57
  518. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/aptos_hash.move +0 -253
  519. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/big_vector.move +0 -469
  520. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381.move +0 -985
  521. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381_algebra.move +0 -802
  522. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bn254_algebra.move +0 -855
  523. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/capability.move +0 -193
  524. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/comparator.move +0 -173
  525. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/copyable_any.move +0 -45
  526. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/crypto_algebra.move +0 -351
  527. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/debug.move +0 -278
  528. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ed25519.move +0 -262
  529. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/fixed_point64.move +0 -447
  530. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/from_bcs.move +0 -91
  531. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math128.move +0 -381
  532. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math64.move +0 -336
  533. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed.move +0 -139
  534. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed64.move +0 -142
  535. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/multi_ed25519.move +0 -482
  536. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64.move +0 -571
  537. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64_unbound.move +0 -270
  538. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255.move +0 -1310
  539. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_bulletproofs.move +0 -253
  540. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_elgamal.move +0 -234
  541. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_pedersen.move +0 -158
  542. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/secp256k1.move +0 -114
  543. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/simple_map.move +0 -319
  544. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_table.move +0 -769
  545. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_vector.move +0 -766
  546. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/string_utils.move +0 -148
  547. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table.move +0 -152
  548. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table_with_length.move +0 -141
  549. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/type_info.move +0 -351
  550. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/acl.move +0 -46
  551. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bcs.move +0 -27
  552. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bit_vector.move +0 -239
  553. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/error.move +0 -88
  554. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/features.move +0 -780
  555. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/fixed_point32.move +0 -295
  556. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/hash.move +0 -8
  557. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/option.move +0 -356
  558. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/signer.move +0 -21
  559. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/string.move +0 -93
  560. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/vector.move +0 -669
  561. package/src/internal/move/jwks/build/jwk/sources/main.move +0 -20
  562. /package/dist/esm/account/{KeylessAccountCommon.mjs.map → AbstractKeylessAccount.mjs.map} +0 -0
  563. /package/dist/esm/{chunk-WYQLUB4H.mjs.map → chunk-2AGCC7DU.mjs.map} +0 -0
  564. /package/dist/esm/{chunk-54QUDAAC.mjs.map → chunk-3RBIEWVC.mjs.map} +0 -0
  565. /package/dist/esm/{chunk-V3H27T2Q.mjs.map → chunk-43AF5CUP.mjs.map} +0 -0
  566. /package/dist/esm/{chunk-PPAFIAG2.mjs.map → chunk-7NYFGX5Q.mjs.map} +0 -0
  567. /package/dist/esm/{chunk-XN6MKWEO.mjs.map → chunk-7PDF3O5A.mjs.map} +0 -0
  568. /package/dist/esm/{chunk-L46BAMVA.mjs.map → chunk-A3AGTDS6.mjs.map} +0 -0
  569. /package/dist/esm/{chunk-3L5DX6JP.mjs.map → chunk-C26X2GLF.mjs.map} +0 -0
  570. /package/dist/esm/{chunk-MYH7Q3VH.mjs.map → chunk-DUDSFTMJ.mjs.map} +0 -0
  571. /package/dist/esm/{chunk-RKZOTGGH.mjs.map → chunk-E2X3MVIQ.mjs.map} +0 -0
  572. /package/dist/esm/{chunk-ZAQKT56M.mjs.map → chunk-EDHO4MI7.mjs.map} +0 -0
  573. /package/dist/esm/{chunk-J4GG7PQT.mjs.map → chunk-EG7QHK4U.mjs.map} +0 -0
  574. /package/dist/esm/{chunk-ZCT6NDEU.mjs.map → chunk-F3C6KUOA.mjs.map} +0 -0
  575. /package/dist/esm/{chunk-72SSWSHA.mjs.map → chunk-FL2G3JFQ.mjs.map} +0 -0
  576. /package/dist/esm/{chunk-FFL4M7YG.mjs.map → chunk-G4JQEJQT.mjs.map} +0 -0
  577. /package/dist/esm/{chunk-2CAGPXCX.mjs.map → chunk-GNJL4HRI.mjs.map} +0 -0
  578. /package/dist/esm/{chunk-SNM4U3FC.mjs.map → chunk-HSIRO3LE.mjs.map} +0 -0
  579. /package/dist/esm/{chunk-5NXUGQ6L.mjs.map → chunk-HXSCC3UV.mjs.map} +0 -0
  580. /package/dist/esm/{chunk-ZFI2LQGD.mjs.map → chunk-KJBS5RFY.mjs.map} +0 -0
  581. /package/dist/esm/{chunk-JH225EXU.mjs.map → chunk-KQYOM3J6.mjs.map} +0 -0
  582. /package/dist/esm/{chunk-GGPA6QTN.mjs.map → chunk-LZMZCQXB.mjs.map} +0 -0
  583. /package/dist/esm/{chunk-JUNVPIW4.mjs.map → chunk-M2GJ6B3I.mjs.map} +0 -0
  584. /package/dist/esm/{chunk-VQVNUN5Y.mjs.map → chunk-MHRQHVM3.mjs.map} +0 -0
  585. /package/dist/esm/{chunk-5P7MXLZA.mjs.map → chunk-MJ7K6MUZ.mjs.map} +0 -0
  586. /package/dist/esm/{chunk-FH35HWRP.mjs.map → chunk-MQTQWVKC.mjs.map} +0 -0
  587. /package/dist/esm/{chunk-FGIEEY6R.mjs.map → chunk-NJK4DINY.mjs.map} +0 -0
  588. /package/dist/esm/{chunk-AE5KXM2X.mjs.map → chunk-NMD45OTM.mjs.map} +0 -0
  589. /package/dist/esm/{chunk-RW5ISQXD.mjs.map → chunk-O7PQILE3.mjs.map} +0 -0
  590. /package/dist/esm/{chunk-VEBU2C3H.mjs.map → chunk-POSSCOHV.mjs.map} +0 -0
  591. /package/dist/esm/{chunk-OTNGLTKS.mjs.map → chunk-QB4XTGDH.mjs.map} +0 -0
  592. /package/dist/esm/{chunk-F5PNGH44.mjs.map → chunk-R7FVBWBJ.mjs.map} +0 -0
  593. /package/dist/esm/{chunk-HJRGKBC6.mjs.map → chunk-RONLES3F.mjs.map} +0 -0
  594. /package/dist/esm/{chunk-AK4AHVRD.mjs.map → chunk-SCHHDWWN.mjs.map} +0 -0
  595. /package/dist/esm/{chunk-ISOA3TPZ.mjs.map → chunk-SKBUDJFL.mjs.map} +0 -0
  596. /package/dist/esm/{chunk-LS6G4DZV.mjs.map → chunk-SS4IPKAI.mjs.map} +0 -0
  597. /package/dist/esm/{chunk-RTNQD3VQ.mjs.map → chunk-TEM2STPT.mjs.map} +0 -0
  598. /package/dist/esm/{chunk-E6BAWWWF.mjs.map → chunk-UIM56NFQ.mjs.map} +0 -0
  599. /package/dist/esm/{chunk-PDNA4H34.mjs.map → chunk-UIWXJU6Z.mjs.map} +0 -0
  600. /package/dist/esm/{chunk-LMKBLXGR.mjs.map → chunk-ULQ4A44I.mjs.map} +0 -0
  601. /package/dist/esm/{chunk-XSFX5XES.mjs.map → chunk-URF3VICX.mjs.map} +0 -0
  602. /package/dist/esm/{chunk-3FD6IOED.mjs.map → chunk-V2YXCX3Q.mjs.map} +0 -0
  603. /package/dist/esm/{chunk-ZRTXAUDS.mjs.map → chunk-VSMEQLV6.mjs.map} +0 -0
  604. /package/dist/esm/{chunk-PA4LAE4B.mjs.map → chunk-VTHJWK3M.mjs.map} +0 -0
  605. /package/dist/esm/{chunk-UBKS7KKY.mjs.map → chunk-VVHFK6WA.mjs.map} +0 -0
  606. /package/dist/esm/{chunk-5TBIWC7N.mjs.map → chunk-VWQQLTCH.mjs.map} +0 -0
  607. /package/dist/esm/{chunk-ZLKTE23A.mjs.map → chunk-WVITQ3K7.mjs.map} +0 -0
  608. /package/dist/esm/{chunk-NKDHR2DA.mjs.map → chunk-XFT2EE4O.mjs.map} +0 -0
  609. /package/dist/esm/{chunk-A657D5ZR.mjs.map → chunk-XP34ZZRH.mjs.map} +0 -0
  610. /package/dist/esm/{chunk-JOROI7FE.mjs.map → chunk-Y35QNVIJ.mjs.map} +0 -0
  611. /package/dist/esm/{chunk-ZP5VIQ73.mjs.map → chunk-YZ2IE7W2.mjs.map} +0 -0
  612. /package/dist/esm/{chunk-SMZXGGBH.mjs.map → chunk-Z7G2ODBC.mjs.map} +0 -0
  613. /package/dist/esm/{chunk-LZXQ4522.mjs.map → chunk-ZBDEBFLY.mjs.map} +0 -0
@@ -1,482 +0,0 @@
1
- /// Exports MultiEd25519 multi-signatures in Move.
2
- /// This module has the exact same interface as the Ed25519 module.
3
-
4
- module aptos_std::multi_ed25519 {
5
- use std::bcs;
6
- use std::error;
7
- use std::features;
8
- use std::option::{Self, Option};
9
- use std::vector;
10
- use aptos_std::ed25519;
11
-
12
- //
13
- // Error codes
14
- //
15
-
16
- /// Wrong number of bytes were given as input when deserializing an Ed25519 public key.
17
- const E_WRONG_PUBKEY_SIZE: u64 = 1;
18
-
19
- /// Wrong number of bytes were given as input when deserializing an Ed25519 signature.
20
- const E_WRONG_SIGNATURE_SIZE: u64 = 2;
21
-
22
- /// The threshold must be in the range `[1, n]`, where n is the total number of signers.
23
- const E_INVALID_THRESHOLD_OR_NUMBER_OF_SIGNERS: u64 = 3;
24
-
25
- /// The native functions have not been rolled out yet.
26
- const E_NATIVE_FUN_NOT_AVAILABLE: u64 = 4;
27
-
28
- //
29
- // Constants
30
- //
31
-
32
- /// The identifier of the MultiEd25519 signature scheme, which is used when deriving Aptos authentication keys by hashing
33
- /// it together with an MultiEd25519 public key.
34
- const SIGNATURE_SCHEME_ID: u8 = 1;
35
-
36
- /// The size of an individual Ed25519 public key, in bytes.
37
- /// (A MultiEd25519 public key consists of several of these, plus the threshold.)
38
- const INDIVIDUAL_PUBLIC_KEY_NUM_BYTES: u64 = 32;
39
-
40
- /// The size of an individual Ed25519 signature, in bytes.
41
- /// (A MultiEd25519 signature consists of several of these, plus the signer bitmap.)
42
- const INDIVIDUAL_SIGNATURE_NUM_BYTES: u64 = 64;
43
-
44
- /// When serializing a MultiEd25519 public key, the threshold k will be encoded using this many bytes.
45
- const THRESHOLD_SIZE_BYTES: u64 = 1;
46
-
47
- /// When serializing a MultiEd25519 signature, the bitmap that indicates the signers will be encoded using this many
48
- /// bytes.
49
- const BITMAP_NUM_OF_BYTES: u64 = 4;
50
-
51
- /// Max number of ed25519 public keys allowed in multi-ed25519 keys
52
- const MAX_NUMBER_OF_PUBLIC_KEYS: u64 = 32;
53
-
54
- //
55
- // Structs
56
- //
57
- #[test_only]
58
- struct SecretKey has drop {
59
- bytes: vector<u8>,
60
- }
61
-
62
- /// An *unvalidated*, k out of n MultiEd25519 public key. The `bytes` field contains (1) several chunks of
63
- /// `ed25519::PUBLIC_KEY_NUM_BYTES` bytes, each encoding a Ed25519 PK, and (2) a single byte encoding the threshold k.
64
- /// *Unvalidated* means there is no guarantee that the underlying PKs are valid elliptic curve points of non-small
65
- /// order.
66
- struct UnvalidatedPublicKey has copy, drop, store {
67
- bytes: vector<u8>
68
- }
69
-
70
- /// A *validated* k out of n MultiEd25519 public key. *Validated* means that all the underlying PKs will be
71
- /// elliptic curve points that are NOT of small-order. It does not necessarily mean they will be prime-order points.
72
- /// This struct encodes the public key exactly as `UnvalidatedPublicKey`.
73
- ///
74
- /// For now, this struct is not used in any verification functions, but it might be in the future.
75
- struct ValidatedPublicKey has copy, drop, store {
76
- bytes: vector<u8>
77
- }
78
-
79
- /// A purported MultiEd25519 multi-signature that can be verified via `signature_verify_strict` or
80
- /// `signature_verify_strict_t`. The `bytes` field contains (1) several chunks of `ed25519::SIGNATURE_NUM_BYTES`
81
- /// bytes, each encoding a Ed25519 signature, and (2) a `BITMAP_NUM_OF_BYTES`-byte bitmap encoding the signer
82
- /// identities.
83
- struct Signature has copy, drop, store {
84
- bytes: vector<u8>
85
- }
86
-
87
- //
88
- // Functions
89
- //
90
-
91
- #[test_only]
92
- public fun generate_keys(threshold: u8, n: u8): (SecretKey, ValidatedPublicKey) {
93
- assert!(1 <= threshold && threshold <= n, error::invalid_argument(E_INVALID_THRESHOLD_OR_NUMBER_OF_SIGNERS));
94
- let (sk_bytes, pk_bytes) = generate_keys_internal(threshold, n);
95
- let sk = SecretKey {
96
- bytes: sk_bytes
97
- };
98
- let pk = ValidatedPublicKey {
99
- bytes: pk_bytes
100
- };
101
- (sk, pk)
102
- }
103
-
104
- #[test_only]
105
- public fun sign_arbitrary_bytes(sk: &SecretKey, msg: vector<u8>) : Signature {
106
- Signature {
107
- bytes: sign_internal(sk.bytes, msg)
108
- }
109
- }
110
-
111
- #[test_only]
112
- public fun sign_struct<T: drop>(sk: &SecretKey, data: T) : Signature {
113
- let encoded = ed25519::new_signed_message(data);
114
- Signature {
115
- bytes: sign_internal(sk.bytes, bcs::to_bytes(&encoded)),
116
- }
117
- }
118
-
119
- /// Parses the input 32 bytes as an *unvalidated* MultiEd25519 public key.
120
- ///
121
- /// NOTE: This function could have also checked that the # of sub-PKs is > 0, but it did not. However, since such
122
- /// invalid PKs are rejected during signature verification (see `bugfix_unvalidated_pk_from_zero_subpks`) they
123
- /// will not cause problems.
124
- ///
125
- /// We could fix this API by adding a new one that checks the # of sub-PKs is > 0, but it is likely not a good idea
126
- /// to reproduce the PK validation logic in Move. We should not have done so in the first place. Instead, we will
127
- /// leave it as is and continue assuming `UnvalidatedPublicKey` objects could be invalid PKs that will safely be
128
- /// rejected during signature verification.
129
- public fun new_unvalidated_public_key_from_bytes(bytes: vector<u8>): UnvalidatedPublicKey {
130
- let len = vector::length(&bytes);
131
- let num_sub_pks = len / INDIVIDUAL_PUBLIC_KEY_NUM_BYTES;
132
-
133
- assert!(num_sub_pks <= MAX_NUMBER_OF_PUBLIC_KEYS, error::invalid_argument(E_WRONG_PUBKEY_SIZE));
134
- assert!(len % INDIVIDUAL_PUBLIC_KEY_NUM_BYTES == THRESHOLD_SIZE_BYTES, error::invalid_argument(E_WRONG_PUBKEY_SIZE));
135
- UnvalidatedPublicKey { bytes }
136
- }
137
-
138
- /// DEPRECATED: Use `new_validated_public_key_from_bytes_v2` instead. See `public_key_validate_internal` comments.
139
- ///
140
- /// (Incorrectly) parses the input bytes as a *validated* MultiEd25519 public key.
141
- public fun new_validated_public_key_from_bytes(bytes: vector<u8>): Option<ValidatedPublicKey> {
142
- // Note that `public_key_validate_internal` will check that `vector::length(&bytes) / INDIVIDUAL_PUBLIC_KEY_NUM_BYTES <= MAX_NUMBER_OF_PUBLIC_KEYS`.
143
- if (vector::length(&bytes) % INDIVIDUAL_PUBLIC_KEY_NUM_BYTES == THRESHOLD_SIZE_BYTES &&
144
- public_key_validate_internal(bytes)) {
145
- option::some(ValidatedPublicKey {
146
- bytes
147
- })
148
- } else {
149
- option::none<ValidatedPublicKey>()
150
- }
151
- }
152
-
153
- /// Parses the input bytes as a *validated* MultiEd25519 public key (see `public_key_validate_internal_v2`).
154
- public fun new_validated_public_key_from_bytes_v2(bytes: vector<u8>): Option<ValidatedPublicKey> {
155
- if (!features::multi_ed25519_pk_validate_v2_enabled()) {
156
- abort(error::invalid_state(E_NATIVE_FUN_NOT_AVAILABLE))
157
- };
158
-
159
- if (public_key_validate_v2_internal(bytes)) {
160
- option::some(ValidatedPublicKey {
161
- bytes
162
- })
163
- } else {
164
- option::none<ValidatedPublicKey>()
165
- }
166
- }
167
-
168
- /// Parses the input bytes as a purported MultiEd25519 multi-signature.
169
- public fun new_signature_from_bytes(bytes: vector<u8>): Signature {
170
- assert!(vector::length(&bytes) % INDIVIDUAL_SIGNATURE_NUM_BYTES == BITMAP_NUM_OF_BYTES, error::invalid_argument(E_WRONG_SIGNATURE_SIZE));
171
- Signature { bytes }
172
- }
173
-
174
- /// Converts a ValidatedPublicKey to an UnvalidatedPublicKey, which can be used in the strict verification APIs.
175
- public fun public_key_to_unvalidated(pk: &ValidatedPublicKey): UnvalidatedPublicKey {
176
- UnvalidatedPublicKey {
177
- bytes: pk.bytes
178
- }
179
- }
180
-
181
- /// Moves a ValidatedPublicKey into an UnvalidatedPublicKey, which can be used in the strict verification APIs.
182
- public fun public_key_into_unvalidated(pk: ValidatedPublicKey): UnvalidatedPublicKey {
183
- UnvalidatedPublicKey {
184
- bytes: pk.bytes
185
- }
186
- }
187
-
188
- /// Serializes an UnvalidatedPublicKey struct to 32-bytes.
189
- public fun unvalidated_public_key_to_bytes(pk: &UnvalidatedPublicKey): vector<u8> {
190
- pk.bytes
191
- }
192
-
193
- /// Serializes a ValidatedPublicKey struct to 32-bytes.
194
- public fun validated_public_key_to_bytes(pk: &ValidatedPublicKey): vector<u8> {
195
- pk.bytes
196
- }
197
-
198
- /// Serializes a Signature struct to 64-bytes.
199
- public fun signature_to_bytes(sig: &Signature): vector<u8> {
200
- sig.bytes
201
- }
202
-
203
- /// DEPRECATED: Use `public_key_validate_v2` instead. See `public_key_validate_internal` comments.
204
- ///
205
- /// Takes in an *unvalidated* public key and attempts to validate it.
206
- /// Returns `Some(ValidatedPublicKey)` if successful and `None` otherwise.
207
- public fun public_key_validate(pk: &UnvalidatedPublicKey): Option<ValidatedPublicKey> {
208
- new_validated_public_key_from_bytes(pk.bytes)
209
- }
210
-
211
- /// Takes in an *unvalidated* public key and attempts to validate it.
212
- /// Returns `Some(ValidatedPublicKey)` if successful and `None` otherwise.
213
- public fun public_key_validate_v2(pk: &UnvalidatedPublicKey): Option<ValidatedPublicKey> {
214
- new_validated_public_key_from_bytes_v2(pk.bytes)
215
- }
216
-
217
- /// Verifies a purported MultiEd25519 `multisignature` under an *unvalidated* `public_key` on the specified `message`.
218
- /// This call will validate the public key by checking it is NOT in the small subgroup.
219
- public fun signature_verify_strict(
220
- multisignature: &Signature,
221
- public_key: &UnvalidatedPublicKey,
222
- message: vector<u8>
223
- ): bool {
224
- signature_verify_strict_internal(multisignature.bytes, public_key.bytes, message)
225
- }
226
-
227
- /// This function is used to verify a multi-signature on any BCS-serializable type T. For now, it is used to verify the
228
- /// proof of private key ownership when rotating authentication keys.
229
- public fun signature_verify_strict_t<T: drop>(multisignature: &Signature, public_key: &UnvalidatedPublicKey, data: T): bool {
230
- let encoded = ed25519::new_signed_message(data);
231
-
232
- signature_verify_strict_internal(multisignature.bytes, public_key.bytes, bcs::to_bytes(&encoded))
233
- }
234
-
235
- /// Derives the Aptos-specific authentication key of the given Ed25519 public key.
236
- public fun unvalidated_public_key_to_authentication_key(pk: &UnvalidatedPublicKey): vector<u8> {
237
- public_key_bytes_to_authentication_key(pk.bytes)
238
- }
239
-
240
- /// Returns the number n of sub-PKs in an unvalidated t-out-of-n MultiEd25519 PK.
241
- /// If this `UnvalidatedPublicKey` would pass validation in `public_key_validate`, then the returned # of sub-PKs
242
- /// can be relied upon as correct.
243
- ///
244
- /// We provide this API as a cheaper alternative to calling `public_key_validate` and then `validated_public_key_num_sub_pks`
245
- /// when the input `pk` is known to be valid.
246
- public fun unvalidated_public_key_num_sub_pks(pk: &UnvalidatedPublicKey): u8 {
247
- let len = vector::length(&pk.bytes);
248
-
249
- ((len / INDIVIDUAL_PUBLIC_KEY_NUM_BYTES) as u8)
250
- }
251
-
252
- /// Returns the number t of sub-PKs in an unvalidated t-out-of-n MultiEd25519 PK (i.e., the threshold) or `None`
253
- /// if `bytes` does not correctly encode such a PK.
254
- public fun unvalidated_public_key_threshold(pk: &UnvalidatedPublicKey): Option<u8> {
255
- check_and_get_threshold(pk.bytes)
256
- }
257
-
258
- /// Derives the Aptos-specific authentication key of the given Ed25519 public key.
259
- public fun validated_public_key_to_authentication_key(pk: &ValidatedPublicKey): vector<u8> {
260
- public_key_bytes_to_authentication_key(pk.bytes)
261
- }
262
-
263
- /// Returns the number n of sub-PKs in a validated t-out-of-n MultiEd25519 PK.
264
- /// Since the format of this PK has been validated, the returned # of sub-PKs is guaranteed to be correct.
265
- public fun validated_public_key_num_sub_pks(pk: &ValidatedPublicKey): u8 {
266
- let len = vector::length(&pk.bytes);
267
-
268
- ((len / INDIVIDUAL_PUBLIC_KEY_NUM_BYTES) as u8)
269
- }
270
-
271
- /// Returns the number t of sub-PKs in a validated t-out-of-n MultiEd25519 PK (i.e., the threshold).
272
- public fun validated_public_key_threshold(pk: &ValidatedPublicKey): u8 {
273
- let len = vector::length(&pk.bytes);
274
- let threshold_byte = *vector::borrow(&pk.bytes, len - 1);
275
-
276
- threshold_byte
277
- }
278
-
279
- /// Checks that the serialized format of a t-out-of-n MultiEd25519 PK correctly encodes 1 <= n <= 32 sub-PKs.
280
- /// (All `ValidatedPublicKey` objects are guaranteed to pass this check.)
281
- /// Returns the threshold t <= n of the PK.
282
- public fun check_and_get_threshold(bytes: vector<u8>): Option<u8> {
283
- let len = vector::length(&bytes);
284
- if (len == 0) {
285
- return option::none<u8>()
286
- };
287
-
288
- let threshold_num_of_bytes = len % INDIVIDUAL_PUBLIC_KEY_NUM_BYTES;
289
- let num_of_keys = len / INDIVIDUAL_PUBLIC_KEY_NUM_BYTES;
290
- let threshold_byte = *vector::borrow(&bytes, len - 1);
291
-
292
- if (num_of_keys == 0 || num_of_keys > MAX_NUMBER_OF_PUBLIC_KEYS || threshold_num_of_bytes != 1) {
293
- return option::none<u8>()
294
- } else if (threshold_byte == 0 || threshold_byte > (num_of_keys as u8)) {
295
- return option::none<u8>()
296
- } else {
297
- return option::some(threshold_byte)
298
- }
299
- }
300
-
301
- /// Derives the Aptos-specific authentication key of the given Ed25519 public key.
302
- fun public_key_bytes_to_authentication_key(pk_bytes: vector<u8>): vector<u8> {
303
- vector::push_back(&mut pk_bytes, SIGNATURE_SCHEME_ID);
304
- std::hash::sha3_256(pk_bytes)
305
- }
306
-
307
- //
308
- // Native functions
309
- //
310
-
311
- /// DEPRECATED: Use `public_key_validate_internal_v2` instead. This function was NOT correctly implemented:
312
- ///
313
- /// 1. It does not check that the # of sub public keys is > 0, which leads to invalid `ValidatedPublicKey` objects
314
- /// against which no signature will verify, since `signature_verify_strict_internal` will reject such invalid PKs.
315
- /// This is not a security issue, but a correctness issue. See `bugfix_validated_pk_from_zero_subpks`.
316
- /// 2. It charges too much gas: if the first sub-PK is invalid, it will charge for verifying all remaining sub-PKs.
317
- ///
318
- /// DEPRECATES:
319
- /// - new_validated_public_key_from_bytes
320
- /// - public_key_validate
321
- ///
322
- /// Return `true` if the bytes in `public_key` can be parsed as a valid MultiEd25519 public key: i.e., all underlying
323
- /// PKs pass point-on-curve and not-in-small-subgroup checks.
324
- /// Returns `false` otherwise.
325
- native fun public_key_validate_internal(bytes: vector<u8>): bool;
326
-
327
- /// Return `true` if the bytes in `public_key` can be parsed as a valid MultiEd25519 public key: i.e., all underlying
328
- /// sub-PKs pass point-on-curve and not-in-small-subgroup checks.
329
- /// Returns `false` otherwise.
330
- native fun public_key_validate_v2_internal(bytes: vector<u8>): bool;
331
-
332
- /// Return true if the MultiEd25519 `multisignature` on `message` verifies against the MultiEd25519 `public_key`.
333
- /// Returns `false` if either:
334
- /// - The PKs in `public_key` do not all pass points-on-curve or not-in-small-subgroup checks,
335
- /// - The signatures in `multisignature` do not all pass points-on-curve or not-in-small-subgroup checks,
336
- /// - the `multisignature` on `message` does not verify.
337
- native fun signature_verify_strict_internal(
338
- multisignature: vector<u8>,
339
- public_key: vector<u8>,
340
- message: vector<u8>
341
- ): bool;
342
-
343
- #[test_only]
344
- native fun generate_keys_internal(threshold: u8, n: u8): (vector<u8>,vector<u8>);
345
-
346
- #[test_only]
347
- native fun sign_internal(sk: vector<u8>, message: vector<u8>): vector<u8>;
348
-
349
- //
350
- // Tests
351
- //
352
-
353
- #[test_only]
354
- struct TestMessage has copy, drop {
355
- foo: vector<u8>,
356
- bar: u64,
357
- }
358
-
359
- #[test_only]
360
- public fun maul_first_signature(sig: &mut Signature) {
361
- let first_sig_byte = vector::borrow_mut(&mut sig.bytes, 0);
362
- *first_sig_byte = *first_sig_byte ^ 0xff;
363
- }
364
-
365
-
366
- #[test(fx = @std)]
367
- fun bugfix_validated_pk_from_zero_subpks(fx: signer) {
368
- features::change_feature_flags_for_testing(&fx, vector[ features::multi_ed25519_pk_validate_v2_feature()], vector[]);
369
- let bytes = vector<u8>[1u8];
370
- assert!(vector::length(&bytes) == 1, 1);
371
-
372
- // Try deserializing a MultiEd25519 `ValidatedPublicKey` with 0 Ed25519 sub-PKs and 1 threshold byte.
373
- // This would ideally NOT succeed, but it currently does. Regardless, such invalid PKs will be safely dismissed
374
- // during signature verification.
375
- let some = new_validated_public_key_from_bytes(bytes);
376
- assert!(option::is_none(&check_and_get_threshold(bytes)), 1); // ground truth
377
- assert!(option::is_some(&some), 2); // incorrect
378
-
379
- // In contrast, the v2 API will fail deserializing, as it should.
380
- let none = new_validated_public_key_from_bytes_v2(bytes);
381
- assert!(option::is_none(&none), 3);
382
- }
383
-
384
- #[test(fx = @std)]
385
- fun test_validated_pk_without_threshold_byte(fx: signer) {
386
- features::change_feature_flags_for_testing(&fx, vector[ features::multi_ed25519_pk_validate_v2_feature()], vector[]);
387
-
388
- let (_, subpk) = ed25519::generate_keys();
389
- let bytes = ed25519::validated_public_key_to_bytes(&subpk);
390
- assert!(vector::length(&bytes) == INDIVIDUAL_PUBLIC_KEY_NUM_BYTES, 1);
391
-
392
- // Try deserializing a MultiEd25519 `ValidatedPublicKey` with 1 Ed25519 sub-PKs but no threshold byte, which
393
- // will not succeed,
394
- let none = new_validated_public_key_from_bytes(bytes);
395
- assert!(option::is_none(&check_and_get_threshold(bytes)), 1); // ground truth
396
- assert!(option::is_none(&none), 2); // correct
397
-
398
- // Similarly, the v2 API will also fail deserializing.
399
- let none = new_validated_public_key_from_bytes_v2(bytes);
400
- assert!(option::is_none(&none), 3); // also correct
401
- }
402
-
403
- #[test(fx = @std)]
404
- fun test_validated_pk_from_small_order_subpk(fx: signer) {
405
- features::change_feature_flags_for_testing(&fx, vector[ features::multi_ed25519_pk_validate_v2_feature()], vector[]);
406
- let torsion_point_with_threshold_1 = vector<u8>[
407
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
408
- 0, 0, 1,
409
- ];
410
-
411
- assert!(option::extract(&mut check_and_get_threshold(torsion_point_with_threshold_1)) == 1, 1);
412
-
413
- // Try deserializing a MultiEd25519 `ValidatedPublicKey` with 1 Ed25519 sub-PKs and 1 threshold byte, as it should,
414
- // except the sub-PK is of small order. This should not succeed,
415
- let none = new_validated_public_key_from_bytes(torsion_point_with_threshold_1);
416
- assert!(option::is_none(&none), 2);
417
-
418
- // Similarly, the v2 API will also fail deserializing.
419
- let none = new_validated_public_key_from_bytes_v2(torsion_point_with_threshold_1);
420
- assert!(option::is_none(&none), 3);
421
- }
422
-
423
- #[test]
424
- fun test_gen_sign_verify() {
425
- let thresholds = vector[1, 1, 2, 2, 3, 15,]; // the thresholds, implicitly encoded in the public keys
426
- let party_counts = vector[1, 2, 2, 3, 10, 32,];
427
- let test_case_count = vector::length(&party_counts);
428
- let test_case_idx = 0;
429
-
430
- while (test_case_idx < test_case_count) {
431
- let threshold = *vector::borrow(&thresholds, test_case_idx);
432
- let group_size = *vector::borrow(&party_counts, test_case_idx);
433
-
434
- let (sk, pk) = generate_keys(threshold, group_size);
435
- assert!(validated_public_key_threshold(&pk) == threshold, 1);
436
- assert!(validated_public_key_num_sub_pks(&pk) == group_size, 2);
437
- assert!(public_key_validate_v2_internal(pk.bytes), 3);
438
-
439
- let upk = public_key_into_unvalidated(pk);
440
- assert!(option::extract(&mut unvalidated_public_key_threshold(&upk)) == threshold, 4);
441
- assert!(unvalidated_public_key_num_sub_pks(&upk) == group_size, 5);
442
-
443
- let msg1 = b"Hello Aptos!";
444
- let sig1 = sign_arbitrary_bytes(&sk, msg1);
445
- assert!(signature_verify_strict(&sig1, &upk, msg1), 6);
446
-
447
- let obj2 = TestMessage {
448
- foo: b"Hello Move!",
449
- bar: 64,
450
- };
451
- let sig2 = sign_struct(&sk, copy obj2);
452
- assert!(signature_verify_strict_t(&sig2, &upk, copy obj2), 7);
453
-
454
- test_case_idx = test_case_idx + 1;
455
- }
456
- }
457
-
458
- #[test]
459
- fun test_threshold_not_met_rejection() {
460
- let (sk,pk) = generate_keys(4, 5);
461
- assert!(validated_public_key_threshold(&pk) == 4, 1);
462
- assert!(validated_public_key_num_sub_pks(&pk) == 5, 2);
463
- assert!(public_key_validate_v2_internal(pk.bytes), 3);
464
-
465
- let upk = public_key_into_unvalidated(pk);
466
- assert!(option::extract(&mut unvalidated_public_key_threshold(&upk)) == 4, 4);
467
- assert!(unvalidated_public_key_num_sub_pks(&upk) == 5, 5);
468
-
469
- let msg1 = b"Hello Aptos!";
470
- let sig1 = sign_arbitrary_bytes(&sk, msg1);
471
- maul_first_signature(&mut sig1);
472
- assert!(!signature_verify_strict(&sig1, &upk, msg1), 6);
473
-
474
- let obj2 = TestMessage {
475
- foo: b"Hello Move!",
476
- bar: 64,
477
- };
478
- let sig2 = sign_struct(&sk, copy obj2);
479
- maul_first_signature(&mut sig2);
480
- assert!(!signature_verify_strict_t(&sig2, &upk, copy obj2), 7);
481
- }
482
- }