@aptos-labs/ts-sdk 2.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/account-Bb5REyaT.d.ts +7412 -0
- package/dist/common/chunk-6MMUUJHX.js +4 -0
- package/dist/common/{chunk-ZMDE3DNL.js.map → chunk-6MMUUJHX.js.map} +1 -1
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/index.d.ts +5876 -9769
- package/dist/common/index.js +55 -32
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-D9XrCLfE.d.mts → Ed25519Account-ndmdpFe9.d.mts} +1 -9
- package/dist/esm/account/AbstractKeylessAccount.d.mts +4 -31
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.d.mts +5 -32
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +3 -30
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +4 -31
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/DerivableAbstractedAccount.d.mts +5 -32
- package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +3 -30
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +2 -11
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +5 -31
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +5 -31
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.d.mts +3 -30
- package/dist/esm/account/MultiEd25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +5 -32
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +3 -30
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +4 -31
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +2 -6
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/account--Q9z_xMN.d.mts +6625 -0
- package/dist/esm/api/account/abstraction.d.mts +2 -29
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.d.mts +95 -31
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +3 -30
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +8 -32
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +4 -187
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +2 -29
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +3 -30
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +2 -8
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +2 -8
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +2 -29
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +2 -29
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +6 -31
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +4 -31
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +2 -8
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +2 -8
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +2 -2
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +7 -33
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +2 -29
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +2 -29
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +3 -30
- 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 +2 -29
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +4 -31
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +2 -2
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/consts.d.mts +3 -1
- package/dist/esm/bcs/deserializer.d.mts +3 -304
- package/dist/esm/bcs/index.d.mts +2 -8
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +3 -7
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +3 -90
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +2 -167
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +2 -430
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +3 -325
- package/dist/esm/{chunk-Q4W3WJ2U.mjs → chunk-2BOHKN33.mjs} +2 -2
- package/dist/esm/{chunk-AMAPBD4D.mjs → chunk-4COLMDT3.mjs} +2 -2
- package/dist/esm/chunk-5HXLZHDW.mjs +1 -0
- package/dist/esm/chunk-5HXLZHDW.mjs.map +1 -0
- package/dist/esm/{chunk-UOP7GBXB.mjs → chunk-5URUYE6H.mjs} +2 -2
- package/dist/esm/chunk-ACNHLCQQ.mjs +6 -0
- package/dist/esm/chunk-ACNHLCQQ.mjs.map +1 -0
- package/dist/esm/{chunk-V74WPKSY.mjs → chunk-FYYEPFML.mjs} +2 -2
- package/dist/esm/chunk-HUWKPKPQ.mjs +2 -0
- package/dist/esm/{chunk-VEGW6HP5.mjs.map → chunk-HUWKPKPQ.mjs.map} +1 -1
- package/dist/esm/chunk-IJE2LVZG.mjs +2 -0
- package/dist/esm/chunk-IJE2LVZG.mjs.map +1 -0
- package/dist/esm/chunk-JCFTAG5Z.mjs +2 -0
- package/dist/esm/{chunk-RJ7F4JDV.mjs.map → chunk-JCFTAG5Z.mjs.map} +1 -1
- package/dist/esm/{chunk-CZYH3G7E.mjs → chunk-MML57K5H.mjs} +2 -2
- package/dist/esm/{chunk-57J5YBMT.mjs → chunk-MNDTFHDB.mjs} +2 -2
- package/dist/esm/{chunk-U7HD6PQV.mjs → chunk-SLWIGOQL.mjs} +2 -2
- package/dist/esm/{chunk-V2QSMVJ5.mjs → chunk-TYYVB2A6.mjs} +2 -2
- package/dist/esm/{chunk-HETYL3WN.mjs → chunk-U3GMNXO4.mjs} +2 -2
- package/dist/esm/{chunk-VHNX2NUR.mjs → chunk-UL777LTI.mjs} +47 -26
- package/dist/esm/chunk-UL777LTI.mjs.map +1 -0
- package/dist/esm/{chunk-GBNAG7KK.mjs → chunk-XZ75T7Q7.mjs} +2 -2
- package/dist/esm/chunk-Y7ZQTLH4.mjs +2 -0
- package/dist/esm/chunk-Y7ZQTLH4.mjs.map +1 -0
- package/dist/esm/{chunk-KRBZ54CY.mjs → chunk-Z5URUE4U.mjs} +2 -2
- package/dist/esm/cli/index.d.mts +3 -7
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +3 -7
- package/dist/esm/client/core.d.mts +3 -3
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +3 -3
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +3 -3
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.d.mts +3 -7
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +3 -7
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.d.mts +3 -7
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +3 -329
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +2 -10
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/abstraction.d.mts +2 -10
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/deserializationUtils.d.mts +2 -10
- package/dist/esm/core/crypto/deserializationUtils.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +2 -301
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +2 -10
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +4 -12
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +4 -17
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +3 -11
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +2 -228
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +2 -254
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +2 -71
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +3 -4
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +2 -10
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +2 -274
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +3 -31
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +2 -182
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/types.d.mts +11 -0
- package/dist/esm/core/crypto/types.mjs +2 -0
- package/dist/esm/core/crypto/types.mjs.map +1 -0
- package/dist/esm/core/crypto/utils.d.mts +3 -1
- package/dist/esm/core/hex.d.mts +3 -156
- package/dist/esm/core/index.d.mts +3 -16
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.d.mts +2 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/{federatedKeyless-DAYXjY2Y.d.mts → federatedKeyless-CiyplsOB.d.mts} +1 -7
- package/dist/esm/index.d.mts +7 -32
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.d.mts +2 -29
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.d.mts +39 -36
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +3 -30
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +3 -30
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +3 -30
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +2 -8
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +3 -9
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +3 -30
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +2 -2
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +14 -32
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +2 -8
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +2 -8
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +2 -2
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +3 -3
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +6 -33
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/utils/index.d.mts +2 -8
- package/dist/esm/internal/utils/index.mjs +1 -1
- package/dist/esm/internal/utils/utils.d.mts +2 -8
- package/dist/esm/internal/utils/utils.mjs +1 -1
- package/dist/esm/internal/view.d.mts +1 -28
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +2 -179
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +2 -17
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +2 -17
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +3 -30
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +3 -44
- package/dist/esm/transactions/instances/identifier.d.mts +2 -44
- package/dist/esm/transactions/instances/index.d.mts +2 -27
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +3 -57
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +2 -60
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +2 -150
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +2 -12
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +2 -23
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +2 -59
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +2 -74
- package/dist/esm/transactions/instances/transactionPayload.d.mts +2 -300
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -29
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +2 -29
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +2 -29
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -30
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -29
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +2 -29
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -28
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +3 -29
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +2 -462
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +2 -8
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +3 -399
- package/dist/esm/types/generated/operations.d.mts +37 -10
- package/dist/esm/types/generated/queries.d.mts +6 -2
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/types.d.mts +584 -1172
- package/dist/esm/types/generated/types.mjs +1 -1
- package/dist/esm/types/generated/types.mjs.map +1 -1
- package/dist/esm/types/index.d.mts +4 -2
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +8 -2
- package/dist/esm/types/types.d.mts +5 -1298
- package/dist/esm/types/types.mjs +1 -1
- package/dist/esm/utils/const.d.mts +1 -0
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +2 -6
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +1 -6
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +2 -4
- 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 +1 -1
- package/src/account/FederatedKeylessAccount.ts +7 -1
- package/src/account/KeylessAccount.ts +17 -2
- package/src/api/account.ts +135 -2
- package/src/api/aptos.ts +6 -2
- package/src/api/aptosConfig.ts +73 -2
- package/src/api/transaction.ts +10 -6
- package/src/api/transactionSubmission/build.ts +5 -1
- package/src/api/transactionSubmission/submit.ts +16 -12
- package/src/core/crypto/index.ts +1 -0
- package/src/core/crypto/multiEd25519.ts +26 -0
- package/src/core/crypto/multiKey.ts +20 -1
- package/src/core/crypto/types.ts +9 -0
- package/src/internal/account.ts +526 -59
- package/src/internal/keyless.ts +10 -0
- package/src/internal/queries/getAccountAddressesForAuthKey.graphql +8 -0
- package/src/internal/queries/getAuthKeysForPublicKey.graphql +11 -0
- package/src/internal/transactionSubmission.ts +20 -10
- package/src/transactions/instances/transactionPayload.ts +165 -2
- package/src/transactions/management/transactionWorker.ts +1 -1
- package/src/transactions/transactionBuilder/transactionBuilder.ts +64 -5
- package/src/transactions/types.ts +61 -10
- package/src/types/codegen.yaml +1 -1
- package/src/types/generated/operations.ts +39 -8
- package/src/types/generated/queries.ts +53 -0
- package/src/types/generated/types.ts +620 -1239
- package/src/types/indexer.ts +8 -0
- package/src/types/types.ts +151 -3
- package/src/utils/const.ts +1 -0
- package/src/version.ts +1 -1
- package/dist/common/accountAddress-AL8HRxQC.d.ts +0 -3148
- package/dist/common/chunk-ZMDE3DNL.js +0 -4
- package/dist/esm/chunk-BK56GLTP.mjs +0 -4
- package/dist/esm/chunk-BK56GLTP.mjs.map +0 -1
- package/dist/esm/chunk-ODAAZLPK.mjs +0 -2
- package/dist/esm/chunk-ODAAZLPK.mjs.map +0 -1
- package/dist/esm/chunk-RJ7F4JDV.mjs +0 -2
- package/dist/esm/chunk-VEGW6HP5.mjs +0 -2
- package/dist/esm/chunk-VHNX2NUR.mjs.map +0 -1
- package/dist/esm/chunk-XTMUMN74.mjs +0 -2
- package/dist/esm/chunk-XTMUMN74.mjs.map +0 -1
- package/dist/esm/publicKey-CJOcUwJK.d.mts +0 -213
- /package/dist/esm/{chunk-Q4W3WJ2U.mjs.map → chunk-2BOHKN33.mjs.map} +0 -0
- /package/dist/esm/{chunk-AMAPBD4D.mjs.map → chunk-4COLMDT3.mjs.map} +0 -0
- /package/dist/esm/{chunk-UOP7GBXB.mjs.map → chunk-5URUYE6H.mjs.map} +0 -0
- /package/dist/esm/{chunk-V74WPKSY.mjs.map → chunk-FYYEPFML.mjs.map} +0 -0
- /package/dist/esm/{chunk-CZYH3G7E.mjs.map → chunk-MML57K5H.mjs.map} +0 -0
- /package/dist/esm/{chunk-57J5YBMT.mjs.map → chunk-MNDTFHDB.mjs.map} +0 -0
- /package/dist/esm/{chunk-U7HD6PQV.mjs.map → chunk-SLWIGOQL.mjs.map} +0 -0
- /package/dist/esm/{chunk-V2QSMVJ5.mjs.map → chunk-TYYVB2A6.mjs.map} +0 -0
- /package/dist/esm/{chunk-HETYL3WN.mjs.map → chunk-U3GMNXO4.mjs.map} +0 -0
- /package/dist/esm/{chunk-GBNAG7KK.mjs.map → chunk-XZ75T7Q7.mjs.map} +0 -0
- /package/dist/esm/{chunk-KRBZ54CY.mjs.map → chunk-Z5URUE4U.mjs.map} +0 -0
|
@@ -1,233 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { Serializer } from '../../bcs/serializer.mjs';
|
|
3
|
-
import { HexInput } from '../../types/types.mjs';
|
|
4
|
-
import { A as AuthenticationKey } from '../../publicKey-CJOcUwJK.mjs';
|
|
5
|
-
import { Signature } from './signature.mjs';
|
|
6
|
-
import { Ed25519PublicKey, Ed25519Signature } from './ed25519.mjs';
|
|
7
|
-
import { AptosConfig } from '../../api/aptosConfig.mjs';
|
|
8
|
-
import { AbstractMultiKey } from './multiKey.mjs';
|
|
1
|
+
export { t as MultiEd25519PublicKey, u as MultiEd25519Signature } from '../../account--Q9z_xMN.mjs';
|
|
9
2
|
import '../../types/indexer.mjs';
|
|
10
3
|
import '../../types/generated/operations.mjs';
|
|
11
4
|
import '../../types/generated/types.mjs';
|
|
12
5
|
import '../../utils/apiEndpoints.mjs';
|
|
13
|
-
import '../hex.mjs';
|
|
14
|
-
import '../common.mjs';
|
|
15
|
-
import '../accountAddress.mjs';
|
|
16
|
-
import '../../transactions/instances/transactionArgument.mjs';
|
|
17
|
-
import './privateKey.mjs';
|
|
18
6
|
import '../../utils/const.mjs';
|
|
19
|
-
import '
|
|
20
|
-
import './secp256k1.mjs';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Represents the public key of a K-of-N Ed25519 multi-sig transaction.
|
|
24
|
-
*
|
|
25
|
-
* A K-of-N multi-sig transaction requires at least K out of N authorized signers to sign the transaction
|
|
26
|
-
* for it to be executed. This class encapsulates the logic for managing the public keys and the threshold
|
|
27
|
-
* for valid signatures.
|
|
28
|
-
*
|
|
29
|
-
* @see {@link https://aptos.dev/integration/creating-a-signed-transaction/ | Creating a Signed Transaction}
|
|
30
|
-
* @group Implementation
|
|
31
|
-
* @category Serialization
|
|
32
|
-
*/
|
|
33
|
-
declare class MultiEd25519PublicKey extends AbstractMultiKey {
|
|
34
|
-
/**
|
|
35
|
-
* Maximum number of public keys supported
|
|
36
|
-
* @group Implementation
|
|
37
|
-
* @category Serialization
|
|
38
|
-
*/
|
|
39
|
-
static readonly MAX_KEYS = 32;
|
|
40
|
-
/**
|
|
41
|
-
* Minimum number of public keys needed
|
|
42
|
-
* @group Implementation
|
|
43
|
-
* @category Serialization
|
|
44
|
-
*/
|
|
45
|
-
static readonly MIN_KEYS = 2;
|
|
46
|
-
/**
|
|
47
|
-
* Minimum threshold for the number of valid signatures required
|
|
48
|
-
* @group Implementation
|
|
49
|
-
* @category Serialization
|
|
50
|
-
*/
|
|
51
|
-
static readonly MIN_THRESHOLD = 1;
|
|
52
|
-
/**
|
|
53
|
-
* List of Ed25519 public keys for this LegacyMultiEd25519PublicKey
|
|
54
|
-
* @group Implementation
|
|
55
|
-
* @category Serialization
|
|
56
|
-
*/
|
|
57
|
-
readonly publicKeys: Ed25519PublicKey[];
|
|
58
|
-
/**
|
|
59
|
-
* The minimum number of valid signatures required, for the number of public keys specified
|
|
60
|
-
* @group Implementation
|
|
61
|
-
* @category Serialization
|
|
62
|
-
*/
|
|
63
|
-
readonly threshold: number;
|
|
64
|
-
/**
|
|
65
|
-
* Public key for a K-of-N multi-sig transaction. A K-of-N multi-sig transaction means that for such a
|
|
66
|
-
* transaction to be executed, at least K out of the N authorized signers have signed the transaction
|
|
67
|
-
* and passed the check conducted by the chain.
|
|
68
|
-
*
|
|
69
|
-
* @see {@link
|
|
70
|
-
* https://aptos.dev/integration/creating-a-signed-transaction/ | Creating a Signed Transaction}
|
|
71
|
-
* @param args - A wrapper to let you choose the param order.
|
|
72
|
-
* @param args.publicKeys A list of public keys
|
|
73
|
-
* @param args.threshold At least "threshold" signatures must be valid
|
|
74
|
-
* @group Implementation
|
|
75
|
-
* @category Serialization
|
|
76
|
-
*/
|
|
77
|
-
constructor(args: {
|
|
78
|
-
publicKeys: Ed25519PublicKey[];
|
|
79
|
-
threshold: number;
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* Verifies a multi-signature against a given message.
|
|
83
|
-
* This function ensures that the provided signatures meet the required threshold and are valid for the given message.
|
|
84
|
-
*
|
|
85
|
-
* @param args - The arguments for verifying the signature.
|
|
86
|
-
* @param args.message - The message that was signed.
|
|
87
|
-
* @param args.signature - The multi-signature containing multiple signatures and a bitmap indicating which signatures are valid.
|
|
88
|
-
* @returns True if the signature is valid; otherwise, false.
|
|
89
|
-
* @throws Error if the bitmap and signatures length mismatch or if there are not enough valid signatures.
|
|
90
|
-
* @group Implementation
|
|
91
|
-
* @category Serialization
|
|
92
|
-
*/
|
|
93
|
-
verifySignature(args: {
|
|
94
|
-
message: HexInput;
|
|
95
|
-
signature: Signature;
|
|
96
|
-
}): boolean;
|
|
97
|
-
verifySignatureAsync(args: {
|
|
98
|
-
aptosConfig: AptosConfig;
|
|
99
|
-
message: HexInput;
|
|
100
|
-
signature: Signature;
|
|
101
|
-
}): Promise<boolean>;
|
|
102
|
-
/**
|
|
103
|
-
* Generates an authentication key based on the current instance's byte representation.
|
|
104
|
-
* This function is essential for creating a secure authentication key that can be used for various cryptographic operations.
|
|
105
|
-
*
|
|
106
|
-
* @returns {AuthenticationKey} The generated authentication key.
|
|
107
|
-
* @group Implementation
|
|
108
|
-
* @category Serialization
|
|
109
|
-
*/
|
|
110
|
-
authKey(): AuthenticationKey;
|
|
111
|
-
/**
|
|
112
|
-
* Converts a PublicKeys into Uint8Array (bytes) with: bytes = p1_bytes | ... | pn_bytes | threshold
|
|
113
|
-
* @group Implementation
|
|
114
|
-
* @category Serialization
|
|
115
|
-
*/
|
|
116
|
-
toUint8Array(): Uint8Array;
|
|
117
|
-
/**
|
|
118
|
-
* Serializes the current instance into bytes using the provided serializer.
|
|
119
|
-
* This allows for the conversion of the instance's data into a format suitable for transmission or storage.
|
|
120
|
-
*
|
|
121
|
-
* @param serializer - The serializer used to convert the instance into bytes.
|
|
122
|
-
* @group Implementation
|
|
123
|
-
* @category Serialization
|
|
124
|
-
*/
|
|
125
|
-
serialize(serializer: Serializer): void;
|
|
126
|
-
/**
|
|
127
|
-
* Deserializes a MultiEd25519Signature from the provided deserializer.
|
|
128
|
-
* This function helps in reconstructing a MultiEd25519Signature object from its serialized byte representation.
|
|
129
|
-
*
|
|
130
|
-
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
131
|
-
* @group Implementation
|
|
132
|
-
* @category Serialization
|
|
133
|
-
*/
|
|
134
|
-
static deserialize(deserializer: Deserializer): MultiEd25519PublicKey;
|
|
135
|
-
/**
|
|
136
|
-
* Get the index of the provided public key.
|
|
137
|
-
*
|
|
138
|
-
* This function retrieves the index of a specified public key within the MultiKey.
|
|
139
|
-
* If the public key does not exist, it throws an error.
|
|
140
|
-
*
|
|
141
|
-
* @param publicKey - The public key to find the index for.
|
|
142
|
-
* @returns The corresponding index of the public key, if it exists.
|
|
143
|
-
* @throws Error - If the public key is not found in the MultiKey.
|
|
144
|
-
* @group Implementation
|
|
145
|
-
*/
|
|
146
|
-
getIndex(publicKey: Ed25519PublicKey): number;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Represents the signature of a K-of-N Ed25519 multi-sig transaction.
|
|
150
|
-
*
|
|
151
|
-
* @see {@link https://aptos.dev/integration/creating-a-signed-transaction/#multisignature-transactions | Creating a Signed Transaction}
|
|
152
|
-
* @group Implementation
|
|
153
|
-
* @category Serialization
|
|
154
|
-
*/
|
|
155
|
-
declare class MultiEd25519Signature extends Signature {
|
|
156
|
-
/**
|
|
157
|
-
* Maximum number of Ed25519 signatures supported
|
|
158
|
-
* @group Implementation
|
|
159
|
-
* @category Serialization
|
|
160
|
-
*/
|
|
161
|
-
static MAX_SIGNATURES_SUPPORTED: number;
|
|
162
|
-
/**
|
|
163
|
-
* Number of bytes in the bitmap representing who signed the transaction (32-bits)
|
|
164
|
-
* @group Implementation
|
|
165
|
-
* @category Serialization
|
|
166
|
-
*/
|
|
167
|
-
static BITMAP_LEN: number;
|
|
168
|
-
/**
|
|
169
|
-
* The list of underlying Ed25519 signatures
|
|
170
|
-
* @group Implementation
|
|
171
|
-
* @category Serialization
|
|
172
|
-
*/
|
|
173
|
-
readonly signatures: Ed25519Signature[];
|
|
174
|
-
/**
|
|
175
|
-
* 32-bit Bitmap representing who signed the transaction
|
|
176
|
-
*
|
|
177
|
-
* This is represented where each public key can be masked to determine whether the message was signed by that key.
|
|
178
|
-
* @group Implementation
|
|
179
|
-
* @category Serialization
|
|
180
|
-
*/
|
|
181
|
-
readonly bitmap: Uint8Array;
|
|
182
|
-
/**
|
|
183
|
-
* Signature for a K-of-N multi-sig transaction.
|
|
184
|
-
*
|
|
185
|
-
* @see {@link
|
|
186
|
-
* https://aptos.dev/integration/creating-a-signed-transaction/#multisignature-transactions | Creating a Signed Transaction}
|
|
187
|
-
*
|
|
188
|
-
* @param args.signatures A list of signatures
|
|
189
|
-
* @param args.bitmap 4 bytes, at most 32 signatures are supported. If Nth bit value is `1`, the Nth
|
|
190
|
-
* signature should be provided in `signatures`. Bits are read from left to right.
|
|
191
|
-
* Alternatively, you can specify an array of bitmap positions.
|
|
192
|
-
* Valid position should range between 0 and 31.
|
|
193
|
-
* @see MultiEd25519Signature.createBitmap
|
|
194
|
-
* @group Implementation
|
|
195
|
-
* @category Serialization
|
|
196
|
-
*/
|
|
197
|
-
constructor(args: {
|
|
198
|
-
signatures: Ed25519Signature[];
|
|
199
|
-
bitmap: Uint8Array | number[];
|
|
200
|
-
});
|
|
201
|
-
/**
|
|
202
|
-
* Converts a MultiSignature into Uint8Array (bytes) with `bytes = s1_bytes | ... | sn_bytes | bitmap`
|
|
203
|
-
* @group Implementation
|
|
204
|
-
* @category Serialization
|
|
205
|
-
*/
|
|
206
|
-
toUint8Array(): Uint8Array;
|
|
207
|
-
serialize(serializer: Serializer): void;
|
|
208
|
-
static deserialize(deserializer: Deserializer): MultiEd25519Signature;
|
|
209
|
-
/**
|
|
210
|
-
* Helper method to create a bitmap out of the specified bit positions.
|
|
211
|
-
* This function allows you to set specific bits in a 32-bit long bitmap based on the provided positions.
|
|
212
|
-
*
|
|
213
|
-
* @param args The arguments for creating the bitmap.
|
|
214
|
-
* @param args.bits The bitmap positions that should be set. A position starts at index 0. Valid positions should range between 0 and 31.
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* Here's an example of valid `bits`
|
|
218
|
-
* ```
|
|
219
|
-
* [0, 2, 31]
|
|
220
|
-
* ```
|
|
221
|
-
* `[0, 2, 31]` means the 1st, 3rd and 32nd bits should be set in the bitmap.
|
|
222
|
-
* The result bitmap should be 0b1010000000000000000000000000001
|
|
223
|
-
*
|
|
224
|
-
* @returns bitmap that is 32 bits long.
|
|
225
|
-
* @group Implementation
|
|
226
|
-
* @category Serialization
|
|
227
|
-
*/
|
|
228
|
-
static createBitmap(args: {
|
|
229
|
-
bits: number[];
|
|
230
|
-
}): Uint8Array;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export { MultiEd25519PublicKey, MultiEd25519Signature };
|
|
7
|
+
import '../common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{F as a,G as b}from"../../chunk-
|
|
1
|
+
import{F as a,G as b}from"../../chunk-ACNHLCQQ.mjs";import"../../chunk-FYYEPFML.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-CO67Y6YE.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-MNDTFHDB.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-RQX6JOEN.mjs";import"../../chunk-CFQFFP6N.mjs";import"../../chunk-UQWF24SS.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-WSR5EBJM.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-W4BSN6SK.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-KJH4KKG6.mjs";import"../../chunk-FGFLPH5K.mjs";import"../../chunk-SLWIGOQL.mjs";import"../../chunk-4COLMDT3.mjs";import"../../chunk-TYYVB2A6.mjs";import"../../chunk-Z5URUE4U.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-XZ75T7Q7.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-MML57K5H.mjs";import"../../chunk-5URUYE6H.mjs";import"../../chunk-U3GMNXO4.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CW35YAMN.mjs";import"../../chunk-6WDVDEQZ.mjs";import"../../chunk-7DQDJ2SA.mjs";import"../../chunk-HNBVYE3N.mjs";import"../../chunk-RGKRCZ36.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BOHKN33.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-FLZPUYXQ.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-Y7ZQTLH4.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-JCFTAG5Z.mjs";import"../../chunk-HUWKPKPQ.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=multiEd25519.mjs.map
|
|
@@ -1,259 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { Deserializer } from '../../bcs/deserializer.mjs';
|
|
3
|
-
import { Serializer } from '../../bcs/serializer.mjs';
|
|
4
|
-
import { b as AccountPublicKey, P as PublicKey, A as AuthenticationKey } from '../../publicKey-CJOcUwJK.mjs';
|
|
5
|
-
import { Signature } from './signature.mjs';
|
|
6
|
-
import { AnyPublicKey, AnySignature } from './singleKey.mjs';
|
|
7
|
-
import { AptosConfig } from '../../api/aptosConfig.mjs';
|
|
1
|
+
export { w as AbstractMultiKey, x as MultiKey, y as MultiKeySignature } from '../../account--Q9z_xMN.mjs';
|
|
8
2
|
import '../../types/indexer.mjs';
|
|
9
3
|
import '../../types/generated/operations.mjs';
|
|
10
4
|
import '../../types/generated/types.mjs';
|
|
11
5
|
import '../../utils/apiEndpoints.mjs';
|
|
12
|
-
import '../hex.mjs';
|
|
13
|
-
import '../common.mjs';
|
|
14
|
-
import '../accountAddress.mjs';
|
|
15
|
-
import '../../transactions/instances/transactionArgument.mjs';
|
|
16
|
-
import './ed25519.mjs';
|
|
17
|
-
import './privateKey.mjs';
|
|
18
6
|
import '../../utils/const.mjs';
|
|
19
|
-
import '
|
|
20
|
-
|
|
21
|
-
declare abstract class AbstractMultiKey extends AccountPublicKey {
|
|
22
|
-
publicKeys: PublicKey[];
|
|
23
|
-
constructor(args: {
|
|
24
|
-
publicKeys: PublicKey[];
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* Create a bitmap that holds the mapping from the original public keys
|
|
28
|
-
* to the signatures passed in
|
|
29
|
-
*
|
|
30
|
-
* @param args.bits array of the index mapping to the matching public keys
|
|
31
|
-
* @returns Uint8array bit map
|
|
32
|
-
* @group Implementation
|
|
33
|
-
* @category Serialization
|
|
34
|
-
*/
|
|
35
|
-
createBitmap(args: {
|
|
36
|
-
bits: number[];
|
|
37
|
-
}): Uint8Array;
|
|
38
|
-
/**
|
|
39
|
-
* Get the index of the provided public key.
|
|
40
|
-
*
|
|
41
|
-
* This function retrieves the index of a specified public key within the MultiKey.
|
|
42
|
-
* If the public key does not exist, it throws an error.
|
|
43
|
-
*
|
|
44
|
-
* @param publicKey - The public key to find the index for.
|
|
45
|
-
* @returns The corresponding index of the public key, if it exists.
|
|
46
|
-
* @throws Error - If the public key is not found in the MultiKey.
|
|
47
|
-
* @group Implementation
|
|
48
|
-
* @category Serialization
|
|
49
|
-
*/
|
|
50
|
-
getIndex(publicKey: PublicKey): number;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Represents a multi-key authentication scheme for accounts, allowing multiple public keys
|
|
54
|
-
* to be associated with a single account. This class enforces a minimum number of valid signatures
|
|
55
|
-
* required to authorize actions, ensuring enhanced security for multi-agent accounts.
|
|
56
|
-
*
|
|
57
|
-
* The public keys of each individual agent can be any type of public key supported by Aptos.
|
|
58
|
-
* Since [AIP-55](https://github.com/aptos-foundation/AIPs/pull/263), Aptos supports
|
|
59
|
-
* `Legacy` and `Unified` authentication keys.
|
|
60
|
-
* @group Implementation
|
|
61
|
-
* @category Serialization
|
|
62
|
-
*/
|
|
63
|
-
declare class MultiKey extends AbstractMultiKey {
|
|
64
|
-
/**
|
|
65
|
-
* List of any public keys
|
|
66
|
-
* @group Implementation
|
|
67
|
-
* @category Serialization
|
|
68
|
-
*/
|
|
69
|
-
readonly publicKeys: AnyPublicKey[];
|
|
70
|
-
/**
|
|
71
|
-
* The minimum number of valid signatures required, for the number of public keys specified
|
|
72
|
-
* @group Implementation
|
|
73
|
-
* @category Serialization
|
|
74
|
-
*/
|
|
75
|
-
readonly signaturesRequired: number;
|
|
76
|
-
/**
|
|
77
|
-
* Signature for a K-of-N multi-sig transaction.
|
|
78
|
-
* This constructor initializes a multi-signature transaction with the provided signatures and bitmap.
|
|
79
|
-
*
|
|
80
|
-
* @param args An object containing the parameters for the multi-signature transaction.
|
|
81
|
-
* @param args.signatures A list of signatures.
|
|
82
|
-
* @param args.bitmap A bitmap represented as a Uint8Array or an array of numbers, where each bit indicates whether a
|
|
83
|
-
* corresponding signature is present. A maximum of 32 signatures is supported, and the length of the bitmap must be 4 bytes.
|
|
84
|
-
*
|
|
85
|
-
* @throws Error if the number of signatures exceeds the maximum supported, if the bitmap length is incorrect, or if the number
|
|
86
|
-
* of signatures does not match the bitmap.
|
|
87
|
-
* @group Implementation
|
|
88
|
-
* @category Serialization
|
|
89
|
-
*/
|
|
90
|
-
constructor(args: {
|
|
91
|
-
publicKeys: Array<PublicKey>;
|
|
92
|
-
signaturesRequired: number;
|
|
93
|
-
});
|
|
94
|
-
/**
|
|
95
|
-
* Verifies the provided signature against the given message.
|
|
96
|
-
* This function helps ensure the integrity and authenticity of the message by checking if the signature is valid.
|
|
97
|
-
*
|
|
98
|
-
* Note: This function will fail if a keyless signature is used. Use `verifySignatureAsync` instead.
|
|
99
|
-
*
|
|
100
|
-
* @param args - The arguments for verifying the signature.
|
|
101
|
-
* @param args.message - The message that was signed.
|
|
102
|
-
* @param args.signature - The signature to verify.
|
|
103
|
-
* @group Implementation
|
|
104
|
-
* @category Serialization
|
|
105
|
-
*/
|
|
106
|
-
verifySignature(args: {
|
|
107
|
-
message: HexInput;
|
|
108
|
-
signature: MultiKeySignature;
|
|
109
|
-
}): boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Verifies the provided signature against the given message.
|
|
112
|
-
* This function helps ensure the integrity and authenticity of the message by checking if the signature is valid.
|
|
113
|
-
*
|
|
114
|
-
* @param args - The arguments for verifying the signature.
|
|
115
|
-
* @param args.aptosConfig - The Aptos configuration to use
|
|
116
|
-
* @param args.message - The message that was signed.
|
|
117
|
-
* @param args.signature - The signature to verify.
|
|
118
|
-
* @group Implementation
|
|
119
|
-
* @category Serialization
|
|
120
|
-
*/
|
|
121
|
-
verifySignatureAsync(args: {
|
|
122
|
-
aptosConfig: AptosConfig;
|
|
123
|
-
message: HexInput;
|
|
124
|
-
signature: Signature;
|
|
125
|
-
options?: {
|
|
126
|
-
throwErrorWithReason?: boolean;
|
|
127
|
-
};
|
|
128
|
-
}): Promise<boolean>;
|
|
129
|
-
/**
|
|
130
|
-
* Generates an authentication key based on the current instance's byte representation.
|
|
131
|
-
* This key can be used for secure authentication processes within the system.
|
|
132
|
-
*
|
|
133
|
-
* @returns {AuthenticationKey} The generated authentication key.
|
|
134
|
-
* @group Implementation
|
|
135
|
-
* @category Serialization
|
|
136
|
-
*/
|
|
137
|
-
authKey(): AuthenticationKey;
|
|
138
|
-
/**
|
|
139
|
-
* Serializes the object by writing its signatures and bitmap to the provided serializer.
|
|
140
|
-
* This allows the object to be converted into a format suitable for transmission or storage.
|
|
141
|
-
*
|
|
142
|
-
* @param serializer - The serializer instance used to perform the serialization.
|
|
143
|
-
* @group Implementation
|
|
144
|
-
* @category Serialization
|
|
145
|
-
*/
|
|
146
|
-
serialize(serializer: Serializer): void;
|
|
147
|
-
/**
|
|
148
|
-
* Deserializes a MultiKeySignature from the provided deserializer.
|
|
149
|
-
* This function retrieves the signatures and bitmap necessary for creating a MultiKeySignature object.
|
|
150
|
-
*
|
|
151
|
-
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
152
|
-
* @group Implementation
|
|
153
|
-
* @category Serialization
|
|
154
|
-
*/
|
|
155
|
-
static deserialize(deserializer: Deserializer): MultiKey;
|
|
156
|
-
/**
|
|
157
|
-
* Get the index of the provided public key.
|
|
158
|
-
*
|
|
159
|
-
* This function retrieves the index of a specified public key within the MultiKey.
|
|
160
|
-
* If the public key does not exist, it throws an error.
|
|
161
|
-
*
|
|
162
|
-
* @param publicKey - The public key to find the index for.
|
|
163
|
-
* @returns The corresponding index of the public key, if it exists.
|
|
164
|
-
* @throws Error - If the public key is not found in the MultiKey.
|
|
165
|
-
* @group Implementation
|
|
166
|
-
*/
|
|
167
|
-
getIndex(publicKey: PublicKey): number;
|
|
168
|
-
static isInstance(value: PublicKey): value is MultiKey;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Represents a multi-signature transaction using Ed25519 signatures.
|
|
172
|
-
* This class allows for the creation and management of a K-of-N multi-signature scheme,
|
|
173
|
-
* where a specified number of signatures are required to authorize a transaction.
|
|
174
|
-
*
|
|
175
|
-
* It includes functionality to validate the number of signatures against a bitmap,
|
|
176
|
-
* which indicates which public keys have signed the transaction.
|
|
177
|
-
* @group Implementation
|
|
178
|
-
* @category Serialization
|
|
179
|
-
*/
|
|
180
|
-
declare class MultiKeySignature extends Signature {
|
|
181
|
-
/**
|
|
182
|
-
* Number of bytes in the bitmap representing who signed the transaction (32-bits)
|
|
183
|
-
* @group Implementation
|
|
184
|
-
* @category Serialization
|
|
185
|
-
*/
|
|
186
|
-
static BITMAP_LEN: number;
|
|
187
|
-
/**
|
|
188
|
-
* Maximum number of Ed25519 signatures supported
|
|
189
|
-
* @group Implementation
|
|
190
|
-
* @category Serialization
|
|
191
|
-
*/
|
|
192
|
-
static MAX_SIGNATURES_SUPPORTED: number;
|
|
193
|
-
/**
|
|
194
|
-
* The list of underlying Ed25519 signatures
|
|
195
|
-
* @group Implementation
|
|
196
|
-
* @category Serialization
|
|
197
|
-
*/
|
|
198
|
-
readonly signatures: AnySignature[];
|
|
199
|
-
/**
|
|
200
|
-
* 32-bit Bitmap representing who signed the transaction
|
|
201
|
-
*
|
|
202
|
-
* This is represented where each public key can be masked to determine whether the message was signed by that key.
|
|
203
|
-
* @group Implementation
|
|
204
|
-
* @category Serialization
|
|
205
|
-
*/
|
|
206
|
-
readonly bitmap: Uint8Array;
|
|
207
|
-
/**
|
|
208
|
-
* Signature for a K-of-N multi-sig transaction.
|
|
209
|
-
*
|
|
210
|
-
* @see {@link
|
|
211
|
-
* https://aptos.dev/integration/creating-a-signed-transaction/#multisignature-transactions | Creating a Signed Transaction}
|
|
212
|
-
*
|
|
213
|
-
* @param args.signatures A list of signatures
|
|
214
|
-
* @param args.bitmap 4 bytes, at most 32 signatures are supported. If Nth bit value is `1`, the Nth
|
|
215
|
-
* signature should be provided in `signatures`. Bits are read from left to right
|
|
216
|
-
* @group Implementation
|
|
217
|
-
* @category Serialization
|
|
218
|
-
*/
|
|
219
|
-
constructor(args: {
|
|
220
|
-
signatures: Array<Signature | AnySignature>;
|
|
221
|
-
bitmap: Uint8Array | number[];
|
|
222
|
-
});
|
|
223
|
-
/**
|
|
224
|
-
* Helper method to create a bitmap out of the specified bit positions
|
|
225
|
-
* @param args.bits The bitmap positions that should be set. A position starts at index 0.
|
|
226
|
-
* Valid position should range between 0 and 31.
|
|
227
|
-
* @example
|
|
228
|
-
* Here's an example of valid `bits`
|
|
229
|
-
* ```
|
|
230
|
-
* [0, 2, 31]
|
|
231
|
-
* ```
|
|
232
|
-
* `[0, 2, 31]` means the 1st, 3rd and 32nd bits should be set in the bitmap.
|
|
233
|
-
* The result bitmap should be 0b1010000000000000000000000000001
|
|
234
|
-
*
|
|
235
|
-
* @returns bitmap that is 32bit long
|
|
236
|
-
* @group Implementation
|
|
237
|
-
* @category Serialization
|
|
238
|
-
*/
|
|
239
|
-
static createBitmap(args: {
|
|
240
|
-
bits: number[];
|
|
241
|
-
}): Uint8Array;
|
|
242
|
-
/**
|
|
243
|
-
* Converts the bitmap to an array of signer indices.
|
|
244
|
-
*
|
|
245
|
-
* Example:
|
|
246
|
-
*
|
|
247
|
-
* bitmap: [0b10001000, 0b01000000, 0b00000000, 0b00000000]
|
|
248
|
-
* signerIndices: [0, 4, 9]
|
|
249
|
-
*
|
|
250
|
-
* @returns An array of signer indices.
|
|
251
|
-
* @group Implementation
|
|
252
|
-
* @category Serialization
|
|
253
|
-
*/
|
|
254
|
-
bitMapToSignerIndices(): number[];
|
|
255
|
-
serialize(serializer: Serializer): void;
|
|
256
|
-
static deserialize(deserializer: Deserializer): MultiKeySignature;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export { AbstractMultiKey, MultiKey, MultiKeySignature };
|
|
7
|
+
import '../common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as a,D as b,E as c}from"../../chunk-
|
|
1
|
+
import{C as a,D as b,E as c}from"../../chunk-ACNHLCQQ.mjs";import"../../chunk-FYYEPFML.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-CO67Y6YE.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-MNDTFHDB.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-RQX6JOEN.mjs";import"../../chunk-CFQFFP6N.mjs";import"../../chunk-UQWF24SS.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-WSR5EBJM.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-W4BSN6SK.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-KJH4KKG6.mjs";import"../../chunk-FGFLPH5K.mjs";import"../../chunk-SLWIGOQL.mjs";import"../../chunk-4COLMDT3.mjs";import"../../chunk-TYYVB2A6.mjs";import"../../chunk-Z5URUE4U.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-XZ75T7Q7.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-MML57K5H.mjs";import"../../chunk-5URUYE6H.mjs";import"../../chunk-U3GMNXO4.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CW35YAMN.mjs";import"../../chunk-6WDVDEQZ.mjs";import"../../chunk-7DQDJ2SA.mjs";import"../../chunk-HNBVYE3N.mjs";import"../../chunk-RGKRCZ36.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BOHKN33.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-FLZPUYXQ.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-Y7ZQTLH4.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-JCFTAG5Z.mjs";import"../../chunk-HUWKPKPQ.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as AbstractMultiKey,b as MultiKey,c as MultiKeySignature};
|
|
2
2
|
//# sourceMappingURL=multiKey.mjs.map
|
|
@@ -1,76 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { Hex } from '../hex.mjs';
|
|
3
|
-
import { P as PublicKey } from '../../publicKey-CJOcUwJK.mjs';
|
|
4
|
-
import { Signature } from './signature.mjs';
|
|
1
|
+
export { P as PrivateKey } from '../../account--Q9z_xMN.mjs';
|
|
5
2
|
import '../../types/indexer.mjs';
|
|
6
3
|
import '../../types/generated/operations.mjs';
|
|
7
4
|
import '../../types/generated/types.mjs';
|
|
8
5
|
import '../../utils/apiEndpoints.mjs';
|
|
9
|
-
import '../common.mjs';
|
|
10
|
-
import '../../bcs/serializer.mjs';
|
|
11
|
-
import '../accountAddress.mjs';
|
|
12
|
-
import '../../bcs/deserializer.mjs';
|
|
13
|
-
import '../../transactions/instances/transactionArgument.mjs';
|
|
14
|
-
import '../../api/aptosConfig.mjs';
|
|
15
6
|
import '../../utils/const.mjs';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Represents a private key used for signing messages and deriving the associated public key.
|
|
19
|
-
* @group Implementation
|
|
20
|
-
* @category Serialization
|
|
21
|
-
*/
|
|
22
|
-
interface PrivateKey {
|
|
23
|
-
/**
|
|
24
|
-
* Sign the given message with the private key to create a signature.
|
|
25
|
-
* @param message - The message to be signed, provided in HexInput format.
|
|
26
|
-
* @returns A Signature object representing the signed message.
|
|
27
|
-
* @group Implementation
|
|
28
|
-
* @category Serialization
|
|
29
|
-
*/
|
|
30
|
-
sign(message: HexInput): Signature;
|
|
31
|
-
/**
|
|
32
|
-
* Derive the public key associated with the private key.
|
|
33
|
-
* @group Implementation
|
|
34
|
-
* @category Serialization
|
|
35
|
-
*/
|
|
36
|
-
publicKey(): PublicKey;
|
|
37
|
-
/**
|
|
38
|
-
* Get the private key in bytes (Uint8Array).
|
|
39
|
-
* @group Implementation
|
|
40
|
-
* @category Serialization
|
|
41
|
-
*/
|
|
42
|
-
toUint8Array(): Uint8Array;
|
|
43
|
-
}
|
|
44
|
-
declare class PrivateKey {
|
|
45
|
-
/**
|
|
46
|
-
* The AIP-80 compliant prefixes for each private key type. Append this to a private key's hex representation
|
|
47
|
-
* to get an AIP-80 compliant string.
|
|
48
|
-
*
|
|
49
|
-
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
50
|
-
*/
|
|
51
|
-
static readonly AIP80_PREFIXES: {
|
|
52
|
-
ed25519: string;
|
|
53
|
-
secp256k1: string;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Format a HexInput to an AIP-80 compliant string.
|
|
57
|
-
*
|
|
58
|
-
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
59
|
-
*
|
|
60
|
-
* @param privateKey - The HexString or Uint8Array format of the private key.
|
|
61
|
-
* @param privateKeyType - The private key type
|
|
62
|
-
*/
|
|
63
|
-
static formatPrivateKey(privateKey: HexInput, type: PrivateKeyVariants): string;
|
|
64
|
-
/**
|
|
65
|
-
* Parse a HexInput that may be a HexString, Uint8Array, or a AIP-80 compliant string to a Hex instance.
|
|
66
|
-
*
|
|
67
|
-
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
68
|
-
*
|
|
69
|
-
* @param value - A HexString, Uint8Array, or a AIP-80 compliant string.
|
|
70
|
-
* @param privateKeyType - The private key type
|
|
71
|
-
* @param strict - If true, the value MUST be compliant with AIP-80.
|
|
72
|
-
*/
|
|
73
|
-
static parseHexInput(value: HexInput, type: PrivateKeyVariants, strict?: boolean): Hex;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export { PrivateKey };
|
|
7
|
+
import '../common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-ROT6S6BM.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-ROT6S6BM.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as PrivateKey};
|
|
2
2
|
//# sourceMappingURL=privateKey.mjs.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Serializable } from '../../
|
|
2
|
-
import '../hex.mjs';
|
|
3
|
-
import '../common.mjs';
|
|
4
|
-
import '../../types/types.mjs';
|
|
1
|
+
import { S as Serializable } from '../../account--Q9z_xMN.mjs';
|
|
5
2
|
import '../../types/indexer.mjs';
|
|
6
3
|
import '../../types/generated/operations.mjs';
|
|
7
4
|
import '../../types/generated/types.mjs';
|
|
8
5
|
import '../../utils/apiEndpoints.mjs';
|
|
6
|
+
import '../../utils/const.mjs';
|
|
7
|
+
import '../common.mjs';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* An abstract representation of a cryptographic proof associated with specific
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-XJJVJOX5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-XJJVJOX5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BOHKN33.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-FLZPUYXQ.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Proof};
|
|
2
2
|
//# sourceMappingURL=proof.mjs.map
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import '../../bcs/serializer.mjs';
|
|
3
|
-
export { b as AccountPublicKey, P as PublicKey, V as VerifySignatureArgs, a as VerifySignatureAsyncArgs } from '../../publicKey-CJOcUwJK.mjs';
|
|
4
|
-
import './signature.mjs';
|
|
5
|
-
import '../../api/aptosConfig.mjs';
|
|
1
|
+
export { G as AccountPublicKey, C as PublicKey, V as VerifySignatureArgs, z as VerifySignatureAsyncArgs } from '../../account--Q9z_xMN.mjs';
|
|
6
2
|
import '../../types/indexer.mjs';
|
|
7
3
|
import '../../types/generated/operations.mjs';
|
|
8
4
|
import '../../types/generated/types.mjs';
|
|
9
5
|
import '../../utils/apiEndpoints.mjs';
|
|
10
|
-
import '../hex.mjs';
|
|
11
|
-
import '../common.mjs';
|
|
12
|
-
import '../accountAddress.mjs';
|
|
13
|
-
import '../../bcs/deserializer.mjs';
|
|
14
|
-
import '../../transactions/instances/transactionArgument.mjs';
|
|
15
6
|
import '../../utils/const.mjs';
|
|
7
|
+
import '../common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-WSR5EBJM.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-WSR5EBJM.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BOHKN33.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-IJE2LVZG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-FLZPUYXQ.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as AccountPublicKey,a as PublicKey};
|
|
2
2
|
//# sourceMappingURL=publicKey.mjs.map
|