@aptos-labs/ts-sdk 1.33.1 → 1.33.2-sc.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.
- package/README.md +11 -6
- package/dist/common/{accountAddress-BHsGaOsa.d.ts → accountAddress-Cf1amU98.d.ts} +279 -0
- package/dist/common/{chunk-F43XVDYJ.js → chunk-IHUCZKG2.js} +1 -1
- package/dist/common/chunk-IHUCZKG2.js.map +1 -0
- package/dist/common/cli/index.d.ts +47 -9
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +2126 -306
- package/dist/common/index.js +33 -33
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-B3xHXAQe.d.mts → Ed25519Account-D4j3_WIS.d.mts} +122 -12
- package/dist/esm/account/AbstractKeylessAccount.d.mts +82 -7
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +6 -4
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +65 -0
- package/dist/esm/account/AccountUtils.mjs +2 -0
- package/dist/esm/account/Ed25519Account.d.mts +4 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +30 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +26 -5
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +31 -5
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +41 -5
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +5 -3
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +5 -2
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +19 -0
- package/dist/esm/account/utils.mjs +2 -0
- package/dist/esm/api/account.d.mts +26 -4
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +19 -2
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +7 -2
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +17 -0
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +6 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +30 -2
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +7 -0
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +12 -2
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +12 -2
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +15 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +5 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +9 -2
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +4 -0
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +6 -0
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +6 -0
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +25 -6
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +72 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/helpers.d.mts +2 -0
- package/dist/esm/api/transactionSubmission/helpers.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +9 -2
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +8 -2
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +7 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +7 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +2 -0
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/consts.d.mts +1 -0
- package/dist/esm/bcs/deserializer.d.mts +43 -1
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.d.mts +1 -0
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +11 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +13 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +25 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +57 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +61 -0
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-4DP3PEYK.mjs → chunk-32WLD3F3.mjs} +2 -2
- package/dist/esm/chunk-32WLD3F3.mjs.map +1 -0
- package/dist/esm/{chunk-FZDEGDUY.mjs → chunk-35DKMW7Q.mjs} +1 -1
- package/dist/esm/chunk-35DKMW7Q.mjs.map +1 -0
- package/dist/esm/chunk-3OLFJ65O.mjs +2 -0
- package/dist/esm/chunk-3OLFJ65O.mjs.map +1 -0
- package/dist/esm/chunk-3XH3NNSR.mjs +2 -0
- package/dist/esm/chunk-3XH3NNSR.mjs.map +1 -0
- package/dist/esm/chunk-4RXKALLC.mjs +2 -0
- package/dist/esm/chunk-4RXKALLC.mjs.map +1 -0
- package/dist/esm/{chunk-IBZKCBN5.mjs → chunk-4UYVRG5Z.mjs} +2 -2
- package/dist/esm/chunk-4UYVRG5Z.mjs.map +1 -0
- package/dist/esm/chunk-4YLUM62M.mjs +2 -0
- package/dist/esm/chunk-4YLUM62M.mjs.map +1 -0
- package/dist/esm/{chunk-JMPHD4BP.mjs → chunk-4ZJJINCW.mjs} +2 -2
- package/dist/esm/chunk-4ZJJINCW.mjs.map +1 -0
- package/dist/esm/{chunk-ZXVN3HXB.mjs → chunk-66AQ2MJ6.mjs} +2 -2
- package/dist/esm/chunk-66AQ2MJ6.mjs.map +1 -0
- package/dist/esm/{chunk-4XB3BB5Z.mjs → chunk-67BUAZ6O.mjs} +2 -2
- package/dist/esm/chunk-67BUAZ6O.mjs.map +1 -0
- package/dist/esm/{chunk-333QBK32.mjs → chunk-67ZANQ3R.mjs} +2 -2
- package/dist/esm/chunk-67ZANQ3R.mjs.map +1 -0
- package/dist/esm/{chunk-UFPYCROT.mjs → chunk-6IIAGMDR.mjs} +2 -2
- package/dist/esm/chunk-6IIAGMDR.mjs.map +1 -0
- package/dist/esm/{chunk-F2WY2DEY.mjs → chunk-6IPM5P4L.mjs} +2 -2
- package/dist/esm/chunk-6IPM5P4L.mjs.map +1 -0
- package/dist/esm/{chunk-IK2NYNKG.mjs → chunk-6XHBRRS6.mjs} +2 -2
- package/dist/esm/chunk-6XHBRRS6.mjs.map +1 -0
- package/dist/esm/chunk-7HLNV3QL.mjs +2 -0
- package/dist/esm/chunk-7HLNV3QL.mjs.map +1 -0
- package/dist/esm/{chunk-2KSMV5KD.mjs → chunk-A3NEASNH.mjs} +2 -2
- package/dist/esm/chunk-A3NEASNH.mjs.map +1 -0
- package/dist/esm/{chunk-2CJC43CV.mjs → chunk-A5L76YP7.mjs} +1 -1
- package/dist/esm/chunk-A5L76YP7.mjs.map +1 -0
- package/dist/esm/{chunk-5PVZ4N42.mjs → chunk-AD3A7DTH.mjs} +2 -2
- package/dist/esm/chunk-AD3A7DTH.mjs.map +1 -0
- package/dist/esm/chunk-AIABPCUF.mjs +2 -0
- package/dist/esm/{chunk-YD2BMHH7.mjs.map → chunk-AIABPCUF.mjs.map} +1 -1
- package/dist/esm/{chunk-AOROYJ74.mjs → chunk-AZWVCBK2.mjs} +2 -2
- package/dist/esm/chunk-AZWVCBK2.mjs.map +1 -0
- package/dist/esm/chunk-BFIXIXHO.mjs +2 -0
- package/dist/esm/chunk-BFIXIXHO.mjs.map +1 -0
- package/dist/esm/{chunk-6ZOVTYLJ.mjs → chunk-BI3BTSUB.mjs} +2 -2
- package/dist/esm/chunk-BI3BTSUB.mjs.map +1 -0
- package/dist/esm/{chunk-OIOGOW6I.mjs → chunk-C3Q23D22.mjs} +1 -1
- package/dist/esm/chunk-C3Q23D22.mjs.map +1 -0
- package/dist/esm/{chunk-EGV3HFE3.mjs → chunk-CDYLZDD2.mjs} +2 -2
- package/dist/esm/chunk-CDYLZDD2.mjs.map +1 -0
- package/dist/esm/{chunk-LA5HJILW.mjs → chunk-CGTHWGSJ.mjs} +2 -2
- package/dist/esm/chunk-CGTHWGSJ.mjs.map +1 -0
- package/dist/esm/{chunk-VWGB5BHW.mjs → chunk-CNCRJ56P.mjs} +2 -2
- package/dist/esm/chunk-CNCRJ56P.mjs.map +1 -0
- package/dist/esm/{chunk-VQZMI3EZ.mjs → chunk-CWKNJZB6.mjs} +2 -2
- package/dist/esm/chunk-CWKNJZB6.mjs.map +1 -0
- package/dist/esm/chunk-CWRANLXZ.mjs +2 -0
- package/dist/esm/chunk-CWRANLXZ.mjs.map +1 -0
- package/dist/esm/{chunk-SK3LIS4Z.mjs → chunk-CYMVZJHC.mjs} +2 -2
- package/dist/esm/chunk-CYMVZJHC.mjs.map +1 -0
- package/dist/esm/{chunk-V4FKFCBL.mjs → chunk-DAFSKSZ5.mjs} +1 -1
- package/dist/esm/chunk-DAFSKSZ5.mjs.map +1 -0
- package/dist/esm/chunk-DPW6ELCQ.mjs +2 -0
- package/dist/esm/chunk-DPW6ELCQ.mjs.map +1 -0
- package/dist/esm/{chunk-YEWZAR76.mjs → chunk-DW3ETAZB.mjs} +2 -2
- package/dist/esm/chunk-DW3ETAZB.mjs.map +1 -0
- package/dist/esm/{chunk-AJ5JHBAE.mjs → chunk-EBMEXURY.mjs} +2 -2
- package/dist/esm/chunk-EBMEXURY.mjs.map +1 -0
- package/dist/esm/{chunk-G4KAHJXB.mjs → chunk-EBS4BKER.mjs} +2 -2
- package/dist/esm/chunk-EBS4BKER.mjs.map +1 -0
- package/dist/esm/{chunk-S5SQJRAV.mjs → chunk-ECZYQTNN.mjs} +2 -2
- package/dist/esm/chunk-ECZYQTNN.mjs.map +1 -0
- package/dist/esm/chunk-EMURYYVO.mjs +2 -0
- package/dist/esm/chunk-EMURYYVO.mjs.map +1 -0
- package/dist/esm/chunk-F2ZTBAJJ.mjs +2 -0
- package/dist/esm/chunk-F2ZTBAJJ.mjs.map +1 -0
- package/dist/esm/chunk-FC2IYWI7.mjs +2 -0
- package/dist/esm/chunk-FC2IYWI7.mjs.map +1 -0
- package/dist/esm/chunk-FKJ3GCBI.mjs +2 -0
- package/dist/esm/chunk-FKJ3GCBI.mjs.map +1 -0
- package/dist/esm/{chunk-AKIO3OIT.mjs → chunk-FN4C3CKC.mjs} +2 -2
- package/dist/esm/chunk-FN4C3CKC.mjs.map +1 -0
- package/dist/esm/{chunk-2ESU5N3V.mjs → chunk-FNXO3URE.mjs} +2 -2
- package/dist/esm/chunk-FNXO3URE.mjs.map +1 -0
- package/dist/esm/{chunk-7V35JAAF.mjs → chunk-FQECACH3.mjs} +2 -2
- package/dist/esm/chunk-FQECACH3.mjs.map +1 -0
- package/dist/esm/{chunk-2QGJDHME.mjs → chunk-FQXEX2HN.mjs} +2 -2
- package/dist/esm/chunk-FQXEX2HN.mjs.map +1 -0
- package/dist/esm/{chunk-T6ADNZE5.mjs → chunk-G4O6FXCF.mjs} +2 -2
- package/dist/esm/chunk-G4O6FXCF.mjs.map +1 -0
- package/dist/esm/{chunk-7N7FEBZA.mjs → chunk-G5ZWH5T3.mjs} +2 -2
- package/dist/esm/chunk-G5ZWH5T3.mjs.map +1 -0
- package/dist/esm/{chunk-UGIHQFID.mjs → chunk-GL4OJVYH.mjs} +2 -2
- package/dist/esm/chunk-GL4OJVYH.mjs.map +1 -0
- package/dist/esm/{chunk-GMKKHGXK.mjs → chunk-GOXRBEIJ.mjs} +1 -1
- package/dist/esm/chunk-GOXRBEIJ.mjs.map +1 -0
- package/dist/esm/chunk-GP4TLDVZ.mjs +1 -0
- package/dist/esm/{chunk-33CVOPIN.mjs → chunk-H3XZ3FZY.mjs} +2 -2
- package/dist/esm/{chunk-33CVOPIN.mjs.map → chunk-H3XZ3FZY.mjs.map} +1 -1
- package/dist/esm/{chunk-7T26VA2W.mjs → chunk-I7JGKVOC.mjs} +2 -2
- package/dist/esm/chunk-I7JGKVOC.mjs.map +1 -0
- package/dist/esm/{chunk-6Q2O5G3J.mjs → chunk-IF4UU2MT.mjs} +1 -1
- package/dist/esm/chunk-IF4UU2MT.mjs.map +1 -0
- package/dist/esm/{chunk-LPVGVTWT.mjs → chunk-IJ2QKE4W.mjs} +2 -2
- package/dist/esm/chunk-IJ2QKE4W.mjs.map +1 -0
- package/dist/esm/chunk-JJM6ELMS.mjs +2 -0
- package/dist/esm/chunk-JJM6ELMS.mjs.map +1 -0
- package/dist/esm/{chunk-SNYYEVJA.mjs → chunk-K2CSACQY.mjs} +2 -2
- package/dist/esm/chunk-K2CSACQY.mjs.map +1 -0
- package/dist/esm/{chunk-NZ7M6NG2.mjs → chunk-KFCLSJC3.mjs} +2 -2
- package/dist/esm/chunk-KFGXOZ77.mjs +2 -0
- package/dist/esm/chunk-KFGXOZ77.mjs.map +1 -0
- package/dist/esm/{chunk-PXMNAP2Q.mjs → chunk-KG23XFU2.mjs} +2 -2
- package/dist/esm/chunk-KG23XFU2.mjs.map +1 -0
- package/dist/esm/chunk-KNTAED2Z.mjs +2 -0
- package/dist/esm/chunk-KNTAED2Z.mjs.map +1 -0
- package/dist/esm/{chunk-GVNK3UMT.mjs → chunk-KPLWOVKG.mjs} +2 -2
- package/dist/esm/chunk-KPLWOVKG.mjs.map +1 -0
- package/dist/esm/{chunk-BRV3RLKW.mjs → chunk-MT2RJ7H3.mjs} +2 -2
- package/dist/esm/chunk-MT2RJ7H3.mjs.map +1 -0
- package/dist/esm/{chunk-ACVIE7IE.mjs → chunk-N4DM5FYH.mjs} +2 -2
- package/dist/esm/chunk-N4DM5FYH.mjs.map +1 -0
- package/dist/esm/{chunk-ZMMLM6ZJ.mjs → chunk-N4VVDQA5.mjs} +2 -2
- package/dist/esm/chunk-N4VVDQA5.mjs.map +1 -0
- package/dist/esm/{chunk-LGTOOAQI.mjs → chunk-N6YTF76Q.mjs} +2 -2
- package/dist/esm/chunk-N6YTF76Q.mjs.map +1 -0
- package/dist/esm/{chunk-HMMNQFVM.mjs → chunk-NDUIXMIA.mjs} +2 -2
- package/dist/esm/chunk-NDUIXMIA.mjs.map +1 -0
- package/dist/esm/{chunk-U3T4ZT7B.mjs → chunk-NW2WUKWV.mjs} +2 -2
- package/dist/esm/chunk-NW2WUKWV.mjs.map +1 -0
- package/dist/esm/{chunk-XZN344G4.mjs → chunk-ODEDSSQL.mjs} +2 -2
- package/dist/esm/chunk-ODEDSSQL.mjs.map +1 -0
- package/dist/esm/{chunk-42H7WETG.mjs → chunk-ORMOQWWH.mjs} +2 -2
- package/dist/esm/chunk-ORMOQWWH.mjs.map +1 -0
- package/dist/esm/{chunk-4MTSP4S2.mjs → chunk-P4VF7BN4.mjs} +2 -2
- package/dist/esm/chunk-P4VF7BN4.mjs.map +1 -0
- package/dist/esm/chunk-P54RNN4V.mjs +2 -0
- package/dist/esm/chunk-P54RNN4V.mjs.map +1 -0
- package/dist/esm/{chunk-XOLU6UP3.mjs → chunk-PHJRCZQ3.mjs} +2 -2
- package/dist/esm/chunk-PHJRCZQ3.mjs.map +1 -0
- package/dist/esm/{chunk-VIZHWYI5.mjs → chunk-PNDCGNVH.mjs} +2 -2
- package/dist/esm/chunk-PNDCGNVH.mjs.map +1 -0
- package/dist/esm/{chunk-5LGKGWLX.mjs → chunk-PTS3BTOU.mjs} +2 -2
- package/dist/esm/chunk-PTS3BTOU.mjs.map +1 -0
- package/dist/esm/{chunk-NK67FECB.mjs → chunk-PUNTBVRJ.mjs} +2 -2
- package/dist/esm/chunk-PUNTBVRJ.mjs.map +1 -0
- package/dist/esm/{chunk-DBTKJMLV.mjs → chunk-Q2C6ZY5N.mjs} +2 -2
- package/dist/esm/chunk-Q2C6ZY5N.mjs.map +1 -0
- package/dist/esm/{chunk-UJSTWN32.mjs → chunk-Q3VS6AEN.mjs} +2 -2
- package/dist/esm/{chunk-UJSTWN32.mjs.map → chunk-Q3VS6AEN.mjs.map} +1 -1
- package/dist/esm/{chunk-JNO7KPMG.mjs → chunk-Q4C4U6I4.mjs} +2 -2
- package/dist/esm/chunk-Q4C4U6I4.mjs.map +1 -0
- package/dist/esm/{chunk-F45G3GP3.mjs → chunk-QHEKBHNU.mjs} +2 -2
- package/dist/esm/chunk-R7QOPBWA.mjs +2 -0
- package/dist/esm/chunk-R7QOPBWA.mjs.map +1 -0
- package/dist/esm/{chunk-J7PJSK3J.mjs → chunk-RJ7F4JDV.mjs} +1 -1
- package/dist/esm/chunk-RJ7F4JDV.mjs.map +1 -0
- package/dist/esm/{chunk-BUAHUVAD.mjs → chunk-ROT6S6BM.mjs} +2 -2
- package/dist/esm/chunk-ROT6S6BM.mjs.map +1 -0
- package/dist/esm/{chunk-RCA73RVB.mjs → chunk-SOLQ5VON.mjs} +2 -2
- package/dist/esm/chunk-SOLQ5VON.mjs.map +1 -0
- package/dist/esm/{chunk-L4SWQLAJ.mjs → chunk-SQR3AIY7.mjs} +2 -2
- package/dist/esm/chunk-SQR3AIY7.mjs.map +1 -0
- package/dist/esm/{chunk-SPRNSFUV.mjs → chunk-STY74NUA.mjs} +2 -2
- package/dist/esm/chunk-STY74NUA.mjs.map +1 -0
- package/dist/esm/{chunk-LKKI2KAP.mjs → chunk-SZRZ3HIL.mjs} +2 -2
- package/dist/esm/chunk-SZRZ3HIL.mjs.map +1 -0
- package/dist/esm/{chunk-KCWRCWNT.mjs → chunk-T6NQDM7D.mjs} +2 -2
- package/dist/esm/chunk-T6NQDM7D.mjs.map +1 -0
- package/dist/esm/{chunk-ZMBXHMVQ.mjs → chunk-TOBQ5UE6.mjs} +2 -2
- package/dist/esm/chunk-TOBQ5UE6.mjs.map +1 -0
- package/dist/esm/{chunk-2MN7DW2J.mjs → chunk-UF6SI2QE.mjs} +2 -2
- package/dist/esm/chunk-UF6SI2QE.mjs.map +1 -0
- package/dist/esm/chunk-UIRAXHDH.mjs +1 -0
- package/dist/esm/chunk-UIRAXHDH.mjs.map +1 -0
- package/dist/esm/{chunk-ALNQK276.mjs → chunk-UONSJQUV.mjs} +2 -2
- package/dist/esm/chunk-UONSJQUV.mjs.map +1 -0
- package/dist/esm/{chunk-N62NUAHT.mjs → chunk-UQ7D5CSM.mjs} +2 -2
- package/dist/esm/chunk-UQ7D5CSM.mjs.map +1 -0
- package/dist/esm/{chunk-BAEIZAP7.mjs → chunk-UYONA6PP.mjs} +2 -2
- package/dist/esm/chunk-UYONA6PP.mjs.map +1 -0
- package/dist/esm/{chunk-YJVZFYBX.mjs → chunk-VCIJX6R4.mjs} +2 -2
- package/dist/esm/chunk-VCIJX6R4.mjs.map +1 -0
- package/dist/esm/{chunk-CX6KECGV.mjs → chunk-VVAKGJDN.mjs} +2 -2
- package/dist/esm/chunk-VVAKGJDN.mjs.map +1 -0
- package/dist/esm/chunk-VZELORLW.mjs +2 -0
- package/dist/esm/chunk-VZELORLW.mjs.map +1 -0
- package/dist/esm/{chunk-IHGA5KAD.mjs → chunk-W4BSN6SK.mjs} +1 -1
- package/dist/esm/chunk-W4BSN6SK.mjs.map +1 -0
- package/dist/esm/chunk-WCMW2L3P.mjs +2 -0
- package/dist/esm/chunk-WCMW2L3P.mjs.map +1 -0
- package/dist/esm/{chunk-PMGK5IHB.mjs → chunk-X3SO2LDX.mjs} +2 -2
- package/dist/esm/chunk-X3SO2LDX.mjs.map +1 -0
- package/dist/esm/{chunk-H3C3VTHS.mjs → chunk-XGF7UNEW.mjs} +2 -2
- package/dist/esm/chunk-XGF7UNEW.mjs.map +1 -0
- package/dist/esm/chunk-XHPWHA6B.mjs +2 -0
- package/dist/esm/chunk-XHPWHA6B.mjs.map +1 -0
- package/dist/esm/{chunk-2C27NY4D.mjs → chunk-XIFIACCB.mjs} +2 -2
- package/dist/esm/chunk-XIFIACCB.mjs.map +1 -0
- package/dist/esm/chunk-XJJVJOX5.mjs +2 -0
- package/dist/esm/{chunk-UGTIALNW.mjs.map → chunk-XJJVJOX5.mjs.map} +1 -1
- package/dist/esm/{chunk-OPO5EYF7.mjs → chunk-XKUIMGKU.mjs} +2 -2
- package/dist/esm/chunk-XKUIMGKU.mjs.map +1 -0
- package/dist/esm/{chunk-ZMS3AOEZ.mjs → chunk-XLFX2YQA.mjs} +2 -2
- package/dist/esm/chunk-XLFX2YQA.mjs.map +1 -0
- package/dist/esm/chunk-XTOIL6MB.mjs +2 -0
- package/dist/esm/chunk-XTOIL6MB.mjs.map +1 -0
- package/dist/esm/{chunk-U6OCK6T4.mjs → chunk-Y6QTKAQO.mjs} +2 -2
- package/dist/esm/chunk-Y6QTKAQO.mjs.map +1 -0
- package/dist/esm/{chunk-HBIDHQ2M.mjs → chunk-YOZBVVKL.mjs} +1 -1
- package/dist/esm/chunk-YOZBVVKL.mjs.map +1 -0
- package/dist/esm/{chunk-WFK3XRQX.mjs → chunk-YPGI5HAA.mjs} +2 -2
- package/dist/esm/chunk-YPGI5HAA.mjs.map +1 -0
- package/dist/esm/{chunk-QI7OREBM.mjs → chunk-ZJNPBHEI.mjs} +2 -2
- package/dist/esm/chunk-ZJNPBHEI.mjs.map +1 -0
- package/dist/esm/cli/index.d.mts +1 -0
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.d.mts +20 -8
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +27 -0
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.d.mts +5 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +34 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +2 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +38 -0
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.d.mts +1 -0
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +7 -0
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.d.mts +1 -0
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +47 -0
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +2 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/common.d.mts +14 -0
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +58 -5
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +24 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +14 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/hdKey.d.mts +28 -0
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +3 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +132 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +42 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +39 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/poseidon.d.mts +10 -0
- package/dist/esm/core/crypto/poseidon.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +10 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +3 -0
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +2 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +51 -3
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +7 -0
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +37 -2
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.d.mts +3 -0
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.d.mts +21 -0
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +3 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.d.mts +1 -0
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +9 -6
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +25 -4
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +28 -2
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +4 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +32 -2
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +6 -0
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +6 -0
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +9 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +8 -0
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +7 -2
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +3 -0
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +6 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +4 -0
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +15 -0
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +17 -5
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +3 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/{publicKey-BVXX1nVl.d.mts → publicKey-BMtGNNLg.d.mts} +36 -0
- package/dist/esm/transactions/authenticator/account.d.mts +29 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +3 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +24 -2
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +6 -3
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +9 -0
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +9 -0
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +3 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +11 -0
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +9 -0
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +31 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +8 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +11 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +9 -0
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +17 -0
- package/dist/esm/transactions/instances/transactionPayload.d.mts +49 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +20 -2
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/asyncQueue.d.mts +16 -0
- package/dist/esm/transactions/management/asyncQueue.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +4 -2
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +46 -7
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/scriptComposer/index.d.mts +47 -0
- package/dist/esm/transactions/scriptComposer/index.mjs +2 -0
- package/dist/esm/transactions/scriptComposer/index.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +65 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +4 -2
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +37 -3
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +11 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +43 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +83 -0
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +9 -0
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +90 -2
- package/dist/esm/types/index.d.mts +1 -0
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +52 -0
- package/dist/esm/types/keyless.d.mts +12 -0
- package/dist/esm/types/types.d.mts +1 -0
- package/dist/esm/utils/apiEndpoints.d.mts +30 -0
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +24 -0
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +21 -0
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +1 -0
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/memoize.d.mts +4 -0
- package/dist/esm/utils/memoize.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +9 -0
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +10 -4
- package/src/account/AbstractKeylessAccount.ts +80 -9
- package/src/account/Account.ts +51 -6
- package/src/account/AccountUtils.ts +216 -0
- package/src/account/Ed25519Account.ts +26 -0
- package/src/account/EphemeralKeyPair.ts +30 -0
- package/src/account/FederatedKeylessAccount.ts +10 -3
- package/src/account/KeylessAccount.ts +13 -1
- package/src/account/MultiKeyAccount.ts +75 -12
- package/src/account/SingleKeyAccount.ts +63 -6
- package/src/account/index.ts +1 -0
- package/src/account/utils.ts +16 -0
- package/src/api/account.ts +22 -2
- package/src/api/ans.ts +15 -0
- package/src/api/aptos.ts +3 -0
- package/src/api/aptosConfig.ts +24 -0
- package/src/api/coin.ts +3 -0
- package/src/api/digitalAsset.ts +26 -0
- package/src/api/event.ts +6 -0
- package/src/api/faucet.ts +11 -2
- package/src/api/fungibleAsset.ts +8 -0
- package/src/api/general.ts +12 -0
- package/src/api/keyless.ts +6 -0
- package/src/api/object.ts +3 -0
- package/src/api/staking.ts +5 -0
- package/src/api/table.ts +5 -0
- package/src/api/transaction.ts +19 -3
- package/src/api/transactionSubmission/build.ts +89 -2
- package/src/api/transactionSubmission/helpers.ts +2 -0
- package/src/api/transactionSubmission/management.ts +5 -0
- package/src/api/transactionSubmission/sign.ts +4 -0
- package/src/api/transactionSubmission/simulate.ts +4 -0
- package/src/api/transactionSubmission/submit.ts +4 -0
- package/src/api/utils.ts +1 -0
- package/src/bcs/deserializer.ts +47 -1
- package/src/bcs/serializable/entryFunctionBytes.ts +10 -0
- package/src/bcs/serializable/fixedBytes.ts +12 -0
- package/src/bcs/serializable/movePrimitives.ts +26 -0
- package/src/bcs/serializable/moveStructs.ts +56 -0
- package/src/bcs/serializer.ts +64 -1
- package/src/cli/localNode.ts +22 -8
- package/src/cli/move.ts +26 -0
- package/src/client/core.ts +4 -0
- package/src/client/get.ts +75 -1
- package/src/client/post.ts +37 -0
- package/src/core/account/utils/address.ts +6 -0
- package/src/core/accountAddress.ts +46 -0
- package/src/core/authenticationKey.ts +22 -0
- package/src/core/common.ts +14 -0
- package/src/core/crypto/ed25519.ts +58 -4
- package/src/core/crypto/ephemeral.ts +22 -0
- package/src/core/crypto/federatedKeyless.ts +12 -0
- package/src/core/crypto/hdKey.ts +29 -0
- package/src/core/crypto/keyless.ts +134 -0
- package/src/core/crypto/multiEd25519.ts +40 -0
- package/src/core/crypto/multiKey.ts +37 -1
- package/src/core/crypto/poseidon.ts +20 -0
- package/src/core/crypto/privateKey.ts +8 -0
- package/src/core/crypto/proof.ts +2 -0
- package/src/core/crypto/publicKey.ts +14 -0
- package/src/core/crypto/secp256k1.ts +49 -2
- package/src/core/crypto/signature.ts +8 -0
- package/src/core/crypto/singleKey.ts +34 -2
- package/src/core/crypto/utils.ts +2 -0
- package/src/core/hex.ts +20 -0
- package/src/internal/account.ts +27 -7
- package/src/internal/ans.ts +27 -0
- package/src/internal/coin.ts +1 -0
- package/src/internal/digitalAsset.ts +30 -0
- package/src/internal/event.ts +6 -0
- package/src/internal/faucet.ts +5 -0
- package/src/internal/fungibleAsset.ts +5 -0
- package/src/internal/general.ts +7 -0
- package/src/internal/keyless.ts +4 -0
- package/src/internal/object.ts +2 -0
- package/src/internal/staking.ts +5 -1
- package/src/internal/table.ts +3 -0
- package/src/internal/transaction.ts +16 -0
- package/src/internal/transactionSubmission.ts +15 -2
- package/src/transactions/authenticator/account.ts +26 -0
- package/src/transactions/authenticator/transaction.ts +20 -0
- package/src/transactions/index.ts +1 -0
- package/src/transactions/instances/chainId.ts +8 -0
- package/src/transactions/instances/identifier.ts +8 -0
- package/src/transactions/instances/moduleId.ts +10 -0
- package/src/transactions/instances/multiAgentTransaction.ts +8 -0
- package/src/transactions/instances/rawTransaction.ts +30 -0
- package/src/transactions/instances/rotationProofChallenge.ts +6 -0
- package/src/transactions/instances/signedTransaction.ts +8 -0
- package/src/transactions/instances/simpleTransaction.ts +8 -0
- package/src/transactions/instances/transactionArgument.ts +16 -0
- package/src/transactions/instances/transactionPayload.ts +50 -0
- package/src/transactions/management/accountSequenceNumber.ts +16 -0
- package/src/transactions/management/asyncQueue.ts +16 -0
- package/src/transactions/management/transactionWorker.ts +42 -5
- package/src/transactions/scriptComposer/index.ts +86 -0
- package/src/transactions/transactionBuilder/helpers.ts +82 -10
- package/src/transactions/transactionBuilder/remoteAbi.ts +75 -1
- package/src/transactions/transactionBuilder/signingMessage.ts +10 -0
- package/src/transactions/transactionBuilder/transactionBuilder.ts +58 -0
- package/src/transactions/typeTag/index.ts +82 -0
- package/src/transactions/typeTag/parser.ts +24 -0
- package/src/transactions/types.ts +89 -0
- package/src/types/index.ts +1 -0
- package/src/types/indexer.ts +52 -0
- package/src/types/keyless.ts +12 -0
- package/src/utils/apiEndpoints.ts +30 -2
- package/src/utils/const.ts +24 -1
- package/src/utils/helpers.ts +22 -0
- package/src/utils/memoize.ts +6 -0
- package/src/utils/normalizeBundle.ts +8 -1
- package/src/version.ts +1 -1
- package/dist/common/chunk-F43XVDYJ.js.map +0 -1
- package/dist/esm/chunk-2C27NY4D.mjs.map +0 -1
- package/dist/esm/chunk-2CJC43CV.mjs.map +0 -1
- package/dist/esm/chunk-2ESU5N3V.mjs.map +0 -1
- package/dist/esm/chunk-2KSMV5KD.mjs.map +0 -1
- package/dist/esm/chunk-2MN7DW2J.mjs.map +0 -1
- package/dist/esm/chunk-2QGJDHME.mjs.map +0 -1
- package/dist/esm/chunk-333QBK32.mjs.map +0 -1
- package/dist/esm/chunk-372SLYVR.mjs +0 -2
- package/dist/esm/chunk-372SLYVR.mjs.map +0 -1
- package/dist/esm/chunk-42H7WETG.mjs.map +0 -1
- package/dist/esm/chunk-46O23AOD.mjs +0 -2
- package/dist/esm/chunk-46O23AOD.mjs.map +0 -1
- package/dist/esm/chunk-4DI5SPSK.mjs +0 -2
- package/dist/esm/chunk-4DI5SPSK.mjs.map +0 -1
- package/dist/esm/chunk-4DP3PEYK.mjs.map +0 -1
- package/dist/esm/chunk-4MTSP4S2.mjs.map +0 -1
- package/dist/esm/chunk-4O5XDQDO.mjs +0 -2
- package/dist/esm/chunk-4O5XDQDO.mjs.map +0 -1
- package/dist/esm/chunk-4OV2A6PJ.mjs +0 -2
- package/dist/esm/chunk-4OV2A6PJ.mjs.map +0 -1
- package/dist/esm/chunk-4XB3BB5Z.mjs.map +0 -1
- package/dist/esm/chunk-5B3SMBXQ.mjs +0 -2
- package/dist/esm/chunk-5B3SMBXQ.mjs.map +0 -1
- package/dist/esm/chunk-5LGKGWLX.mjs.map +0 -1
- package/dist/esm/chunk-5PVZ4N42.mjs.map +0 -1
- package/dist/esm/chunk-6Q2O5G3J.mjs.map +0 -1
- package/dist/esm/chunk-6ZOVTYLJ.mjs.map +0 -1
- package/dist/esm/chunk-7N7FEBZA.mjs.map +0 -1
- package/dist/esm/chunk-7T26VA2W.mjs.map +0 -1
- package/dist/esm/chunk-7V35JAAF.mjs.map +0 -1
- package/dist/esm/chunk-ACVIE7IE.mjs.map +0 -1
- package/dist/esm/chunk-AJ5JHBAE.mjs.map +0 -1
- package/dist/esm/chunk-AKIO3OIT.mjs.map +0 -1
- package/dist/esm/chunk-ALNQK276.mjs.map +0 -1
- package/dist/esm/chunk-AOROYJ74.mjs.map +0 -1
- package/dist/esm/chunk-BAEIZAP7.mjs.map +0 -1
- package/dist/esm/chunk-BRV3RLKW.mjs.map +0 -1
- package/dist/esm/chunk-BUAHUVAD.mjs.map +0 -1
- package/dist/esm/chunk-C2HCRGQU.mjs +0 -2
- package/dist/esm/chunk-C2HCRGQU.mjs.map +0 -1
- package/dist/esm/chunk-CDEYH77E.mjs +0 -2
- package/dist/esm/chunk-CDEYH77E.mjs.map +0 -1
- package/dist/esm/chunk-CX6KECGV.mjs.map +0 -1
- package/dist/esm/chunk-D3OEQLUE.mjs +0 -2
- package/dist/esm/chunk-D3OEQLUE.mjs.map +0 -1
- package/dist/esm/chunk-DBTKJMLV.mjs.map +0 -1
- package/dist/esm/chunk-DC2IESER.mjs +0 -2
- package/dist/esm/chunk-DC2IESER.mjs.map +0 -1
- package/dist/esm/chunk-EGV3HFE3.mjs.map +0 -1
- package/dist/esm/chunk-ELXJ5A4B.mjs +0 -2
- package/dist/esm/chunk-ELXJ5A4B.mjs.map +0 -1
- package/dist/esm/chunk-F2WY2DEY.mjs.map +0 -1
- package/dist/esm/chunk-FD6FGKYY.mjs +0 -1
- package/dist/esm/chunk-FZDEGDUY.mjs.map +0 -1
- package/dist/esm/chunk-G4KAHJXB.mjs.map +0 -1
- package/dist/esm/chunk-GAEAYY44.mjs +0 -1
- package/dist/esm/chunk-GMKKHGXK.mjs.map +0 -1
- package/dist/esm/chunk-GVNK3UMT.mjs.map +0 -1
- package/dist/esm/chunk-H3C3VTHS.mjs.map +0 -1
- package/dist/esm/chunk-HBIDHQ2M.mjs.map +0 -1
- package/dist/esm/chunk-HMMNQFVM.mjs.map +0 -1
- package/dist/esm/chunk-I5OYNCZS.mjs +0 -1
- package/dist/esm/chunk-IBZKCBN5.mjs.map +0 -1
- package/dist/esm/chunk-ICMELYCL.mjs +0 -2
- package/dist/esm/chunk-ICMELYCL.mjs.map +0 -1
- package/dist/esm/chunk-IHGA5KAD.mjs.map +0 -1
- package/dist/esm/chunk-IK2NYNKG.mjs.map +0 -1
- package/dist/esm/chunk-J3E4UMBB.mjs +0 -2
- package/dist/esm/chunk-J3E4UMBB.mjs.map +0 -1
- package/dist/esm/chunk-J7PJSK3J.mjs.map +0 -1
- package/dist/esm/chunk-JMPHD4BP.mjs.map +0 -1
- package/dist/esm/chunk-JNO7KPMG.mjs.map +0 -1
- package/dist/esm/chunk-KCWRCWNT.mjs.map +0 -1
- package/dist/esm/chunk-L4SWQLAJ.mjs.map +0 -1
- package/dist/esm/chunk-LA5HJILW.mjs.map +0 -1
- package/dist/esm/chunk-LGTOOAQI.mjs.map +0 -1
- package/dist/esm/chunk-LKKI2KAP.mjs.map +0 -1
- package/dist/esm/chunk-LPVGVTWT.mjs.map +0 -1
- package/dist/esm/chunk-MHN6XY4Z.mjs +0 -2
- package/dist/esm/chunk-MHN6XY4Z.mjs.map +0 -1
- package/dist/esm/chunk-N62NUAHT.mjs.map +0 -1
- package/dist/esm/chunk-NK67FECB.mjs.map +0 -1
- package/dist/esm/chunk-OIOGOW6I.mjs.map +0 -1
- package/dist/esm/chunk-OPO5EYF7.mjs.map +0 -1
- package/dist/esm/chunk-P6KX7AS2.mjs +0 -2
- package/dist/esm/chunk-P6KX7AS2.mjs.map +0 -1
- package/dist/esm/chunk-PMGK5IHB.mjs.map +0 -1
- package/dist/esm/chunk-PXMNAP2Q.mjs.map +0 -1
- package/dist/esm/chunk-QI7OREBM.mjs.map +0 -1
- package/dist/esm/chunk-RCA73RVB.mjs.map +0 -1
- package/dist/esm/chunk-S5SQJRAV.mjs.map +0 -1
- package/dist/esm/chunk-SK3LIS4Z.mjs.map +0 -1
- package/dist/esm/chunk-SNYYEVJA.mjs.map +0 -1
- package/dist/esm/chunk-SPRNSFUV.mjs.map +0 -1
- package/dist/esm/chunk-T6ADNZE5.mjs.map +0 -1
- package/dist/esm/chunk-TCXYTPUR.mjs +0 -2
- package/dist/esm/chunk-TCXYTPUR.mjs.map +0 -1
- package/dist/esm/chunk-U3T4ZT7B.mjs.map +0 -1
- package/dist/esm/chunk-U6OCK6T4.mjs.map +0 -1
- package/dist/esm/chunk-UFPYCROT.mjs.map +0 -1
- package/dist/esm/chunk-UGIHQFID.mjs.map +0 -1
- package/dist/esm/chunk-UGTIALNW.mjs +0 -2
- package/dist/esm/chunk-V4FKFCBL.mjs.map +0 -1
- package/dist/esm/chunk-V5NDNR36.mjs +0 -2
- package/dist/esm/chunk-V5NDNR36.mjs.map +0 -1
- package/dist/esm/chunk-VIZHWYI5.mjs.map +0 -1
- package/dist/esm/chunk-VQZMI3EZ.mjs.map +0 -1
- package/dist/esm/chunk-VWGB5BHW.mjs.map +0 -1
- package/dist/esm/chunk-WFK3XRQX.mjs.map +0 -1
- package/dist/esm/chunk-XOLU6UP3.mjs.map +0 -1
- package/dist/esm/chunk-XZN344G4.mjs.map +0 -1
- package/dist/esm/chunk-YD2BMHH7.mjs +0 -2
- package/dist/esm/chunk-YEWZAR76.mjs.map +0 -1
- package/dist/esm/chunk-YJVZFYBX.mjs.map +0 -1
- package/dist/esm/chunk-ZMBXHMVQ.mjs.map +0 -1
- package/dist/esm/chunk-ZMMLM6ZJ.mjs.map +0 -1
- package/dist/esm/chunk-ZMS3AOEZ.mjs.map +0 -1
- package/dist/esm/chunk-ZXVN3HXB.mjs.map +0 -1
- /package/dist/esm/{chunk-FD6FGKYY.mjs.map → account/AccountUtils.mjs.map} +0 -0
- /package/dist/esm/{chunk-GAEAYY44.mjs.map → account/utils.mjs.map} +0 -0
- /package/dist/esm/{chunk-I5OYNCZS.mjs.map → chunk-GP4TLDVZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-NZ7M6NG2.mjs.map → chunk-KFCLSJC3.mjs.map} +0 -0
- /package/dist/esm/{chunk-F45G3GP3.mjs.map → chunk-QHEKBHNU.mjs.map} +0 -0
|
@@ -2,12 +2,13 @@ import { Deserializer } from '../../bcs/deserializer.mjs';
|
|
|
2
2
|
import { Serializer, Serializable } from '../../bcs/serializer.mjs';
|
|
3
3
|
import { HexInput } from '../../types/types.mjs';
|
|
4
4
|
import { PrivateKey } from './privateKey.mjs';
|
|
5
|
-
import { P as PublicKey, V as VerifySignatureArgs } from '../../publicKey-
|
|
5
|
+
import { P as PublicKey, V as VerifySignatureArgs } from '../../publicKey-BMtGNNLg.mjs';
|
|
6
6
|
import { Signature } from './signature.mjs';
|
|
7
7
|
import '../../types/indexer.mjs';
|
|
8
8
|
import '../../types/generated/operations.mjs';
|
|
9
9
|
import '../../types/generated/types.mjs';
|
|
10
10
|
import '../../utils/apiEndpoints.mjs';
|
|
11
|
+
import '@aptos-labs/script-composer-pack';
|
|
11
12
|
import '../hex.mjs';
|
|
12
13
|
import '../common.mjs';
|
|
13
14
|
import '../accountAddress.mjs';
|
|
@@ -18,6 +19,8 @@ import '../../transactions/instances/transactionArgument.mjs';
|
|
|
18
19
|
*
|
|
19
20
|
* @extends PublicKey
|
|
20
21
|
* @property LENGTH - The length of the Secp256k1 public key in bytes.
|
|
22
|
+
* @group Implementation
|
|
23
|
+
* @category Serialization
|
|
21
24
|
*/
|
|
22
25
|
declare class Secp256k1PublicKey extends PublicKey {
|
|
23
26
|
static readonly LENGTH: number;
|
|
@@ -29,6 +32,8 @@ declare class Secp256k1PublicKey extends PublicKey {
|
|
|
29
32
|
*
|
|
30
33
|
* @param hexInput - A HexInput (string or Uint8Array) representing the signature data.
|
|
31
34
|
* @throws Error if the length of the signature data is not equal to Secp256k1Signature.LENGTH.
|
|
35
|
+
* @group Implementation
|
|
36
|
+
* @category Serialization
|
|
32
37
|
*/
|
|
33
38
|
constructor(hexInput: HexInput);
|
|
34
39
|
/**
|
|
@@ -39,12 +44,16 @@ declare class Secp256k1PublicKey extends PublicKey {
|
|
|
39
44
|
* @param args - The arguments for verifying the signature.
|
|
40
45
|
* @param args.message - The message that was signed.
|
|
41
46
|
* @param args.signature - The signature to verify against the public key.
|
|
47
|
+
* @group Implementation
|
|
48
|
+
* @category Serialization
|
|
42
49
|
*/
|
|
43
50
|
verifySignature(args: VerifySignatureArgs): boolean;
|
|
44
51
|
/**
|
|
45
52
|
* Get the data as a Uint8Array representation.
|
|
46
53
|
*
|
|
47
54
|
* @returns Uint8Array representation of the data.
|
|
55
|
+
* @group Implementation
|
|
56
|
+
* @category Serialization
|
|
48
57
|
*/
|
|
49
58
|
toUint8Array(): Uint8Array;
|
|
50
59
|
/**
|
|
@@ -52,6 +61,8 @@ declare class Secp256k1PublicKey extends PublicKey {
|
|
|
52
61
|
* This function is essential for converting data into a format suitable for transmission or storage.
|
|
53
62
|
*
|
|
54
63
|
* @param serializer - The serializer instance used to convert the data.
|
|
64
|
+
* @group Implementation
|
|
65
|
+
* @category Serialization
|
|
55
66
|
*/
|
|
56
67
|
serialize(serializer: Serializer): void;
|
|
57
68
|
/**
|
|
@@ -59,6 +70,8 @@ declare class Secp256k1PublicKey extends PublicKey {
|
|
|
59
70
|
* This function allows you to reconstruct a Secp256k1Signature object from its serialized byte representation.
|
|
60
71
|
*
|
|
61
72
|
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
73
|
+
* @group Implementation
|
|
74
|
+
* @category Serialization
|
|
62
75
|
*/
|
|
63
76
|
deserialize(deserializer: Deserializer): Secp256k1Signature;
|
|
64
77
|
static deserialize(deserializer: Deserializer): Secp256k1PublicKey;
|
|
@@ -67,6 +80,8 @@ declare class Secp256k1PublicKey extends PublicKey {
|
|
|
67
80
|
*
|
|
68
81
|
* @deprecated use `instanceof Secp256k1PublicKey` instead
|
|
69
82
|
* @param publicKey - The public key to check.
|
|
83
|
+
* @group Implementation
|
|
84
|
+
* @category Serialization
|
|
70
85
|
*/
|
|
71
86
|
static isPublicKey(publicKey: PublicKey): publicKey is Secp256k1PublicKey;
|
|
72
87
|
/**
|
|
@@ -75,21 +90,29 @@ declare class Secp256k1PublicKey extends PublicKey {
|
|
|
75
90
|
*
|
|
76
91
|
* @param publicKey - The public key to validate.
|
|
77
92
|
* @returns A boolean indicating whether the public key is a valid Secp256k1 public key.
|
|
93
|
+
* @group Implementation
|
|
94
|
+
* @category Serialization
|
|
78
95
|
*/
|
|
79
96
|
static isInstance(publicKey: PublicKey): publicKey is Secp256k1PublicKey;
|
|
80
97
|
}
|
|
81
98
|
/**
|
|
82
99
|
* Represents a Secp256k1 ECDSA private key, providing functionality to create, sign messages,
|
|
83
100
|
* derive public keys, and serialize/deserialize the key.
|
|
101
|
+
* @group Implementation
|
|
102
|
+
* @category Serialization
|
|
84
103
|
*/
|
|
85
104
|
declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
86
105
|
/**
|
|
87
106
|
* Length of Secp256k1 ecdsa private key
|
|
107
|
+
* @group Implementation
|
|
108
|
+
* @category Serialization
|
|
88
109
|
*/
|
|
89
110
|
static readonly LENGTH: number;
|
|
90
111
|
/**
|
|
91
112
|
* The private key bytes
|
|
92
113
|
* @private
|
|
114
|
+
* @group Implementation
|
|
115
|
+
* @category Serialization
|
|
93
116
|
*/
|
|
94
117
|
private readonly key;
|
|
95
118
|
/**
|
|
@@ -99,12 +122,16 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
99
122
|
*
|
|
100
123
|
* @param hexInput A HexInput (string or Uint8Array)
|
|
101
124
|
* @param strict If true, private key must AIP-80 compliant.
|
|
125
|
+
* @group Implementation
|
|
126
|
+
* @category Serialization
|
|
102
127
|
*/
|
|
103
128
|
constructor(hexInput: HexInput, strict?: boolean);
|
|
104
129
|
/**
|
|
105
130
|
* Generate a new random private key.
|
|
106
131
|
*
|
|
107
132
|
* @returns Secp256k1PrivateKey - A newly generated Secp256k1 private key.
|
|
133
|
+
* @group Implementation
|
|
134
|
+
* @category Serialization
|
|
108
135
|
*/
|
|
109
136
|
static generate(): Secp256k1PrivateKey;
|
|
110
137
|
/**
|
|
@@ -116,6 +143,8 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
116
143
|
* @returns The generated private key.
|
|
117
144
|
*
|
|
118
145
|
* @throws Error if the provided path is not a valid BIP44 path.
|
|
146
|
+
* @group Implementation
|
|
147
|
+
* @category Serialization
|
|
119
148
|
*/
|
|
120
149
|
static fromDerivationPath(path: string, mnemonics: string): Secp256k1PrivateKey;
|
|
121
150
|
/**
|
|
@@ -126,6 +155,8 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
126
155
|
* @param seed - The seed phrase created by the mnemonics, represented as a Uint8Array.
|
|
127
156
|
* @returns The generated private key as an instance of Secp256k1PrivateKey.
|
|
128
157
|
* @throws Error if the derived private key is invalid.
|
|
158
|
+
* @group Implementation
|
|
159
|
+
* @category Serialization
|
|
129
160
|
*/
|
|
130
161
|
private static fromDerivationPathInner;
|
|
131
162
|
/**
|
|
@@ -134,24 +165,32 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
134
165
|
*
|
|
135
166
|
* @param message - A message in HexInput format to be signed.
|
|
136
167
|
* @returns Signature - The generated signature for the provided message.
|
|
168
|
+
* @group Implementation
|
|
169
|
+
* @category Serialization
|
|
137
170
|
*/
|
|
138
171
|
sign(message: HexInput): Secp256k1Signature;
|
|
139
172
|
/**
|
|
140
173
|
* Derive the Secp256k1PublicKey from this private key.
|
|
141
174
|
*
|
|
142
175
|
* @returns Secp256k1PublicKey The derived public key.
|
|
176
|
+
* @group Implementation
|
|
177
|
+
* @category Serialization
|
|
143
178
|
*/
|
|
144
179
|
publicKey(): Secp256k1PublicKey;
|
|
145
180
|
/**
|
|
146
181
|
* Get the private key in bytes (Uint8Array).
|
|
147
182
|
*
|
|
148
183
|
* @returns
|
|
184
|
+
* @group Implementation
|
|
185
|
+
* @category Serialization
|
|
149
186
|
*/
|
|
150
187
|
toUint8Array(): Uint8Array;
|
|
151
188
|
/**
|
|
152
189
|
* Get the private key as a string representation.
|
|
153
190
|
*
|
|
154
191
|
* @returns string representation of the private key
|
|
192
|
+
* @group Implementation
|
|
193
|
+
* @category Serialization
|
|
155
194
|
*/
|
|
156
195
|
toString(): string;
|
|
157
196
|
/**
|
|
@@ -176,28 +215,37 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
176
215
|
* @param privateKey - The private key to be checked.
|
|
177
216
|
*
|
|
178
217
|
* @deprecated use `instanceof Secp256k1PrivateKey` instead
|
|
218
|
+
* @group Implementation
|
|
219
|
+
* @category Serialization
|
|
179
220
|
*/
|
|
180
221
|
static isPrivateKey(privateKey: PrivateKey): privateKey is Secp256k1PrivateKey;
|
|
181
222
|
}
|
|
182
223
|
/**
|
|
183
224
|
* Represents a signature of a message signed using a Secp256k1 ECDSA private key.
|
|
184
225
|
*
|
|
226
|
+
* @group Implementation
|
|
227
|
+
* @category Serialization
|
|
185
228
|
*/
|
|
186
229
|
declare class Secp256k1Signature extends Signature {
|
|
187
230
|
/**
|
|
188
|
-
* Secp256k1 ecdsa signatures are 256-bit
|
|
189
|
-
* @
|
|
231
|
+
* Secp256k1 ecdsa signatures are 256-bit.
|
|
232
|
+
* @group Implementation
|
|
233
|
+
* @category Serialization
|
|
190
234
|
*/
|
|
191
235
|
static readonly LENGTH = 64;
|
|
192
236
|
/**
|
|
193
237
|
* The signature bytes
|
|
194
238
|
* @private
|
|
239
|
+
* @group Implementation
|
|
240
|
+
* @category Serialization
|
|
195
241
|
*/
|
|
196
242
|
private readonly data;
|
|
197
243
|
/**
|
|
198
244
|
* Create a new Signature instance from a Uint8Array or String.
|
|
199
245
|
*
|
|
200
246
|
* @param hexInput A HexInput (string or Uint8Array)
|
|
247
|
+
* @group Implementation
|
|
248
|
+
* @category Serialization
|
|
201
249
|
*/
|
|
202
250
|
constructor(hexInput: HexInput);
|
|
203
251
|
toUint8Array(): Uint8Array;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-G5ZWH5T3.mjs";import"../../chunk-EMURYYVO.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-N4VVDQA5.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XTOIL6MB.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as Secp256k1PrivateKey,a as Secp256k1PublicKey,c as Secp256k1Signature};
|
|
2
2
|
//# sourceMappingURL=secp256k1.mjs.map
|
|
@@ -6,6 +6,7 @@ import '../../types/indexer.mjs';
|
|
|
6
6
|
import '../../types/generated/operations.mjs';
|
|
7
7
|
import '../../types/generated/types.mjs';
|
|
8
8
|
import '../../utils/apiEndpoints.mjs';
|
|
9
|
+
import '@aptos-labs/script-composer-pack';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* An abstract representation of a crypto signature,
|
|
@@ -13,15 +14,21 @@ import '../../utils/apiEndpoints.mjs';
|
|
|
13
14
|
*
|
|
14
15
|
* This class represents the product of signing a message directly from a
|
|
15
16
|
* PrivateKey and can be verified against a CryptoPublicKey.
|
|
17
|
+
* @group Implementation
|
|
18
|
+
* @category Serialization
|
|
16
19
|
*/
|
|
17
20
|
declare abstract class Signature extends Serializable {
|
|
18
21
|
/**
|
|
19
22
|
* Get the raw signature bytes
|
|
23
|
+
* @group Implementation
|
|
24
|
+
* @category Serialization
|
|
20
25
|
*/
|
|
21
26
|
toUint8Array(): Uint8Array;
|
|
22
27
|
/**
|
|
23
28
|
* Get the signature as a hex string with a 0x prefix e.g. 0x123456...
|
|
24
29
|
* @returns The hex string representation of the signature.
|
|
30
|
+
* @group Implementation
|
|
31
|
+
* @category Serialization
|
|
25
32
|
*/
|
|
26
33
|
toString(): string;
|
|
27
34
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-WCMW2L3P.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-N4VVDQA5.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XTOIL6MB.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Signature};
|
|
2
2
|
//# sourceMappingURL=signature.mjs.map
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { Deserializer } from '../../bcs/deserializer.mjs';
|
|
2
2
|
import { Serializer } from '../../bcs/serializer.mjs';
|
|
3
3
|
import { AnyPublicKeyVariant } from '../../types/types.mjs';
|
|
4
|
-
import { a as AccountPublicKey, P as PublicKey, V as VerifySignatureArgs, A as AuthenticationKey } from '../../publicKey-
|
|
4
|
+
import { a as AccountPublicKey, P as PublicKey, V as VerifySignatureArgs, A as AuthenticationKey } from '../../publicKey-BMtGNNLg.mjs';
|
|
5
|
+
import { Ed25519PrivateKey } from './ed25519.mjs';
|
|
6
|
+
import { Secp256k1PrivateKey } from './secp256k1.mjs';
|
|
5
7
|
import { Signature } from './signature.mjs';
|
|
6
8
|
import '../../types/indexer.mjs';
|
|
7
9
|
import '../../types/generated/operations.mjs';
|
|
8
10
|
import '../../types/generated/types.mjs';
|
|
9
11
|
import '../../utils/apiEndpoints.mjs';
|
|
12
|
+
import '@aptos-labs/script-composer-pack';
|
|
10
13
|
import '../hex.mjs';
|
|
11
14
|
import '../common.mjs';
|
|
12
15
|
import '../accountAddress.mjs';
|
|
13
16
|
import '../../transactions/instances/transactionArgument.mjs';
|
|
17
|
+
import './privateKey.mjs';
|
|
14
18
|
|
|
19
|
+
type PrivateKeyInput = Ed25519PrivateKey | Secp256k1PrivateKey;
|
|
15
20
|
/**
|
|
16
21
|
* Represents any public key supported by Aptos.
|
|
17
22
|
*
|
|
@@ -19,14 +24,20 @@ import '../../transactions/instances/transactionArgument.mjs';
|
|
|
19
24
|
* `Legacy` and `Unified` authentication keys.
|
|
20
25
|
*
|
|
21
26
|
* Any unified authentication key is represented in the SDK as `AnyPublicKey`.
|
|
27
|
+
* @group Implementation
|
|
28
|
+
* @category Serialization
|
|
22
29
|
*/
|
|
23
30
|
declare class AnyPublicKey extends AccountPublicKey {
|
|
24
31
|
/**
|
|
25
32
|
* Reference to the inner public key
|
|
33
|
+
* @group Implementation
|
|
34
|
+
* @category Serialization
|
|
26
35
|
*/
|
|
27
36
|
readonly publicKey: PublicKey;
|
|
28
37
|
/**
|
|
29
38
|
* Index of the underlying enum variant
|
|
39
|
+
* @group Implementation
|
|
40
|
+
* @category Serialization
|
|
30
41
|
*/
|
|
31
42
|
readonly variant: AnyPublicKeyVariant;
|
|
32
43
|
/**
|
|
@@ -35,6 +46,8 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
35
46
|
*
|
|
36
47
|
* @param publicKey - The publicKey object which determines the variant to be used.
|
|
37
48
|
* @throws Error if the provided signature type is unsupported.
|
|
49
|
+
* @group Implementation
|
|
50
|
+
* @category Serialization
|
|
38
51
|
*/
|
|
39
52
|
constructor(publicKey: PublicKey);
|
|
40
53
|
/**
|
|
@@ -45,6 +58,8 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
45
58
|
* @param args.message - The message that was signed.
|
|
46
59
|
* @param args.signature - The signature to verify, which must be an instance of AnySignature.
|
|
47
60
|
* @returns A boolean indicating whether the signature is valid for the given message.
|
|
61
|
+
* @group Implementation
|
|
62
|
+
* @category Serialization
|
|
48
63
|
*/
|
|
49
64
|
verifySignature(args: VerifySignatureArgs): boolean;
|
|
50
65
|
/**
|
|
@@ -52,6 +67,8 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
52
67
|
* This function is essential for creating a unique identifier for authentication purposes.
|
|
53
68
|
*
|
|
54
69
|
* @returns {AuthenticationKey} The generated authentication key.
|
|
70
|
+
* @group Implementation
|
|
71
|
+
* @category Serialization
|
|
55
72
|
*/
|
|
56
73
|
authKey(): AuthenticationKey;
|
|
57
74
|
/**
|
|
@@ -61,6 +78,8 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
61
78
|
* Use AnySignature.bcsToBytes() instead.
|
|
62
79
|
*
|
|
63
80
|
* @returns Uint8Array representation of the signature.
|
|
81
|
+
* @group Implementation
|
|
82
|
+
* @category Serialization
|
|
64
83
|
*/
|
|
65
84
|
toUint8Array(): Uint8Array;
|
|
66
85
|
/**
|
|
@@ -68,6 +87,8 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
68
87
|
* This function helps in converting the object into a format suitable for transmission or storage.
|
|
69
88
|
*
|
|
70
89
|
* @param serializer - The serializer instance used to perform the serialization.
|
|
90
|
+
* @group Implementation
|
|
91
|
+
* @category Serialization
|
|
71
92
|
*/
|
|
72
93
|
serialize(serializer: Serializer): void;
|
|
73
94
|
/**
|
|
@@ -75,6 +96,8 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
75
96
|
* This function helps in reconstructing the AnySignature object from its serialized form, allowing for further processing or validation.
|
|
76
97
|
*
|
|
77
98
|
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
99
|
+
* @group Implementation
|
|
100
|
+
* @category Serialization
|
|
78
101
|
*/
|
|
79
102
|
static deserialize(deserializer: Deserializer): AnyPublicKey;
|
|
80
103
|
/**
|
|
@@ -82,18 +105,24 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
82
105
|
*
|
|
83
106
|
* @param publicKey - The public key to check.
|
|
84
107
|
* @deprecated Use `instanceof AnyPublicKey` instead.
|
|
108
|
+
* @group Implementation
|
|
109
|
+
* @category Serialization
|
|
85
110
|
*/
|
|
86
111
|
static isPublicKey(publicKey: AccountPublicKey): publicKey is AnyPublicKey;
|
|
87
112
|
/**
|
|
88
113
|
* Determines if the current public key is an instance of Ed25519PublicKey.
|
|
89
114
|
*
|
|
90
115
|
* @deprecated use `publicKey instanceof Ed25519PublicKey` instead.
|
|
116
|
+
* @group Implementation
|
|
117
|
+
* @category Serialization
|
|
91
118
|
*/
|
|
92
119
|
isEd25519(): boolean;
|
|
93
120
|
/**
|
|
94
121
|
* Checks if the public key is an instance of Secp256k1PublicKey.
|
|
95
122
|
*
|
|
96
123
|
* @deprecated use `publicKey instanceof Secp256k1PublicKey` instead.
|
|
124
|
+
* @group Implementation
|
|
125
|
+
* @category Serialization
|
|
97
126
|
*/
|
|
98
127
|
isSecp256k1PublicKey(): boolean;
|
|
99
128
|
/**
|
|
@@ -102,6 +131,8 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
102
131
|
* @param publicKey - The publicKey to be checked for validity.
|
|
103
132
|
* @param publicKey.publicKey - The actual publicKey object that needs to be validated.
|
|
104
133
|
* @returns True if the signature is a valid instance; otherwise, false.
|
|
134
|
+
* @group Implementation
|
|
135
|
+
* @category Serialization
|
|
105
136
|
*/
|
|
106
137
|
static isInstance(publicKey: PublicKey): publicKey is AnyPublicKey;
|
|
107
138
|
}
|
|
@@ -111,11 +142,15 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
111
142
|
* only be generated by a `SingleKeySigner` due to the shared authentication mechanism.
|
|
112
143
|
*
|
|
113
144
|
* @extends Signature
|
|
145
|
+
* @group Implementation
|
|
146
|
+
* @category Serialization
|
|
114
147
|
*/
|
|
115
148
|
declare class AnySignature extends Signature {
|
|
116
149
|
readonly signature: Signature;
|
|
117
150
|
/**
|
|
118
151
|
* Index of the underlying enum variant
|
|
152
|
+
* @group Implementation
|
|
153
|
+
* @category Serialization
|
|
119
154
|
*/
|
|
120
155
|
private readonly variant;
|
|
121
156
|
constructor(signature: Signature);
|
|
@@ -125,4 +160,4 @@ declare class AnySignature extends Signature {
|
|
|
125
160
|
static isInstance(signature: Signature): signature is AnySignature;
|
|
126
161
|
}
|
|
127
162
|
|
|
128
|
-
export { AnyPublicKey, AnySignature };
|
|
163
|
+
export { AnyPublicKey, AnySignature, type PrivateKeyInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-4ZJJINCW.mjs";import"../../chunk-G5ZWH5T3.mjs";import"../../chunk-NW2WUKWV.mjs";import"../../chunk-KG23XFU2.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-T6NQDM7D.mjs";import"../../chunk-XGF7UNEW.mjs";import"../../chunk-EMURYYVO.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-FN4C3CKC.mjs";import"../../chunk-Q4C4U6I4.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SZRZ3HIL.mjs";import"../../chunk-FKJ3GCBI.mjs";import"../../chunk-CNCRJ56P.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-4YLUM62M.mjs";import"../../chunk-QHEKBHNU.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-N4VVDQA5.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XTOIL6MB.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-DAFSKSZ5.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-AIABPCUF.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as AnyPublicKey,b as AnySignature};
|
|
2
2
|
//# sourceMappingURL=singleKey.mjs.map
|
|
@@ -3,6 +3,7 @@ import '../../types/indexer.mjs';
|
|
|
3
3
|
import '../../types/generated/operations.mjs';
|
|
4
4
|
import '../../types/generated/types.mjs';
|
|
5
5
|
import '../../utils/apiEndpoints.mjs';
|
|
6
|
+
import '@aptos-labs/script-composer-pack';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Helper function to convert a message to sign or to verify to a valid message input
|
|
@@ -10,6 +11,8 @@ import '../../utils/apiEndpoints.mjs';
|
|
|
10
11
|
* @param message a message as a string or Uint8Array
|
|
11
12
|
*
|
|
12
13
|
* @returns a valid HexInput - string or Uint8Array
|
|
14
|
+
* @group Implementation
|
|
15
|
+
* @category Serialization
|
|
13
16
|
*/
|
|
14
17
|
declare const convertSigningMessage: (message: HexInput) => HexInput;
|
|
15
18
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-DPW6ELCQ.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as convertSigningMessage};
|
|
2
2
|
//# sourceMappingURL=utils.mjs.map
|
package/dist/esm/core/hex.d.mts
CHANGED
|
@@ -4,9 +4,12 @@ import '../types/indexer.mjs';
|
|
|
4
4
|
import '../types/generated/operations.mjs';
|
|
5
5
|
import '../types/generated/types.mjs';
|
|
6
6
|
import '../utils/apiEndpoints.mjs';
|
|
7
|
+
import '@aptos-labs/script-composer-pack';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Provides reasons for parsing failures related to hexadecimal values.
|
|
11
|
+
* @group Implementation
|
|
12
|
+
* @category Serialization
|
|
10
13
|
*/
|
|
11
14
|
declare enum HexInvalidReason {
|
|
12
15
|
TOO_SHORT = "too_short",
|
|
@@ -36,6 +39,8 @@ declare enum HexInvalidReason {
|
|
|
36
39
|
* Other ways to chain the functions together:
|
|
37
40
|
* - `Hex.fromHexString({ hexInput: "0x1f" }).toUint8Array()`
|
|
38
41
|
* - `new Hex([1, 3]).toStringWithoutPrefix()`
|
|
42
|
+
* @group Implementation
|
|
43
|
+
* @category Serialization
|
|
39
44
|
*/
|
|
40
45
|
declare class Hex {
|
|
41
46
|
private readonly data;
|
|
@@ -43,24 +48,32 @@ declare class Hex {
|
|
|
43
48
|
* Create a new Hex instance from a Uint8Array.
|
|
44
49
|
*
|
|
45
50
|
* @param data - The Uint8Array containing the data to initialize the Hex instance.
|
|
51
|
+
* @group Implementation
|
|
52
|
+
* @category Serialization
|
|
46
53
|
*/
|
|
47
54
|
constructor(data: Uint8Array);
|
|
48
55
|
/**
|
|
49
56
|
* Get the inner hex data as a Uint8Array. The inner data is already a Uint8Array, so no conversion takes place.
|
|
50
57
|
*
|
|
51
58
|
* @returns Hex data as Uint8Array
|
|
59
|
+
* @group Implementation
|
|
60
|
+
* @category Serialization
|
|
52
61
|
*/
|
|
53
62
|
toUint8Array(): Uint8Array;
|
|
54
63
|
/**
|
|
55
64
|
* Get the hex data as a string without the 0x prefix.
|
|
56
65
|
*
|
|
57
66
|
* @returns Hex string without 0x prefix
|
|
67
|
+
* @group Implementation
|
|
68
|
+
* @category Serialization
|
|
58
69
|
*/
|
|
59
70
|
toStringWithoutPrefix(): string;
|
|
60
71
|
/**
|
|
61
72
|
* Get the hex data as a string with the 0x prefix.
|
|
62
73
|
*
|
|
63
74
|
* @returns Hex string with 0x prefix
|
|
75
|
+
* @group Implementation
|
|
76
|
+
* @category Serialization
|
|
64
77
|
*/
|
|
65
78
|
toString(): string;
|
|
66
79
|
/**
|
|
@@ -71,6 +84,8 @@ declare class Hex {
|
|
|
71
84
|
* @throws ParsingError - If the hex string is too short, has an odd number of characters, or contains invalid hex characters.
|
|
72
85
|
*
|
|
73
86
|
* @returns Hex - The resulting Hex instance created from the provided string.
|
|
87
|
+
* @group Implementation
|
|
88
|
+
* @category Serialization
|
|
74
89
|
*/
|
|
75
90
|
static fromHexString(str: string): Hex;
|
|
76
91
|
/**
|
|
@@ -79,6 +94,8 @@ declare class Hex {
|
|
|
79
94
|
*
|
|
80
95
|
* @param hexInput - A HexInput which can be a string or Uint8Array.
|
|
81
96
|
* @returns A Hex instance created from the provided hexInput.
|
|
97
|
+
* @group Implementation
|
|
98
|
+
* @category Serialization
|
|
82
99
|
*/
|
|
83
100
|
static fromHexInput(hexInput: HexInput): Hex;
|
|
84
101
|
/**
|
|
@@ -125,6 +142,8 @@ declare class Hex {
|
|
|
125
142
|
* - valid: A boolean indicating whether the string is valid.
|
|
126
143
|
* - invalidReason: The reason for invalidity if the string is not valid.
|
|
127
144
|
* - invalidReasonMessage: A message explaining why the string is invalid.
|
|
145
|
+
* @group Implementation
|
|
146
|
+
* @category Serialization
|
|
128
147
|
*/
|
|
129
148
|
static isValid(str: string): ParsingResult<HexInvalidReason>;
|
|
130
149
|
/**
|
|
@@ -132,6 +151,8 @@ declare class Hex {
|
|
|
132
151
|
*
|
|
133
152
|
* @param other The Hex instance to compare to.
|
|
134
153
|
* @returns true if the Hex instances are equal, false if not.
|
|
154
|
+
* @group Implementation
|
|
155
|
+
* @category Serialization
|
|
135
156
|
*/
|
|
136
157
|
equals(other: Hex): boolean;
|
|
137
158
|
}
|
package/dist/esm/core/hex.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-KDMSOCZY.mjs";export{b as Hex,a as HexInvalidReason,c as hexToAsciiString};
|
|
2
2
|
//# sourceMappingURL=hex.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { createObjectAddress, createResourceAddress, createTokenAddress } from './account/utils/address.mjs';
|
|
2
2
|
export { AccountAddress, AccountAddressInput, AddressInvalidReason } from './accountAddress.mjs';
|
|
3
|
-
export { a as AccountPublicKey, A as AuthenticationKey, P as PublicKey, V as VerifySignatureArgs } from '../publicKey-
|
|
3
|
+
export { a as AccountPublicKey, A as AuthenticationKey, P as PublicKey, V as VerifySignatureArgs } from '../publicKey-BMtGNNLg.mjs';
|
|
4
4
|
export { ParsingError, ParsingResult } from './common.mjs';
|
|
5
5
|
export { Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, isCanonicalEd25519Signature } from './crypto/ed25519.mjs';
|
|
6
6
|
export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED_OFFSET, KeyType, deriveKey, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, splitPath } from './crypto/hdKey.mjs';
|
|
@@ -13,7 +13,7 @@ export { bigIntToBytesLE, bytesToBigIntLE, hashStrToField, padAndPackBytesWithLe
|
|
|
13
13
|
export { PrivateKey } from './crypto/privateKey.mjs';
|
|
14
14
|
export { Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature } from './crypto/secp256k1.mjs';
|
|
15
15
|
export { Signature } from './crypto/signature.mjs';
|
|
16
|
-
export { AnyPublicKey, AnySignature } from './crypto/singleKey.mjs';
|
|
16
|
+
export { AnyPublicKey, AnySignature, PrivateKeyInput } from './crypto/singleKey.mjs';
|
|
17
17
|
export { Hex, HexInvalidReason, hexToAsciiString } from './hex.mjs';
|
|
18
18
|
import '../bcs/serializer.mjs';
|
|
19
19
|
import '../types/types.mjs';
|
|
@@ -21,6 +21,7 @@ import '../types/indexer.mjs';
|
|
|
21
21
|
import '../types/generated/operations.mjs';
|
|
22
22
|
import '../types/generated/types.mjs';
|
|
23
23
|
import '../utils/apiEndpoints.mjs';
|
|
24
|
+
import '@aptos-labs/script-composer-pack';
|
|
24
25
|
import '../bcs/deserializer.mjs';
|
|
25
26
|
import '../transactions/instances/transactionArgument.mjs';
|
|
26
27
|
import './crypto/proof.mjs';
|
package/dist/esm/core/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import{a as ja,b as ka,c as la}from"../chunk-
|
|
1
|
+
import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import{a as ja,b as ka,c as la}from"../chunk-BI3BTSUB.mjs";import"../chunk-HEZ2ZYZA.mjs";import{a as z,b as A}from"../chunk-ODEDSSQL.mjs";import{a as ha,b as ia}from"../chunk-3XH3NNSR.mjs";import{a as fa,b as ga}from"../chunk-4ZJJINCW.mjs";import{a as B,b as C,c as D}from"../chunk-G5ZWH5T3.mjs";import{a as ea}from"../chunk-NW2WUKWV.mjs";import{a as L,b as M,c as N,d as O,e as P,f as Q,g as R,h as S,i as T,j as U,k as V,l as W,m as X,n as Y,o as Z,p as _,q as $,r as aa,s as ba,t as ca,u as da}from"../chunk-KG23XFU2.mjs";import{a as G,b as H,c as I,d as J,e as K}from"../chunk-GOXRBEIJ.mjs";import"../chunk-XJJVJOX5.mjs";import{a as E,b as F}from"../chunk-T6NQDM7D.mjs";import{a as v,b as w,c as x,d as y}from"../chunk-XGF7UNEW.mjs";import{a as s,b as t}from"../chunk-EMURYYVO.mjs";import{a as u}from"../chunk-WCMW2L3P.mjs";import"../chunk-DPW6ELCQ.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m,g as n,h as o,i as p,j as q}from"../chunk-C3Q23D22.mjs";import{a as r}from"../chunk-ROT6S6BM.mjs";import{a as g}from"../chunk-FN4C3CKC.mjs";import{a as e,b as f}from"../chunk-Q4C4U6I4.mjs";import"../chunk-YOZBVVKL.mjs";import"../chunk-7ECCT6PK.mjs";import"../chunk-SZRZ3HIL.mjs";import"../chunk-FKJ3GCBI.mjs";import"../chunk-CNCRJ56P.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-4YLUM62M.mjs";import"../chunk-QHEKBHNU.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-N4VVDQA5.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-U2PRGW4O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XTOIL6MB.mjs";import"../chunk-EBMEXURY.mjs";import{a as b,b as c,c as d}from"../chunk-STY74NUA.mjs";import{a}from"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-DAFSKSZ5.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-AIABPCUF.mjs";import"../chunk-KDMSOCZY.mjs";export{i as APTOS_BIP44_REGEX,h as APTOS_HARDENED_REGEX,f as AccountAddress,t as AccountPublicKey,e as AddressInvalidReason,fa as AnyPublicKey,ga as AnySignature,g as AuthenticationKey,o as CKDPriv,L as EPK_HORIZON_SECS,x as Ed25519PrivateKey,w as Ed25519PublicKey,y as Ed25519Signature,V as EphemeralCertificate,E as EphemeralPublicKey,F as EphemeralSignature,ea as FederatedKeylessPublicKey,_ as Groth16VerificationKey,W as Groth16Zkp,k as HARDENED_OFFSET,c as Hex,b as HexInvalidReason,j as KeyType,Z as KeylessConfiguration,T as KeylessPublicKey,U as KeylessSignature,M as MAX_AUD_VAL_BYTES,S as MAX_COMMITED_EPK_BYTES,Q as MAX_EXTRA_FIELD_BYTES,P as MAX_ISS_VAL_BYTES,R as MAX_JWT_HEADER_B64_BYTES,N as MAX_UID_KEY_BYTES,O as MAX_UID_VAL_BYTES,ca as MoveJWK,z as MultiEd25519PublicKey,A as MultiEd25519Signature,ha as MultiKey,ia as MultiKeySignature,a as ParsingError,r as PrivateKey,s as PublicKey,C as Secp256k1PrivateKey,B as Secp256k1PublicKey,D as Secp256k1Signature,u as Signature,Y as ZeroKnowledgeSig,X as ZkProof,J as bigIntToBytesLE,I as bytesToBigIntLE,ja as createObjectAddress,ka as createResourceAddress,la as createTokenAddress,n as deriveKey,aa as getIssAudAndUidVal,$ as getKeylessConfig,ba as getKeylessJWKs,G as hashStrToField,d as hexToAsciiString,v as isCanonicalEd25519Signature,l as isValidBIP44Path,m as isValidHardenedPath,q as mnemonicToSeed,H as padAndPackBytesWithLen,da as parseJwtHeader,K as poseidonHash,p as splitPath};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-QHEKBHNU.mjs";import"../chunk-DAFSKSZ5.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-KDMSOCZY.mjs";export{e as AptosApiError,d as KeylessError,a as KeylessErrorCategory,b as KeylessErrorResolutionTip,c as KeylessErrorType};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|