@aptos-labs/ts-sdk 1.14.0-zeta.0 → 1.14.0-zeta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/{accountAddress-NPQwRmxn.d.ts → accountAddress-u9wEan9p.d.ts} +32 -4
- package/dist/common/chunk-QRI7EC4T.js +24 -0
- package/dist/common/chunk-QRI7EC4T.js.map +1 -0
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +245 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +290 -171
- package/dist/common/index.js +11786 -374
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/Account.mjs +55 -1
- package/dist/esm/account/Ed25519Account.mjs +53 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +38 -5
- package/dist/esm/account/EphemeralKeyPair.mjs +36 -1
- package/dist/esm/account/KeylessAccount.d.mts +75 -37
- package/dist/esm/account/KeylessAccount.mjs +56 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +4 -0
- package/dist/esm/account/MultiKeyAccount.mjs +55 -1
- package/dist/esm/account/SingleKeyAccount.mjs +53 -1
- package/dist/esm/account/index.d.mts +2 -1
- package/dist/esm/account/index.mjs +76 -1
- package/dist/esm/api/account.mjs +76 -1
- package/dist/esm/api/ans.mjs +87 -1
- package/dist/esm/api/aptos.d.mts +1 -0
- package/dist/esm/api/aptos.mjs +116 -1
- package/dist/esm/api/aptosConfig.mjs +9 -1
- package/dist/esm/api/coin.mjs +86 -1
- package/dist/esm/api/digitalAsset.mjs +87 -1
- package/dist/esm/api/event.mjs +54 -1
- package/dist/esm/api/faucet.mjs +53 -1
- package/dist/esm/api/fungibleAsset.mjs +87 -1
- package/dist/esm/api/general.mjs +84 -1
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +120 -1
- package/dist/esm/api/keyless.d.mts +19 -5
- package/dist/esm/api/keyless.mjs +70 -1
- package/dist/esm/api/staking.mjs +54 -1
- package/dist/esm/api/transaction.mjs +94 -1
- package/dist/esm/api/transactionSubmission/build.mjs +85 -1
- package/dist/esm/api/transactionSubmission/helpers.mjs +9 -1
- package/dist/esm/api/transactionSubmission/management.mjs +89 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +109 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +86 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +86 -1
- package/dist/esm/api/utils.mjs +34 -1
- package/dist/esm/bcs/consts.mjs +17 -1
- package/dist/esm/bcs/deserializer.d.mts +26 -0
- package/dist/esm/bcs/deserializer.mjs +8 -1
- package/dist/esm/bcs/index.mjs +57 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +12 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +11 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +25 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +18 -1
- package/dist/esm/bcs/serializer.mjs +18 -1
- package/dist/esm/chunk-2JOCR2VL.mjs +32 -0
- package/dist/esm/chunk-2JOCR2VL.mjs.map +1 -0
- package/dist/esm/chunk-2OQW7BMN.mjs +129 -0
- package/dist/esm/{chunk-7WJTKYRG.mjs.map → chunk-2OQW7BMN.mjs.map} +1 -1
- package/dist/esm/chunk-2TJJWII2.mjs +23 -0
- package/dist/esm/{chunk-MGOHPDX4.mjs.map → chunk-2TJJWII2.mjs.map} +1 -1
- package/dist/esm/chunk-2ZEGJU43.mjs +252 -0
- package/dist/esm/{chunk-KWNBC5MF.mjs.map → chunk-2ZEGJU43.mjs.map} +1 -1
- package/dist/esm/chunk-4OYYOYSO.mjs +336 -0
- package/dist/esm/chunk-4OYYOYSO.mjs.map +1 -0
- package/dist/esm/{chunk-S4SEFF4K.mjs → chunk-4PJ5FYGQ.mjs} +302 -27
- package/dist/esm/{chunk-S4SEFF4K.mjs.map → chunk-4PJ5FYGQ.mjs.map} +1 -1
- package/dist/esm/chunk-55NODGHC.mjs +135 -0
- package/dist/esm/{chunk-G4XSNSOT.mjs.map → chunk-55NODGHC.mjs.map} +1 -1
- package/dist/esm/chunk-6LRQSBRH.mjs +130 -0
- package/dist/esm/{chunk-C5UVSNZW.mjs.map → chunk-6LRQSBRH.mjs.map} +1 -1
- package/dist/esm/chunk-6MSZMIFW.mjs +23 -0
- package/dist/esm/{chunk-MWUJCP27.mjs.map → chunk-6MSZMIFW.mjs.map} +1 -1
- package/dist/esm/chunk-76TSTAU4.mjs +120 -0
- package/dist/esm/{chunk-FLYEALDB.mjs.map → chunk-76TSTAU4.mjs.map} +1 -1
- package/dist/esm/chunk-7FO3S6IZ.mjs +324 -0
- package/dist/esm/{chunk-3VGX3TXH.mjs.map → chunk-7FO3S6IZ.mjs.map} +1 -1
- package/dist/esm/chunk-7FUHWL6A.mjs +42 -0
- package/dist/esm/{chunk-SRPTQ4VV.mjs.map → chunk-7FUHWL6A.mjs.map} +1 -1
- package/dist/esm/chunk-7IDBB4J4.mjs +33 -0
- package/dist/esm/{chunk-PINF6ZWP.mjs.map → chunk-7IDBB4J4.mjs.map} +1 -1
- package/dist/esm/chunk-7JRMOHBP.mjs +247 -0
- package/dist/esm/chunk-7JRMOHBP.mjs.map +1 -0
- package/dist/esm/chunk-7REUIYF4.mjs +63 -0
- package/dist/esm/chunk-7REUIYF4.mjs.map +1 -0
- package/dist/esm/chunk-AC3OGAL6.mjs +87 -0
- package/dist/esm/{chunk-U6Z4FNB7.mjs.map → chunk-AC3OGAL6.mjs.map} +1 -1
- package/dist/esm/chunk-AR7X6GWQ.mjs +356 -0
- package/dist/esm/{chunk-EB7AI4B4.mjs.map → chunk-AR7X6GWQ.mjs.map} +1 -1
- package/dist/esm/chunk-ASF2VWOX.mjs +142 -0
- package/dist/esm/{chunk-O34EOOVF.mjs.map → chunk-ASF2VWOX.mjs.map} +1 -1
- package/dist/esm/chunk-ATVFVXR6.mjs +43 -0
- package/dist/esm/{chunk-IXYXFDJZ.mjs.map → chunk-ATVFVXR6.mjs.map} +1 -1
- package/dist/esm/chunk-B5S6DDUD.mjs +120 -0
- package/dist/esm/chunk-B5S6DDUD.mjs.map +1 -0
- package/dist/esm/chunk-BXMHDQHW.mjs +512 -0
- package/dist/esm/{chunk-DLTC6PJP.mjs.map → chunk-BXMHDQHW.mjs.map} +1 -1
- package/dist/esm/chunk-CC4DQ6NH.mjs +19 -0
- package/dist/esm/{chunk-H3TFQ7K4.mjs.map → chunk-CC4DQ6NH.mjs.map} +1 -1
- package/dist/esm/chunk-CMNJG4NN.mjs +345 -0
- package/dist/esm/{chunk-T23OVRNF.mjs.map → chunk-CMNJG4NN.mjs.map} +1 -1
- package/dist/esm/chunk-CTJSZT5V.mjs +87 -0
- package/dist/esm/{chunk-J7J7ZTBF.mjs.map → chunk-CTJSZT5V.mjs.map} +1 -1
- package/dist/esm/chunk-CX3NAVRD.mjs +205 -0
- package/dist/esm/chunk-CX3NAVRD.mjs.map +1 -0
- package/dist/esm/chunk-CXUGZXED.mjs +307 -0
- package/dist/esm/{chunk-EKABTHUZ.mjs.map → chunk-CXUGZXED.mjs.map} +1 -1
- package/dist/esm/chunk-D2BVBXWO.mjs +7 -0
- package/dist/esm/{chunk-7PSX4LCV.mjs.map → chunk-D2BVBXWO.mjs.map} +1 -1
- package/dist/esm/chunk-DGV7DYU4.mjs +413 -0
- package/dist/esm/{chunk-7Q2NVO5M.mjs.map → chunk-DGV7DYU4.mjs.map} +1 -1
- package/dist/esm/chunk-DIYZRGR6.mjs +242 -0
- package/dist/esm/{chunk-UVOU6BW2.mjs.map → chunk-DIYZRGR6.mjs.map} +1 -1
- package/dist/esm/chunk-DNPMS2OF.mjs +236 -0
- package/dist/esm/{chunk-PFFAQZHT.mjs.map → chunk-DNPMS2OF.mjs.map} +1 -1
- package/dist/esm/chunk-DVPQGCFT.mjs +74 -0
- package/dist/esm/{chunk-RBPGL6YB.mjs.map → chunk-DVPQGCFT.mjs.map} +1 -1
- package/dist/esm/chunk-EYHRMZPO.mjs +34 -0
- package/dist/esm/{chunk-AH44UPM4.mjs.map → chunk-EYHRMZPO.mjs.map} +1 -1
- package/dist/esm/chunk-F2ZWA7B7.mjs +412 -0
- package/dist/esm/{chunk-RTSEMQCK.mjs.map → chunk-F2ZWA7B7.mjs.map} +1 -1
- package/dist/esm/chunk-FDWJNY4U.mjs +22 -0
- package/dist/esm/{chunk-STYDBDYL.mjs.map → chunk-FDWJNY4U.mjs.map} +1 -1
- package/dist/esm/chunk-FF4JPDKD.mjs +315 -0
- package/dist/esm/{chunk-5DW2AJPI.mjs.map → chunk-FF4JPDKD.mjs.map} +1 -1
- package/dist/esm/chunk-FQQW55X7.mjs +288 -0
- package/dist/esm/{chunk-TVRJ3M7B.mjs.map → chunk-FQQW55X7.mjs.map} +1 -1
- package/dist/esm/chunk-FXKSE3ZP.mjs +25 -0
- package/dist/esm/{chunk-COW5IGYC.mjs.map → chunk-FXKSE3ZP.mjs.map} +1 -1
- package/dist/esm/chunk-GBEVD2VM.mjs +99 -0
- package/dist/esm/chunk-GBEVD2VM.mjs.map +1 -0
- package/dist/esm/chunk-GGMTQAQP.mjs +11 -0
- package/dist/esm/{chunk-3JPVQHOR.mjs.map → chunk-GGMTQAQP.mjs.map} +1 -1
- package/dist/esm/chunk-GSVQ6EUD.mjs +649 -0
- package/dist/esm/{chunk-WOLIXKOK.mjs.map → chunk-GSVQ6EUD.mjs.map} +1 -1
- package/dist/esm/chunk-HBNSRCZN.mjs +100 -0
- package/dist/esm/{chunk-FKSACFCB.mjs.map → chunk-HBNSRCZN.mjs.map} +1 -1
- package/dist/esm/chunk-IC56GQFJ.mjs +127 -0
- package/dist/esm/{chunk-XN4SQWI5.mjs.map → chunk-IC56GQFJ.mjs.map} +1 -1
- package/dist/esm/chunk-IHNPN5CQ.mjs +256 -0
- package/dist/esm/chunk-IHNPN5CQ.mjs.map +1 -0
- package/dist/esm/chunk-JHDHNGJ3.mjs +126 -0
- package/dist/esm/{chunk-JVKMQ64G.mjs.map → chunk-JHDHNGJ3.mjs.map} +1 -1
- package/dist/esm/chunk-JL2JHVS4.mjs +49 -0
- package/dist/esm/{chunk-ZNEBMSNC.mjs.map → chunk-JL2JHVS4.mjs.map} +1 -1
- package/dist/esm/chunk-JV3GSIJW.mjs +268 -0
- package/dist/esm/chunk-JV3GSIJW.mjs.map +1 -0
- package/dist/esm/chunk-KK2BSALW.mjs +32 -0
- package/dist/esm/{chunk-3FVRXELT.mjs.map → chunk-KK2BSALW.mjs.map} +1 -1
- package/dist/esm/chunk-KMXSRHJ6.mjs +93 -0
- package/dist/esm/{chunk-NMECYE3D.mjs.map → chunk-KMXSRHJ6.mjs.map} +1 -1
- package/dist/esm/chunk-KVSQ57HU.mjs +45 -0
- package/dist/esm/{chunk-NNW6HWIO.mjs.map → chunk-KVSQ57HU.mjs.map} +1 -1
- package/dist/esm/chunk-LI2QV6RU.mjs +129 -0
- package/dist/esm/chunk-LI2QV6RU.mjs.map +1 -0
- package/dist/esm/chunk-LLLQJWRZ.mjs +35 -0
- package/dist/esm/{chunk-QNHDS64I.mjs.map → chunk-LLLQJWRZ.mjs.map} +1 -1
- package/dist/esm/chunk-LYK4TQZO.mjs +70 -0
- package/dist/esm/{chunk-OZC3FCJP.mjs.map → chunk-LYK4TQZO.mjs.map} +1 -1
- package/dist/esm/chunk-LYMY63SO.mjs +124 -0
- package/dist/esm/{chunk-UGIJHLL3.mjs.map → chunk-LYMY63SO.mjs.map} +1 -1
- package/dist/esm/chunk-MZZLEY6O.mjs +92 -0
- package/dist/esm/{chunk-NKCZ4KGO.mjs.map → chunk-MZZLEY6O.mjs.map} +1 -1
- package/dist/esm/chunk-N4WKFNQ6.mjs +156 -0
- package/dist/esm/{chunk-LDQ6JFEF.mjs.map → chunk-N4WKFNQ6.mjs.map} +1 -1
- package/dist/esm/chunk-NFJCQRVK.mjs +37 -0
- package/dist/esm/{chunk-YE5B2S5L.mjs.map → chunk-NFJCQRVK.mjs.map} +1 -1
- package/dist/esm/chunk-NMKCJNQM.mjs +20 -0
- package/dist/esm/{chunk-TJDC5PWD.mjs.map → chunk-NMKCJNQM.mjs.map} +1 -1
- package/dist/esm/chunk-NW45SCPY.mjs +36 -0
- package/dist/esm/{chunk-V7P6MLSY.mjs.map → chunk-NW45SCPY.mjs.map} +1 -1
- package/dist/esm/chunk-NXFO2W4G.mjs +84 -0
- package/dist/esm/{chunk-D22EMNIY.mjs.map → chunk-NXFO2W4G.mjs.map} +1 -1
- package/dist/esm/chunk-NYL77J4X.mjs +97 -0
- package/dist/esm/{chunk-43WARVT3.mjs.map → chunk-NYL77J4X.mjs.map} +1 -1
- package/dist/esm/chunk-O6PSHSN3.mjs +53 -0
- package/dist/esm/{chunk-6LOTZ4GY.mjs.map → chunk-O6PSHSN3.mjs.map} +1 -1
- package/dist/esm/chunk-OR7TEZ25.mjs +16 -0
- package/dist/esm/chunk-PCLNX6FS.mjs +17 -0
- package/dist/esm/{chunk-6FBKUTGF.mjs.map → chunk-PCLNX6FS.mjs.map} +1 -1
- package/dist/esm/chunk-PIMQHG2J.mjs +49 -0
- package/dist/esm/{chunk-C3L4ETUF.mjs.map → chunk-PIMQHG2J.mjs.map} +1 -1
- package/dist/esm/chunk-PU5AFUX3.mjs +52 -0
- package/dist/esm/chunk-PU5AFUX3.mjs.map +1 -0
- package/dist/esm/chunk-PYLOAMR2.mjs +29 -0
- package/dist/esm/{chunk-HGZGTBA4.mjs.map → chunk-PYLOAMR2.mjs.map} +1 -1
- package/dist/esm/chunk-QBBTUC66.mjs +15 -0
- package/dist/esm/{chunk-ROXFCLDT.mjs.map → chunk-QBBTUC66.mjs.map} +1 -1
- package/dist/esm/chunk-QFOG4LIN.mjs +319 -0
- package/dist/esm/{chunk-RJ4PSGZ4.mjs.map → chunk-QFOG4LIN.mjs.map} +1 -1
- package/dist/esm/chunk-QMM2KL6C.mjs +12 -0
- package/dist/esm/{chunk-FBPNHF54.mjs.map → chunk-QMM2KL6C.mjs.map} +1 -1
- package/dist/esm/chunk-RCQMWXEW.mjs +35 -0
- package/dist/esm/{chunk-TXMPXZBG.mjs.map → chunk-RCQMWXEW.mjs.map} +1 -1
- package/dist/esm/chunk-RX4VG2AT.mjs +314 -0
- package/dist/esm/chunk-RX4VG2AT.mjs.map +1 -0
- package/dist/esm/chunk-SBB4YEPT.mjs +17 -0
- package/dist/esm/{chunk-56CNRT2K.mjs.map → chunk-SBB4YEPT.mjs.map} +1 -1
- package/dist/esm/chunk-SIJELMDP.mjs +29 -0
- package/dist/esm/{chunk-6EMN3BOV.mjs.map → chunk-SIJELMDP.mjs.map} +1 -1
- package/dist/esm/chunk-SS3NUM5L.mjs +94 -0
- package/dist/esm/{chunk-L54P6EGN.mjs.map → chunk-SS3NUM5L.mjs.map} +1 -1
- package/dist/esm/chunk-ST4QXIMI.mjs +37 -0
- package/dist/esm/{chunk-XMFPKHB5.mjs.map → chunk-ST4QXIMI.mjs.map} +1 -1
- package/dist/esm/chunk-TBHU6ZW6.mjs +215 -0
- package/dist/esm/{chunk-QHVZL3LZ.mjs.map → chunk-TBHU6ZW6.mjs.map} +1 -1
- package/dist/esm/chunk-TLNHRJB2.mjs +155 -0
- package/dist/esm/{chunk-H6LYW7HG.mjs.map → chunk-TLNHRJB2.mjs.map} +1 -1
- package/dist/esm/chunk-U3IUCR2G.mjs +54 -0
- package/dist/esm/{chunk-52ECIIIH.mjs.map → chunk-U3IUCR2G.mjs.map} +1 -1
- package/dist/esm/chunk-U7QBZ6PP.mjs +400 -0
- package/dist/esm/{chunk-ZM436N3W.mjs.map → chunk-U7QBZ6PP.mjs.map} +1 -1
- package/dist/esm/chunk-UEBBLQJ5.mjs +94 -0
- package/dist/esm/{chunk-7STYQ5ZE.mjs.map → chunk-UEBBLQJ5.mjs.map} +1 -1
- package/dist/esm/chunk-UKU6A2W2.mjs +232 -0
- package/dist/esm/{chunk-HXSW6X7K.mjs.map → chunk-UKU6A2W2.mjs.map} +1 -1
- package/dist/esm/chunk-UX5NSZEN.mjs +134 -0
- package/dist/esm/{chunk-WVIPPU2C.mjs.map → chunk-UX5NSZEN.mjs.map} +1 -1
- package/dist/esm/chunk-VDJBDX3A.mjs +79 -0
- package/dist/esm/{chunk-25N7RLBW.mjs.map → chunk-VDJBDX3A.mjs.map} +1 -1
- package/dist/esm/chunk-VJP2VWMF.mjs +58 -0
- package/dist/esm/{chunk-56NB52W6.mjs.map → chunk-VJP2VWMF.mjs.map} +1 -1
- package/dist/esm/chunk-VKJQORON.mjs +93 -0
- package/dist/esm/{chunk-3OELNIC6.mjs.map → chunk-VKJQORON.mjs.map} +1 -1
- package/dist/esm/chunk-VPWUODU4.mjs +51 -0
- package/dist/esm/{chunk-NNIHTVLA.mjs.map → chunk-VPWUODU4.mjs.map} +1 -1
- package/dist/esm/chunk-VZQXLVEP.mjs +197 -0
- package/dist/esm/{chunk-VJJN3GFD.mjs.map → chunk-VZQXLVEP.mjs.map} +1 -1
- package/dist/esm/chunk-W76MGKZB.mjs +33 -0
- package/dist/esm/{chunk-CLVAGDXO.mjs.map → chunk-W76MGKZB.mjs.map} +1 -1
- package/dist/esm/chunk-WDRH2URB.mjs +91 -0
- package/dist/esm/{chunk-65UZZNN2.mjs.map → chunk-WDRH2URB.mjs.map} +1 -1
- package/dist/esm/chunk-WHBWEN6N.mjs +206 -0
- package/dist/esm/{chunk-NGNETNK2.mjs.map → chunk-WHBWEN6N.mjs.map} +1 -1
- package/dist/esm/chunk-WK5ZSNE2.mjs +173 -0
- package/dist/esm/{chunk-6RBUXB5I.mjs.map → chunk-WK5ZSNE2.mjs.map} +1 -1
- package/dist/esm/chunk-WLTBF4DF.mjs +22 -0
- package/dist/esm/chunk-WLTBF4DF.mjs.map +1 -0
- package/dist/esm/chunk-WVGO4D7K.mjs +254 -0
- package/dist/esm/{chunk-OLGSIKFB.mjs.map → chunk-WVGO4D7K.mjs.map} +1 -1
- package/dist/esm/chunk-XANFAUBD.mjs +44 -0
- package/dist/esm/{chunk-NC5HHEEM.mjs.map → chunk-XANFAUBD.mjs.map} +1 -1
- package/dist/esm/chunk-Y2LV3S5W.mjs +410 -0
- package/dist/esm/{chunk-6SHLLRJA.mjs.map → chunk-Y2LV3S5W.mjs.map} +1 -1
- package/dist/esm/chunk-YV7M4CFP.mjs +137 -0
- package/dist/esm/{chunk-AOCNYMMX.mjs.map → chunk-YV7M4CFP.mjs.map} +1 -1
- package/dist/esm/chunk-YYOPNUX5.mjs +41 -0
- package/dist/esm/chunk-YYOPNUX5.mjs.map +1 -0
- package/dist/esm/chunk-ZAHJ7KXB.mjs +81 -0
- package/dist/esm/{chunk-Z5KKUXYI.mjs.map → chunk-ZAHJ7KXB.mjs.map} +1 -1
- package/dist/esm/chunk-ZMFKQUHL.mjs +117 -0
- package/dist/esm/{chunk-TICM455H.mjs.map → chunk-ZMFKQUHL.mjs.map} +1 -1
- package/dist/esm/cli/index.mjs +12 -1
- package/dist/esm/cli/localNode.mjs +8 -1
- package/dist/esm/cli/move.mjs +7 -1
- package/dist/esm/client/core.mjs +27 -1
- package/dist/esm/client/get.mjs +32 -1
- package/dist/esm/client/index.mjs +55 -1
- package/dist/esm/client/post.mjs +36 -1
- package/dist/esm/client/types.d.mts +5 -1
- package/dist/esm/client/types.mjs +7 -1
- package/dist/esm/core/account/index.mjs +19 -1
- package/dist/esm/core/account/utils/address.mjs +18 -1
- package/dist/esm/core/account/utils/index.mjs +19 -1
- package/dist/esm/core/accountAddress.mjs +15 -1
- package/dist/esm/core/authenticationKey.mjs +14 -1
- package/dist/esm/core/common.mjs +7 -1
- package/dist/esm/core/crypto/ed25519.d.mts +10 -0
- package/dist/esm/core/crypto/ed25519.mjs +29 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +16 -20
- package/dist/esm/core/crypto/ephemeral.mjs +28 -1
- package/dist/esm/core/crypto/hdKey.d.mts +1 -15
- package/dist/esm/core/crypto/hdKey.mjs +25 -1
- package/dist/esm/core/crypto/index.d.mts +3 -2
- package/dist/esm/core/crypto/index.mjs +124 -1
- package/dist/esm/core/crypto/keyless.d.mts +121 -106
- package/dist/esm/core/crypto/keyless.mjs +55 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +28 -1
- package/dist/esm/core/crypto/multiKey.mjs +34 -1
- package/dist/esm/core/crypto/poseidon.mjs +15 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +21 -0
- package/dist/esm/core/crypto/proof.mjs +20 -0
- package/dist/esm/core/crypto/proof.mjs.map +1 -0
- package/dist/esm/core/crypto/publicKey.mjs +21 -1
- package/dist/esm/core/crypto/secp256k1.mjs +27 -1
- package/dist/esm/core/crypto/signature.mjs +19 -1
- package/dist/esm/core/crypto/singleKey.mjs +33 -1
- package/dist/esm/core/crypto/utils.mjs +9 -1
- package/dist/esm/core/hex.mjs +10 -1
- package/dist/esm/core/index.d.mts +3 -2
- package/dist/esm/core/index.mjs +141 -1
- package/dist/esm/index.d.mts +5 -4
- package/dist/esm/index.mjs +635 -1
- package/dist/esm/internal/account.mjs +106 -1
- package/dist/esm/internal/ans.mjs +120 -1
- package/dist/esm/internal/coin.mjs +85 -1
- package/dist/esm/internal/digitalAsset.mjs +127 -1
- package/dist/esm/internal/event.mjs +55 -1
- package/dist/esm/internal/faucet.mjs +52 -1
- package/dist/esm/internal/fungibleAsset.mjs +91 -1
- package/dist/esm/internal/general.mjs +46 -1
- package/dist/esm/internal/keyless.d.mts +4 -3
- package/dist/esm/internal/keyless.mjs +73 -1
- package/dist/esm/internal/staking.mjs +53 -1
- package/dist/esm/internal/transaction.mjs +51 -1
- package/dist/esm/internal/transactionSubmission.mjs +102 -1
- package/dist/esm/internal/view.mjs +83 -1
- package/dist/esm/transactions/authenticator/account.mjs +44 -1
- package/dist/esm/transactions/authenticator/index.mjs +60 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +48 -1
- package/dist/esm/transactions/index.mjs +284 -1
- package/dist/esm/transactions/instances/chainId.mjs +11 -1
- package/dist/esm/transactions/instances/identifier.mjs +11 -1
- package/dist/esm/transactions/instances/index.mjs +96 -1
- package/dist/esm/transactions/instances/moduleId.mjs +38 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +43 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +48 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +20 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +45 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +43 -1
- package/dist/esm/transactions/instances/transactionArgument.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +56 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +74 -1
- package/dist/esm/transactions/management/asyncQueue.mjs +9 -1
- package/dist/esm/transactions/management/index.mjs +95 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +91 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +75 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +162 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +85 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +58 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +98 -1
- package/dist/esm/transactions/typeTag/index.mjs +74 -1
- package/dist/esm/transactions/typeTag/parser.mjs +43 -1
- package/dist/esm/transactions/types.mjs +1 -1
- package/dist/esm/types/generated/queries.mjs +57 -1
- package/dist/esm/types/generated/types.mjs +809 -1
- package/dist/esm/types/generated/types.mjs.map +1 -1
- package/dist/esm/types/index.d.mts +6 -4
- package/dist/esm/types/index.mjs +68 -1
- package/dist/esm/types/indexer.mjs +1 -1
- package/dist/esm/types/keyless.d.mts +54 -1
- package/dist/esm/types/keyless.mjs +9 -0
- package/dist/esm/utils/apiEndpoints.mjs +21 -1
- package/dist/esm/utils/const.mjs +21 -1
- package/dist/esm/utils/helpers.mjs +7 -1
- package/dist/esm/utils/index.mjs +56 -1
- package/dist/esm/utils/memoize.mjs +9 -1
- package/dist/esm/utils/normalizeBundle.mjs +19 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +7 -1
- package/package.json +5 -2
- package/src/account/EphemeralKeyPair.ts +45 -7
- package/src/account/KeylessAccount.ts +152 -113
- package/src/account/MultiKeyAccount.ts +4 -0
- package/src/api/keyless.ts +17 -4
- package/src/bcs/deserializer.ts +40 -0
- package/src/client/core.ts +1 -1
- package/src/client/types.ts +1 -1
- package/src/core/account/index.ts +0 -1
- package/src/core/crypto/ed25519.ts +24 -4
- package/src/core/crypto/ephemeral.ts +17 -28
- package/src/core/crypto/hdKey.ts +0 -31
- package/src/core/crypto/keyless.ts +231 -286
- package/src/core/crypto/proof.ts +16 -0
- package/src/internal/keyless.ts +16 -15
- package/src/internal/transactionSubmission.ts +16 -6
- package/src/transactions/management/transactionWorker.ts +1 -7
- package/src/types/index.ts +5 -2
- package/src/types/keyless.ts +31 -0
- package/src/utils/apiEndpoints.ts +6 -6
- package/src/version.ts +1 -1
- package/dist/common/chunk-KSEUZTKY.js +0 -2
- package/dist/common/chunk-KSEUZTKY.js.map +0 -1
- package/dist/esm/chunk-25N7RLBW.mjs +0 -2
- package/dist/esm/chunk-32355KGV.mjs +0 -2
- package/dist/esm/chunk-32355KGV.mjs.map +0 -1
- package/dist/esm/chunk-3FVRXELT.mjs +0 -2
- package/dist/esm/chunk-3JPVQHOR.mjs +0 -2
- package/dist/esm/chunk-3OELNIC6.mjs +0 -2
- package/dist/esm/chunk-3U5VRZLS.mjs +0 -2
- package/dist/esm/chunk-3U5VRZLS.mjs.map +0 -1
- package/dist/esm/chunk-3VGX3TXH.mjs +0 -2
- package/dist/esm/chunk-43WARVT3.mjs +0 -2
- package/dist/esm/chunk-52ECIIIH.mjs +0 -2
- package/dist/esm/chunk-56CNRT2K.mjs +0 -2
- package/dist/esm/chunk-56NB52W6.mjs +0 -2
- package/dist/esm/chunk-5DW2AJPI.mjs +0 -2
- package/dist/esm/chunk-5QWUIVAQ.mjs +0 -2
- package/dist/esm/chunk-5QWUIVAQ.mjs.map +0 -1
- package/dist/esm/chunk-6456EI2E.mjs +0 -2
- package/dist/esm/chunk-6456EI2E.mjs.map +0 -1
- package/dist/esm/chunk-65UZZNN2.mjs +0 -2
- package/dist/esm/chunk-6EMN3BOV.mjs +0 -2
- package/dist/esm/chunk-6FBKUTGF.mjs +0 -2
- package/dist/esm/chunk-6IFMQ5AS.mjs +0 -2
- package/dist/esm/chunk-6IFMQ5AS.mjs.map +0 -1
- package/dist/esm/chunk-6LOTZ4GY.mjs +0 -2
- package/dist/esm/chunk-6RBUXB5I.mjs +0 -2
- package/dist/esm/chunk-6SHLLRJA.mjs +0 -2
- package/dist/esm/chunk-73Y4NTDU.mjs +0 -2
- package/dist/esm/chunk-73Y4NTDU.mjs.map +0 -1
- package/dist/esm/chunk-7PSX4LCV.mjs +0 -2
- package/dist/esm/chunk-7Q2NVO5M.mjs +0 -2
- package/dist/esm/chunk-7STYQ5ZE.mjs +0 -2
- package/dist/esm/chunk-7WJTKYRG.mjs +0 -2
- package/dist/esm/chunk-AH44UPM4.mjs +0 -2
- package/dist/esm/chunk-AOCNYMMX.mjs +0 -2
- package/dist/esm/chunk-C3L4ETUF.mjs +0 -2
- package/dist/esm/chunk-C5UVSNZW.mjs +0 -2
- package/dist/esm/chunk-CLVAGDXO.mjs +0 -2
- package/dist/esm/chunk-COW5IGYC.mjs +0 -2
- package/dist/esm/chunk-D22EMNIY.mjs +0 -2
- package/dist/esm/chunk-DLTC6PJP.mjs +0 -2
- package/dist/esm/chunk-EB7AI4B4.mjs +0 -2
- package/dist/esm/chunk-EKABTHUZ.mjs +0 -2
- package/dist/esm/chunk-EOMDZYSJ.mjs +0 -2
- package/dist/esm/chunk-EOMDZYSJ.mjs.map +0 -1
- package/dist/esm/chunk-FBPNHF54.mjs +0 -2
- package/dist/esm/chunk-FKSACFCB.mjs +0 -2
- package/dist/esm/chunk-FLYEALDB.mjs +0 -2
- package/dist/esm/chunk-FVA2OPG4.mjs +0 -2
- package/dist/esm/chunk-G4XSNSOT.mjs +0 -2
- package/dist/esm/chunk-H3TFQ7K4.mjs +0 -2
- package/dist/esm/chunk-H6LYW7HG.mjs +0 -2
- package/dist/esm/chunk-HCGWCB5E.mjs +0 -2
- package/dist/esm/chunk-HCGWCB5E.mjs.map +0 -1
- package/dist/esm/chunk-HGZGTBA4.mjs +0 -2
- package/dist/esm/chunk-HXSW6X7K.mjs +0 -2
- package/dist/esm/chunk-IXYXFDJZ.mjs +0 -2
- package/dist/esm/chunk-J7J7ZTBF.mjs +0 -2
- package/dist/esm/chunk-JVKMQ64G.mjs +0 -2
- package/dist/esm/chunk-KWNBC5MF.mjs +0 -2
- package/dist/esm/chunk-L54P6EGN.mjs +0 -2
- package/dist/esm/chunk-LDQ6JFEF.mjs +0 -2
- package/dist/esm/chunk-MGOHPDX4.mjs +0 -2
- package/dist/esm/chunk-MWUJCP27.mjs +0 -2
- package/dist/esm/chunk-NC5HHEEM.mjs +0 -2
- package/dist/esm/chunk-NGNETNK2.mjs +0 -2
- package/dist/esm/chunk-NKCZ4KGO.mjs +0 -2
- package/dist/esm/chunk-NMECYE3D.mjs +0 -2
- package/dist/esm/chunk-NNIHTVLA.mjs +0 -2
- package/dist/esm/chunk-NNW6HWIO.mjs +0 -2
- package/dist/esm/chunk-O34EOOVF.mjs +0 -2
- package/dist/esm/chunk-OBEVVLF7.mjs +0 -2
- package/dist/esm/chunk-OBEVVLF7.mjs.map +0 -1
- package/dist/esm/chunk-OKRUEVF3.mjs +0 -2
- package/dist/esm/chunk-OKRUEVF3.mjs.map +0 -1
- package/dist/esm/chunk-OLGSIKFB.mjs +0 -2
- package/dist/esm/chunk-OZC3FCJP.mjs +0 -2
- package/dist/esm/chunk-PFFAQZHT.mjs +0 -2
- package/dist/esm/chunk-PINF6ZWP.mjs +0 -2
- package/dist/esm/chunk-PJXRQBF6.mjs +0 -2
- package/dist/esm/chunk-PJXRQBF6.mjs.map +0 -1
- package/dist/esm/chunk-QHVZL3LZ.mjs +0 -2
- package/dist/esm/chunk-QNHDS64I.mjs +0 -2
- package/dist/esm/chunk-RBPGL6YB.mjs +0 -2
- package/dist/esm/chunk-RJ4PSGZ4.mjs +0 -2
- package/dist/esm/chunk-ROXFCLDT.mjs +0 -2
- package/dist/esm/chunk-RTSEMQCK.mjs +0 -2
- package/dist/esm/chunk-SRPTQ4VV.mjs +0 -2
- package/dist/esm/chunk-STYDBDYL.mjs +0 -2
- package/dist/esm/chunk-T23OVRNF.mjs +0 -2
- package/dist/esm/chunk-TICM455H.mjs +0 -2
- package/dist/esm/chunk-TJDC5PWD.mjs +0 -2
- package/dist/esm/chunk-TVRJ3M7B.mjs +0 -2
- package/dist/esm/chunk-TXMPXZBG.mjs +0 -2
- package/dist/esm/chunk-U6Z4FNB7.mjs +0 -2
- package/dist/esm/chunk-UGIJHLL3.mjs +0 -2
- package/dist/esm/chunk-UVOU6BW2.mjs +0 -2
- package/dist/esm/chunk-V7P6MLSY.mjs +0 -2
- package/dist/esm/chunk-VJJN3GFD.mjs +0 -2
- package/dist/esm/chunk-WOLIXKOK.mjs +0 -2
- package/dist/esm/chunk-WVIPPU2C.mjs +0 -2
- package/dist/esm/chunk-XCR3YNHW.mjs +0 -2
- package/dist/esm/chunk-XCR3YNHW.mjs.map +0 -1
- package/dist/esm/chunk-XMFPKHB5.mjs +0 -2
- package/dist/esm/chunk-XN4SQWI5.mjs +0 -2
- package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
- package/dist/esm/chunk-Z5KKUXYI.mjs +0 -2
- package/dist/esm/chunk-ZM436N3W.mjs +0 -2
- package/dist/esm/chunk-ZNEBMSNC.mjs +0 -2
- /package/dist/esm/{chunk-FVA2OPG4.mjs.map → chunk-OR7TEZ25.mjs.map} +0 -0
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client,
|
|
2
|
-
export {
|
|
1
|
+
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, j as EphemeralCertificateVariant, Z as ZkpVariant, N as Network, C as Client, k as ClientConfig, F as FullNodeConfig, I as IndexerConfig, l as FaucetConfig, m as AptosSettings, M as MoveModuleId, n as ScriptFunctionArgument, o as MoveFunctionId, p as AccountAddressInput, q as MoveFunctionGenericTypeParam, r as SigningSchemeInput, s as SigningScheme, t as AccountData, P as PaginationArgs, L as LedgerVersionArg, u as MoveModuleBytecode, v as TransactionResponse, w as MoveResource, x as MoveStructId, y as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, z as GetAccountOwnedTokensFromCollectionResponse, B as GetAccountCollectionsWithOwnedTokenResponse, J as GetAccountCoinsDataResponse, W as WhereArg, K as GetAccountOwnedObjectsResponse, Q as GetCollectionDataResponse, R as GetTokenDataResponse, V as GetCurrentTokenOwnershipResponse, X as GetOwnedTokensResponse, Y as GetTokenActivityResponse, _ as GetEventsResponse, $ as WaitForTransactionOptions, a0 as UserTransactionResponse, a1 as MoveFunction, a2 as GetFungibleAssetMetadataResponse, a3 as GetFungibleAssetActivitiesResponse, a4 as GetCurrentFungibleAssetBalancesResponse, a5 as LedgerInfo, a6 as Block, a7 as TableItemRequest, a8 as MoveValue, a9 as GetChainTopUserTransactionsResponse, aa as GraphqlQuery, ab as GetProcessorStatusResponse, ac as GetANSNameResponse, ad as GetNumberOfDelegatorsResponse, ae as GetDelegatedStakingActivitiesResponse, af as PendingTransactionResponse, ag as CommittedTransactionResponse, ah as GasEstimation, ai as AptosRequest, aj as ClientRequest, ak as ClientResponse, al as MimeType } from './accountAddress-u9wEan9p.js';
|
|
2
|
+
export { ay as AccountAuthenticatorVariant, be as AccountSignature, ap as AddressInvalidReason, az as AnySignatureVariant, aN as BlockMetadataTransactionResponse, aE as ClientHeadersType, aX as DecodedTableData, aY as DeletedTableData, bB as DeriveScheme, bh as DirectWriteSet, a_ as EntryFunctionPayloadResponse, aA as EphemeralSignatureVariant, bj as Event, bi as EventGuid, bE as GenerateAccount, bC as GenerateAccountWithEd25519, bD as GenerateAccountWithSingleSignerSecp256k1Key, b1 as GenesisPayload, aM as GenesisTransactionResponse, as as HexInvalidReason, bw as MoveAbility, bq as MoveAddressType, bv as MoveFunctionVisibility, by as MoveModule, br as MoveObjectType, bs as MoveOptionType, b2 as MoveScriptBytecode, bz as MoveStruct, bx as MoveStructField, bt as MoveStructType, bu as MoveType, bo as MoveUint128Type, bl as MoveUint16Type, bp as MoveUint256Type, bm as MoveUint32Type, bn as MoveUint64Type, bk as MoveUint8Type, b0 as MultisigPayloadResponse, bN as NetworkToChainId, bK as NetworkToFaucetAPI, bI as NetworkToIndexerAPI, bO as NetworkToNetworkName, bJ as NetworkToNodeAPI, bL as NetworkToPepperAPI, bM as NetworkToProverAPI, bF as OrderBy, bG as OrderByValue, aq as ParsingError, ar as ParsingResult, bA as RoleType, a$ as ScriptPayloadResponse, au as ScriptTransactionArgumentVariants, bg as ScriptWriteSet, aO as StateCheckpointTransactionResponse, bH as TokenStandard, ax as TransactionAuthenticatorVariant, b9 as TransactionEd25519Signature, bd as TransactionFeePayerSignature, bc as TransactionMultiAgentSignature, bb as TransactionMultiEd25519Signature, aZ as TransactionPayloadResponse, av as TransactionPayloadVariants, aF as TransactionResponseType, ba as TransactionSecp256k1Signature, b3 as TransactionSignature, aw as TransactionVariants, at as TypeTagVariants, aC as Uint128, aD as Uint256, aB as Uint64, aP as ValidatorTransactionResponse, bf as WriteSet, aQ as WriteSetChange, aR as WriteSetChangeDeleteModule, aS as WriteSetChangeDeleteResource, aT as WriteSetChangeDeleteTableItem, aU as WriteSetChangeWriteModule, aV as WriteSetChangeWriteResource, aW as WriteSetChangeWriteTableItem, am as ensureBoolean, aJ as isBlockMetadataTransactionResponse, b4 as isEd25519Signature, b7 as isFeePayerSignature, aI as isGenesisTransactionResponse, b6 as isMultiAgentSignature, b8 as isMultiEd25519Signature, aG as isPendingTransactionResponse, b5 as isSecp256k1Signature, aK as isStateCheckpointTransactionResponse, aH as isUserTransactionResponse, aL as isValidatorTransactionResponse, an as outOfRangeErrorMessage, ao as validateNumberInRange } from './accountAddress-u9wEan9p.js';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
type Maybe<T> = T | null;
|
|
@@ -945,6 +945,16 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
945
945
|
* @param mnemonics the mnemonic seed phrase
|
|
946
946
|
*/
|
|
947
947
|
static fromDerivationPath(path: string, mnemonics: string): Ed25519PrivateKey;
|
|
948
|
+
/**
|
|
949
|
+
* A private inner function so we can separate from the main fromDerivationPath() method
|
|
950
|
+
* to add tests to verify we create the keys correctly.
|
|
951
|
+
*
|
|
952
|
+
* @param path the BIP44 path
|
|
953
|
+
* @param seed the seed phrase created by the mnemonics
|
|
954
|
+
* @param offset the offset used for key derivation, defaults to 0x80000000
|
|
955
|
+
* @returns
|
|
956
|
+
*/
|
|
957
|
+
private static fromDerivationPathInner;
|
|
948
958
|
/**
|
|
949
959
|
* Derive the Ed25519PublicKey for this private key.
|
|
950
960
|
*
|
|
@@ -1012,7 +1022,6 @@ type DerivedKeys = {
|
|
|
1012
1022
|
*/
|
|
1013
1023
|
declare const APTOS_HARDENED_REGEX: RegExp;
|
|
1014
1024
|
declare const APTOS_BIP44_REGEX: RegExp;
|
|
1015
|
-
declare const APTOS_BIP44_DEFAULT_DERIVATION_PATH = "m/44'/637'/0'/0'/0'";
|
|
1016
1025
|
/**
|
|
1017
1026
|
* A list of supported key types and associated seeds
|
|
1018
1027
|
*/
|
|
@@ -1062,13 +1071,6 @@ declare const CKDPriv: ({ key, chainCode }: DerivedKeys, index: number) => Deriv
|
|
|
1062
1071
|
* @param path
|
|
1063
1072
|
*/
|
|
1064
1073
|
declare const splitPath: (path: string) => Array<string>;
|
|
1065
|
-
/**
|
|
1066
|
-
* @param path the BIP44 path
|
|
1067
|
-
* @param seed the seed phrase created by the mnemonics
|
|
1068
|
-
* @param offset the offset used for key derivation, defaults to 0x80000000
|
|
1069
|
-
* @returns
|
|
1070
|
-
*/
|
|
1071
|
-
declare function fromDerivationPath(path: string, hashSeed: HexInput, seed: Uint8Array, offset?: number): Uint8Array;
|
|
1072
1074
|
/**
|
|
1073
1075
|
* Normalizes the mnemonic by removing extra whitespace and making it lowercase
|
|
1074
1076
|
* @param mnemonic the mnemonic seed phrase
|
|
@@ -1339,15 +1341,18 @@ declare class MultiKeySignature extends Signature {
|
|
|
1339
1341
|
}
|
|
1340
1342
|
|
|
1341
1343
|
/**
|
|
1342
|
-
* Represents ephemeral keys
|
|
1344
|
+
* Represents ephemeral public keys for Aptos Keyless accounts.
|
|
1343
1345
|
*
|
|
1344
|
-
*
|
|
1346
|
+
* These are not public keys used as a public key on an account. They are only used ephemerally on Keyless accounts.
|
|
1345
1347
|
*/
|
|
1346
1348
|
declare class EphemeralPublicKey extends PublicKey {
|
|
1347
1349
|
/**
|
|
1348
|
-
*
|
|
1350
|
+
* The public key itself
|
|
1349
1351
|
*/
|
|
1350
1352
|
readonly publicKey: PublicKey;
|
|
1353
|
+
/**
|
|
1354
|
+
* An enum indicating the scheme of the ephemeral public key
|
|
1355
|
+
*/
|
|
1351
1356
|
readonly variant: EphemeralPublicKeyVariant;
|
|
1352
1357
|
constructor(publicKey: PublicKey);
|
|
1353
1358
|
/**
|
|
@@ -1357,16 +1362,10 @@ declare class EphemeralPublicKey extends PublicKey {
|
|
|
1357
1362
|
*/
|
|
1358
1363
|
toUint8Array(): Uint8Array;
|
|
1359
1364
|
/**
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
* @returns string representation of the public key
|
|
1363
|
-
*/
|
|
1364
|
-
toString(): string;
|
|
1365
|
-
/**
|
|
1366
|
-
* Verifies a signed data with a public key
|
|
1365
|
+
* Verifies a signed data with a the ephemeral public key
|
|
1367
1366
|
*
|
|
1368
1367
|
* @param args.message message
|
|
1369
|
-
* @param args.signature The signature
|
|
1368
|
+
* @param args.signature The signature that was signed by the private key of the ephemeral public key
|
|
1370
1369
|
* @returns true if the signature is valid
|
|
1371
1370
|
*/
|
|
1372
1371
|
verifySignature(args: {
|
|
@@ -1376,9 +1375,16 @@ declare class EphemeralPublicKey extends PublicKey {
|
|
|
1376
1375
|
serialize(serializer: Serializer): void;
|
|
1377
1376
|
static deserialize(deserializer: Deserializer): EphemeralPublicKey;
|
|
1378
1377
|
static isPublicKey(publicKey: PublicKey): publicKey is EphemeralPublicKey;
|
|
1379
|
-
isEd25519(): this is Ed25519PublicKey;
|
|
1380
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Represents ephemeral signatures used in Aptos Keyless accounts.
|
|
1381
|
+
*
|
|
1382
|
+
* These signatures are used inside of KeylessSignature
|
|
1383
|
+
*/
|
|
1381
1384
|
declare class EphemeralSignature extends Signature {
|
|
1385
|
+
/**
|
|
1386
|
+
* The signature signed by the private key of an EphemeralKeyPair
|
|
1387
|
+
*/
|
|
1382
1388
|
readonly signature: Signature;
|
|
1383
1389
|
constructor(signature: Signature);
|
|
1384
1390
|
/**
|
|
@@ -1387,17 +1393,22 @@ declare class EphemeralSignature extends Signature {
|
|
|
1387
1393
|
* @returns Uint8Array representation of the public key
|
|
1388
1394
|
*/
|
|
1389
1395
|
toUint8Array(): Uint8Array;
|
|
1390
|
-
/**
|
|
1391
|
-
* Get the public key as a hex string with the 0x prefix.
|
|
1392
|
-
*
|
|
1393
|
-
* @returns string representation of the public key
|
|
1394
|
-
*/
|
|
1395
|
-
toString(): string;
|
|
1396
1396
|
static fromHex(hexInput: HexInput): EphemeralSignature;
|
|
1397
1397
|
serialize(serializer: Serializer): void;
|
|
1398
1398
|
static deserialize(deserializer: Deserializer): EphemeralSignature;
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
+
/**
|
|
1402
|
+
* An abstract representation of a crypto proof.
|
|
1403
|
+
* associated to a specific zero knowledge proof schemes e.g. Groth16, PLONK
|
|
1404
|
+
*/
|
|
1405
|
+
declare abstract class Proof extends Serializable {
|
|
1406
|
+
/**
|
|
1407
|
+
* Get the proof as a hex string with a 0x prefix e.g. 0x123456...
|
|
1408
|
+
*/
|
|
1409
|
+
toString(): string;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1401
1412
|
declare const EPK_HORIZON_SECS = 10000000;
|
|
1402
1413
|
declare const MAX_AUD_VAL_BYTES = 120;
|
|
1403
1414
|
declare const MAX_UID_KEY_BYTES = 30;
|
|
@@ -1412,10 +1423,15 @@ declare const MAX_COMMITED_EPK_BYTES = 93;
|
|
|
1412
1423
|
* KeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
|
|
1413
1424
|
*/
|
|
1414
1425
|
declare class KeylessPublicKey extends AccountPublicKey {
|
|
1415
|
-
static readonly
|
|
1426
|
+
static readonly ID_COMMITMENT_LENGTH: number;
|
|
1416
1427
|
readonly iss: string;
|
|
1417
|
-
readonly
|
|
1418
|
-
constructor(iss: string,
|
|
1428
|
+
readonly idCommitment: Uint8Array;
|
|
1429
|
+
constructor(iss: string, idCommitment: HexInput);
|
|
1430
|
+
/**
|
|
1431
|
+
* Get the authentication key for the keyless public key
|
|
1432
|
+
*
|
|
1433
|
+
* @returns AuthenticationKey
|
|
1434
|
+
*/
|
|
1419
1435
|
authKey(): AuthenticationKey;
|
|
1420
1436
|
/**
|
|
1421
1437
|
* Get the public key in bytes (Uint8Array).
|
|
@@ -1444,6 +1460,16 @@ declare class KeylessPublicKey extends AccountPublicKey {
|
|
|
1444
1460
|
static deserialize(deserializer: Deserializer): KeylessPublicKey;
|
|
1445
1461
|
static load(deserializer: Deserializer): KeylessPublicKey;
|
|
1446
1462
|
static isPublicKey(publicKey: PublicKey): publicKey is KeylessPublicKey;
|
|
1463
|
+
/**
|
|
1464
|
+
* Creates a KeylessPublicKey from the JWT components plus pepper
|
|
1465
|
+
*
|
|
1466
|
+
* @param args.iss the iss of the identity
|
|
1467
|
+
* @param args.uidKey the key to use to get the uidVal in the JWT token
|
|
1468
|
+
* @param args.uidVal the value of the uidKey in the JWT token
|
|
1469
|
+
* @param args.aud the client ID of the application
|
|
1470
|
+
* @param args.pepper The pepper used to maintain privacy of the account
|
|
1471
|
+
* @returns KeylessPublicKey
|
|
1472
|
+
*/
|
|
1447
1473
|
static create(args: {
|
|
1448
1474
|
iss: string;
|
|
1449
1475
|
uidKey: string;
|
|
@@ -1452,132 +1478,134 @@ declare class KeylessPublicKey extends AccountPublicKey {
|
|
|
1452
1478
|
pepper: HexInput;
|
|
1453
1479
|
}): KeylessPublicKey;
|
|
1454
1480
|
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
pepper: HexInput;
|
|
1460
|
-
}): Uint8Array;
|
|
1461
|
-
declare class OpenIdSignatureOrZkProof extends Signature {
|
|
1462
|
-
readonly signature: Signature;
|
|
1463
|
-
constructor(signature: Signature);
|
|
1481
|
+
/**
|
|
1482
|
+
* A signature of a message signed via Keyless Accounnt that uses proofs or the jwt token to authenticate.
|
|
1483
|
+
*/
|
|
1484
|
+
declare class KeylessSignature extends Signature {
|
|
1464
1485
|
/**
|
|
1465
|
-
*
|
|
1486
|
+
* The inner signature ZeroKnowledgeSigniature or OpenIdSignature
|
|
1487
|
+
*/
|
|
1488
|
+
readonly ephemeralCertificate: EphemeralCertificate;
|
|
1489
|
+
/**
|
|
1490
|
+
* The jwt header in the token used to create the proof/signature. In json string representation.
|
|
1491
|
+
*/
|
|
1492
|
+
readonly jwtHeader: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* The expiry timestamp in seconds of the EphemeralKeyPair used to sign
|
|
1495
|
+
*/
|
|
1496
|
+
readonly expiryDateSecs: bigint | number;
|
|
1497
|
+
/**
|
|
1498
|
+
* The ephemeral public key used to verify the signature
|
|
1499
|
+
*/
|
|
1500
|
+
readonly ephemeralPublicKey: EphemeralPublicKey;
|
|
1501
|
+
/**
|
|
1502
|
+
* The signature resulting from signing with the private key of the EphemeralKeyPair
|
|
1503
|
+
*/
|
|
1504
|
+
readonly ephemeralSignature: EphemeralSignature;
|
|
1505
|
+
constructor(args: {
|
|
1506
|
+
jwtHeader: string;
|
|
1507
|
+
ephemeralCertificate: EphemeralCertificate;
|
|
1508
|
+
expiryDateSecs: bigint | number;
|
|
1509
|
+
ephemeralPublicKey: EphemeralPublicKey;
|
|
1510
|
+
ephemeralSignature: EphemeralSignature;
|
|
1511
|
+
});
|
|
1512
|
+
/**
|
|
1513
|
+
* Get the signature in bytes (Uint8Array).
|
|
1466
1514
|
*
|
|
1467
|
-
* @returns Uint8Array representation of the
|
|
1515
|
+
* @returns Uint8Array representation of the signature
|
|
1468
1516
|
*/
|
|
1469
1517
|
toUint8Array(): Uint8Array;
|
|
1518
|
+
serialize(serializer: Serializer): void;
|
|
1519
|
+
static deserialize(deserializer: Deserializer): KeylessSignature;
|
|
1520
|
+
static load(deserializer: Deserializer): KeylessSignature;
|
|
1521
|
+
static isSignature(signature: Signature): signature is KeylessSignature;
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* A container for a signature that is a ZeroKnowledgeSig. Can be expanded to support OpenIdSignature.
|
|
1525
|
+
*/
|
|
1526
|
+
declare class EphemeralCertificate extends Signature {
|
|
1527
|
+
readonly signature: Signature;
|
|
1470
1528
|
/**
|
|
1471
|
-
*
|
|
1529
|
+
* Index of the underlying enum variant
|
|
1530
|
+
*/
|
|
1531
|
+
private readonly variant;
|
|
1532
|
+
constructor(signature: Signature, variant: EphemeralCertificateVariant);
|
|
1533
|
+
/**
|
|
1534
|
+
* Get the public key in bytes (Uint8Array).
|
|
1472
1535
|
*
|
|
1473
|
-
* @returns
|
|
1536
|
+
* @returns Uint8Array representation of the public key
|
|
1474
1537
|
*/
|
|
1475
|
-
|
|
1538
|
+
toUint8Array(): Uint8Array;
|
|
1476
1539
|
serialize(serializer: Serializer): void;
|
|
1477
|
-
static deserialize(deserializer: Deserializer):
|
|
1540
|
+
static deserialize(deserializer: Deserializer): EphemeralCertificate;
|
|
1478
1541
|
}
|
|
1479
|
-
|
|
1542
|
+
/**
|
|
1543
|
+
* A representation of a Groth16 proof. The points are the compressed serialization of affine reprentation of the proof.
|
|
1544
|
+
*/
|
|
1545
|
+
declare class Groth16Zkp extends Proof {
|
|
1546
|
+
/**
|
|
1547
|
+
* The bytes of G1 proof point a
|
|
1548
|
+
*/
|
|
1480
1549
|
a: Uint8Array;
|
|
1550
|
+
/**
|
|
1551
|
+
* The bytes of G2 proof point b
|
|
1552
|
+
*/
|
|
1481
1553
|
b: Uint8Array;
|
|
1554
|
+
/**
|
|
1555
|
+
* The bytes of G1 proof point c
|
|
1556
|
+
*/
|
|
1482
1557
|
c: Uint8Array;
|
|
1483
1558
|
constructor(args: {
|
|
1484
1559
|
a: HexInput;
|
|
1485
1560
|
b: HexInput;
|
|
1486
1561
|
c: HexInput;
|
|
1487
1562
|
});
|
|
1488
|
-
toUint8Array(): Uint8Array;
|
|
1489
1563
|
serialize(serializer: Serializer): void;
|
|
1490
1564
|
static deserialize(deserializer: Deserializer): Groth16Zkp;
|
|
1491
1565
|
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
readonly
|
|
1497
|
-
readonly trainingWheelsSignature?: EphemeralSignature;
|
|
1498
|
-
constructor(args: {
|
|
1499
|
-
proof: Groth16Zkp;
|
|
1500
|
-
expHorizonSecs?: bigint;
|
|
1501
|
-
extraField?: string;
|
|
1502
|
-
overrideAudVal?: string;
|
|
1503
|
-
trainingWheelsSignature?: EphemeralSignature;
|
|
1504
|
-
});
|
|
1505
|
-
/**
|
|
1506
|
-
* Get the signature in bytes (Uint8Array).
|
|
1507
|
-
*
|
|
1508
|
-
* @returns Uint8Array representation of the signature
|
|
1509
|
-
*/
|
|
1510
|
-
toUint8Array(): Uint8Array;
|
|
1566
|
+
/**
|
|
1567
|
+
* A container for a different zero knowledge proof types
|
|
1568
|
+
*/
|
|
1569
|
+
declare class ZkProof extends Serializable {
|
|
1570
|
+
readonly proof: Proof;
|
|
1511
1571
|
/**
|
|
1512
|
-
*
|
|
1513
|
-
*
|
|
1514
|
-
* @returns string representation of the signature
|
|
1572
|
+
* Index of the underlying enum variant
|
|
1515
1573
|
*/
|
|
1516
|
-
|
|
1574
|
+
private readonly variant;
|
|
1575
|
+
constructor(proof: Proof, variant: ZkpVariant);
|
|
1517
1576
|
serialize(serializer: Serializer): void;
|
|
1518
|
-
static deserialize(deserializer: Deserializer):
|
|
1519
|
-
static load(deserializer: Deserializer): SignedGroth16Signature;
|
|
1577
|
+
static deserialize(deserializer: Deserializer): ZkProof;
|
|
1520
1578
|
}
|
|
1521
1579
|
/**
|
|
1522
|
-
*
|
|
1580
|
+
* The signature representation of a proof
|
|
1523
1581
|
*/
|
|
1524
|
-
declare class
|
|
1525
|
-
readonly jwtSignature: string;
|
|
1526
|
-
readonly jwtPayloadJson: string;
|
|
1527
|
-
readonly uidKey: string;
|
|
1528
|
-
readonly epkBlinder: Uint8Array;
|
|
1529
|
-
readonly pepper: Uint8Array;
|
|
1530
|
-
readonly overrideAudValue?: string;
|
|
1582
|
+
declare class ZeroKnowledgeSig extends Signature {
|
|
1531
1583
|
/**
|
|
1532
|
-
*
|
|
1533
|
-
*
|
|
1534
|
-
* @param hexInput A HexInput (string or Uint8Array)
|
|
1584
|
+
* The proof
|
|
1535
1585
|
*/
|
|
1536
|
-
|
|
1537
|
-
jwtSignature: string;
|
|
1538
|
-
jwtPayloadJson: string;
|
|
1539
|
-
uidKey?: string;
|
|
1540
|
-
epkBlinder: Uint8Array;
|
|
1541
|
-
pepper: Uint8Array;
|
|
1542
|
-
overrideAudValue?: string;
|
|
1543
|
-
});
|
|
1586
|
+
readonly proof: ZkProof;
|
|
1544
1587
|
/**
|
|
1545
|
-
*
|
|
1546
|
-
*
|
|
1547
|
-
* @returns Uint8Array representation of the signature
|
|
1588
|
+
* The max lifespan of the proof
|
|
1548
1589
|
*/
|
|
1549
|
-
|
|
1590
|
+
readonly expHorizonSecs: bigint;
|
|
1550
1591
|
/**
|
|
1551
|
-
*
|
|
1552
|
-
*
|
|
1553
|
-
* @returns string representation of the signature
|
|
1592
|
+
* A key value pair on the JWT token that can be made public
|
|
1554
1593
|
*/
|
|
1555
|
-
|
|
1556
|
-
serialize(serializer: Serializer): void;
|
|
1557
|
-
static deserialize(deserializer: Deserializer): OpenIdSignature;
|
|
1558
|
-
static load(deserializer: Deserializer): OpenIdSignature;
|
|
1559
|
-
static isSignature(signature: Signature): signature is OpenIdSignature;
|
|
1560
|
-
}
|
|
1561
|
-
/**
|
|
1562
|
-
* A signature of a message signed via OIDC that uses proofs or the jwt token to authenticate.
|
|
1563
|
-
*/
|
|
1564
|
-
declare class KeylessSignature extends Signature {
|
|
1565
|
-
readonly openIdSignatureOrZkProof: OpenIdSignatureOrZkProof;
|
|
1566
|
-
readonly jwtHeader: string;
|
|
1567
|
-
readonly expiryDateSecs: bigint | number;
|
|
1568
|
-
readonly ephemeralPublicKey: EphemeralPublicKey;
|
|
1569
|
-
readonly ephemeralSignature: EphemeralSignature;
|
|
1594
|
+
readonly extraField?: string;
|
|
1570
1595
|
/**
|
|
1571
|
-
*
|
|
1572
|
-
|
|
1573
|
-
|
|
1596
|
+
* Set in the case of signing by recovery services
|
|
1597
|
+
*/
|
|
1598
|
+
readonly overrideAudVal?: string;
|
|
1599
|
+
/**
|
|
1600
|
+
* The training wheels signature
|
|
1574
1601
|
*/
|
|
1602
|
+
readonly trainingWheelsSignature?: EphemeralSignature;
|
|
1575
1603
|
constructor(args: {
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1604
|
+
proof: ZkProof;
|
|
1605
|
+
expHorizonSecs?: bigint;
|
|
1606
|
+
extraField?: string;
|
|
1607
|
+
overrideAudVal?: string;
|
|
1608
|
+
trainingWheelsSignature?: EphemeralSignature;
|
|
1581
1609
|
});
|
|
1582
1610
|
/**
|
|
1583
1611
|
* Get the signature in bytes (Uint8Array).
|
|
@@ -1586,15 +1614,14 @@ declare class KeylessSignature extends Signature {
|
|
|
1586
1614
|
*/
|
|
1587
1615
|
toUint8Array(): Uint8Array;
|
|
1588
1616
|
/**
|
|
1589
|
-
*
|
|
1617
|
+
* Return a ZeroKnowledgeSig object from its bcs serialization in bytes.
|
|
1590
1618
|
*
|
|
1591
|
-
* @returns
|
|
1619
|
+
* @returns ZeroKnowledgeSig
|
|
1592
1620
|
*/
|
|
1593
|
-
|
|
1621
|
+
static fromBytes(bytes: Uint8Array): ZeroKnowledgeSig;
|
|
1594
1622
|
serialize(serializer: Serializer): void;
|
|
1595
|
-
static deserialize(deserializer: Deserializer):
|
|
1596
|
-
static load(deserializer: Deserializer):
|
|
1597
|
-
static isSignature(signature: Signature): signature is KeylessSignature;
|
|
1623
|
+
static deserialize(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
1624
|
+
static load(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
1598
1625
|
}
|
|
1599
1626
|
|
|
1600
1627
|
/**
|
|
@@ -3089,61 +3116,84 @@ declare class Ed25519Account implements Account$1 {
|
|
|
3089
3116
|
}
|
|
3090
3117
|
|
|
3091
3118
|
declare class EphemeralKeyPair extends Serializable {
|
|
3119
|
+
static readonly BLINDER_LENGTH: number;
|
|
3120
|
+
/**
|
|
3121
|
+
* A byte array of length BLINDER_LENGTH used to obfuscate the public key from the IdP.
|
|
3122
|
+
* Used in calculating the nonce passed to the IdP and as a secret witness in proof generation.
|
|
3123
|
+
*/
|
|
3092
3124
|
readonly blinder: Uint8Array;
|
|
3125
|
+
/**
|
|
3126
|
+
* A timestamp in seconds indicating when the ephemeral key pair is expired. After expiry, a new
|
|
3127
|
+
* EphemeralKeyPair must be generated and a new JWT needs to be created.
|
|
3128
|
+
*/
|
|
3093
3129
|
readonly expiryDateSecs: bigint | number;
|
|
3130
|
+
/**
|
|
3131
|
+
* The value passed to the IdP when the user authenticates. It comprises of a hash of the
|
|
3132
|
+
* ephermeral public key, expiry date, and blinder.
|
|
3133
|
+
*/
|
|
3094
3134
|
readonly nonce: string;
|
|
3135
|
+
/**
|
|
3136
|
+
* A private key used to sign transactions. This private key is not tied to any account on the chain as it
|
|
3137
|
+
* is ephemeral in nature.
|
|
3138
|
+
*/
|
|
3095
3139
|
private privateKey;
|
|
3140
|
+
/**
|
|
3141
|
+
* A public key used to verify transactions. This public key is not tied to any account on the chain as it
|
|
3142
|
+
* is ephemeral in nature.
|
|
3143
|
+
*/
|
|
3096
3144
|
private publicKey;
|
|
3097
3145
|
constructor(args: {
|
|
3098
3146
|
privateKey: PrivateKey;
|
|
3099
3147
|
expiryDateSecs?: bigint | number;
|
|
3100
3148
|
blinder?: HexInput;
|
|
3101
3149
|
});
|
|
3150
|
+
/**
|
|
3151
|
+
* Returns the public key of the key pair.
|
|
3152
|
+
* @return EphemeralPublicKey
|
|
3153
|
+
*/
|
|
3102
3154
|
getPublicKey(): EphemeralPublicKey;
|
|
3155
|
+
/**
|
|
3156
|
+
* Returns the public key of the key pair.
|
|
3157
|
+
* @return boolean
|
|
3158
|
+
*/
|
|
3103
3159
|
isExpired(): boolean;
|
|
3104
3160
|
serialize(serializer: Serializer): void;
|
|
3105
3161
|
static deserialize(deserializer: Deserializer): EphemeralKeyPair;
|
|
3106
3162
|
static fromBytes(bytes: Uint8Array): EphemeralKeyPair;
|
|
3163
|
+
/**
|
|
3164
|
+
* Returns the public key of the key pair.
|
|
3165
|
+
* @param scheme the type of keypair to use for the EphemeralKeyPair. Only Ed25519 supported for now.
|
|
3166
|
+
* @return boolean
|
|
3167
|
+
*/
|
|
3107
3168
|
static generate(args?: {
|
|
3108
|
-
scheme:
|
|
3169
|
+
scheme: EphemeralPublicKeyVariant;
|
|
3109
3170
|
}): EphemeralKeyPair;
|
|
3110
|
-
generateNonce
|
|
3171
|
+
private generateNonce;
|
|
3111
3172
|
/**
|
|
3112
3173
|
* Sign the given message with the private key.
|
|
3113
|
-
*
|
|
3174
|
+
*
|
|
3114
3175
|
* @param data in HexInput format
|
|
3115
3176
|
* @returns EphemeralSignature
|
|
3116
3177
|
*/
|
|
3117
3178
|
sign(data: HexInput): EphemeralSignature;
|
|
3118
3179
|
}
|
|
3119
3180
|
|
|
3120
|
-
|
|
3121
|
-
status: "Success";
|
|
3122
|
-
};
|
|
3123
|
-
type ProofFetchFailure = {
|
|
3124
|
-
status: "Failed";
|
|
3125
|
-
error: string;
|
|
3126
|
-
};
|
|
3127
|
-
type ProofFetchStatus = ProofFetchSuccess | ProofFetchFailure;
|
|
3128
|
-
type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;
|
|
3129
|
-
interface ProofFetchEvents {
|
|
3130
|
-
proofFetchFinish: (status: ProofFetchStatus) => void;
|
|
3131
|
-
}
|
|
3181
|
+
declare const IssuerToJwkEndpoint: Record<string, string>;
|
|
3132
3182
|
declare class KeylessAccount extends Serializable implements Account$1 {
|
|
3133
3183
|
static readonly PEPPER_LENGTH: number;
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
emitter: EventEmitter<ProofFetchEvents>;
|
|
3184
|
+
readonly publicKey: KeylessPublicKey;
|
|
3185
|
+
readonly ephemeralKeyPair: EphemeralKeyPair;
|
|
3186
|
+
readonly uidKey: string;
|
|
3187
|
+
readonly uidVal: string;
|
|
3188
|
+
readonly aud: string;
|
|
3189
|
+
readonly pepper: Uint8Array;
|
|
3190
|
+
readonly accountAddress: AccountAddress;
|
|
3191
|
+
proof: ZeroKnowledgeSig | undefined;
|
|
3192
|
+
readonly proofOrPromise: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3193
|
+
readonly signingScheme: SigningScheme;
|
|
3194
|
+
private jwt;
|
|
3195
|
+
private isJwtValid;
|
|
3196
|
+
readonly emitter: EventEmitter<ProofFetchEvents>;
|
|
3147
3197
|
constructor(args: {
|
|
3148
3198
|
address?: AccountAddress;
|
|
3149
3199
|
ephemeralKeyPair: EphemeralKeyPair;
|
|
@@ -3152,36 +3202,84 @@ declare class KeylessAccount extends Serializable implements Account$1 {
|
|
|
3152
3202
|
uidVal: string;
|
|
3153
3203
|
aud: string;
|
|
3154
3204
|
pepper: HexInput;
|
|
3155
|
-
proofOrFetcher:
|
|
3205
|
+
proofOrFetcher: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3156
3206
|
proofFetchCallback?: ProofFetchCallback;
|
|
3157
3207
|
jwt: string;
|
|
3158
3208
|
});
|
|
3159
|
-
|
|
3209
|
+
/**
|
|
3210
|
+
* This initializes the asyncronous proof fetch
|
|
3211
|
+
* @return
|
|
3212
|
+
*/
|
|
3213
|
+
init(promise: Promise<ZeroKnowledgeSig>): Promise<void>;
|
|
3160
3214
|
serialize(serializer: Serializer): void;
|
|
3161
3215
|
static deserialize(deserializer: Deserializer): KeylessAccount;
|
|
3216
|
+
/**
|
|
3217
|
+
* Checks if the proof is expired. If so the account must be rederived with a new EphemeralKeyPair
|
|
3218
|
+
* and JWT token.
|
|
3219
|
+
* @return boolean
|
|
3220
|
+
*/
|
|
3162
3221
|
isExpired(): boolean;
|
|
3163
|
-
|
|
3164
|
-
|
|
3222
|
+
/**
|
|
3223
|
+
* Checks if the the JWK used to verify the token still exists on the issuer's JWK uri.
|
|
3224
|
+
* Caches the result.
|
|
3225
|
+
* @return boolean
|
|
3226
|
+
*/
|
|
3227
|
+
checkJwkValidity(): Promise<boolean>;
|
|
3228
|
+
/**
|
|
3229
|
+
* Sign a message using Keyless.
|
|
3230
|
+
* @param message the message to sign, as binary input
|
|
3231
|
+
* @return the AccountAuthenticator containing the signature, together with the account's public key
|
|
3232
|
+
*/
|
|
3165
3233
|
signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey;
|
|
3234
|
+
/**
|
|
3235
|
+
* Sign a transaction using Keyless.
|
|
3236
|
+
* @param transaction the raw transaction
|
|
3237
|
+
* @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
|
|
3238
|
+
*/
|
|
3166
3239
|
signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
|
|
3240
|
+
/**
|
|
3241
|
+
* Waits for asyncronous proof fetching to finish.
|
|
3242
|
+
* @return
|
|
3243
|
+
*/
|
|
3167
3244
|
waitForProofFetch(): Promise<void>;
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3245
|
+
/**
|
|
3246
|
+
* Sign the given message using Keyless.
|
|
3247
|
+
* @param message in HexInput format
|
|
3248
|
+
* @returns Signature
|
|
3249
|
+
*/
|
|
3250
|
+
sign(data: HexInput): KeylessSignature;
|
|
3251
|
+
/**
|
|
3252
|
+
* Sign the given transaction with Keyless.
|
|
3253
|
+
* Signs the transaction and proof to guard against proof malleability.
|
|
3254
|
+
* @param transaction the transaction to be signed
|
|
3255
|
+
* @returns KeylessSignature
|
|
3256
|
+
*/
|
|
3257
|
+
signTransaction(transaction: AnyRawTransaction): KeylessSignature;
|
|
3171
3258
|
verifySignature(args: {
|
|
3172
3259
|
message: HexInput;
|
|
3173
3260
|
signature: Signature;
|
|
3174
3261
|
}): boolean;
|
|
3175
3262
|
static fromBytes(bytes: Uint8Array): KeylessAccount;
|
|
3176
3263
|
static fromJWTAndProof(args: {
|
|
3177
|
-
proof:
|
|
3264
|
+
proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3178
3265
|
jwt: string;
|
|
3179
3266
|
ephemeralKeyPair: EphemeralKeyPair;
|
|
3180
3267
|
pepper: HexInput;
|
|
3181
3268
|
uidKey?: string;
|
|
3182
3269
|
proofFetchCallback?: ProofFetchCallback;
|
|
3183
3270
|
}): KeylessAccount;
|
|
3184
|
-
|
|
3271
|
+
}
|
|
3272
|
+
type ProofFetchSuccess = {
|
|
3273
|
+
status: "Success";
|
|
3274
|
+
};
|
|
3275
|
+
type ProofFetchFailure = {
|
|
3276
|
+
status: "Failed";
|
|
3277
|
+
error: string;
|
|
3278
|
+
};
|
|
3279
|
+
type ProofFetchStatus = ProofFetchSuccess | ProofFetchFailure;
|
|
3280
|
+
type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;
|
|
3281
|
+
interface ProofFetchEvents {
|
|
3282
|
+
proofFetchFinish: (status: ProofFetchStatus) => void;
|
|
3185
3283
|
}
|
|
3186
3284
|
|
|
3187
3285
|
interface VerifyMultiKeySignatureArgs {
|
|
@@ -3259,6 +3357,10 @@ declare class MultiKeyAccount implements Account$1 {
|
|
|
3259
3357
|
* @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
|
|
3260
3358
|
*/
|
|
3261
3359
|
signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorMultiKey;
|
|
3360
|
+
/**
|
|
3361
|
+
* Waits for any proofs to be fetched
|
|
3362
|
+
* @return
|
|
3363
|
+
*/
|
|
3262
3364
|
waitForProofFetch(): Promise<void>;
|
|
3263
3365
|
/**
|
|
3264
3366
|
* Sign the given message using the MultiKeyAccount's signers
|
|
@@ -5809,21 +5911,34 @@ declare class Transaction {
|
|
|
5809
5911
|
}
|
|
5810
5912
|
|
|
5811
5913
|
/**
|
|
5812
|
-
* A class to query all `
|
|
5914
|
+
* A class to query all `Keyless` related queries on Aptos.
|
|
5813
5915
|
*/
|
|
5814
5916
|
declare class Keyless {
|
|
5815
5917
|
readonly config: AptosConfig;
|
|
5816
5918
|
constructor(config: AptosConfig);
|
|
5817
5919
|
/**
|
|
5818
|
-
*
|
|
5920
|
+
* Fetches the pepper from the Aptos pepper service API.
|
|
5819
5921
|
*
|
|
5820
|
-
* @param args.jwt
|
|
5821
|
-
* @
|
|
5922
|
+
* @param args.jwt JWT token
|
|
5923
|
+
* @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
|
|
5924
|
+
* @returns The pepper which is a Uint8Array of length 31.
|
|
5822
5925
|
*/
|
|
5823
5926
|
getPepper(args: {
|
|
5824
5927
|
jwt: string;
|
|
5825
5928
|
ephemeralKeyPair: EphemeralKeyPair;
|
|
5826
5929
|
}): Promise<Uint8Array>;
|
|
5930
|
+
/**
|
|
5931
|
+
* Fetches the pepper from the Aptos pepper service API.
|
|
5932
|
+
*
|
|
5933
|
+
* @param args.jwt JWT token
|
|
5934
|
+
* @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
|
|
5935
|
+
* @param args.uidKey a key in the JWT token to use to set the uidVal in the IdCommitment
|
|
5936
|
+
* @param args.pepper the pepper
|
|
5937
|
+
* @param args.extraFieldKey a key in the JWT token used to reveal a value on chain
|
|
5938
|
+
* @param args.proofFetchCallback a callback function that if set, the fetch of the proof will be done asyncronously. Once
|
|
5939
|
+
* if finishes the callback function will be called.
|
|
5940
|
+
* @returns A KeylessAccount that can be used to sign transactions
|
|
5941
|
+
*/
|
|
5827
5942
|
deriveKeylessAccount(args: {
|
|
5828
5943
|
jwt: string;
|
|
5829
5944
|
ephemeralKeyPair: EphemeralKeyPair;
|
|
@@ -5897,7 +6012,11 @@ declare class AptosApiError extends Error {
|
|
|
5897
6012
|
readonly url: string;
|
|
5898
6013
|
readonly status: number;
|
|
5899
6014
|
readonly statusText: string;
|
|
5900
|
-
readonly data:
|
|
6015
|
+
readonly data: {
|
|
6016
|
+
message: string;
|
|
6017
|
+
error_code?: string;
|
|
6018
|
+
vm_error_code?: number;
|
|
6019
|
+
};
|
|
5901
6020
|
readonly request: AptosRequest;
|
|
5902
6021
|
constructor(request: AptosRequest, response: AptosResponse<any, any>, message: string);
|
|
5903
6022
|
}
|
|
@@ -6026,4 +6145,4 @@ declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAp
|
|
|
6026
6145
|
declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6027
6146
|
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6028
6147
|
|
|
6029
|
-
export {
|
|
6148
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, IssuerToJwkEndpoint, KeyType, KeylessAccount, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
|