@aptos-labs/ts-sdk 3.1.0 → 3.1.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 (468) hide show
  1. package/dist/common/chunk-6MMUUJHX.js.map +1 -1
  2. package/dist/common/cli/index.js.map +1 -1
  3. package/dist/common/index.js +13 -13
  4. package/dist/common/index.js.map +1 -1
  5. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  6. package/dist/esm/account/AbstractedAccount.mjs +1 -1
  7. package/dist/esm/account/Account.mjs +1 -1
  8. package/dist/esm/account/AccountUtils.mjs +1 -1
  9. package/dist/esm/account/DerivableAbstractedAccount.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.mjs +1 -1
  13. package/dist/esm/account/KeylessAccount.mjs +1 -1
  14. package/dist/esm/account/MultiEd25519Account.mjs +1 -1
  15. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  16. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  17. package/dist/esm/account/index.mjs +1 -1
  18. package/dist/esm/account/utils.mjs +1 -1
  19. package/dist/esm/api/account/abstraction.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.mjs +1 -1
  23. package/dist/esm/api/coin.mjs +1 -1
  24. package/dist/esm/api/digitalAsset.mjs +1 -1
  25. package/dist/esm/api/event.mjs +1 -1
  26. package/dist/esm/api/faucet.mjs +1 -1
  27. package/dist/esm/api/fungibleAsset.mjs +1 -1
  28. package/dist/esm/api/general.mjs +1 -1
  29. package/dist/esm/api/index.mjs +1 -1
  30. package/dist/esm/api/keyless.mjs +1 -1
  31. package/dist/esm/api/object.mjs +1 -1
  32. package/dist/esm/api/staking.mjs +1 -1
  33. package/dist/esm/api/table.mjs +1 -1
  34. package/dist/esm/api/transaction.mjs +1 -1
  35. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  36. package/dist/esm/api/transactionSubmission/helpers.d.mts +22 -9
  37. package/dist/esm/api/transactionSubmission/helpers.mjs +1 -1
  38. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  39. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  40. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  41. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  42. package/dist/esm/api/utils.mjs +1 -1
  43. package/dist/esm/bcs/index.mjs +1 -1
  44. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  45. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  46. package/dist/esm/{chunk-MML57K5H.mjs → chunk-2PF7UFKU.mjs} +2 -2
  47. package/dist/esm/chunk-75NVN2CG.mjs +2 -0
  48. package/dist/esm/{chunk-HUWKPKPQ.mjs.map → chunk-75NVN2CG.mjs.map} +1 -1
  49. package/dist/esm/{chunk-SLWIGOQL.mjs → chunk-JL6RR7ML.mjs} +2 -2
  50. package/dist/esm/{chunk-ACNHLCQQ.mjs → chunk-L3GEIX2R.mjs} +5 -5
  51. package/dist/esm/{chunk-ACNHLCQQ.mjs.map → chunk-L3GEIX2R.mjs.map} +1 -1
  52. package/dist/esm/{chunk-U3GMNXO4.mjs → chunk-LIS2GDBI.mjs} +2 -2
  53. package/dist/esm/{chunk-TYYVB2A6.mjs → chunk-LJEERFEH.mjs} +2 -2
  54. package/dist/esm/{chunk-XZ75T7Q7.mjs → chunk-O7WBNU4J.mjs} +2 -2
  55. package/dist/esm/{chunk-4COLMDT3.mjs → chunk-PXQPKCDD.mjs} +2 -2
  56. package/dist/esm/{chunk-2BOHKN33.mjs → chunk-Q4W3WJ2U.mjs} +2 -2
  57. package/dist/esm/chunk-QREVMGQZ.mjs +2 -0
  58. package/dist/esm/chunk-QREVMGQZ.mjs.map +1 -0
  59. package/dist/esm/{chunk-Z5URUE4U.mjs → chunk-S335GK43.mjs} +2 -2
  60. package/dist/esm/{chunk-MNDTFHDB.mjs → chunk-SZE4RT4B.mjs} +2 -2
  61. package/dist/esm/{chunk-FYYEPFML.mjs → chunk-V74WPKSY.mjs} +2 -2
  62. package/dist/esm/{chunk-5URUYE6H.mjs → chunk-VW26RFJ7.mjs} +2 -2
  63. package/dist/esm/cli/index.mjs +1 -1
  64. package/dist/esm/cli/localNode.mjs +1 -1
  65. package/dist/esm/client/core.mjs +1 -1
  66. package/dist/esm/client/get.mjs +1 -1
  67. package/dist/esm/client/index.mjs +1 -1
  68. package/dist/esm/client/post.mjs +1 -1
  69. package/dist/esm/core/account/index.mjs +1 -1
  70. package/dist/esm/core/account/utils/address.mjs +1 -1
  71. package/dist/esm/core/account/utils/index.mjs +1 -1
  72. package/dist/esm/core/accountAddress.mjs +1 -1
  73. package/dist/esm/core/authenticationKey.mjs +1 -1
  74. package/dist/esm/core/crypto/abstraction.mjs +1 -1
  75. package/dist/esm/core/crypto/deserializationUtils.mjs +1 -1
  76. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  77. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  78. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  79. package/dist/esm/core/crypto/index.mjs +1 -1
  80. package/dist/esm/core/crypto/keyless.mjs +1 -1
  81. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  82. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  83. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  84. package/dist/esm/core/crypto/proof.mjs +1 -1
  85. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  86. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  87. package/dist/esm/core/crypto/signature.mjs +1 -1
  88. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  89. package/dist/esm/core/index.mjs +1 -1
  90. package/dist/esm/errors/index.mjs +1 -1
  91. package/dist/esm/index.mjs +1 -1
  92. package/dist/esm/internal/abstraction.mjs +1 -1
  93. package/dist/esm/internal/account.mjs +1 -1
  94. package/dist/esm/internal/ans.mjs +1 -1
  95. package/dist/esm/internal/coin.mjs +1 -1
  96. package/dist/esm/internal/digitalAsset.mjs +1 -1
  97. package/dist/esm/internal/event.mjs +1 -1
  98. package/dist/esm/internal/faucet.mjs +1 -1
  99. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  100. package/dist/esm/internal/general.mjs +1 -1
  101. package/dist/esm/internal/keyless.mjs +1 -1
  102. package/dist/esm/internal/object.mjs +1 -1
  103. package/dist/esm/internal/staking.mjs +1 -1
  104. package/dist/esm/internal/table.mjs +1 -1
  105. package/dist/esm/internal/transaction.mjs +1 -1
  106. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  107. package/dist/esm/internal/utils/index.mjs +1 -1
  108. package/dist/esm/internal/utils/utils.mjs +1 -1
  109. package/dist/esm/internal/view.mjs +1 -1
  110. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  111. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  112. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  113. package/dist/esm/transactions/index.mjs +1 -1
  114. package/dist/esm/transactions/instances/index.mjs +1 -1
  115. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  116. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  117. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  118. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  119. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  120. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  121. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  122. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  123. package/dist/esm/transactions/management/index.mjs +1 -1
  124. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  125. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  126. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  127. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  128. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  129. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  130. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  131. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  132. package/dist/esm/types/index.mjs +1 -1
  133. package/dist/esm/utils/helpers.mjs +1 -1
  134. package/dist/esm/utils/index.mjs +1 -1
  135. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  136. package/dist/esm/version.d.mts +1 -1
  137. package/dist/esm/version.mjs +1 -1
  138. package/package.json +18 -19
  139. package/src/api/transactionSubmission/helpers.ts +26 -20
  140. package/src/api/transactionSubmission/submit.ts +3 -3
  141. package/src/version.ts +1 -1
  142. package/dist/esm/chunk-HUWKPKPQ.mjs +0 -2
  143. package/dist/esm/chunk-W4BSN6SK.mjs +0 -2
  144. package/dist/esm/chunk-W4BSN6SK.mjs.map +0 -1
  145. package/src/internal/move/jwks/build/jwk/BuildInfo.yaml +0 -56
  146. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/account.mv +0 -0
  147. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator.mv +0 -0
  148. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_factory.mv +0 -0
  149. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_v2.mv +0 -0
  150. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_account.mv +0 -0
  151. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_coin.mv +0 -0
  152. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_governance.mv +0 -0
  153. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/block.mv +0 -0
  154. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_id.mv +0 -0
  155. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_status.mv +0 -0
  156. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/code.mv +0 -0
  157. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/coin.mv +0 -0
  158. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/config_buffer.mv +0 -0
  159. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/consensus_config.mv +0 -0
  160. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/create_signer.mv +0 -0
  161. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/delegation_pool.mv +0 -0
  162. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dispatchable_fungible_asset.mv +0 -0
  163. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dkg.mv +0 -0
  164. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/event.mv +0 -0
  165. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/execution_config.mv +0 -0
  166. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/function_info.mv +0 -0
  167. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/fungible_asset.mv +0 -0
  168. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/gas_schedule.mv +0 -0
  169. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/genesis.mv +0 -0
  170. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/governance_proposal.mv +0 -0
  171. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/guid.mv +0 -0
  172. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwk_consensus_config.mv +0 -0
  173. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwks.mv +0 -0
  174. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/keyless_account.mv +0 -0
  175. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/managed_coin.mv +0 -0
  176. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/multisig_account.mv +0 -0
  177. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object.mv +0 -0
  178. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object_code_deployment.mv +0 -0
  179. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/optional_aggregator.mv +0 -0
  180. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/primary_fungible_store.mv +0 -0
  181. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness.mv +0 -0
  182. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_api_v0_config.mv +0 -0
  183. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config.mv +0 -0
  184. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config_seqnum.mv +0 -0
  185. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration.mv +0 -0
  186. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_state.mv +0 -0
  187. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_with_dkg.mv +0 -0
  188. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/resource_account.mv +0 -0
  189. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/stake.mv +0 -0
  190. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_config.mv +0 -0
  191. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_contract.mv +0 -0
  192. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_proxy.mv +0 -0
  193. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/state_storage.mv +0 -0
  194. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/storage_gas.mv +0 -0
  195. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/system_addresses.mv +0 -0
  196. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/timestamp.mv +0 -0
  197. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_context.mv +0 -0
  198. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_fee.mv +0 -0
  199. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_validation.mv +0 -0
  200. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/util.mv +0 -0
  201. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/validator_consensus_info.mv +0 -0
  202. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/version.mv +0 -0
  203. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/vesting.mv +0 -0
  204. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/voting.mv +0 -0
  205. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/any.mv +0 -0
  206. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/aptos_hash.mv +0 -0
  207. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/big_vector.mv +0 -0
  208. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381.mv +0 -0
  209. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381_algebra.mv +0 -0
  210. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bn254_algebra.mv +0 -0
  211. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/capability.mv +0 -0
  212. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/comparator.mv +0 -0
  213. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/copyable_any.mv +0 -0
  214. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/crypto_algebra.mv +0 -0
  215. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/debug.mv +0 -0
  216. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ed25519.mv +0 -0
  217. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/fixed_point64.mv +0 -0
  218. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/from_bcs.mv +0 -0
  219. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math128.mv +0 -0
  220. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math64.mv +0 -0
  221. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed.mv +0 -0
  222. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed64.mv +0 -0
  223. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/multi_ed25519.mv +0 -0
  224. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64.mv +0 -0
  225. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64_unbound.mv +0 -0
  226. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255.mv +0 -0
  227. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_bulletproofs.mv +0 -0
  228. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_elgamal.mv +0 -0
  229. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_pedersen.mv +0 -0
  230. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/secp256k1.mv +0 -0
  231. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/simple_map.mv +0 -0
  232. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_table.mv +0 -0
  233. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_vector.mv +0 -0
  234. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/string_utils.mv +0 -0
  235. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table.mv +0 -0
  236. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table_with_length.mv +0 -0
  237. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/type_info.mv +0 -0
  238. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/acl.mv +0 -0
  239. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bcs.mv +0 -0
  240. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bit_vector.mv +0 -0
  241. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/error.mv +0 -0
  242. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/features.mv +0 -0
  243. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/fixed_point32.mv +0 -0
  244. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/hash.mv +0 -0
  245. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/option.mv +0 -0
  246. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/signer.mv +0 -0
  247. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/string.mv +0 -0
  248. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/vector.mv +0 -0
  249. package/src/internal/move/jwks/build/jwk/bytecode_scripts/main.mv +0 -0
  250. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/account.mvsm +0 -0
  251. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator.mvsm +0 -0
  252. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_factory.mvsm +0 -0
  253. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_v2.mvsm +0 -0
  254. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_account.mvsm +0 -0
  255. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_coin.mvsm +0 -0
  256. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_governance.mvsm +0 -0
  257. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/block.mvsm +0 -0
  258. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_id.mvsm +0 -0
  259. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_status.mvsm +0 -0
  260. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/code.mvsm +0 -0
  261. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/coin.mvsm +0 -0
  262. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/config_buffer.mvsm +0 -0
  263. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/consensus_config.mvsm +0 -0
  264. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/create_signer.mvsm +0 -0
  265. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/delegation_pool.mvsm +0 -0
  266. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dispatchable_fungible_asset.mvsm +0 -0
  267. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dkg.mvsm +0 -0
  268. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/event.mvsm +0 -0
  269. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/execution_config.mvsm +0 -0
  270. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/function_info.mvsm +0 -0
  271. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/fungible_asset.mvsm +0 -0
  272. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/gas_schedule.mvsm +0 -0
  273. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/genesis.mvsm +0 -0
  274. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/governance_proposal.mvsm +0 -0
  275. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/guid.mvsm +0 -0
  276. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwk_consensus_config.mvsm +0 -0
  277. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwks.mvsm +0 -0
  278. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/keyless_account.mvsm +0 -0
  279. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/managed_coin.mvsm +0 -0
  280. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/multisig_account.mvsm +0 -0
  281. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object.mvsm +0 -0
  282. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object_code_deployment.mvsm +0 -0
  283. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/optional_aggregator.mvsm +0 -0
  284. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/primary_fungible_store.mvsm +0 -0
  285. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness.mvsm +0 -0
  286. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_api_v0_config.mvsm +0 -0
  287. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config.mvsm +0 -0
  288. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config_seqnum.mvsm +0 -0
  289. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration.mvsm +0 -0
  290. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_state.mvsm +0 -0
  291. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_with_dkg.mvsm +0 -0
  292. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/resource_account.mvsm +0 -0
  293. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/stake.mvsm +0 -0
  294. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_config.mvsm +0 -0
  295. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_contract.mvsm +0 -0
  296. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_proxy.mvsm +0 -0
  297. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/state_storage.mvsm +0 -0
  298. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/storage_gas.mvsm +0 -0
  299. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/system_addresses.mvsm +0 -0
  300. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/timestamp.mvsm +0 -0
  301. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_context.mvsm +0 -0
  302. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_fee.mvsm +0 -0
  303. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_validation.mvsm +0 -0
  304. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/util.mvsm +0 -0
  305. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/validator_consensus_info.mvsm +0 -0
  306. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/version.mvsm +0 -0
  307. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/vesting.mvsm +0 -0
  308. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/voting.mvsm +0 -0
  309. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/any.mvsm +0 -0
  310. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/aptos_hash.mvsm +0 -0
  311. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/big_vector.mvsm +0 -0
  312. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381.mvsm +0 -0
  313. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381_algebra.mvsm +0 -0
  314. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bn254_algebra.mvsm +0 -0
  315. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/capability.mvsm +0 -0
  316. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/comparator.mvsm +0 -0
  317. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/copyable_any.mvsm +0 -0
  318. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/crypto_algebra.mvsm +0 -0
  319. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/debug.mvsm +0 -0
  320. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ed25519.mvsm +0 -0
  321. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/fixed_point64.mvsm +0 -0
  322. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/from_bcs.mvsm +0 -0
  323. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math128.mvsm +0 -0
  324. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math64.mvsm +0 -0
  325. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed.mvsm +0 -0
  326. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed64.mvsm +0 -0
  327. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/multi_ed25519.mvsm +0 -0
  328. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64.mvsm +0 -0
  329. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64_unbound.mvsm +0 -0
  330. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255.mvsm +0 -0
  331. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_bulletproofs.mvsm +0 -0
  332. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_elgamal.mvsm +0 -0
  333. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_pedersen.mvsm +0 -0
  334. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/secp256k1.mvsm +0 -0
  335. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/simple_map.mvsm +0 -0
  336. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_table.mvsm +0 -0
  337. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_vector.mvsm +0 -0
  338. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/string_utils.mvsm +0 -0
  339. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table.mvsm +0 -0
  340. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table_with_length.mvsm +0 -0
  341. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/type_info.mvsm +0 -0
  342. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/acl.mvsm +0 -0
  343. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bcs.mvsm +0 -0
  344. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bit_vector.mvsm +0 -0
  345. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/error.mvsm +0 -0
  346. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/features.mvsm +0 -0
  347. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/fixed_point32.mvsm +0 -0
  348. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/hash.mvsm +0 -0
  349. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/option.mvsm +0 -0
  350. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/signer.mvsm +0 -0
  351. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/string.mvsm +0 -0
  352. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/vector.mvsm +0 -0
  353. package/src/internal/move/jwks/build/jwk/source_maps/main.mvsm +0 -0
  354. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/account.move +0 -1533
  355. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator.move +0 -48
  356. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_factory.move +0 -66
  357. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_v2.move +0 -280
  358. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_account.move +0 -443
  359. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_coin.move +0 -204
  360. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_governance.move +0 -1387
  361. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/block.move +0 -394
  362. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_id.move +0 -41
  363. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_status.move +0 -48
  364. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/code.move +0 -367
  365. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/coin.move +0 -2214
  366. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/config_buffer.move +0 -101
  367. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/consensus_config.move +0 -77
  368. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/create_signer.move +0 -21
  369. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/delegation_pool.move +0 -5568
  370. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dispatchable_fungible_asset.move +0 -228
  371. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dkg.move +0 -121
  372. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/event.move +0 -92
  373. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/execution_config.move +0 -66
  374. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/function_info.move +0 -100
  375. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/fungible_asset.move +0 -1566
  376. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/gas_schedule.move +0 -176
  377. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/genesis.move +0 -550
  378. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/governance_proposal.move +0 -23
  379. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/guid.move +0 -68
  380. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwk_consensus_config.move +0 -148
  381. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwks.move +0 -817
  382. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/keyless_account.move +0 -312
  383. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/managed_coin.move +0 -205
  384. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/multisig_account.move +0 -2477
  385. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object.move +0 -1073
  386. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object_code_deployment.move +0 -147
  387. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/optional_aggregator.move +0 -295
  388. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/primary_fungible_store.move +0 -405
  389. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness.move +0 -574
  390. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_api_v0_config.move +0 -57
  391. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config.move +0 -153
  392. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config_seqnum.move +0 -49
  393. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration.move +0 -237
  394. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_state.move +0 -132
  395. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_with_dkg.move +0 -69
  396. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/resource_account.move +0 -267
  397. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/stake.move +0 -3286
  398. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_config.move +0 -686
  399. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_contract.move +0 -1618
  400. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_proxy.move +0 -228
  401. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/state_storage.move +0 -90
  402. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/storage_gas.move +0 -622
  403. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/system_addresses.move +0 -82
  404. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/timestamp.move +0 -88
  405. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_context.move +0 -262
  406. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_fee.move +0 -457
  407. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_validation.move +0 -501
  408. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/util.move +0 -16
  409. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/validator_consensus_info.move +0 -42
  410. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/version.move +0 -115
  411. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/vesting.move +0 -2183
  412. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/voting.move +0 -1279
  413. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/any.move +0 -57
  414. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/aptos_hash.move +0 -253
  415. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/big_vector.move +0 -469
  416. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381.move +0 -985
  417. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381_algebra.move +0 -802
  418. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bn254_algebra.move +0 -855
  419. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/capability.move +0 -193
  420. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/comparator.move +0 -173
  421. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/copyable_any.move +0 -45
  422. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/crypto_algebra.move +0 -351
  423. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/debug.move +0 -278
  424. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ed25519.move +0 -262
  425. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/fixed_point64.move +0 -447
  426. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/from_bcs.move +0 -91
  427. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math128.move +0 -381
  428. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math64.move +0 -336
  429. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed.move +0 -139
  430. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed64.move +0 -142
  431. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/multi_ed25519.move +0 -482
  432. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64.move +0 -571
  433. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64_unbound.move +0 -270
  434. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255.move +0 -1310
  435. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_bulletproofs.move +0 -253
  436. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_elgamal.move +0 -234
  437. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_pedersen.move +0 -158
  438. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/secp256k1.move +0 -114
  439. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/simple_map.move +0 -319
  440. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_table.move +0 -769
  441. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_vector.move +0 -766
  442. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/string_utils.move +0 -148
  443. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table.move +0 -152
  444. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table_with_length.move +0 -141
  445. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/type_info.move +0 -351
  446. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/acl.move +0 -46
  447. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bcs.move +0 -27
  448. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bit_vector.move +0 -239
  449. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/error.move +0 -88
  450. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/features.move +0 -780
  451. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/fixed_point32.move +0 -295
  452. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/hash.move +0 -8
  453. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/option.move +0 -356
  454. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/signer.move +0 -21
  455. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/string.move +0 -93
  456. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/vector.move +0 -669
  457. package/src/internal/move/jwks/build/jwk/sources/main.move +0 -20
  458. /package/dist/esm/{chunk-MML57K5H.mjs.map → chunk-2PF7UFKU.mjs.map} +0 -0
  459. /package/dist/esm/{chunk-SLWIGOQL.mjs.map → chunk-JL6RR7ML.mjs.map} +0 -0
  460. /package/dist/esm/{chunk-U3GMNXO4.mjs.map → chunk-LIS2GDBI.mjs.map} +0 -0
  461. /package/dist/esm/{chunk-TYYVB2A6.mjs.map → chunk-LJEERFEH.mjs.map} +0 -0
  462. /package/dist/esm/{chunk-XZ75T7Q7.mjs.map → chunk-O7WBNU4J.mjs.map} +0 -0
  463. /package/dist/esm/{chunk-4COLMDT3.mjs.map → chunk-PXQPKCDD.mjs.map} +0 -0
  464. /package/dist/esm/{chunk-2BOHKN33.mjs.map → chunk-Q4W3WJ2U.mjs.map} +0 -0
  465. /package/dist/esm/{chunk-Z5URUE4U.mjs.map → chunk-S335GK43.mjs.map} +0 -0
  466. /package/dist/esm/{chunk-MNDTFHDB.mjs.map → chunk-SZE4RT4B.mjs.map} +0 -0
  467. /package/dist/esm/{chunk-FYYEPFML.mjs.map → chunk-V74WPKSY.mjs.map} +0 -0
  468. /package/dist/esm/{chunk-5URUYE6H.mjs.map → chunk-VW26RFJ7.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
- }