@aptos-labs/ts-sdk 1.33.1 → 1.33.2
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 +4 -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 +1941 -225
- 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 +81 -7
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +5 -4
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +64 -0
- package/dist/esm/account/AccountUtils.mjs +2 -0
- package/dist/esm/account/Ed25519Account.d.mts +3 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +29 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +25 -5
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +30 -5
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +40 -5
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +4 -3
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +4 -2
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +18 -0
- package/dist/esm/account/utils.mjs +2 -0
- package/dist/esm/account/utils.mjs.map +1 -0
- package/dist/esm/api/account.d.mts +25 -4
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +18 -2
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +5 -2
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +16 -0
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +5 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +29 -2
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +6 -0
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +11 -2
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +11 -2
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +14 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +3 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +8 -2
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +3 -0
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +5 -0
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +5 -0
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +23 -6
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +6 -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 +8 -2
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +7 -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 +6 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +6 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +1 -0
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/deserializer.d.mts +42 -1
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +10 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +12 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +24 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +56 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +60 -0
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-PMGK5IHB.mjs → chunk-2FBJWTJD.mjs} +2 -2
- package/dist/esm/chunk-2FBJWTJD.mjs.map +1 -0
- package/dist/esm/{chunk-L4SWQLAJ.mjs → chunk-2N5KYALM.mjs} +2 -2
- package/dist/esm/chunk-2N5KYALM.mjs.map +1 -0
- package/dist/esm/{chunk-7V35JAAF.mjs → chunk-2TJ6OTVD.mjs} +2 -2
- package/dist/esm/chunk-2TJ6OTVD.mjs.map +1 -0
- package/dist/esm/{chunk-GVNK3UMT.mjs → chunk-2UXW3EB7.mjs} +2 -2
- package/dist/esm/chunk-2UXW3EB7.mjs.map +1 -0
- package/dist/esm/{chunk-UJSTWN32.mjs → chunk-2WCATZVL.mjs} +2 -2
- package/dist/esm/{chunk-UJSTWN32.mjs.map → chunk-2WCATZVL.mjs.map} +1 -1
- package/dist/esm/{chunk-FZDEGDUY.mjs → chunk-35DKMW7Q.mjs} +1 -1
- package/dist/esm/chunk-35DKMW7Q.mjs.map +1 -0
- package/dist/esm/{chunk-WFK3XRQX.mjs → chunk-3RCAJICY.mjs} +2 -2
- package/dist/esm/chunk-3RCAJICY.mjs.map +1 -0
- package/dist/esm/{chunk-KCWRCWNT.mjs → chunk-43GCGE6C.mjs} +2 -2
- package/dist/esm/chunk-43GCGE6C.mjs.map +1 -0
- package/dist/esm/{chunk-4DP3PEYK.mjs → chunk-4EUS4E6S.mjs} +2 -2
- package/dist/esm/chunk-4EUS4E6S.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-4YLUM62M.mjs +2 -0
- package/dist/esm/chunk-4YLUM62M.mjs.map +1 -0
- package/dist/esm/{chunk-SNYYEVJA.mjs → chunk-4ZYPDCSP.mjs} +2 -2
- package/dist/esm/chunk-4ZYPDCSP.mjs.map +1 -0
- package/dist/esm/{chunk-F2WY2DEY.mjs → chunk-5EBUWO2M.mjs} +2 -2
- package/dist/esm/chunk-5EBUWO2M.mjs.map +1 -0
- package/dist/esm/{chunk-5LGKGWLX.mjs → chunk-5EYTHMRZ.mjs} +2 -2
- package/dist/esm/chunk-5EYTHMRZ.mjs.map +1 -0
- package/dist/esm/{chunk-DBTKJMLV.mjs → chunk-5PXDPMF2.mjs} +2 -2
- package/dist/esm/chunk-5PXDPMF2.mjs.map +1 -0
- package/dist/esm/chunk-5VMAJTTV.mjs +2 -0
- package/dist/esm/chunk-5VMAJTTV.mjs.map +1 -0
- package/dist/esm/{chunk-YEWZAR76.mjs → chunk-5YWH3XPN.mjs} +2 -2
- package/dist/esm/chunk-5YWH3XPN.mjs.map +1 -0
- package/dist/esm/{chunk-QI7OREBM.mjs → chunk-67ZVDKJF.mjs} +2 -2
- package/dist/esm/chunk-67ZVDKJF.mjs.map +1 -0
- package/dist/esm/{chunk-U6OCK6T4.mjs → chunk-6CXMDJQR.mjs} +2 -2
- package/dist/esm/chunk-6CXMDJQR.mjs.map +1 -0
- package/dist/esm/chunk-6IEZPA4H.mjs +2 -0
- package/dist/esm/chunk-6IEZPA4H.mjs.map +1 -0
- package/dist/esm/{chunk-N62NUAHT.mjs → chunk-6YHDZLRN.mjs} +2 -2
- package/dist/esm/chunk-6YHDZLRN.mjs.map +1 -0
- package/dist/esm/chunk-6YWYAVFS.mjs +2 -0
- package/dist/esm/chunk-6YWYAVFS.mjs.map +1 -0
- package/dist/esm/chunk-77AEKF7K.mjs +2 -0
- package/dist/esm/{chunk-YD2BMHH7.mjs.map → chunk-77AEKF7K.mjs.map} +1 -1
- package/dist/esm/{chunk-XOLU6UP3.mjs → chunk-7IY3DTEF.mjs} +2 -2
- package/dist/esm/chunk-7IY3DTEF.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-ICMELYCL.mjs → chunk-AFEHO5PP.mjs} +2 -2
- package/dist/esm/chunk-AFEHO5PP.mjs.map +1 -0
- package/dist/esm/{chunk-NK67FECB.mjs → chunk-AXYARCYT.mjs} +2 -2
- package/dist/esm/chunk-AXYARCYT.mjs.map +1 -0
- package/dist/esm/{chunk-AOROYJ74.mjs → chunk-AZWVCBK2.mjs} +2 -2
- package/dist/esm/chunk-AZWVCBK2.mjs.map +1 -0
- package/dist/esm/{chunk-U3T4ZT7B.mjs → chunk-BGSEBFFC.mjs} +2 -2
- package/dist/esm/chunk-BGSEBFFC.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-VQZMI3EZ.mjs → chunk-CWKNJZB6.mjs} +2 -2
- package/dist/esm/chunk-CWKNJZB6.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-IBZKCBN5.mjs → chunk-DOQV5BSA.mjs} +2 -2
- package/dist/esm/chunk-DOQV5BSA.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-IK2NYNKG.mjs → chunk-DYATTONT.mjs} +2 -2
- package/dist/esm/chunk-DYATTONT.mjs.map +1 -0
- package/dist/esm/{chunk-ALNQK276.mjs → chunk-E5HGSOG2.mjs} +2 -2
- package/dist/esm/chunk-E5HGSOG2.mjs.map +1 -0
- package/dist/esm/{chunk-2MN7DW2J.mjs → chunk-E7JDVKFY.mjs} +2 -2
- package/dist/esm/chunk-E7JDVKFY.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-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-UGIHQFID.mjs → chunk-FIEMUPXF.mjs} +2 -2
- package/dist/esm/chunk-FIEMUPXF.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-H3C3VTHS.mjs → chunk-FZD5RWSZ.mjs} +2 -2
- package/dist/esm/chunk-FZD5RWSZ.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-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-GP4TLDVZ.mjs.map +1 -0
- package/dist/esm/{chunk-BAEIZAP7.mjs → chunk-HBH2NQKU.mjs} +2 -2
- package/dist/esm/chunk-HBH2NQKU.mjs.map +1 -0
- package/dist/esm/{chunk-ZMMLM6ZJ.mjs → chunk-IDTLNF4M.mjs} +2 -2
- package/dist/esm/chunk-IDTLNF4M.mjs.map +1 -0
- package/dist/esm/{chunk-PXMNAP2Q.mjs → chunk-IEUEMBFD.mjs} +2 -2
- package/dist/esm/chunk-IEUEMBFD.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-JBEUUULP.mjs} +2 -2
- package/dist/esm/chunk-JBEUUULP.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-2ESU5N3V.mjs → chunk-KOORZTHC.mjs} +2 -2
- package/dist/esm/chunk-KOORZTHC.mjs.map +1 -0
- package/dist/esm/{chunk-2QGJDHME.mjs → chunk-KVM2SGSF.mjs} +2 -2
- package/dist/esm/chunk-KVM2SGSF.mjs.map +1 -0
- package/dist/esm/{chunk-5PVZ4N42.mjs → chunk-M77M6NSB.mjs} +2 -2
- package/dist/esm/chunk-M77M6NSB.mjs.map +1 -0
- package/dist/esm/{chunk-G4KAHJXB.mjs → chunk-MCLYDS3O.mjs} +2 -2
- package/dist/esm/chunk-MCLYDS3O.mjs.map +1 -0
- package/dist/esm/{chunk-46O23AOD.mjs → chunk-MLSAZJZK.mjs} +2 -2
- package/dist/esm/chunk-MLSAZJZK.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-MWBRD43V.mjs +2 -0
- package/dist/esm/chunk-MWBRD43V.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-LGTOOAQI.mjs → chunk-N6YTF76Q.mjs} +2 -2
- package/dist/esm/chunk-N6YTF76Q.mjs.map +1 -0
- package/dist/esm/{chunk-7N7FEBZA.mjs → chunk-NBNZ53ZV.mjs} +2 -2
- package/dist/esm/chunk-NBNZ53ZV.mjs.map +1 -0
- package/dist/esm/{chunk-CX6KECGV.mjs → chunk-NWLJ6RW7.mjs} +2 -2
- package/dist/esm/chunk-NWLJ6RW7.mjs.map +1 -0
- package/dist/esm/{chunk-VIZHWYI5.mjs → chunk-NYETBDSR.mjs} +2 -2
- package/dist/esm/chunk-NYETBDSR.mjs.map +1 -0
- package/dist/esm/{chunk-SK3LIS4Z.mjs → chunk-OEQ2U7GK.mjs} +2 -2
- package/dist/esm/chunk-OEQ2U7GK.mjs.map +1 -0
- package/dist/esm/{chunk-2C27NY4D.mjs → chunk-OHZURQPY.mjs} +2 -2
- package/dist/esm/chunk-OHZURQPY.mjs.map +1 -0
- package/dist/esm/{chunk-333QBK32.mjs → chunk-ONTWK5FU.mjs} +2 -2
- package/dist/esm/chunk-ONTWK5FU.mjs.map +1 -0
- package/dist/esm/chunk-OR6GFWLG.mjs +2 -0
- package/dist/esm/chunk-OR6GFWLG.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-S5SQJRAV.mjs → chunk-OROPNHRY.mjs} +2 -2
- package/dist/esm/chunk-OROPNHRY.mjs.map +1 -0
- package/dist/esm/{chunk-VWGB5BHW.mjs → chunk-OSBRPVVI.mjs} +2 -2
- package/dist/esm/chunk-OSBRPVVI.mjs.map +1 -0
- package/dist/esm/{chunk-NZ7M6NG2.mjs → chunk-P7A5RILV.mjs} +2 -2
- package/dist/esm/{chunk-JNO7KPMG.mjs → chunk-Q4C4U6I4.mjs} +2 -2
- package/dist/esm/chunk-Q4C4U6I4.mjs.map +1 -0
- package/dist/esm/{chunk-HMMNQFVM.mjs → chunk-QHC5DKVZ.mjs} +2 -2
- package/dist/esm/chunk-QHC5DKVZ.mjs.map +1 -0
- package/dist/esm/{chunk-F45G3GP3.mjs → chunk-QHEKBHNU.mjs} +2 -2
- package/dist/esm/chunk-QQEK7WVP.mjs +2 -0
- package/dist/esm/chunk-QQEK7WVP.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-LKKI2KAP.mjs → chunk-S4LZMY2L.mjs} +2 -2
- package/dist/esm/chunk-S4LZMY2L.mjs.map +1 -0
- package/dist/esm/{chunk-33CVOPIN.mjs → chunk-S7RZGC56.mjs} +2 -2
- package/dist/esm/{chunk-33CVOPIN.mjs.map → chunk-S7RZGC56.mjs.map} +1 -1
- package/dist/esm/{chunk-SPRNSFUV.mjs → chunk-STY74NUA.mjs} +2 -2
- package/dist/esm/chunk-STY74NUA.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-7T26VA2W.mjs → chunk-UC23V7PU.mjs} +2 -2
- package/dist/esm/chunk-UC23V7PU.mjs.map +1 -0
- package/dist/esm/{chunk-4MTSP4S2.mjs → chunk-V6VPMNWJ.mjs} +2 -2
- package/dist/esm/chunk-V6VPMNWJ.mjs.map +1 -0
- package/dist/esm/{chunk-JMPHD4BP.mjs → chunk-VUIHJIMX.mjs} +2 -2
- package/dist/esm/chunk-VUIHJIMX.mjs.map +1 -0
- package/dist/esm/{chunk-2KSMV5KD.mjs → chunk-VV4HCOJQ.mjs} +2 -2
- package/dist/esm/chunk-VV4HCOJQ.mjs.map +1 -0
- package/dist/esm/{chunk-XZN344G4.mjs → chunk-VVXBVJXD.mjs} +2 -2
- package/dist/esm/chunk-VVXBVJXD.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-UFPYCROT.mjs → chunk-WQRGDSPD.mjs} +2 -2
- package/dist/esm/chunk-WQRGDSPD.mjs.map +1 -0
- package/dist/esm/chunk-WUWPN7XV.mjs +2 -0
- package/dist/esm/chunk-WUWPN7XV.mjs.map +1 -0
- package/dist/esm/{chunk-LA5HJILW.mjs → chunk-X6UNY6YM.mjs} +2 -2
- package/dist/esm/chunk-X6UNY6YM.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-XTJOA5QN.mjs +2 -0
- package/dist/esm/chunk-XTJOA5QN.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-ZMS3AOEZ.mjs → chunk-XY43TPRH.mjs} +2 -2
- package/dist/esm/chunk-XY43TPRH.mjs.map +1 -0
- package/dist/esm/{chunk-EGV3HFE3.mjs → chunk-XYB6KYKW.mjs} +2 -2
- package/dist/esm/chunk-XYB6KYKW.mjs.map +1 -0
- package/dist/esm/{chunk-RCA73RVB.mjs → chunk-XZ4JRYCE.mjs} +2 -2
- package/dist/esm/chunk-XZ4JRYCE.mjs.map +1 -0
- package/dist/esm/{chunk-4XB3BB5Z.mjs → chunk-YCQUYDZI.mjs} +2 -2
- package/dist/esm/chunk-YCQUYDZI.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-ZAIVZDOL.mjs +2 -0
- package/dist/esm/chunk-ZAIVZDOL.mjs.map +1 -0
- package/dist/esm/{chunk-ZXVN3HXB.mjs → chunk-ZGVNZE7J.mjs} +2 -2
- package/dist/esm/chunk-ZGVNZE7J.mjs.map +1 -0
- package/dist/esm/{chunk-YJVZFYBX.mjs → chunk-ZPV7HPA4.mjs} +2 -2
- package/dist/esm/chunk-ZPV7HPA4.mjs.map +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 +26 -0
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.d.mts +4 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +33 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +37 -0
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +6 -0
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +46 -0
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +1 -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 +57 -5
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +23 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +13 -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 +2 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +131 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +41 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +38 -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 +9 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +2 -0
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +50 -3
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +6 -0
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +36 -2
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.d.mts +2 -0
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.d.mts +20 -0
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +2 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +5 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +24 -4
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +27 -2
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +3 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +31 -2
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +5 -0
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +5 -0
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +8 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +7 -0
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +6 -2
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +2 -0
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +5 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +3 -0
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +14 -0
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +16 -5
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +2 -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 +28 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +2 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +23 -2
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +2 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +8 -0
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +8 -0
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +2 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +10 -0
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +8 -0
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +30 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +7 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +10 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +8 -0
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +16 -0
- package/dist/esm/transactions/instances/transactionPayload.d.mts +48 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +19 -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 +3 -2
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +45 -7
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +64 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +14 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +10 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +42 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +82 -0
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +8 -0
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +80 -1
- 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/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 +20 -0
- package/dist/esm/utils/helpers.mjs +1 -1
- 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 +8 -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 +19 -20
- 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 +4 -0
- 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/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/transactionBuilder/helpers.ts +82 -10
- package/src/transactions/transactionBuilder/remoteAbi.ts +20 -0
- 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 +78 -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.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-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-IBZKCBN5.mjs.map +0 -1
- 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-GAEAYY44.mjs.map → account/AccountUtils.mjs.map} +0 -0
- /package/dist/esm/{chunk-NZ7M6NG2.mjs.map → chunk-P7A5RILV.mjs.map} +0 -0
- /package/dist/esm/{chunk-F45G3GP3.mjs.map → chunk-QHEKBHNU.mjs.map} +0 -0
|
@@ -15,6 +15,8 @@ import { convertSigningMessage } from "./utils";
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* L is the value that greater than or equal to will produce a non-canonical signature, and must be rejected
|
|
18
|
+
* @group Implementation
|
|
19
|
+
* @category Serialization
|
|
18
20
|
*/
|
|
19
21
|
const L: number[] = [
|
|
20
22
|
0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, 0x00, 0x00, 0x00,
|
|
@@ -30,6 +32,8 @@ const L: number[] = [
|
|
|
30
32
|
*
|
|
31
33
|
* Comes from Aptos Core
|
|
32
34
|
* https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos-crypto/src/ed25519/ed25519_sigs.rs#L47-L85
|
|
35
|
+
* @group Implementation
|
|
36
|
+
* @category Serialization
|
|
33
37
|
*/
|
|
34
38
|
export function isCanonicalEd25519Signature(signature: Signature): boolean {
|
|
35
39
|
const s = signature.toUint8Array().slice(32);
|
|
@@ -53,16 +57,22 @@ export function isCanonicalEd25519Signature(signature: Signature): boolean {
|
|
|
53
57
|
*
|
|
54
58
|
* Ed25519 scheme is represented in the SDK as `Legacy authentication key` and also
|
|
55
59
|
* as `AnyPublicKey` that represents any `Unified authentication key`.
|
|
60
|
+
* @group Implementation
|
|
61
|
+
* @category Serialization
|
|
56
62
|
*/
|
|
57
63
|
export class Ed25519PublicKey extends AccountPublicKey {
|
|
58
64
|
/**
|
|
59
65
|
* Length of an Ed25519 public key
|
|
66
|
+
* @group Implementation
|
|
67
|
+
* @category Serialization
|
|
60
68
|
*/
|
|
61
69
|
static readonly LENGTH: number = 32;
|
|
62
70
|
|
|
63
71
|
/**
|
|
64
72
|
* Bytes of the public key
|
|
65
73
|
* @private
|
|
74
|
+
* @group Implementation
|
|
75
|
+
* @category Serialization
|
|
66
76
|
*/
|
|
67
77
|
private readonly key: Hex;
|
|
68
78
|
|
|
@@ -72,6 +82,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
72
82
|
*
|
|
73
83
|
* @param hexInput - The hex input representing the Ed25519 signature.
|
|
74
84
|
* @throws Error if the signature length is not equal to Ed25519Signature.LENGTH.
|
|
85
|
+
* @group Implementation
|
|
86
|
+
* @category Serialization
|
|
75
87
|
*/
|
|
76
88
|
constructor(hexInput: HexInput) {
|
|
77
89
|
super();
|
|
@@ -91,6 +103,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
91
103
|
* @param args - The arguments for verification.
|
|
92
104
|
* @param args.message - A signed message as a Hex string or Uint8Array.
|
|
93
105
|
* @param args.signature - The signature of the message.
|
|
106
|
+
* @group Implementation
|
|
107
|
+
* @category Serialization
|
|
94
108
|
*/
|
|
95
109
|
verifySignature(args: VerifySignatureArgs): boolean {
|
|
96
110
|
const { message, signature } = args;
|
|
@@ -111,6 +125,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
111
125
|
* This function is essential for creating a secure authentication key that can be used for further cryptographic operations.
|
|
112
126
|
*
|
|
113
127
|
* @returns {AuthenticationKey} The generated authentication key.
|
|
128
|
+
* @group Implementation
|
|
129
|
+
* @category Serialization
|
|
114
130
|
*/
|
|
115
131
|
authKey(): AuthenticationKey {
|
|
116
132
|
return AuthenticationKey.fromSchemeAndBytes({
|
|
@@ -123,6 +139,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
123
139
|
* Convert the internal data representation to a Uint8Array.
|
|
124
140
|
*
|
|
125
141
|
* @returns Uint8Array representation of the data.
|
|
142
|
+
* @group Implementation
|
|
143
|
+
* @category Serialization
|
|
126
144
|
*/
|
|
127
145
|
toUint8Array(): Uint8Array {
|
|
128
146
|
return this.key.toUint8Array();
|
|
@@ -137,6 +155,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
137
155
|
* This allows for the conversion of data into a format suitable for transmission or storage.
|
|
138
156
|
*
|
|
139
157
|
* @param serializer - The serializer instance used to perform the serialization.
|
|
158
|
+
* @group Implementation
|
|
159
|
+
* @category Serialization
|
|
140
160
|
*/
|
|
141
161
|
serialize(serializer: Serializer): void {
|
|
142
162
|
serializer.serializeBytes(this.key.toUint8Array());
|
|
@@ -147,6 +167,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
147
167
|
* This function is used to convert serialized byte data into a usable Ed25519Signature instance.
|
|
148
168
|
*
|
|
149
169
|
* @param deserializer - The deserializer instance used to read the byte data.
|
|
170
|
+
* @group Implementation
|
|
171
|
+
* @category Serialization
|
|
150
172
|
*/
|
|
151
173
|
static deserialize(deserializer: Deserializer): Ed25519PublicKey {
|
|
152
174
|
const bytes = deserializer.deserializeBytes();
|
|
@@ -161,6 +183,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
161
183
|
* @param publicKey - The public key to check.
|
|
162
184
|
* @returns True if the public key is an instance of Ed25519PublicKey, otherwise false.
|
|
163
185
|
* @deprecated use `instanceof Ed25519PublicKey` instead.
|
|
186
|
+
* @group Implementation
|
|
187
|
+
* @category Serialization
|
|
164
188
|
*/
|
|
165
189
|
static isPublicKey(publicKey: AccountPublicKey): publicKey is Ed25519PublicKey {
|
|
166
190
|
return publicKey instanceof Ed25519PublicKey;
|
|
@@ -173,6 +197,8 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
173
197
|
*
|
|
174
198
|
* @param publicKey - The public key to validate.
|
|
175
199
|
* @returns A boolean indicating whether the public key is a valid Ed25519 public key.
|
|
200
|
+
* @group Implementation
|
|
201
|
+
* @category Serialization
|
|
176
202
|
*/
|
|
177
203
|
static isInstance(publicKey: PublicKey): publicKey is Ed25519PublicKey {
|
|
178
204
|
return "key" in publicKey && (publicKey.key as any)?.data?.length === Ed25519PublicKey.LENGTH;
|
|
@@ -181,24 +207,30 @@ export class Ed25519PublicKey extends AccountPublicKey {
|
|
|
181
207
|
|
|
182
208
|
/**
|
|
183
209
|
* Represents the private key of an Ed25519 key pair.
|
|
210
|
+
* @group Implementation
|
|
211
|
+
* @category Serialization
|
|
184
212
|
*/
|
|
185
213
|
export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
186
214
|
/**
|
|
187
215
|
* Length of an Ed25519 private key
|
|
188
|
-
* @
|
|
216
|
+
* @group Implementation
|
|
217
|
+
* @category Serialization
|
|
189
218
|
*/
|
|
190
219
|
static readonly LENGTH: number = 32;
|
|
191
220
|
|
|
192
221
|
/**
|
|
193
222
|
* The Ed25519 key seed to use for BIP-32 compatibility
|
|
194
223
|
* See more {@link https://github.com/satoshilabs/slips/blob/master/slip-0010.md}
|
|
195
|
-
* @
|
|
224
|
+
* @group Implementation
|
|
225
|
+
* @category Serialization
|
|
196
226
|
*/
|
|
197
227
|
static readonly SLIP_0010_SEED = "ed25519 seed";
|
|
198
228
|
|
|
199
229
|
/**
|
|
200
230
|
* The Ed25519 signing key
|
|
201
231
|
* @private
|
|
232
|
+
* @group Implementation
|
|
233
|
+
* @category Serialization
|
|
202
234
|
*/
|
|
203
235
|
private readonly signingKey: Hex;
|
|
204
236
|
|
|
@@ -211,6 +243,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
211
243
|
*
|
|
212
244
|
* @param hexInput HexInput (string or Uint8Array)
|
|
213
245
|
* @param strict If true, private key must AIP-80 compliant.
|
|
246
|
+
* @group Implementation
|
|
247
|
+
* @category Serialization
|
|
214
248
|
*/
|
|
215
249
|
constructor(hexInput: HexInput, strict?: boolean) {
|
|
216
250
|
super();
|
|
@@ -228,6 +262,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
228
262
|
* Generate a new random private key.
|
|
229
263
|
*
|
|
230
264
|
* @returns Ed25519PrivateKey A newly generated Ed25519 private key.
|
|
265
|
+
* @group Implementation
|
|
266
|
+
* @category Serialization
|
|
231
267
|
*/
|
|
232
268
|
static generate(): Ed25519PrivateKey {
|
|
233
269
|
const keyPair = ed25519.utils.randomPrivateKey();
|
|
@@ -243,6 +279,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
243
279
|
* @param path - The BIP44 path used for key derivation.
|
|
244
280
|
* @param mnemonics - The mnemonic seed phrase from which the key will be derived.
|
|
245
281
|
* @throws Error if the provided path is not a valid hardened path.
|
|
282
|
+
* @group Implementation
|
|
283
|
+
* @category Serialization
|
|
246
284
|
*/
|
|
247
285
|
static fromDerivationPath(path: string, mnemonics: string): Ed25519PrivateKey {
|
|
248
286
|
if (!isValidHardenedPath(path)) {
|
|
@@ -260,6 +298,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
260
298
|
* @param seed - The seed phrase created by the mnemonics, represented as a Uint8Array.
|
|
261
299
|
* @param offset - The offset used for key derivation, defaults to HARDENED_OFFSET.
|
|
262
300
|
* @returns An instance of Ed25519PrivateKey derived from the specified path and seed.
|
|
301
|
+
* @group Implementation
|
|
302
|
+
* @category Serialization
|
|
263
303
|
*/
|
|
264
304
|
private static fromDerivationPathInner(path: string, seed: Uint8Array, offset = HARDENED_OFFSET): Ed25519PrivateKey {
|
|
265
305
|
const { key, chainCode } = deriveKey(Ed25519PrivateKey.SLIP_0010_SEED, seed);
|
|
@@ -282,6 +322,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
282
322
|
* Derive the Ed25519PublicKey for this private key.
|
|
283
323
|
*
|
|
284
324
|
* @returns Ed25519PublicKey - The derived public key corresponding to the private key.
|
|
325
|
+
* @group Implementation
|
|
326
|
+
* @category Serialization
|
|
285
327
|
*/
|
|
286
328
|
publicKey(): Ed25519PublicKey {
|
|
287
329
|
const bytes = ed25519.getPublicKey(this.signingKey.toUint8Array());
|
|
@@ -294,6 +336,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
294
336
|
*
|
|
295
337
|
* @param message - A message as a string or Uint8Array in HexInput format.
|
|
296
338
|
* @returns A digital signature for the provided message.
|
|
339
|
+
* @group Implementation
|
|
340
|
+
* @category Serialization
|
|
297
341
|
*/
|
|
298
342
|
sign(message: HexInput): Ed25519Signature {
|
|
299
343
|
const messageToSign = convertSigningMessage(message);
|
|
@@ -306,6 +350,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
306
350
|
* Get the private key in bytes (Uint8Array).
|
|
307
351
|
*
|
|
308
352
|
* @returns Uint8Array representation of the private key
|
|
353
|
+
* @group Implementation
|
|
354
|
+
* @category Serialization
|
|
309
355
|
*/
|
|
310
356
|
toUint8Array(): Uint8Array {
|
|
311
357
|
return this.signingKey.toUint8Array();
|
|
@@ -315,6 +361,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
315
361
|
* Get the private key as a hex string with the 0x prefix.
|
|
316
362
|
*
|
|
317
363
|
* @returns string representation of the private key.
|
|
364
|
+
* @group Implementation
|
|
365
|
+
* @category Serialization
|
|
318
366
|
*/
|
|
319
367
|
toString(): string {
|
|
320
368
|
return this.toHexString();
|
|
@@ -362,6 +410,8 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
362
410
|
* @returns A boolean indicating whether the private key is an Ed25519PrivateKey.
|
|
363
411
|
*
|
|
364
412
|
* @deprecated Use `instanceof Ed25519PrivateKey` instead.
|
|
413
|
+
* @group Implementation
|
|
414
|
+
* @category Serialization
|
|
365
415
|
*/
|
|
366
416
|
static isPrivateKey(privateKey: PrivateKey): privateKey is Ed25519PrivateKey {
|
|
367
417
|
return privateKey instanceof Ed25519PrivateKey;
|
|
@@ -370,18 +420,22 @@ export class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
370
420
|
|
|
371
421
|
/**
|
|
372
422
|
* Represents a signature of a message signed using an Ed25519 private key.
|
|
423
|
+
* @group Implementation
|
|
424
|
+
* @category Serialization
|
|
373
425
|
*/
|
|
374
426
|
export class Ed25519Signature extends Signature {
|
|
375
427
|
/**
|
|
376
428
|
* Length of an Ed25519 signature, which is 64 bytes.
|
|
377
|
-
*
|
|
378
|
-
* @
|
|
429
|
+
* @group Implementation
|
|
430
|
+
* @category Serialization
|
|
379
431
|
*/
|
|
380
432
|
static readonly LENGTH = 64;
|
|
381
433
|
|
|
382
434
|
/**
|
|
383
435
|
* The signature bytes
|
|
384
436
|
* @private
|
|
437
|
+
* @group Implementation
|
|
438
|
+
* @category Serialization
|
|
385
439
|
*/
|
|
386
440
|
private readonly data: Hex;
|
|
387
441
|
|
|
@@ -9,15 +9,21 @@ import { Hex } from "../hex";
|
|
|
9
9
|
* Represents ephemeral public keys for Aptos Keyless accounts.
|
|
10
10
|
*
|
|
11
11
|
* These keys are used only temporarily within Keyless accounts and are not utilized as public keys for account identification.
|
|
12
|
+
* @group Implementation
|
|
13
|
+
* @category Serialization
|
|
12
14
|
*/
|
|
13
15
|
export class EphemeralPublicKey extends PublicKey {
|
|
14
16
|
/**
|
|
15
17
|
* The public key itself
|
|
18
|
+
* @group Implementation
|
|
19
|
+
* @category Serialization
|
|
16
20
|
*/
|
|
17
21
|
public readonly publicKey: PublicKey;
|
|
18
22
|
|
|
19
23
|
/**
|
|
20
24
|
* An enum indicating the scheme of the ephemeral public key
|
|
25
|
+
* @group Implementation
|
|
26
|
+
* @category Serialization
|
|
21
27
|
*/
|
|
22
28
|
public readonly variant: EphemeralPublicKeyVariant;
|
|
23
29
|
|
|
@@ -27,6 +33,8 @@ export class EphemeralPublicKey extends PublicKey {
|
|
|
27
33
|
*
|
|
28
34
|
* @param publicKey - The public key to be used for the ephemeral public key.
|
|
29
35
|
* @throws Error if the signature type is unsupported.
|
|
36
|
+
* @group Implementation
|
|
37
|
+
* @category Serialization
|
|
30
38
|
*/
|
|
31
39
|
constructor(publicKey: PublicKey) {
|
|
32
40
|
super();
|
|
@@ -48,6 +56,8 @@ export class EphemeralPublicKey extends PublicKey {
|
|
|
48
56
|
* @param args.message - The message that was signed.
|
|
49
57
|
* @param args.signature - The signature that was signed by the private key of the ephemeral public key.
|
|
50
58
|
* @returns true if the signature is valid, otherwise false.
|
|
59
|
+
* @group Implementation
|
|
60
|
+
* @category Serialization
|
|
51
61
|
*/
|
|
52
62
|
verifySignature(args: { message: HexInput; signature: EphemeralSignature }): boolean {
|
|
53
63
|
const { message, signature } = args;
|
|
@@ -60,6 +70,8 @@ export class EphemeralPublicKey extends PublicKey {
|
|
|
60
70
|
*
|
|
61
71
|
* @param serializer - The serializer instance used to serialize the signature.
|
|
62
72
|
* @throws Error if the signature type is unknown.
|
|
73
|
+
* @group Implementation
|
|
74
|
+
* @category Serialization
|
|
63
75
|
*/
|
|
64
76
|
serialize(serializer: Serializer): void {
|
|
65
77
|
if (this.publicKey instanceof Ed25519PublicKey) {
|
|
@@ -75,6 +87,8 @@ export class EphemeralPublicKey extends PublicKey {
|
|
|
75
87
|
* This function allows you to retrieve an EphemeralSignature based on the deserialized data.
|
|
76
88
|
*
|
|
77
89
|
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
90
|
+
* @group Implementation
|
|
91
|
+
* @category Serialization
|
|
78
92
|
*/
|
|
79
93
|
static deserialize(deserializer: Deserializer): EphemeralPublicKey {
|
|
80
94
|
const index = deserializer.deserializeUleb128AsU32();
|
|
@@ -91,6 +105,8 @@ export class EphemeralPublicKey extends PublicKey {
|
|
|
91
105
|
*
|
|
92
106
|
* @param publicKey - The public key to check.
|
|
93
107
|
* @returns A boolean indicating whether the public key is an ephemeral type.
|
|
108
|
+
* @group Implementation
|
|
109
|
+
* @category Serialization
|
|
94
110
|
*/
|
|
95
111
|
static isPublicKey(publicKey: PublicKey): publicKey is EphemeralPublicKey {
|
|
96
112
|
return publicKey instanceof EphemeralPublicKey;
|
|
@@ -101,10 +117,14 @@ export class EphemeralPublicKey extends PublicKey {
|
|
|
101
117
|
* Represents ephemeral signatures used in Aptos Keyless accounts.
|
|
102
118
|
*
|
|
103
119
|
* These signatures are utilized within the KeylessSignature framework.
|
|
120
|
+
* @group Implementation
|
|
121
|
+
* @category Serialization
|
|
104
122
|
*/
|
|
105
123
|
export class EphemeralSignature extends Signature {
|
|
106
124
|
/**
|
|
107
125
|
* The signature signed by the private key of an EphemeralKeyPair
|
|
126
|
+
* @group Implementation
|
|
127
|
+
* @category Serialization
|
|
108
128
|
*/
|
|
109
129
|
public readonly signature: Signature;
|
|
110
130
|
|
|
@@ -126,6 +146,8 @@ export class EphemeralSignature extends Signature {
|
|
|
126
146
|
* further processing.
|
|
127
147
|
*
|
|
128
148
|
* @param hexInput - The hexadecimal input representing the ephemeral signature.
|
|
149
|
+
* @group Implementation
|
|
150
|
+
* @category Serialization
|
|
129
151
|
*/
|
|
130
152
|
static fromHex(hexInput: HexInput): EphemeralSignature {
|
|
131
153
|
const data = Hex.fromHexInput(hexInput);
|
|
@@ -14,15 +14,21 @@ import { KeylessPublicKey, KeylessSignature } from "./keyless";
|
|
|
14
14
|
* These keys use an on-chain address as a source of truth for the JWK used to verify signatures.
|
|
15
15
|
*
|
|
16
16
|
* FederatedKeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
|
|
17
|
+
* @group Implementation
|
|
18
|
+
* @category Serialization
|
|
17
19
|
*/
|
|
18
20
|
export class FederatedKeylessPublicKey extends AccountPublicKey {
|
|
19
21
|
/**
|
|
20
22
|
* The address that contains the JWK set to be used for verification.
|
|
23
|
+
* @group Implementation
|
|
24
|
+
* @category Serialization
|
|
21
25
|
*/
|
|
22
26
|
readonly jwkAddress: AccountAddress;
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
29
|
* The inner public key which contains the standard Keyless public key.
|
|
30
|
+
* @group Implementation
|
|
31
|
+
* @category Serialization
|
|
26
32
|
*/
|
|
27
33
|
readonly keylessPublicKey: KeylessPublicKey;
|
|
28
34
|
|
|
@@ -36,6 +42,8 @@ export class FederatedKeylessPublicKey extends AccountPublicKey {
|
|
|
36
42
|
* Get the authentication key for the federated keyless public key
|
|
37
43
|
*
|
|
38
44
|
* @returns AuthenticationKey
|
|
45
|
+
* @group Implementation
|
|
46
|
+
* @category Serialization
|
|
39
47
|
*/
|
|
40
48
|
authKey(): AuthenticationKey {
|
|
41
49
|
const serializer = new Serializer();
|
|
@@ -53,6 +61,8 @@ export class FederatedKeylessPublicKey extends AccountPublicKey {
|
|
|
53
61
|
* @param args.message message
|
|
54
62
|
* @param args.signature The signature
|
|
55
63
|
* @returns true if the signature is valid
|
|
64
|
+
* @group Implementation
|
|
65
|
+
* @category Serialization
|
|
56
66
|
*/
|
|
57
67
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars, class-methods-use-this
|
|
58
68
|
verifySignature(args: { message: HexInput; signature: KeylessSignature }): boolean {
|
|
@@ -83,6 +93,8 @@ export class FederatedKeylessPublicKey extends AccountPublicKey {
|
|
|
83
93
|
* @param args.aud the client ID of the application
|
|
84
94
|
* @param args.pepper The pepper used to maintain privacy of the account
|
|
85
95
|
* @returns FederatedKeylessPublicKey
|
|
96
|
+
* @group Implementation
|
|
97
|
+
* @category Serialization
|
|
86
98
|
*/
|
|
87
99
|
static create(args: {
|
|
88
100
|
iss: string;
|
package/src/core/crypto/hdKey.ts
CHANGED
|
@@ -7,6 +7,8 @@ import * as bip39 from "@scure/bip39";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Contains the derived cryptographic key as a Uint8Array.
|
|
10
|
+
* @group Implementation
|
|
11
|
+
* @category Serialization
|
|
10
12
|
*/
|
|
11
13
|
export type DerivedKeys = {
|
|
12
14
|
key: Uint8Array;
|
|
@@ -15,17 +17,30 @@ export type DerivedKeys = {
|
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* Aptos derive path is 637
|
|
20
|
+
* @group Implementation
|
|
21
|
+
* @category Serialization
|
|
18
22
|
*/
|
|
19
23
|
export const APTOS_HARDENED_REGEX = /^m\/44'\/637'\/[0-9]+'\/[0-9]+'\/[0-9]+'?$/;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @group Implementation
|
|
27
|
+
* @category Serialization
|
|
28
|
+
*/
|
|
20
29
|
export const APTOS_BIP44_REGEX = /^m\/44'\/637'\/[0-9]+'\/[0-9]+\/[0-9]+$/;
|
|
21
30
|
|
|
22
31
|
/**
|
|
23
32
|
* Supported key types and their associated seeds.
|
|
33
|
+
* @group Implementation
|
|
34
|
+
* @category Serialization
|
|
24
35
|
*/
|
|
25
36
|
export enum KeyType {
|
|
26
37
|
ED25519 = "ed25519 seed",
|
|
27
38
|
}
|
|
28
39
|
|
|
40
|
+
/**
|
|
41
|
+
* @group Implementation
|
|
42
|
+
* @category Serialization
|
|
43
|
+
*/
|
|
29
44
|
export const HARDENED_OFFSET = 0x80000000;
|
|
30
45
|
|
|
31
46
|
/**
|
|
@@ -37,6 +52,8 @@ export const HARDENED_OFFSET = 0x80000000;
|
|
|
37
52
|
* Note that for Secp256k1, the last two components must be non-hardened.
|
|
38
53
|
*
|
|
39
54
|
* @param path - The path string to validate (e.g. `m/44'/637'/0'/0/0`).
|
|
55
|
+
* @group Implementation
|
|
56
|
+
* @category Serialization
|
|
40
57
|
*/
|
|
41
58
|
export function isValidBIP44Path(path: string): boolean {
|
|
42
59
|
return APTOS_BIP44_REGEX.test(path);
|
|
@@ -57,11 +74,17 @@ export function isValidBIP44Path(path: string): boolean {
|
|
|
57
74
|
* with the hash function breaking the homomorphism.
|
|
58
75
|
*
|
|
59
76
|
* @param path - The derivation path string to validate (e.g. `m/44'/637'/0'/0'/0'`).
|
|
77
|
+
* @group Implementation
|
|
78
|
+
* @category Serialization
|
|
60
79
|
*/
|
|
61
80
|
export function isValidHardenedPath(path: string): boolean {
|
|
62
81
|
return APTOS_HARDENED_REGEX.test(path);
|
|
63
82
|
}
|
|
64
83
|
|
|
84
|
+
/**
|
|
85
|
+
* @group Implementation
|
|
86
|
+
* @category Serialization
|
|
87
|
+
*/
|
|
65
88
|
export const deriveKey = (hashSeed: Uint8Array | string, data: Uint8Array | string): DerivedKeys => {
|
|
66
89
|
const digest = hmac.create(sha512, hashSeed).update(data).digest();
|
|
67
90
|
return {
|
|
@@ -75,6 +98,8 @@ export const deriveKey = (hashSeed: Uint8Array | string, data: Uint8Array | stri
|
|
|
75
98
|
* @param key
|
|
76
99
|
* @param chainCode
|
|
77
100
|
* @param index
|
|
101
|
+
* @group Implementation
|
|
102
|
+
* @category Serialization
|
|
78
103
|
*/
|
|
79
104
|
export const CKDPriv = ({ key, chainCode }: DerivedKeys, index: number): DerivedKeys => {
|
|
80
105
|
const buffer = new ArrayBuffer(4);
|
|
@@ -90,12 +115,16 @@ const removeApostrophes = (val: string): string => val.replace(/'/g, "");
|
|
|
90
115
|
/**
|
|
91
116
|
* Splits derive path into segments
|
|
92
117
|
* @param path
|
|
118
|
+
* @group Implementation
|
|
119
|
+
* @category Serialization
|
|
93
120
|
*/
|
|
94
121
|
export const splitPath = (path: string): Array<string> => path.split("/").slice(1).map(removeApostrophes);
|
|
95
122
|
|
|
96
123
|
/**
|
|
97
124
|
* Normalizes the mnemonic by removing extra whitespace and making it lowercase
|
|
98
125
|
* @param mnemonic the mnemonic seed phrase
|
|
126
|
+
* @group Implementation
|
|
127
|
+
* @category Serialization
|
|
99
128
|
*/
|
|
100
129
|
export const mnemonicToSeed = (mnemonic: string): Uint8Array => {
|
|
101
130
|
const normalizedMnemonic = mnemonic
|