@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,279 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { Serializable, Serializer } from '../../bcs/serializer.mjs';
|
|
3
|
-
import { HexInput } from '../../types/types.mjs';
|
|
4
|
-
import { PrivateKey } from './privateKey.mjs';
|
|
5
|
-
import { P as PublicKey } from '../../publicKey-CJOcUwJK.mjs';
|
|
6
|
-
import { Signature } from './signature.mjs';
|
|
7
|
-
import { AptosConfig } from '../../api/aptosConfig.mjs';
|
|
1
|
+
export { I as Secp256k1PrivateKey, H as Secp256k1PublicKey, J as Secp256k1Signature } 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
6
|
import '../../utils/const.mjs';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Represents a Secp256k1 ECDSA public key.
|
|
20
|
-
*
|
|
21
|
-
* @extends PublicKey
|
|
22
|
-
* @property LENGTH - The length of the Secp256k1 public key in bytes.
|
|
23
|
-
* @group Implementation
|
|
24
|
-
* @category Serialization
|
|
25
|
-
*/
|
|
26
|
-
declare class Secp256k1PublicKey extends PublicKey {
|
|
27
|
-
static readonly LENGTH: number;
|
|
28
|
-
static readonly COMPRESSED_LENGTH: number;
|
|
29
|
-
private readonly key;
|
|
30
|
-
/**
|
|
31
|
-
* Create a new PublicKey instance from a HexInput, which can be a string or Uint8Array.
|
|
32
|
-
* This constructor validates the length of the provided signature data.
|
|
33
|
-
*
|
|
34
|
-
* @param hexInput - A HexInput (string or Uint8Array) representing the signature data.
|
|
35
|
-
* @throws Error if the length of the signature data is not equal to Secp256k1Signature.LENGTH.
|
|
36
|
-
* @group Implementation
|
|
37
|
-
* @category Serialization
|
|
38
|
-
*/
|
|
39
|
-
constructor(hexInput: HexInput);
|
|
40
|
-
/**
|
|
41
|
-
* Verifies a Secp256k1 signature against the public key.
|
|
42
|
-
*
|
|
43
|
-
* This function checks the validity of a signature for a given message, ensuring that the signature is canonical as a malleability check.
|
|
44
|
-
*
|
|
45
|
-
* @param args - The arguments for verifying the signature.
|
|
46
|
-
* @param args.message - The message that was signed.
|
|
47
|
-
* @param args.signature - The signature to verify against the public key.
|
|
48
|
-
* @group Implementation
|
|
49
|
-
* @category Serialization
|
|
50
|
-
*/
|
|
51
|
-
verifySignature(args: {
|
|
52
|
-
message: HexInput;
|
|
53
|
-
signature: Secp256k1Signature;
|
|
54
|
-
}): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Note: Secp256k1Signatures can be verified syncronously.
|
|
57
|
-
*
|
|
58
|
-
* Verifies the provided signature against the given message.
|
|
59
|
-
* This function helps ensure the integrity and authenticity of the message by confirming that the signature is valid.
|
|
60
|
-
*
|
|
61
|
-
* @param args - The arguments for signature verification.
|
|
62
|
-
* @param args.aptosConfig - The configuration object for connecting to the Aptos network
|
|
63
|
-
* @param args.message - The message that was signed.
|
|
64
|
-
* @param args.signature - The signature to verify, which must be an instance of Secp256k1Signature.
|
|
65
|
-
* @returns A boolean indicating whether the signature is valid for the given message.
|
|
66
|
-
* @group Implementation
|
|
67
|
-
* @category Serialization
|
|
68
|
-
*/
|
|
69
|
-
verifySignatureAsync(args: {
|
|
70
|
-
aptosConfig: AptosConfig;
|
|
71
|
-
message: HexInput;
|
|
72
|
-
signature: Secp256k1Signature;
|
|
73
|
-
}): Promise<boolean>;
|
|
74
|
-
/**
|
|
75
|
-
* Get the data as a Uint8Array representation.
|
|
76
|
-
*
|
|
77
|
-
* @returns Uint8Array representation of the data.
|
|
78
|
-
* @group Implementation
|
|
79
|
-
* @category Serialization
|
|
80
|
-
*/
|
|
81
|
-
toUint8Array(): Uint8Array;
|
|
82
|
-
/**
|
|
83
|
-
* Serializes the data into a byte array using the provided serializer.
|
|
84
|
-
* This function is essential for converting data into a format suitable for transmission or storage.
|
|
85
|
-
*
|
|
86
|
-
* @param serializer - The serializer instance used to convert the data.
|
|
87
|
-
* @group Implementation
|
|
88
|
-
* @category Serialization
|
|
89
|
-
*/
|
|
90
|
-
serialize(serializer: Serializer): void;
|
|
91
|
-
/**
|
|
92
|
-
* Deserializes a Secp256k1Signature from the provided deserializer.
|
|
93
|
-
* This function allows you to reconstruct a Secp256k1Signature object from its serialized byte representation.
|
|
94
|
-
*
|
|
95
|
-
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
96
|
-
* @group Implementation
|
|
97
|
-
* @category Serialization
|
|
98
|
-
*/
|
|
99
|
-
deserialize(deserializer: Deserializer): Secp256k1Signature;
|
|
100
|
-
static deserialize(deserializer: Deserializer): Secp256k1PublicKey;
|
|
101
|
-
/**
|
|
102
|
-
* Determine if the provided public key is an instance of Secp256k1PublicKey.
|
|
103
|
-
*
|
|
104
|
-
* @deprecated use `instanceof Secp256k1PublicKey` instead
|
|
105
|
-
* @param publicKey - The public key to check.
|
|
106
|
-
* @group Implementation
|
|
107
|
-
* @category Serialization
|
|
108
|
-
*/
|
|
109
|
-
static isPublicKey(publicKey: PublicKey): publicKey is Secp256k1PublicKey;
|
|
110
|
-
/**
|
|
111
|
-
* Determines if the provided public key is a valid instance of a Secp256k1 public key.
|
|
112
|
-
* This function checks for the presence of a "key" property and validates the length of the key data.
|
|
113
|
-
*
|
|
114
|
-
* @param publicKey - The public key to validate.
|
|
115
|
-
* @returns A boolean indicating whether the public key is a valid Secp256k1 public key.
|
|
116
|
-
* @group Implementation
|
|
117
|
-
* @category Serialization
|
|
118
|
-
*/
|
|
119
|
-
static isInstance(publicKey: PublicKey): publicKey is Secp256k1PublicKey;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Represents a Secp256k1 ECDSA private key, providing functionality to create, sign messages,
|
|
123
|
-
* derive public keys, and serialize/deserialize the key.
|
|
124
|
-
* @group Implementation
|
|
125
|
-
* @category Serialization
|
|
126
|
-
*/
|
|
127
|
-
declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
128
|
-
/**
|
|
129
|
-
* Length of Secp256k1 ecdsa private key
|
|
130
|
-
* @group Implementation
|
|
131
|
-
* @category Serialization
|
|
132
|
-
*/
|
|
133
|
-
static readonly LENGTH: number;
|
|
134
|
-
/**
|
|
135
|
-
* The private key bytes
|
|
136
|
-
* @private
|
|
137
|
-
* @group Implementation
|
|
138
|
-
* @category Serialization
|
|
139
|
-
*/
|
|
140
|
-
private readonly key;
|
|
141
|
-
/**
|
|
142
|
-
* Create a new PrivateKey instance from a Uint8Array or String.
|
|
143
|
-
*
|
|
144
|
-
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
145
|
-
*
|
|
146
|
-
* @param hexInput A HexInput (string or Uint8Array)
|
|
147
|
-
* @param strict If true, private key must AIP-80 compliant.
|
|
148
|
-
* @group Implementation
|
|
149
|
-
* @category Serialization
|
|
150
|
-
*/
|
|
151
|
-
constructor(hexInput: HexInput, strict?: boolean);
|
|
152
|
-
/**
|
|
153
|
-
* Generate a new random private key.
|
|
154
|
-
*
|
|
155
|
-
* @returns Secp256k1PrivateKey - A newly generated Secp256k1 private key.
|
|
156
|
-
* @group Implementation
|
|
157
|
-
* @category Serialization
|
|
158
|
-
*/
|
|
159
|
-
static generate(): Secp256k1PrivateKey;
|
|
160
|
-
/**
|
|
161
|
-
* Derives a private key from a mnemonic seed phrase using a specified BIP44 path.
|
|
162
|
-
*
|
|
163
|
-
* @param path - The BIP44 path to derive the key from.
|
|
164
|
-
* @param mnemonics - The mnemonic seed phrase used for key generation.
|
|
165
|
-
*
|
|
166
|
-
* @returns The generated private key.
|
|
167
|
-
*
|
|
168
|
-
* @throws Error if the provided path is not a valid BIP44 path.
|
|
169
|
-
* @group Implementation
|
|
170
|
-
* @category Serialization
|
|
171
|
-
*/
|
|
172
|
-
static fromDerivationPath(path: string, mnemonics: string): Secp256k1PrivateKey;
|
|
173
|
-
/**
|
|
174
|
-
* Derives a private key from a specified BIP44 path using a given seed.
|
|
175
|
-
* This function is essential for generating keys that follow the hierarchical deterministic (HD) wallet structure.
|
|
176
|
-
*
|
|
177
|
-
* @param path - The BIP44 path used for key derivation.
|
|
178
|
-
* @param seed - The seed phrase created by the mnemonics, represented as a Uint8Array.
|
|
179
|
-
* @returns The generated private key as an instance of Secp256k1PrivateKey.
|
|
180
|
-
* @throws Error if the derived private key is invalid.
|
|
181
|
-
* @group Implementation
|
|
182
|
-
* @category Serialization
|
|
183
|
-
*/
|
|
184
|
-
private static fromDerivationPathInner;
|
|
185
|
-
/**
|
|
186
|
-
* Sign the given message with the private key.
|
|
187
|
-
* This function generates a cryptographic signature for the provided message, ensuring the signature is canonical and non-malleable.
|
|
188
|
-
*
|
|
189
|
-
* @param message - A message in HexInput format to be signed.
|
|
190
|
-
* @returns Signature - The generated signature for the provided message.
|
|
191
|
-
* @group Implementation
|
|
192
|
-
* @category Serialization
|
|
193
|
-
*/
|
|
194
|
-
sign(message: HexInput): Secp256k1Signature;
|
|
195
|
-
/**
|
|
196
|
-
* Derive the Secp256k1PublicKey from this private key.
|
|
197
|
-
*
|
|
198
|
-
* @returns Secp256k1PublicKey The derived public key.
|
|
199
|
-
* @group Implementation
|
|
200
|
-
* @category Serialization
|
|
201
|
-
*/
|
|
202
|
-
publicKey(): Secp256k1PublicKey;
|
|
203
|
-
/**
|
|
204
|
-
* Get the private key in bytes (Uint8Array).
|
|
205
|
-
*
|
|
206
|
-
* @returns
|
|
207
|
-
* @group Implementation
|
|
208
|
-
* @category Serialization
|
|
209
|
-
*/
|
|
210
|
-
toUint8Array(): Uint8Array;
|
|
211
|
-
/**
|
|
212
|
-
* Get the private key as a string representation.
|
|
213
|
-
*
|
|
214
|
-
* @returns string representation of the private key
|
|
215
|
-
* @group Implementation
|
|
216
|
-
* @category Serialization
|
|
217
|
-
*/
|
|
218
|
-
toString(): string;
|
|
219
|
-
/**
|
|
220
|
-
* Get the private key as a hex string with the 0x prefix.
|
|
221
|
-
*
|
|
222
|
-
* @returns string representation of the private key.
|
|
223
|
-
*/
|
|
224
|
-
toHexString(): string;
|
|
225
|
-
/**
|
|
226
|
-
* Get the private key as a AIP-80 compliant hex string.
|
|
227
|
-
*
|
|
228
|
-
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
229
|
-
*
|
|
230
|
-
* @returns AIP-80 compliant string representation of the private key.
|
|
231
|
-
*/
|
|
232
|
-
toAIP80String(): string;
|
|
233
|
-
serialize(serializer: Serializer): void;
|
|
234
|
-
static deserialize(deserializer: Deserializer): Secp256k1PrivateKey;
|
|
235
|
-
/**
|
|
236
|
-
* Determines if the provided private key is an instance of Secp256k1PrivateKey.
|
|
237
|
-
*
|
|
238
|
-
* @param privateKey - The private key to be checked.
|
|
239
|
-
*
|
|
240
|
-
* @deprecated use `instanceof Secp256k1PrivateKey` instead
|
|
241
|
-
* @group Implementation
|
|
242
|
-
* @category Serialization
|
|
243
|
-
*/
|
|
244
|
-
static isPrivateKey(privateKey: PrivateKey): privateKey is Secp256k1PrivateKey;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Represents a signature of a message signed using a Secp256k1 ECDSA private key.
|
|
248
|
-
*
|
|
249
|
-
* @group Implementation
|
|
250
|
-
* @category Serialization
|
|
251
|
-
*/
|
|
252
|
-
declare class Secp256k1Signature extends Signature {
|
|
253
|
-
/**
|
|
254
|
-
* Secp256k1 ecdsa signatures are 256-bit.
|
|
255
|
-
* @group Implementation
|
|
256
|
-
* @category Serialization
|
|
257
|
-
*/
|
|
258
|
-
static readonly LENGTH = 64;
|
|
259
|
-
/**
|
|
260
|
-
* The signature bytes
|
|
261
|
-
* @private
|
|
262
|
-
* @group Implementation
|
|
263
|
-
* @category Serialization
|
|
264
|
-
*/
|
|
265
|
-
private readonly data;
|
|
266
|
-
/**
|
|
267
|
-
* Create a new Signature instance from a Uint8Array or String.
|
|
268
|
-
*
|
|
269
|
-
* @param hexInput A HexInput (string or Uint8Array)
|
|
270
|
-
* @group Implementation
|
|
271
|
-
* @category Serialization
|
|
272
|
-
*/
|
|
273
|
-
constructor(hexInput: HexInput);
|
|
274
|
-
toUint8Array(): Uint8Array;
|
|
275
|
-
serialize(serializer: Serializer): void;
|
|
276
|
-
static deserialize(deserializer: Deserializer): Secp256k1Signature;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export { Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature };
|
|
7
|
+
import '../common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-CO67Y6YE.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-WSR5EBJM.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-CO67Y6YE.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-WSR5EBJM.mjs";import"../../chunk-WCMW2L3P.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 Secp256k1PrivateKey,a as Secp256k1PublicKey,c as Secp256k1Signature};
|
|
2
2
|
//# sourceMappingURL=secp256k1.mjs.map
|
|
@@ -1,35 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import '../hex.mjs';
|
|
3
|
-
import '../common.mjs';
|
|
4
|
-
import '../../types/types.mjs';
|
|
1
|
+
export { K as Signature } 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
|
-
|
|
10
|
-
|
|
11
|
-
* An abstract representation of a crypto signature,
|
|
12
|
-
* associated with a specific signature scheme, e.g., Ed25519 or Secp256k1.
|
|
13
|
-
*
|
|
14
|
-
* This class represents the product of signing a message directly from a
|
|
15
|
-
* PrivateKey and can be verified against a CryptoPublicKey.
|
|
16
|
-
* @group Implementation
|
|
17
|
-
* @category Serialization
|
|
18
|
-
*/
|
|
19
|
-
declare abstract class Signature extends Serializable {
|
|
20
|
-
/**
|
|
21
|
-
* Get the raw signature bytes
|
|
22
|
-
* @group Implementation
|
|
23
|
-
* @category Serialization
|
|
24
|
-
*/
|
|
25
|
-
toUint8Array(): Uint8Array;
|
|
26
|
-
/**
|
|
27
|
-
* Get the signature as a hex string with a 0x prefix e.g. 0x123456...
|
|
28
|
-
* @returns The hex string representation of the signature.
|
|
29
|
-
* @group Implementation
|
|
30
|
-
* @category Serialization
|
|
31
|
-
*/
|
|
32
|
-
toString(): string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { Signature };
|
|
6
|
+
import '../../utils/const.mjs';
|
|
7
|
+
import '../common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-WCMW2L3P.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-WCMW2L3P.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 Signature};
|
|
2
2
|
//# sourceMappingURL=signature.mjs.map
|
|
@@ -1,187 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { Serializer } from '../../bcs/serializer.mjs';
|
|
3
|
-
import { AnyPublicKeyVariant, HexInput } from '../../types/types.mjs';
|
|
4
|
-
import { b as AccountPublicKey, P as PublicKey, A as AuthenticationKey } from '../../publicKey-CJOcUwJK.mjs';
|
|
5
|
-
import { Ed25519PrivateKey } from './ed25519.mjs';
|
|
6
|
-
import { Secp256k1PrivateKey } from './secp256k1.mjs';
|
|
7
|
-
import { Signature } from './signature.mjs';
|
|
8
|
-
import { AptosConfig } from '../../api/aptosConfig.mjs';
|
|
1
|
+
export { N as AnyPublicKey, O as AnySignature, L as PrivateKeyInput } 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
|
-
|
|
20
|
-
type PrivateKeyInput = Ed25519PrivateKey | Secp256k1PrivateKey;
|
|
21
|
-
/**
|
|
22
|
-
* Represents any public key supported by Aptos.
|
|
23
|
-
*
|
|
24
|
-
* Since [AIP-55](https://github.com/aptos-foundation/AIPs/pull/263) Aptos supports
|
|
25
|
-
* `Legacy` and `Unified` authentication keys.
|
|
26
|
-
*
|
|
27
|
-
* Any unified authentication key is represented in the SDK as `AnyPublicKey`.
|
|
28
|
-
* @group Implementation
|
|
29
|
-
* @category Serialization
|
|
30
|
-
*/
|
|
31
|
-
declare class AnyPublicKey extends AccountPublicKey {
|
|
32
|
-
/**
|
|
33
|
-
* Reference to the inner public key
|
|
34
|
-
* @group Implementation
|
|
35
|
-
* @category Serialization
|
|
36
|
-
*/
|
|
37
|
-
readonly publicKey: PublicKey;
|
|
38
|
-
/**
|
|
39
|
-
* Index of the underlying enum variant
|
|
40
|
-
* @group Implementation
|
|
41
|
-
* @category Serialization
|
|
42
|
-
*/
|
|
43
|
-
readonly variant: AnyPublicKeyVariant;
|
|
44
|
-
/**
|
|
45
|
-
* Creates an instance of the signature class based on the provided signature type.
|
|
46
|
-
* This allows for the handling of different signature variants such as Ed25519, Secp256k1, and Keyless.
|
|
47
|
-
*
|
|
48
|
-
* @param publicKey - The publicKey object which determines the variant to be used.
|
|
49
|
-
* @throws Error if the provided signature type is unsupported.
|
|
50
|
-
* @group Implementation
|
|
51
|
-
* @category Serialization
|
|
52
|
-
*/
|
|
53
|
-
constructor(publicKey: PublicKey);
|
|
54
|
-
/**
|
|
55
|
-
* Verifies the provided signature against the given message.
|
|
56
|
-
* This function helps ensure the integrity and authenticity of the message by confirming that the signature is valid.
|
|
57
|
-
*
|
|
58
|
-
* @param args - The arguments for signature verification.
|
|
59
|
-
* @param args.message - The message that was signed.
|
|
60
|
-
* @param args.signature - The signature to verify, which must be an instance of AnySignature.
|
|
61
|
-
* @returns A boolean indicating whether the signature is valid for the given message.
|
|
62
|
-
* @group Implementation
|
|
63
|
-
* @category Serialization
|
|
64
|
-
*/
|
|
65
|
-
verifySignature(args: {
|
|
66
|
-
message: HexInput;
|
|
67
|
-
signature: AnySignature;
|
|
68
|
-
}): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Verifies the provided signature against the given message.
|
|
71
|
-
* This function helps ensure the integrity and authenticity of the message by confirming that the signature is valid.
|
|
72
|
-
*
|
|
73
|
-
* @param args - The arguments for signature verification.
|
|
74
|
-
* @param args.aptosConfig - The configuration object for connecting to the Aptos network
|
|
75
|
-
* @param args.message - The message that was signed.
|
|
76
|
-
* @param args.signature - The signature to verify, which must be an instance of AnySignature.
|
|
77
|
-
* @returns A boolean indicating whether the signature is valid for the given message.
|
|
78
|
-
* @group Implementation
|
|
79
|
-
* @category Serialization
|
|
80
|
-
*/
|
|
81
|
-
verifySignatureAsync(args: {
|
|
82
|
-
aptosConfig: AptosConfig;
|
|
83
|
-
message: HexInput;
|
|
84
|
-
signature: Signature;
|
|
85
|
-
options?: {
|
|
86
|
-
throwErrorWithReason?: boolean;
|
|
87
|
-
};
|
|
88
|
-
}): Promise<boolean>;
|
|
89
|
-
/**
|
|
90
|
-
* Generates an authentication key from the current instance's byte representation.
|
|
91
|
-
* This function is essential for creating a unique identifier for authentication purposes.
|
|
92
|
-
*
|
|
93
|
-
* @returns {AuthenticationKey} The generated authentication key.
|
|
94
|
-
* @group Implementation
|
|
95
|
-
* @category Serialization
|
|
96
|
-
*/
|
|
97
|
-
authKey(): AuthenticationKey;
|
|
98
|
-
/**
|
|
99
|
-
* Get the signature in bytes (Uint8Array).
|
|
100
|
-
*
|
|
101
|
-
* This function is a warning that it will soon return the underlying signature bytes directly.
|
|
102
|
-
* Use AnySignature.bcsToBytes() instead.
|
|
103
|
-
*
|
|
104
|
-
* @returns Uint8Array representation of the signature.
|
|
105
|
-
* @group Implementation
|
|
106
|
-
* @category Serialization
|
|
107
|
-
*/
|
|
108
|
-
toUint8Array(): Uint8Array;
|
|
109
|
-
/**
|
|
110
|
-
* Serializes the current object using the provided serializer.
|
|
111
|
-
* This function helps in converting the object into a format suitable for transmission or storage.
|
|
112
|
-
*
|
|
113
|
-
* @param serializer - The serializer instance used to perform the serialization.
|
|
114
|
-
* @group Implementation
|
|
115
|
-
* @category Serialization
|
|
116
|
-
*/
|
|
117
|
-
serialize(serializer: Serializer): void;
|
|
118
|
-
/**
|
|
119
|
-
* Deserializes an AnySignature from the provided deserializer.
|
|
120
|
-
* This function helps in reconstructing the AnySignature object from its serialized form, allowing for further processing or validation.
|
|
121
|
-
*
|
|
122
|
-
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
123
|
-
* @group Implementation
|
|
124
|
-
* @category Serialization
|
|
125
|
-
*/
|
|
126
|
-
static deserialize(deserializer: Deserializer): AnyPublicKey;
|
|
127
|
-
/**
|
|
128
|
-
* Determines if the provided public key is an instance of AnyPublicKey.
|
|
129
|
-
*
|
|
130
|
-
* @param publicKey - The public key to check.
|
|
131
|
-
* @deprecated Use `instanceof AnyPublicKey` instead.
|
|
132
|
-
* @group Implementation
|
|
133
|
-
* @category Serialization
|
|
134
|
-
*/
|
|
135
|
-
static isPublicKey(publicKey: AccountPublicKey): publicKey is AnyPublicKey;
|
|
136
|
-
/**
|
|
137
|
-
* Determines if the current public key is an instance of Ed25519PublicKey.
|
|
138
|
-
*
|
|
139
|
-
* @deprecated use `publicKey instanceof Ed25519PublicKey` instead.
|
|
140
|
-
* @group Implementation
|
|
141
|
-
* @category Serialization
|
|
142
|
-
*/
|
|
143
|
-
isEd25519(): boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Checks if the public key is an instance of Secp256k1PublicKey.
|
|
146
|
-
*
|
|
147
|
-
* @deprecated use `publicKey instanceof Secp256k1PublicKey` instead.
|
|
148
|
-
* @group Implementation
|
|
149
|
-
* @category Serialization
|
|
150
|
-
*/
|
|
151
|
-
isSecp256k1PublicKey(): boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Determines if the provided publicKey is an instance of a valid PublicKey object.
|
|
154
|
-
*
|
|
155
|
-
* @param publicKey - The publicKey to be checked for validity.
|
|
156
|
-
* @param publicKey.publicKey - The actual publicKey object that needs to be validated.
|
|
157
|
-
* @returns True if the signature is a valid instance; otherwise, false.
|
|
158
|
-
* @group Implementation
|
|
159
|
-
* @category Serialization
|
|
160
|
-
*/
|
|
161
|
-
static isInstance(publicKey: PublicKey): publicKey is AnyPublicKey;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Represents a signature that utilizes the SingleKey authentication scheme.
|
|
165
|
-
* This class is designed to encapsulate various types of signatures, which can
|
|
166
|
-
* only be generated by a `SingleKeySigner` due to the shared authentication mechanism.
|
|
167
|
-
*
|
|
168
|
-
* @extends Signature
|
|
169
|
-
* @group Implementation
|
|
170
|
-
* @category Serialization
|
|
171
|
-
*/
|
|
172
|
-
declare class AnySignature extends Signature {
|
|
173
|
-
readonly signature: Signature;
|
|
174
|
-
/**
|
|
175
|
-
* Index of the underlying enum variant
|
|
176
|
-
* @group Implementation
|
|
177
|
-
* @category Serialization
|
|
178
|
-
*/
|
|
179
|
-
private readonly variant;
|
|
180
|
-
constructor(signature: Signature);
|
|
181
|
-
toUint8Array(): Uint8Array;
|
|
182
|
-
serialize(serializer: Serializer): void;
|
|
183
|
-
static deserialize(deserializer: Deserializer): AnySignature;
|
|
184
|
-
static isInstance(signature: Signature): signature is AnySignature;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export { AnyPublicKey, AnySignature, type PrivateKeyInput };
|
|
7
|
+
import '../common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as a,B as b}from"../../chunk-
|
|
1
|
+
import{A as a,B 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 AnyPublicKey,b as AnySignature};
|
|
2
2
|
//# sourceMappingURL=singleKey.mjs.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { E as Ed25519PublicKey, N as AnyPublicKey, x as MultiKey, t as MultiEd25519PublicKey } from '../../account--Q9z_xMN.mjs';
|
|
2
|
+
import '../../types/indexer.mjs';
|
|
3
|
+
import '../../types/generated/operations.mjs';
|
|
4
|
+
import '../../types/generated/types.mjs';
|
|
5
|
+
import '../../utils/apiEndpoints.mjs';
|
|
6
|
+
import '../../utils/const.mjs';
|
|
7
|
+
import '../common.mjs';
|
|
8
|
+
|
|
9
|
+
type BaseAccountPublicKey = Ed25519PublicKey | AnyPublicKey | MultiKey | MultiEd25519PublicKey;
|
|
10
|
+
|
|
11
|
+
export type { BaseAccountPublicKey };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { HexInput } from '../../
|
|
1
|
+
import { bo as HexInput } from '../../account--Q9z_xMN.mjs';
|
|
2
2
|
import '../../types/indexer.mjs';
|
|
3
3
|
import '../../types/generated/operations.mjs';
|
|
4
4
|
import '../../types/generated/types.mjs';
|
|
5
5
|
import '../../utils/apiEndpoints.mjs';
|
|
6
|
+
import '../../utils/const.mjs';
|
|
7
|
+
import '../common.mjs';
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Helper function to convert a message to sign or to verify to a valid message input
|