@hinkal/common 0.0.116 → 0.0.117
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/@virtual_vite-plugin-virtual/constants.mjs +7 -0
- package/API/HinkalPointsCalls.mjs +20 -14
- package/API/callBeefyGraphAPI.mjs +16 -10
- package/API/callCurveAPI.mjs +35 -35
- package/API/callMonitor.mjs +16 -10
- package/API/callOdosAPI.mjs +18 -12
- package/API/callOneInchAPI.mjs +18 -12
- package/API/callRelayer.mjs +16 -10
- package/API/checkRisk.mjs +16 -10
- package/API/dataServerCalls.mjs +16 -10
- package/API/fetchCommitmentsCache.mjs +17 -11
- package/API/fetchNullifiers.mjs +16 -10
- package/API/getAxelarGasEstimate.mjs +16 -10
- package/API/getCoingeckoPrice.mjs +1 -1
- package/API/getConnextReceiveFee.mjs +16 -10
- package/API/getGasEstimates.mjs +16 -10
- package/API/getRelayerURL.mjs +18 -13
- package/API/getServerURL.mjs +17 -12
- package/API/getTokenPrice.mjs +20 -14
- package/API/kycCalls.mjs +1 -1
- package/API/passwordCalls.mjs +21 -15
- package/API/referralProgramCalls.mjs +38 -32
- package/API/relayCalls.mjs +16 -10
- package/API/restoreSnapshots.mjs +16 -10
- package/API/rewardsPointsCalls.mjs +25 -19
- package/API/userVerifyTransactions.mjs +26 -20
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/artifacts/contracts/deposit-service/DepositReceiver.sol/DepositReceiver.json.mjs +42 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/artifacts/contracts/deposit-service/ReceiverImplementation.sol/ReceiverImplementation.json.mjs +191 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/assets/index.mjs +62 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/assets/types/index.mjs +5 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/chains/index.mjs +104 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/chains/supported-chains-list.mjs +119 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/chains/types/index.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/constants/EvmChain.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/constants/GasToken.mjs +64 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/constants/index.mjs +74 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/index.mjs +33 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarAssetTransfer.mjs +337 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarGateway.mjs +186 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarQueryAPI.mjs +418 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarQueryClient/index.mjs +52 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarQueryClient/types/index.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarSigningClient/const/index.mjs +16 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarSigningClient/index.mjs +93 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarSigningClient/types/AxelarnetTxTypes.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/AxelarSigningClient/types/EvmTxTypes.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/BigNumberUtils.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/GatewayTx.mjs +23 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/AxelarDepositRecoveryAPI.mjs +71 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.mjs +698 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/AxelarRecoveryApi.mjs +349 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/AxelarTransferAPI.mjs +80 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/client/AxelarRpcClient.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/client/EVMClient/index.mjs +59 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/client/helpers/cosmos.mjs +61 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/client/helpers/retryRpc.mjs +50 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/constants/chain/index.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/constants/chain/mainnet.mjs +123 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/constants/chain/testnet.mjs +132 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/constants/cosmosGasReceiverOptions.mjs +11 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/constants/error.mjs +100 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/constants/s3.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/helpers/axelarHelper.mjs +172 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/helpers/contractCallHelper.mjs +65 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/helpers/contractEventHelper.mjs +96 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/helpers/getCommandId.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/helpers/index.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/helpers/mappers.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/helpers/providerHelper.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/index.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/TransactionRecoveryApi/interface/index.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/abi/IAxelarExecutable.mjs +98 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/abi/erc20Abi.json.mjs +225 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/fee/getL1Fee.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/index.mjs +31 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/libs/types/index.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/services/RestService.mjs +83 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/services/SocketService.mjs +82 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/services/index.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/services/types/index.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/utils/index.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/utils/retry.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/utils/sleep.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/utils/validateChain.mjs +84 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/utils/validateDestinationAddress.mjs +68 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/dist/src/utils/wallet.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/bech32/dist/index.mjs +137 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/index.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/md5.mjs +59 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/nil.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/parse.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/regex.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/rng.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/sha1.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/stringify.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/v1.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/v3.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/v35.mjs +33 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/v4.mjs +16 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/v5.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/validate.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-sdk/node_modules/uuid/dist/esm-browser/version.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/axelarnet/v1beta1/query.mjs +140 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/axelarnet/v1beta1/service.mjs +73 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/axelarnet/v1beta1/tx.mjs +982 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/axelarnet/v1beta1/types.mjs +314 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/evm/v1beta1/query.mjs +1778 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/evm/v1beta1/service.mjs +137 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/evm/v1beta1/tx.mjs +1352 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/evm/v1beta1/types.mjs +1554 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/nexus/exported/v1beta1/types.mjs +546 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/nexus/v1beta1/query.mjs +1166 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/nexus/v1beta1/service.mjs +101 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/nexus/v1beta1/tx.mjs +547 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/nexus/v1beta1/types.mjs +313 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/snapshot/exported/v1beta1/types.mjs +214 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/tss/exported/v1beta1/types.mjs +305 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/tss/tofnd/v1beta1/tofnd.mjs +758 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/tss/v1beta1/service.mjs +31 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/tss/v1beta1/tx.mjs +948 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/tss/v1beta1/types.mjs +442 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/utils/v1beta1/bitmap.mjs +113 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/utils/v1beta1/threshold.mjs +60 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/axelar/vote/exported/v1beta1/types.mjs +282 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/cosmos/base/query/v1beta1/pagination.mjs +149 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/cosmos/base/v1beta1/coin.mjs +183 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/google/protobuf/any.mjs +92 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/google/protobuf/duration.mjs +60 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/build/commonjs/google/protobuf/timestamp.mjs +60 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/long/umd/index.mjs +323 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/minimal.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/index-minimal.mjs +17 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/reader.mjs +185 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/reader_buffer.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/roots.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/rpc/service.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/rpc.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/util/longbits.mjs +75 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/util/minimal.mjs +141 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/writer.mjs +133 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@axelar-network/axelarjs-types/node_modules/protobufjs/src/writer_buffer.mjs +35 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/build/compress.mjs +79 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/build/generated/codecimpl.mjs +1473 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/build/ics23.mjs +65 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/build/index.mjs +31 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/build/ops.mjs +99 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/build/proofs.mjs +152 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/build/specs.mjs +80 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/_assert.mjs +46 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/_md.mjs +72 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/_u64.mjs +85 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/crypto.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/ripemd160.mjs +75 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/sha256.mjs +125 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/sha512.mjs +150 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@confio/ics23/node_modules/@noble/hashes/utils.mjs +138 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/addresses.mjs +45 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/coins.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/encoding.mjs +142 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/index.mjs +114 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/multisig.mjs +35 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/paths.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/pubkeys.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/secp256k1hdwallet.mjs +218 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/secp256k1wallet.mjs +54 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/signature.mjs +34 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/signdoc.mjs +46 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/stdtx.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/amino/build/wallet.mjs +50 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/bip39.mjs +2152 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/hmac.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/index.mjs +98 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/keccak.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/libsodium.mjs +94 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/pbkdf2.mjs +81 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/random.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/ripemd.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/secp256k1.mjs +116 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/secp256k1signature.mjs +122 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/sha.mjs +45 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/slip10.mjs +150 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/build/utils.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/_assert.mjs +46 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/_md.mjs +72 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/_u64.mjs +85 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/crypto.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/hmac.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/pbkdf2.mjs +55 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/ripemd160.mjs +75 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/sha256.mjs +125 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/sha3.mjs +124 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/sha512.mjs +150 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/crypto/node_modules/@noble/hashes/utils.mjs +138 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/encoding/build/ascii.mjs +24 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/encoding/build/base64.mjs +41 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/encoding/build/bech32.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/encoding/build/hex.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/encoding/build/index.mjs +54 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/encoding/build/rfc3339.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/encoding/build/utf8.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/math/build/decimal.mjs +175 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/math/build/index.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/math/build/integers.mjs +183 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/coins.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/decode.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/directsecp256k1hdwallet.mjs +214 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/directsecp256k1wallet.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/index.mjs +88 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/paths.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/pubkey.mjs +86 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/registry.mjs +136 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/signer.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/signing.mjs +60 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/proto-signing/build/wallet.mjs +50 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/socket/build/index.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/socket/build/queueingstreamingsocket.mjs +70 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/socket/build/reconnectingsocket.mjs +52 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/socket/build/socketwrapper.mjs +94 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/socket/build/streamingsocket.mjs +38 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/accounts.mjs +59 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/aminotypes.mjs +42 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/events.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/fee.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/index.mjs +226 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/logs.mjs +76 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/auth/queries.mjs +23 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/authz/aminomessages.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/authz/messages.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/authz/queries.mjs +33 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/bank/aminomessages.mjs +55 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/bank/messages.mjs +17 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/bank/queries.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/crisis/aminomessages.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/distribution/aminomessages.mjs +69 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/distribution/messages.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/distribution/queries.mjs +51 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/evidence/aminomessages.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/feegrant/aminomessages.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/feegrant/messages.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/feegrant/queries.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/gov/aminomessages.mjs +142 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/gov/messages.mjs +31 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/gov/queries.mjs +46 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/ibc/aminomessages.mjs +59 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/ibc/messages.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/ibc/queries.mjs +311 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/index.mjs +248 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/mint/queries.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/slashing/aminomessages.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/slashing/queries.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/staking/aminomessages.mjs +159 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/staking/messages.mjs +36 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/staking/queries.mjs +72 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/tx/queries.mjs +58 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/vesting/aminomessages.mjs +38 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/modules/vesting/messages.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/multisignature.mjs +66 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/queryclient/index.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/queryclient/queryclient.mjs +127 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/queryclient/utils.mjs +45 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/signingstargateclient.mjs +240 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stargate/build/stargateclient.mjs +251 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stream/build/concat.mjs +58 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stream/build/defaultvalueproducer.mjs +43 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stream/build/dropduplicates.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stream/build/index.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stream/build/promise.mjs +48 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stream/build/reducer.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/stream/build/valueandupdates.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/addresses.mjs +38 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/dates.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/index.mjs +100 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/inthelpers.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/jsonrpc.mjs +23 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/http.mjs +36 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/httpbatchclient.mjs +63 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/httpclient.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/index.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/rpcclient.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/rpcclients/websocketclient.mjs +125 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/index.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/requests.mjs +146 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.mjs +432 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/encodings.mjs +118 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/hasher.mjs +63 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/index.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/requests.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/responses.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/tendermint34client.mjs +283 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/index.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/requests.mjs +146 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.mjs +432 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/encodings.mjs +118 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/hasher.mjs +63 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/index.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/requests.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/responses.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/tendermint37client.mjs +283 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/build/types.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/@cosmjs/json-rpc/build/compatibility.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/@cosmjs/json-rpc/build/id.mjs +11 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/@cosmjs/json-rpc/build/index.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/@cosmjs/json-rpc/build/jsonrpcclient.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/@cosmjs/json-rpc/build/parse.mjs +100 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/@cosmjs/json-rpc/build/types.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/index.mjs +5 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/adapters/xhr.mjs +67 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/axios.mjs +35 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/cancel/Cancel.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/cancel/CancelToken.mjs +35 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/cancel/isCancel.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/Axios.mjs +79 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/InterceptorManager.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/buildFullPath.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/createError.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/dispatchRequest.mjs +44 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/enhanceError.mjs +23 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/mergeConfig.mjs +49 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/settle.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/core/transformData.mjs +11 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/defaults.mjs +73 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/bind.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/buildURL.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/combineURLs.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/cookies.mjs +42 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/isAbsoluteURL.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/isAxiosError.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/isURLSameOrigin.mjs +42 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/normalizeHeaderName.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/parseHeaders.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/spread.mjs +11 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/helpers/validator.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/lib/utils.mjs +113 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/tendermint-rpc/node_modules/axios/package.json.mjs +105 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/utils/build/arrays.mjs +24 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/utils/build/assert.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/utils/build/index.mjs +38 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/utils/build/sleep.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@cosmjs/utils/build/typechecks.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/abi-coder.mjs +79 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.mjs +111 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/address.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/array.mjs +131 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/boolean.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/bytes.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/null.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/number.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/string.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/coders/tuple.mjs +36 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/fragments.mjs +423 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/index.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abi/lib.esm/interface.mjs +382 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abstract-provider/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abstract-provider/lib.esm/index.mjs +67 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abstract-signer/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/abstract-signer/lib.esm/index.mjs +223 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/address/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/address/lib.esm/index.mjs +84 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/base64/lib.esm/base64.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/base64/lib.esm/index.mjs +5 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/basex/lib.esm/index.mjs +55 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/bignumber/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/bignumber/lib.esm/bignumber.mjs +175 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.mjs +196 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/bytes/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/bytes/lib.esm/index.mjs +191 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/constants/lib.esm/addresses.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/constants/lib.esm/bignumbers.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/constants/lib.esm/hashes.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/constants/lib.esm/index.mjs +17 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/constants/lib.esm/strings.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/contracts/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/contracts/lib.esm/index.mjs +535 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.mjs +177 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.mjs +74 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/id.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/index.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/message.mjs +16 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/namehash.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hash/lib.esm/typed-data.mjs +298 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hdnode/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/hdnode/lib.esm/index.mjs +204 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/json-wallets/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/json-wallets/lib.esm/crowdsale.mjs +36 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/json-wallets/lib.esm/index.mjs +31 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/json-wallets/lib.esm/inspect.mjs +39 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/json-wallets/lib.esm/keystore.mjs +207 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/json-wallets/lib.esm/utils.mjs +48 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/keccak256/lib.esm/index.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/logger/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/logger/lib.esm/index.mjs +192 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/networks/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/networks/lib.esm/index.mjs +185 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/pbkdf2/lib.esm/pbkdf2.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/properties/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/properties/lib.esm/index.mjs +122 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/alchemy-provider.mjs +67 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/ankr-provider.mjs +42 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/base-provider.mjs +1240 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/cloudflare-provider.mjs +58 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/etherscan-provider.mjs +309 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/fallback-provider.mjs +341 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/formatter.mjs +302 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/index.mjs +86 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/infura-provider.mjs +83 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/ipc-provider.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/json-rpc-batch-provider.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.mjs +480 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/nodesmith-provider.mjs +36 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/pocket-provider.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/url-json-rpc-provider.mjs +80 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/web3-provider.mjs +84 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/websocket-provider.mjs +204 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/providers/lib.esm/ws.mjs +17 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/random/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/random/lib.esm/index.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/random/lib.esm/random.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/random/lib.esm/shuffle.mjs +11 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/rlp/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/rlp/lib.esm/index.mjs +78 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/sha2/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/sha2/lib.esm/index.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/sha2/lib.esm/sha2.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/sha2/lib.esm/types.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/signing-key/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/signing-key/lib.esm/elliptic.mjs +1133 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/signing-key/lib.esm/index.mjs +60 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/solidity/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/solidity/lib.esm/index.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/strings/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/strings/lib.esm/bytes32.mjs +24 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/strings/lib.esm/idna.mjs +137 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/strings/lib.esm/index.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/strings/lib.esm/utf8.mjs +151 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/transactions/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/transactions/lib.esm/index.mjs +246 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/units/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/units/lib.esm/index.mjs +60 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/wallet/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/wallet/lib.esm/index.mjs +149 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/web/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/web/lib.esm/geturl.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/web/lib.esm/index.mjs +254 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/wordlists/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/wordlists/lib.esm/lang-en.mjs +23 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/wordlists/lib.esm/wordlist.mjs +37 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@ethersproject/wordlists/lib.esm/wordlists.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@iden3/binfileutils/node_modules/ffjavascript/build/browser.esm.mjs +389 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@iden3/binfileutils/src/binfileutils.mjs +82 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@protobufjs/aspromise/index.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@protobufjs/base64/index.mjs +61 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@protobufjs/eventemitter/index.mjs +33 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@protobufjs/float/index.mjs +110 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@protobufjs/inquire/index.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@protobufjs/pool/index.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@protobufjs/utf8/index.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/@socket.io/component-emitter/index.mjs +54 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/aes-js/index.mjs +318 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/assert/build/assert.mjs +413 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/assert/build/internal/assert/assertion_error.mjs +341 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/assert/build/internal/errors.mjs +176 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/assert/build/internal/util/comparisons.mjs +389 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/async-mutex/index.mjs +153 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/available-typed-arrays/index.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/adapters/adapters.mjs +51 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/adapters/xhr.mjs +109 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/axios.mjs +46 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/cancel/CancelToken.mjs +73 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/cancel/CanceledError.mjs +11 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/cancel/isCancel.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/Axios.mjs +131 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/AxiosError.mjs +54 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/AxiosHeaders.mjs +165 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/InterceptorManager.mjs +58 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/buildFullPath.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/dispatchRequest.mjs +31 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/mergeConfig.mjs +72 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/settle.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/core/transformData.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/defaults/index.mjs +88 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/defaults/transitional.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/env/data.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/AxiosURLSearchParams.mjs +33 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/HttpStatusCode.mjs +72 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/bind.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/buildURL.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/combineURLs.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/cookies.mjs +32 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/formDataToJSON.mjs +32 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/isAbsoluteURL.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/isAxiosError.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/isURLSameOrigin.mjs +37 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/null.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/parseHeaders.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/parseProtocol.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/speedometer.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/spread.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/toFormData.mjs +84 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/toURLEncodedForm.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/helpers/validator.mjs +51 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/platform/browser/classes/Blob.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/platform/browser/classes/FormData.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/platform/browser/classes/URLSearchParams.mjs +5 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/platform/browser/index.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/platform/common/utils.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/platform/index.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/axios/lib/utils.mjs +224 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/b4a/browser.mjs +310 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/b4a/lib/ascii.mjs +24 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/b4a/lib/base64.mjs +38 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/b4a/lib/hex.mjs +39 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/b4a/lib/utf16le.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/b4a/lib/utf8.mjs +75 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/base64-js/index.mjs +51 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bech32/index.mjs +135 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bfj/src/datastream.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bfj/src/eventify.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bfj/src/events.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bfj/src/jsonstream.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bfj/src/stream.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bfj/src/walk.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake-hash/lib/api/blake.mjs +2 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake-hash/lib/blake.mjs +218 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake-hash/lib/blake224.mjs +3 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake-hash/lib/blake256.mjs +3 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake-hash/lib/blake384.mjs +3 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake-hash/lib/blake512.mjs +3 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake2b/index.mjs +387 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake2b-wasm/blake2b.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/blake2b-wasm/index.mjs +55 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/bn.js/lib/bn.mjs +1162 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/brorand/index.mjs +44 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/buffer/index.mjs +981 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/call-bind/callBound.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/call-bind/index.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/check-types/src/check-types.mjs +447 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circom_runtime/js/utils.mjs +35 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circom_runtime/js/witness_calculator.mjs +236 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circomlibjs/node_modules/ffjavascript/build/browser.esm.mjs +10170 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circomlibjs/src/babyjub.mjs +74 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circomlibjs/src/poseidon_constants.mjs +209 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circomlibjs/src/poseidon_constants_opt.mjs +24809 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circomlibjs/src/poseidon_gencontract.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/circomlibjs/src/poseidon_wasm.mjs +316 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/clone-deep/index.mjs +35 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/clone-deep/node_modules/is-plain-object/index.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/auth/v1beta1/auth.mjs +249 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/auth/v1beta1/query.mjs +872 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/authz/v1beta1/authz.mjs +219 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/authz/v1beta1/query.mjs +339 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/authz/v1beta1/tx.mjs +305 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/bank/v1beta1/bank.mjs +394 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/bank/v1beta1/query.mjs +1081 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/bank/v1beta1/tx.mjs +383 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/base/abci/v1beta1/abci.mjs +599 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/base/query/v1beta1/pagination.mjs +138 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/base/v1beta1/coin.mjs +203 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/crypto/ed25519/keys.mjs +113 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/crypto/multisig/keys.mjs +83 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/crypto/multisig/v1beta1/multisig.mjs +120 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/crypto/secp256k1/keys.mjs +113 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/distribution/v1beta1/distribution.mjs +611 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/distribution/v1beta1/query.mjs +922 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/distribution/v1beta1/tx.mjs +548 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/feegrant/v1beta1/feegrant.mjs +249 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/feegrant/v1beta1/query.mjs +322 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/feegrant/v1beta1/tx.mjs +204 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/gov/v1beta1/gov.mjs +612 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/gov/v1beta1/query.mjs +779 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/gov/v1beta1/tx.mjs +401 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/ics23/v1/proofs.mjs +848 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/mint/v1beta1/mint.mjs +143 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/mint/v1beta1/query.mjs +264 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/slashing/v1beta1/query.mjs +293 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/slashing/v1beta1/slashing.mjs +162 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/staking/v1beta1/query.mjs +1308 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/staking/v1beta1/staking.mjs +1233 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/staking/v1beta1/tx.mjs +688 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/tx/signing/v1beta1/signing.mjs +316 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/tx/v1beta1/service.mjs +963 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/tx/v1beta1/tx.mjs +726 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/upgrade/v1beta1/upgrade.mjs +235 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/vesting/v1beta1/tx.mjs +320 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/cosmos/vesting/v1beta1/vesting.mjs +328 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/google/protobuf/any.mjs +78 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/google/protobuf/duration.mjs +78 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/google/protobuf/timestamp.mjs +78 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/helpers.mjs +117 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/applications/transfer/v1/query.mjs +466 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/applications/transfer/v1/transfer.mjs +123 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/applications/transfer/v1/tx.mjs +160 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/channel/v1/channel.mjs +521 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/channel/v1/query.mjs +1422 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/channel/v1/tx.mjs +1086 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/client/v1/client.mjs +370 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/client/v1/query.mjs +840 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/client/v1/tx.mjs +394 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/commitment/v1/commitment.mjs +199 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/connection/v1/connection.mjs +433 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/connection/v1/query.mjs +611 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/core/connection/v1/tx.mjs +491 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/ibc/lightclients/tendermint/v1/tendermint.mjs +340 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/abci/types.mjs +2787 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/crypto/keys.mjs +78 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/crypto/proof.mjs +276 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/types/block.mjs +92 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/types/evidence.mjs +247 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/types/params.mjs +310 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/types/types.mjs +861 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/types/validator.mjs +185 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cosmjs-types/tendermint/version/types.mjs +123 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/cross-fetch/dist/browser-ponyfill.mjs +277 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/debug/node_modules/ms/index.mjs +86 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/debug/src/browser.mjs +139 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/debug/src/common.mjs +86 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/define-data-property/index.mjs +33 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/define-properties/index.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ejs/lib/ejs.mjs +310 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ejs/lib/utils.mjs +86 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ejs/package.json.mjs +62 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/curve/base.mjs +201 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/curve/edwards.mjs +145 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/curve/index.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/curve/mont.mjs +78 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/curve/short.mjs +392 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/curves.mjs +158 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/ec/index.mjs +107 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/ec/key.mjs +55 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/ec/signature.mjs +81 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/eddsa/index.mjs +60 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/eddsa/key.mjs +50 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/eddsa/signature.mjs +32 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.mjs +786 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic/utils.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/lib/elliptic.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/node_modules/bn.js/lib/bn.mjs +1186 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/elliptic/package.json.mjs +73 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/contrib/has-cors.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/contrib/parseqs.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/contrib/parseuri.mjs +43 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/contrib/yeast.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/globalThis.browser.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/index.mjs +42 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/socket.mjs +338 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/transport.mjs +124 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/transports/index.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/transports/polling.mjs +284 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/transports/websocket-constructor.browser.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/transports/websocket.mjs +102 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/transports/webtransport.mjs +65 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/transports/xmlhttprequest.browser.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-client/build/cjs/util.mjs +29 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-parser/build/cjs/commons.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.mjs +25 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-parser/build/cjs/decodePacket.browser.mjs +43 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-parser/build/cjs/encodePacket.browser.mjs +31 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/engine.io-parser/build/cjs/index.mjs +115 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-define-property/index.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-errors/eval.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-errors/index.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-errors/range.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-errors/ref.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-errors/syntax.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-errors/type.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/es-errors/uri.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ethers/lib/utils.mjs +285 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ethers/lib.esm/_version.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ethers/lib.esm/ethers.mjs +34 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ethers/lib.esm/index.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ethers/lib.esm/utils.mjs +132 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/events/events.mjs +229 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/fastfile/src/bigmemfile.mjs +111 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/fastfile/src/fastfile.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/fastfile/src/memfile.mjs +89 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/fastfile/src/osfile.mjs +229 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/main.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/bigbuffer.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/bls12381.mjs +29 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/bn128.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/chacha.mjs +50 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/curves.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/engine.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/engine_applykey.mjs +58 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/engine_batchconvert.mjs +37 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/engine_fft.mjs +307 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/engine_multiexp.mjs +122 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/engine_pairing.mjs +70 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/f1field.mjs +230 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/fft.mjs +65 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/fsqrt.mjs +103 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/futils.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/random.mjs +29 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/scalar.mjs +216 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/threadman.mjs +124 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/threadman_thread.mjs +87 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/utils.mjs +154 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/wasm_curve.mjs +234 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/wasm_field1.mjs +171 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/wasm_field2.mjs +104 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ffjavascript/src/wasm_field3.mjs +104 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/for-each/index.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/function-bind/implementation.mjs +42 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/function-bind/index.mjs +5 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/get-intrinsic/index.mjs +240 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/globalthis/implementation.browser.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/globalthis/index.mjs +16 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/globalthis/polyfill.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/globalthis/shim.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/gopd/index.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/has-property-descriptors/index.mjs +17 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/has-proto/index.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/has-symbols/index.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/has-symbols/shams.mjs +27 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/has-tostringtag/shams.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/common.mjs +39 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/hmac.mjs +29 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/ripemd.mjs +376 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/sha/1.mjs +47 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/sha/224.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/sha/256.mjs +111 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/sha/384.mjs +38 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/sha/512.mjs +309 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/sha/common.mjs +44 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/sha.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash/utils.mjs +160 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hash.js/lib/hash.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hasown/index.mjs +5 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hmac-drbg/lib/hmac-drbg.mjs +49 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/hoopy/index.mjs +48 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ieee754/index.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/inherits/inherits_browser.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-arguments/index.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-callable/index.mjs +70 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-generator-function/index.mjs +28 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-nan/implementation.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-nan/index.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-nan/polyfill.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-nan/shim.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/is-typed-array/index.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/isobject/index.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/isomorphic-ws/browser.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/js-sha3/src/sha3.mjs +271 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/jsonpath/jsonpath.mjs +3171 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/kind-of/index.mjs +113 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/libsodium/dist/modules/libsodium.mjs +2748 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/libsodium-sumo/dist/modules-sumo/libsodium-sumo.mjs +4588 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.mjs +2585 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/libsodium-wrappers-sumo/dist/modules-sumo/libsodium-wrappers.mjs +2581 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/long/src/long.mjs +673 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/minimalistic-assert/index.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/minimalistic-crypto-utils/lib/utils.mjs +39 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/nanoassert/index.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object-is/implementation.mjs +8 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object-is/index.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object-is/polyfill.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object-is/shim.mjs +20 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object-keys/implementation.mjs +93 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object-keys/index.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object-keys/isArguments.mjs +7 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object.assign/implementation.mjs +29 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/object.assign/polyfill.mjs +26 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/possible-typed-array-names/index.mjs +16 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/minimal.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/index-minimal.mjs +17 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/reader.mjs +179 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/reader_buffer.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/roots.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/rpc/service.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/rpc.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/util/longbits.mjs +75 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/util/minimal.mjs +118 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/writer.mjs +133 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/protobufjs/src/writer_buffer.mjs +35 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/errors-browser.mjs +72 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/_stream_duplex.mjs +73 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/_stream_passthrough.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/_stream_readable.mjs +366 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/_stream_transform.mjs +68 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/_stream_writable.mjs +246 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/async_iterator.mjs +133 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/buffer_list.mjs +177 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/destroy.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/end-of-stream.mjs +48 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/from-browser.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/pipeline.mjs +69 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/state.mjs +23 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/lib/internal/streams/stream-browser.mjs +5 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/readable-stream/readable-browser.mjs +15 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/safe-buffer/index.mjs +39 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/scrypt-js/scrypt.mjs +298 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/set-function-length/index.mjs +32 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/shallow-clone/index.mjs +66 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/curves.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/fflonk.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/groth16_exportsoliditycalldata.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/groth16_fullprove.mjs +13 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/groth16_prove.mjs +96 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/misc.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/r1cs_info.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/wtns_calculate.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/wtns_utils.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/zkey_constants.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/snarkjs/src/zkey_utils.mjs +56 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-client/build/cjs/contrib/backo2.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-client/build/cjs/index.mjs +46 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-client/build/cjs/manager.mjs +273 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-client/build/cjs/on.mjs +12 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-client/build/cjs/socket.mjs +627 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-client/build/cjs/url.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-parser/build/cjs/binary.mjs +52 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-parser/build/cjs/index.mjs +207 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/socket.io-parser/build/cjs/is-binary.mjs +30 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/standard-error/index.mjs +14 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/standard-http-error/codes.json.mjs +66 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/standard-http-error/index.mjs +53 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/string-similarity-js/dist/string-similarity.mjs +18 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/string_decoder/lib/string_decoder.mjs +172 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/tryer/src/tryer.mjs +81 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/ua-parser-js/src/ua-parser.mjs +1168 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/util/support/isBufferBrowser.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/util/support/types.mjs +189 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/util/util.mjs +399 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/util-deprecate/browser.mjs +29 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmbuilder/src/codebuilder.mjs +319 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmbuilder/src/functionbuilder.mjs +73 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmbuilder/src/modulebuilder.mjs +217 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmbuilder/src/utils.mjs +100 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/index.mjs +9 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/bigint.mjs +106 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/bls12381/build_bls12381.mjs +917 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/bn128/build_bn128.mjs +836 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_applykey.mjs +40 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_batchconvertion.mjs +59 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_batchinverse.mjs +111 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_batchop.mjs +75 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_curve_jacobian_a0.mjs +925 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_f1.mjs +43 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_f1m.mjs +680 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_f2m.mjs +314 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_f3m.mjs +273 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_fft.mjs +1031 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_int.mjs +730 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_multiexp.mjs +395 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_pol.mjs +97 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_qap.mjs +274 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_timesscalar.mjs +52 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/build_timesscalarnaf.mjs +187 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/wasmcurves/src/utils.mjs +21 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/web-worker/browser.mjs +4 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/which-typed-array/index.mjs +71 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/xstream/index.mjs +765 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/xstream/node_modules/symbol-observable/lib/ponyfill.mjs +22 -0
- package/Users/nkoreli/Documents/GitHub/Hinkal-Protocol/node_modules/xstream/node_modules/symbol-observable/ponyfill.mjs +6 -0
- package/_virtual/AxelarAssetTransfer.mjs +4 -0
- package/_virtual/AxelarDepositRecoveryAPI.mjs +4 -0
- package/_virtual/AxelarGMPRecoveryAPI.mjs +4 -0
- package/_virtual/AxelarGateway.mjs +4 -0
- package/_virtual/AxelarQueryAPI.mjs +4 -0
- package/_virtual/AxelarRecoveryApi.mjs +4 -0
- package/_virtual/AxelarRpcClient.mjs +4 -0
- package/_virtual/AxelarTransferAPI.mjs +4 -0
- package/_virtual/AxelarnetTxTypes.mjs +4 -0
- package/_virtual/BigNumberUtils.mjs +4 -0
- package/_virtual/EvmChain.mjs +4 -0
- package/_virtual/EvmTxTypes.mjs +4 -0
- package/_virtual/GasToken.mjs +4 -0
- package/_virtual/GatewayTx.mjs +4 -0
- package/_virtual/IAxelarExecutable.mjs +4 -0
- package/_virtual/RestService.mjs +4 -0
- package/_virtual/SocketService.mjs +4 -0
- package/_virtual/___vite-browser-external.mjs +6 -0
- package/_virtual/__vite-browser-external.mjs +4 -0
- package/_virtual/_assert.mjs +4 -0
- package/_virtual/_assert2.mjs +4 -0
- package/_virtual/_commonjs-dynamic-modules.mjs +6 -0
- package/_virtual/_commonjsHelpers.mjs +30 -0
- package/_virtual/_md.mjs +4 -0
- package/_virtual/_md2.mjs +4 -0
- package/_virtual/_u64.mjs +4 -0
- package/_virtual/_u642.mjs +4 -0
- package/_virtual/abci.mjs +4 -0
- package/_virtual/accounts.mjs +4 -0
- package/_virtual/addresses.mjs +4 -0
- package/_virtual/addresses2.mjs +4 -0
- package/_virtual/aminomessages.mjs +4 -0
- package/_virtual/aminomessages10.mjs +4 -0
- package/_virtual/aminomessages11.mjs +4 -0
- package/_virtual/aminomessages2.mjs +4 -0
- package/_virtual/aminomessages3.mjs +4 -0
- package/_virtual/aminomessages4.mjs +4 -0
- package/_virtual/aminomessages5.mjs +4 -0
- package/_virtual/aminomessages6.mjs +4 -0
- package/_virtual/aminomessages7.mjs +4 -0
- package/_virtual/aminomessages8.mjs +4 -0
- package/_virtual/aminomessages9.mjs +4 -0
- package/_virtual/aminotypes.mjs +4 -0
- package/_virtual/any.mjs +4 -0
- package/_virtual/any2.mjs +4 -0
- package/_virtual/arrays.mjs +4 -0
- package/_virtual/ascii.mjs +4 -0
- package/_virtual/assert.mjs +2 -0
- package/_virtual/assert2.mjs +4 -0
- package/_virtual/assert3.mjs +4 -0
- package/_virtual/auth.mjs +4 -0
- package/_virtual/authz.mjs +4 -0
- package/_virtual/axelarHelper.mjs +4 -0
- package/_virtual/axios.mjs +4 -0
- package/_virtual/backo2.mjs +4 -0
- package/_virtual/bank.mjs +4 -0
- package/_virtual/base64-arraybuffer.mjs +4 -0
- package/_virtual/base64.mjs +4 -0
- package/_virtual/bech32.mjs +4 -0
- package/_virtual/bigint.mjs +4 -0
- package/_virtual/binary.mjs +4 -0
- package/_virtual/bip39.mjs +4 -0
- package/_virtual/bitmap.mjs +4 -0
- package/_virtual/block.mjs +4 -0
- package/_virtual/bn.mjs +4 -0
- package/_virtual/bn2.mjs +4 -0
- package/_virtual/browser-ponyfill.mjs +4 -0
- package/_virtual/browser.mjs +4 -0
- package/_virtual/browser2.mjs +4 -0
- package/_virtual/channel.mjs +4 -0
- package/_virtual/check-types.mjs +4 -0
- package/_virtual/client.mjs +4 -0
- package/_virtual/coin.mjs +4 -0
- package/_virtual/coin2.mjs +4 -0
- package/_virtual/coins.mjs +4 -0
- package/_virtual/coins2.mjs +4 -0
- package/_virtual/commitment.mjs +4 -0
- package/_virtual/common.mjs +4 -0
- package/_virtual/common2.mjs +4 -0
- package/_virtual/commons.mjs +4 -0
- package/_virtual/compatibility.mjs +4 -0
- package/_virtual/compress.mjs +4 -0
- package/_virtual/concat.mjs +4 -0
- package/_virtual/connection.mjs +4 -0
- package/_virtual/contractCallHelper.mjs +4 -0
- package/_virtual/contractEventHelper.mjs +4 -0
- package/_virtual/cosmos.mjs +4 -0
- package/_virtual/cosmosGasReceiverOptions.mjs +4 -0
- package/_virtual/crypto.mjs +4 -0
- package/_virtual/crypto2.mjs +4 -0
- package/_virtual/curves.mjs +4 -0
- package/_virtual/dates.mjs +4 -0
- package/_virtual/decimal.mjs +4 -0
- package/_virtual/decode.mjs +4 -0
- package/_virtual/decodePacket.browser.mjs +4 -0
- package/_virtual/defaultvalueproducer.mjs +4 -0
- package/_virtual/directsecp256k1hdwallet.mjs +4 -0
- package/_virtual/directsecp256k1wallet.mjs +4 -0
- package/_virtual/distribution.mjs +4 -0
- package/_virtual/dropduplicates.mjs +4 -0
- package/_virtual/duration.mjs +4 -0
- package/_virtual/duration2.mjs +4 -0
- package/_virtual/ejs.mjs +4 -0
- package/_virtual/elliptic.mjs +4 -0
- package/_virtual/encodePacket.browser.mjs +4 -0
- package/_virtual/encoding.mjs +4 -0
- package/_virtual/encodings.mjs +4 -0
- package/_virtual/encodings2.mjs +4 -0
- package/_virtual/error.mjs +4 -0
- package/_virtual/errors-browser.mjs +4 -0
- package/_virtual/errors.mjs +4 -0
- package/_virtual/events.mjs +4 -0
- package/_virtual/events2.mjs +4 -0
- package/_virtual/events3.mjs +4 -0
- package/_virtual/evidence.mjs +4 -0
- package/_virtual/fee.mjs +4 -0
- package/_virtual/feegrant.mjs +4 -0
- package/_virtual/getCommandId.mjs +4 -0
- package/_virtual/getL1Fee.mjs +4 -0
- package/_virtual/globalThis.browser.mjs +4 -0
- package/_virtual/gov.mjs +4 -0
- package/_virtual/has-cors.mjs +4 -0
- package/_virtual/hash.mjs +4 -0
- package/_virtual/hasher.mjs +4 -0
- package/_virtual/hasher2.mjs +4 -0
- package/_virtual/helpers.mjs +4 -0
- package/_virtual/hex.mjs +4 -0
- package/_virtual/hmac.mjs +4 -0
- package/_virtual/hmac2.mjs +4 -0
- package/_virtual/http.mjs +4 -0
- package/_virtual/httpbatchclient.mjs +4 -0
- package/_virtual/httpclient.mjs +4 -0
- package/_virtual/ics23.mjs +4 -0
- package/_virtual/id.mjs +4 -0
- package/_virtual/implementation.browser.mjs +4 -0
- package/_virtual/index-minimal.mjs +4 -0
- package/_virtual/index-minimal2.mjs +4 -0
- package/_virtual/index.mjs +4 -0
- package/_virtual/index10.mjs +4 -0
- package/_virtual/index11.mjs +4 -0
- package/_virtual/index12.mjs +4 -0
- package/_virtual/index13.mjs +6 -0
- package/_virtual/index14.mjs +6 -0
- package/_virtual/index15.mjs +4 -0
- package/_virtual/index16.mjs +4 -0
- package/_virtual/index17.mjs +4 -0
- package/_virtual/index18.mjs +4 -0
- package/_virtual/index19.mjs +4 -0
- package/_virtual/index2.mjs +4 -0
- package/_virtual/index20.mjs +4 -0
- package/_virtual/index21.mjs +6 -0
- package/_virtual/index22.mjs +6 -0
- package/_virtual/index23.mjs +6 -0
- package/_virtual/index24.mjs +6 -0
- package/_virtual/index25.mjs +6 -0
- package/_virtual/index26.mjs +6 -0
- package/_virtual/index27.mjs +6 -0
- package/_virtual/index28.mjs +6 -0
- package/_virtual/index29.mjs +6 -0
- package/_virtual/index3.mjs +4 -0
- package/_virtual/index30.mjs +6 -0
- package/_virtual/index31.mjs +6 -0
- package/_virtual/index32.mjs +6 -0
- package/_virtual/index33.mjs +6 -0
- package/_virtual/index34.mjs +6 -0
- package/_virtual/index35.mjs +6 -0
- package/_virtual/index36.mjs +6 -0
- package/_virtual/index37.mjs +6 -0
- package/_virtual/index38.mjs +6 -0
- package/_virtual/index39.mjs +6 -0
- package/_virtual/index4.mjs +4 -0
- package/_virtual/index40.mjs +6 -0
- package/_virtual/index41.mjs +6 -0
- package/_virtual/index42.mjs +4 -0
- package/_virtual/index43.mjs +4 -0
- package/_virtual/index44.mjs +4 -0
- package/_virtual/index45.mjs +4 -0
- package/_virtual/index46.mjs +4 -0
- package/_virtual/index47.mjs +4 -0
- package/_virtual/index48.mjs +4 -0
- package/_virtual/index49.mjs +4 -0
- package/_virtual/index5.mjs +4 -0
- package/_virtual/index50.mjs +4 -0
- package/_virtual/index51.mjs +4 -0
- package/_virtual/index52.mjs +4 -0
- package/_virtual/index53.mjs +4 -0
- package/_virtual/index54.mjs +4 -0
- package/_virtual/index55.mjs +4 -0
- package/_virtual/index56.mjs +4 -0
- package/_virtual/index57.mjs +4 -0
- package/_virtual/index58.mjs +4 -0
- package/_virtual/index59.mjs +4 -0
- package/_virtual/index6.mjs +4 -0
- package/_virtual/index60.mjs +4 -0
- package/_virtual/index61.mjs +4 -0
- package/_virtual/index62.mjs +4 -0
- package/_virtual/index63.mjs +4 -0
- package/_virtual/index64.mjs +4 -0
- package/_virtual/index65.mjs +4 -0
- package/_virtual/index66.mjs +4 -0
- package/_virtual/index67.mjs +4 -0
- package/_virtual/index68.mjs +4 -0
- package/_virtual/index69.mjs +4 -0
- package/_virtual/index7.mjs +4 -0
- package/_virtual/index70.mjs +4 -0
- package/_virtual/index71.mjs +6 -0
- package/_virtual/index72.mjs +4 -0
- package/_virtual/index73.mjs +4 -0
- package/_virtual/index74.mjs +4 -0
- package/_virtual/index75.mjs +4 -0
- package/_virtual/index76.mjs +4 -0
- package/_virtual/index77.mjs +4 -0
- package/_virtual/index78.mjs +4 -0
- package/_virtual/index79.mjs +4 -0
- package/_virtual/index8.mjs +4 -0
- package/_virtual/index80.mjs +4 -0
- package/_virtual/index81.mjs +4 -0
- package/_virtual/index82.mjs +4 -0
- package/_virtual/index83.mjs +4 -0
- package/_virtual/index84.mjs +4 -0
- package/_virtual/index9.mjs +4 -0
- package/_virtual/inherits_browser.mjs +4 -0
- package/_virtual/integers.mjs +4 -0
- package/_virtual/inthelpers.mjs +4 -0
- package/_virtual/is-binary.mjs +4 -0
- package/_virtual/jsonpath.mjs +4 -0
- package/_virtual/jsonrpc.mjs +4 -0
- package/_virtual/jsonrpcclient.mjs +4 -0
- package/_virtual/keccak.mjs +4 -0
- package/_virtual/keys.mjs +4 -0
- package/_virtual/keys2.mjs +4 -0
- package/_virtual/keys3.mjs +4 -0
- package/_virtual/keys4.mjs +4 -0
- package/_virtual/libsodium-sumo.mjs +4 -0
- package/_virtual/libsodium-wrappers.mjs +4 -0
- package/_virtual/libsodium-wrappers2.mjs +4 -0
- package/_virtual/libsodium.mjs +4 -0
- package/_virtual/libsodium2.mjs +4 -0
- package/_virtual/logs.mjs +4 -0
- package/_virtual/mainnet.mjs +4 -0
- package/_virtual/manager.mjs +4 -0
- package/_virtual/mappers.mjs +4 -0
- package/_virtual/messages.mjs +4 -0
- package/_virtual/messages2.mjs +4 -0
- package/_virtual/messages3.mjs +4 -0
- package/_virtual/messages4.mjs +4 -0
- package/_virtual/messages5.mjs +4 -0
- package/_virtual/messages6.mjs +4 -0
- package/_virtual/messages7.mjs +4 -0
- package/_virtual/messages8.mjs +4 -0
- package/_virtual/minimal.mjs +4 -0
- package/_virtual/minimal2.mjs +4 -0
- package/_virtual/mint.mjs +4 -0
- package/_virtual/multisig.mjs +4 -0
- package/_virtual/multisig2.mjs +4 -0
- package/_virtual/multisignature.mjs +4 -0
- package/_virtual/on.mjs +4 -0
- package/_virtual/ops.mjs +4 -0
- package/_virtual/pagination.mjs +4 -0
- package/_virtual/pagination2.mjs +4 -0
- package/_virtual/params.mjs +4 -0
- package/_virtual/parse.mjs +4 -0
- package/_virtual/parseqs.mjs +4 -0
- package/_virtual/parseuri.mjs +4 -0
- package/_virtual/paths.mjs +4 -0
- package/_virtual/paths2.mjs +4 -0
- package/_virtual/pbkdf2.mjs +4 -0
- package/_virtual/pbkdf22.mjs +4 -0
- package/_virtual/polling.mjs +4 -0
- package/_virtual/ponyfill.mjs +4 -0
- package/_virtual/promise.mjs +4 -0
- package/_virtual/proof.mjs +4 -0
- package/_virtual/proofs.mjs +4 -0
- package/_virtual/proofs2.mjs +4 -0
- package/_virtual/providerHelper.mjs +4 -0
- package/_virtual/pubkey.mjs +4 -0
- package/_virtual/pubkeys.mjs +4 -0
- package/_virtual/queries.mjs +4 -0
- package/_virtual/queries10.mjs +4 -0
- package/_virtual/queries11.mjs +4 -0
- package/_virtual/queries2.mjs +4 -0
- package/_virtual/queries3.mjs +4 -0
- package/_virtual/queries4.mjs +4 -0
- package/_virtual/queries5.mjs +4 -0
- package/_virtual/queries6.mjs +4 -0
- package/_virtual/queries7.mjs +4 -0
- package/_virtual/queries8.mjs +4 -0
- package/_virtual/queries9.mjs +4 -0
- package/_virtual/query.mjs +4 -0
- package/_virtual/query10.mjs +4 -0
- package/_virtual/query11.mjs +4 -0
- package/_virtual/query12.mjs +4 -0
- package/_virtual/query13.mjs +4 -0
- package/_virtual/query14.mjs +4 -0
- package/_virtual/query15.mjs +4 -0
- package/_virtual/query16.mjs +4 -0
- package/_virtual/query2.mjs +4 -0
- package/_virtual/query3.mjs +4 -0
- package/_virtual/query4.mjs +4 -0
- package/_virtual/query5.mjs +4 -0
- package/_virtual/query6.mjs +4 -0
- package/_virtual/query7.mjs +4 -0
- package/_virtual/query8.mjs +4 -0
- package/_virtual/query9.mjs +4 -0
- package/_virtual/queryclient.mjs +4 -0
- package/_virtual/queueingstreamingsocket.mjs +4 -0
- package/_virtual/random.mjs +4 -0
- package/_virtual/readable-browser.mjs +4 -0
- package/_virtual/reconnectingsocket.mjs +4 -0
- package/_virtual/reducer.mjs +4 -0
- package/_virtual/registry.mjs +4 -0
- package/_virtual/requests.mjs +4 -0
- package/_virtual/requests2.mjs +4 -0
- package/_virtual/requests3.mjs +4 -0
- package/_virtual/requests4.mjs +4 -0
- package/_virtual/responses.mjs +4 -0
- package/_virtual/responses2.mjs +4 -0
- package/_virtual/responses3.mjs +4 -0
- package/_virtual/responses4.mjs +4 -0
- package/_virtual/retry.mjs +4 -0
- package/_virtual/retryRpc.mjs +4 -0
- package/_virtual/rfc3339.mjs +4 -0
- package/_virtual/ripemd.mjs +4 -0
- package/_virtual/ripemd160.mjs +4 -0
- package/_virtual/ripemd1602.mjs +4 -0
- package/_virtual/ripemd2.mjs +4 -0
- package/_virtual/rpc.mjs +4 -0
- package/_virtual/rpc2.mjs +4 -0
- package/_virtual/rpcclient.mjs +4 -0
- package/_virtual/s3.mjs +4 -0
- package/_virtual/scrypt.mjs +4 -0
- package/_virtual/secp256k1.mjs +4 -0
- package/_virtual/secp256k1hdwallet.mjs +4 -0
- package/_virtual/secp256k1signature.mjs +4 -0
- package/_virtual/secp256k1wallet.mjs +4 -0
- package/_virtual/service.mjs +4 -0
- package/_virtual/service2.mjs +4 -0
- package/_virtual/service3.mjs +4 -0
- package/_virtual/service4.mjs +4 -0
- package/_virtual/service5.mjs +4 -0
- package/_virtual/sha.mjs +4 -0
- package/_virtual/sha2.mjs +4 -0
- package/_virtual/sha256.mjs +4 -0
- package/_virtual/sha2562.mjs +4 -0
- package/_virtual/sha3.mjs +4 -0
- package/_virtual/sha32.mjs +4 -0
- package/_virtual/sha512.mjs +4 -0
- package/_virtual/sha5122.mjs +4 -0
- package/_virtual/signature.mjs +4 -0
- package/_virtual/signdoc.mjs +4 -0
- package/_virtual/signer.mjs +4 -0
- package/_virtual/signing.mjs +4 -0
- package/_virtual/signing2.mjs +4 -0
- package/_virtual/signingstargateclient.mjs +4 -0
- package/_virtual/slashing.mjs +4 -0
- package/_virtual/sleep.mjs +4 -0
- package/_virtual/sleep2.mjs +4 -0
- package/_virtual/slip10.mjs +4 -0
- package/_virtual/socket.mjs +4 -0
- package/_virtual/socket2.mjs +4 -0
- package/_virtual/socketwrapper.mjs +4 -0
- package/_virtual/specs.mjs +4 -0
- package/_virtual/staking.mjs +4 -0
- package/_virtual/stargateclient.mjs +4 -0
- package/_virtual/stdtx.mjs +4 -0
- package/_virtual/streamingsocket.mjs +4 -0
- package/_virtual/string-similarity.mjs +4 -0
- package/_virtual/string_decoder.mjs +4 -0
- package/_virtual/supported-chains-list.mjs +4 -0
- package/_virtual/tendermint.mjs +4 -0
- package/_virtual/tendermint34client.mjs +4 -0
- package/_virtual/tendermint37client.mjs +4 -0
- package/_virtual/tendermintclient.mjs +4 -0
- package/_virtual/testnet.mjs +4 -0
- package/_virtual/threshold.mjs +4 -0
- package/_virtual/timestamp.mjs +4 -0
- package/_virtual/timestamp2.mjs +4 -0
- package/_virtual/tofnd.mjs +4 -0
- package/_virtual/transfer.mjs +4 -0
- package/_virtual/transport.mjs +4 -0
- package/_virtual/tryer.mjs +4 -0
- package/_virtual/tx.mjs +4 -0
- package/_virtual/tx10.mjs +4 -0
- package/_virtual/tx11.mjs +4 -0
- package/_virtual/tx12.mjs +4 -0
- package/_virtual/tx13.mjs +4 -0
- package/_virtual/tx14.mjs +4 -0
- package/_virtual/tx15.mjs +4 -0
- package/_virtual/tx16.mjs +4 -0
- package/_virtual/tx2.mjs +4 -0
- package/_virtual/tx3.mjs +4 -0
- package/_virtual/tx4.mjs +4 -0
- package/_virtual/tx5.mjs +4 -0
- package/_virtual/tx6.mjs +4 -0
- package/_virtual/tx7.mjs +4 -0
- package/_virtual/tx8.mjs +4 -0
- package/_virtual/tx9.mjs +4 -0
- package/_virtual/typechecks.mjs +4 -0
- package/_virtual/types.mjs +4 -0
- package/_virtual/types10.mjs +4 -0
- package/_virtual/types11.mjs +4 -0
- package/_virtual/types12.mjs +4 -0
- package/_virtual/types13.mjs +4 -0
- package/_virtual/types14.mjs +4 -0
- package/_virtual/types2.mjs +4 -0
- package/_virtual/types3.mjs +4 -0
- package/_virtual/types4.mjs +4 -0
- package/_virtual/types5.mjs +4 -0
- package/_virtual/types6.mjs +4 -0
- package/_virtual/types7.mjs +4 -0
- package/_virtual/types8.mjs +4 -0
- package/_virtual/types9.mjs +4 -0
- package/_virtual/ua-parser.mjs +4 -0
- package/_virtual/upgrade.mjs +4 -0
- package/_virtual/url.mjs +4 -0
- package/_virtual/utf8.mjs +4 -0
- package/_virtual/util.mjs +4 -0
- package/_virtual/util2.mjs +4 -0
- package/_virtual/utils.mjs +4 -0
- package/_virtual/utils10.mjs +4 -0
- package/_virtual/utils2.mjs +4 -0
- package/_virtual/utils3.mjs +4 -0
- package/_virtual/utils4.mjs +4 -0
- package/_virtual/utils5.mjs +4 -0
- package/_virtual/utils6.mjs +4 -0
- package/_virtual/utils7.mjs +4 -0
- package/_virtual/utils8.mjs +4 -0
- package/_virtual/utils9.mjs +4 -0
- package/_virtual/validateChain.mjs +4 -0
- package/_virtual/validateDestinationAddress.mjs +4 -0
- package/_virtual/validator.mjs +4 -0
- package/_virtual/valueandupdates.mjs +4 -0
- package/_virtual/vesting.mjs +4 -0
- package/_virtual/wallet.mjs +4 -0
- package/_virtual/wallet2.mjs +4 -0
- package/_virtual/wallet3.mjs +4 -0
- package/_virtual/websocket-constructor.browser.mjs +4 -0
- package/_virtual/websocket.mjs +4 -0
- package/_virtual/websocketclient.mjs +4 -0
- package/_virtual/webtransport.mjs +4 -0
- package/_virtual/xmlhttprequest.browser.mjs +4 -0
- package/_virtual/yeast.mjs +4 -0
- package/constants/axelar.constants.mjs +32 -31
- package/constants/contracts.constants.mjs +84 -84
- package/constants/fees.constants.mjs +29 -24
- package/crypto/babyJub.mjs +15 -6
- package/crypto/poseidon.mjs +24 -15
- package/data-structures/Hinkal/Hinkal.mjs +30 -24
- package/data-structures/Hinkal/hinkalActionBeefy.mjs +43 -36
- package/data-structures/Hinkal/hinkalActionConvex.mjs +37 -30
- package/data-structures/Hinkal/hinkalActionCurve.mjs +37 -30
- package/data-structures/Hinkal/hinkalActionLidoEth.mjs +44 -37
- package/data-structures/Hinkal/hinkalActionPendle.mjs +36 -29
- package/data-structures/Hinkal/hinkalActionPendleLP.mjs +41 -34
- package/data-structures/Hinkal/hinkalActionStake.mjs +23 -17
- package/data-structures/Hinkal/hinkalActionVolatile.mjs +30 -24
- package/data-structures/Hinkal/hinkalDeposit.mjs +23 -17
- package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +15 -10
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +18 -12
- package/data-structures/Hinkal/hinkalSwap.mjs +32 -26
- package/data-structures/Hinkal/hinkalWithdraw.mjs +19 -13
- package/data-structures/Hinkal/resetMerkleTrees.mjs +19 -14
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +16 -11
- package/data-structures/crypto-keys/decodeUTXO.mjs +8 -8
- package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +32 -32
- package/data-structures/crypto-keys/keys.mjs +26 -24
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +21 -16
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +14 -9
- package/data-structures/event-service/AbstractEventService.mjs +22 -17
- package/data-structures/merkle-tree/MerkleTree.mjs +15 -10
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +18 -13
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +15 -10
- package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +15 -10
- package/data-structures/token-price-fetcher/TokenPriceFetcher.mjs +63 -55
- package/data-structures/transactions-manager/TransactionsManager.mjs +91 -86
- package/data-structures/transactions-manager/history/getBeefyData.mjs +24 -18
- package/data-structures/transactions-manager/history/getConvexData.mjs +29 -23
- package/data-structures/transactions-manager/history/getCurveData.mjs +41 -35
- package/data-structures/transactions-manager/history/getDepositData.mjs +15 -10
- package/data-structures/transactions-manager/history/getLidoData.mjs +26 -20
- package/data-structures/transactions-manager/history/getPendleData.mjs +20 -15
- package/data-structures/transactions-manager/history/getSwapData.mjs +15 -10
- package/data-structures/transactions-manager/history/getTxDetails.mjs +29 -24
- package/data-structures/transactions-manager/history/getVolatileData.mjs +14 -9
- package/data-structures/transactions-manager/history/history.types.mjs +14 -9
- package/data-structures/utxo/Utxo.mjs +22 -22
- package/data-structures/volatile-helper/VolatileHelper.mjs +47 -38
- package/error-handling/handleErrorRestore.mjs +13 -8
- package/functions/kyc/authentoHelper.mjs +23 -18
- package/functions/kyc/passportHelper.mjs +15 -10
- package/functions/kyc/zkMeHelper.mjs +19 -19
- package/functions/pre-transaction/getFlatFees.mjs +25 -20
- package/functions/pre-transaction/outputUtxoProcessing.mjs +15 -10
- package/functions/pre-transaction/process-gas-estimates.mjs +15 -10
- package/functions/pre-transaction/processAmountChanges.mjs +99 -94
- package/functions/private-wallet/emporium.helpers.mjs +13 -11
- package/functions/private-wallet/opProducer.mjs +5 -5
- package/functions/protocols/convex.protocols.mjs +15 -10
- package/functions/protocols/curve.protocols.mjs +15 -10
- package/functions/protocols/pendle.helpers.mjs +26 -21
- package/functions/snarkjs/common.snarkjs.mjs +44 -43
- package/functions/snarkjs/constant.mjs +17 -12
- package/functions/snarkjs/constructGeneralZkProof.mjs +39 -34
- package/functions/snarkjs/generateCircomData.mjs +23 -18
- package/functions/snarkjs/getZKFiles.mjs +16 -11
- package/functions/staking/index.mjs +33 -24
- package/functions/utils/axelar.utils.mjs +15 -10
- package/functions/utils/cacheFunctions.mjs +19 -14
- package/functions/utils/create-provider.mjs +2 -2
- package/functions/utils/evmNetworkFunctions.mjs +16 -11
- package/functions/utils/external-action.utils.mjs +19 -17
- package/functions/utils/getDataFromTransaction.mjs +44 -38
- package/functions/utils/userAgent.mjs +3 -3
- package/functions/utils/volatile-patcher.utils.mjs +15 -10
- package/functions/web3/etherFunctions.mjs +30 -28
- package/functions/web3/events/getShieldedBalance.mjs +31 -25
- package/functions/web3/functionCalls/accessTokenCalls.mjs +26 -21
- package/functions/web3/functionCalls/approveToken.mjs +52 -45
- package/functions/web3/functionCalls/transactCallDirect.mjs +15 -10
- package/functions/web3/functionCalls/transactCallRelayer.mjs +14 -9
- package/functions/web3/odosAPI.mjs +19 -14
- package/functions/web3/oneInchAPI.mjs +21 -16
- package/functions/web3/runContractFunction.mjs +15 -10
- package/functions/web3/uniswapAPI.mjs +37 -31
- package/package.json +1 -1
- package/types/transactions.types.mjs +1 -1
- package/webworker/performTaskWithWorker.mjs +18 -13
- package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +45 -22
|
@@ -0,0 +1,2585 @@
|
|
|
1
|
+
import { commonjsGlobal as vr, getDefaultExportFromCjs as dr } from "../../../../../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
+
import { __exports as H } from "../../../../../../../../../_virtual/libsodium-wrappers.mjs";
|
|
3
|
+
import { __require as gr } from "../../../libsodium/dist/modules/libsodium.mjs";
|
|
4
|
+
(function(P) {
|
|
5
|
+
(function(N) {
|
|
6
|
+
function G(K, R) {
|
|
7
|
+
var c, j = "uint8array", z = R.ready.then(function() {
|
|
8
|
+
function t() {
|
|
9
|
+
if (c._sodium_init() !== 0)
|
|
10
|
+
throw new Error("libsodium was not correctly initialized.");
|
|
11
|
+
for (var n = ["crypto_aead_aegis128l_decrypt", "crypto_aead_aegis128l_decrypt_detached", "crypto_aead_aegis128l_encrypt", "crypto_aead_aegis128l_encrypt_detached", "crypto_aead_aegis128l_keygen", "crypto_aead_aegis256_decrypt", "crypto_aead_aegis256_decrypt_detached", "crypto_aead_aegis256_encrypt", "crypto_aead_aegis256_encrypt_detached", "crypto_aead_aegis256_keygen", "crypto_aead_chacha20poly1305_decrypt", "crypto_aead_chacha20poly1305_decrypt_detached", "crypto_aead_chacha20poly1305_encrypt", "crypto_aead_chacha20poly1305_encrypt_detached", "crypto_aead_chacha20poly1305_ietf_decrypt", "crypto_aead_chacha20poly1305_ietf_decrypt_detached", "crypto_aead_chacha20poly1305_ietf_encrypt", "crypto_aead_chacha20poly1305_ietf_encrypt_detached", "crypto_aead_chacha20poly1305_ietf_keygen", "crypto_aead_chacha20poly1305_keygen", "crypto_aead_xchacha20poly1305_ietf_decrypt", "crypto_aead_xchacha20poly1305_ietf_decrypt_detached", "crypto_aead_xchacha20poly1305_ietf_encrypt", "crypto_aead_xchacha20poly1305_ietf_encrypt_detached", "crypto_aead_xchacha20poly1305_ietf_keygen", "crypto_auth", "crypto_auth_hmacsha256", "crypto_auth_hmacsha256_final", "crypto_auth_hmacsha256_init", "crypto_auth_hmacsha256_keygen", "crypto_auth_hmacsha256_update", "crypto_auth_hmacsha256_verify", "crypto_auth_hmacsha512", "crypto_auth_hmacsha512_final", "crypto_auth_hmacsha512_init", "crypto_auth_hmacsha512_keygen", "crypto_auth_hmacsha512_update", "crypto_auth_hmacsha512_verify", "crypto_auth_keygen", "crypto_auth_verify", "crypto_box_beforenm", "crypto_box_curve25519xchacha20poly1305_beforenm", "crypto_box_curve25519xchacha20poly1305_detached", "crypto_box_curve25519xchacha20poly1305_detached_afternm", "crypto_box_curve25519xchacha20poly1305_easy", "crypto_box_curve25519xchacha20poly1305_easy_afternm", "crypto_box_curve25519xchacha20poly1305_keypair", "crypto_box_curve25519xchacha20poly1305_open_detached", "crypto_box_curve25519xchacha20poly1305_open_detached_afternm", "crypto_box_curve25519xchacha20poly1305_open_easy", "crypto_box_curve25519xchacha20poly1305_open_easy_afternm", "crypto_box_curve25519xchacha20poly1305_seal", "crypto_box_curve25519xchacha20poly1305_seal_open", "crypto_box_curve25519xchacha20poly1305_seed_keypair", "crypto_box_detached", "crypto_box_easy", "crypto_box_easy_afternm", "crypto_box_keypair", "crypto_box_open_detached", "crypto_box_open_easy", "crypto_box_open_easy_afternm", "crypto_box_seal", "crypto_box_seal_open", "crypto_box_seed_keypair", "crypto_core_ed25519_add", "crypto_core_ed25519_from_hash", "crypto_core_ed25519_from_uniform", "crypto_core_ed25519_is_valid_point", "crypto_core_ed25519_random", "crypto_core_ed25519_scalar_add", "crypto_core_ed25519_scalar_complement", "crypto_core_ed25519_scalar_invert", "crypto_core_ed25519_scalar_mul", "crypto_core_ed25519_scalar_negate", "crypto_core_ed25519_scalar_random", "crypto_core_ed25519_scalar_reduce", "crypto_core_ed25519_scalar_sub", "crypto_core_ed25519_sub", "crypto_core_hchacha20", "crypto_core_hsalsa20", "crypto_core_ristretto255_add", "crypto_core_ristretto255_from_hash", "crypto_core_ristretto255_is_valid_point", "crypto_core_ristretto255_random", "crypto_core_ristretto255_scalar_add", "crypto_core_ristretto255_scalar_complement", "crypto_core_ristretto255_scalar_invert", "crypto_core_ristretto255_scalar_mul", "crypto_core_ristretto255_scalar_negate", "crypto_core_ristretto255_scalar_random", "crypto_core_ristretto255_scalar_reduce", "crypto_core_ristretto255_scalar_sub", "crypto_core_ristretto255_sub", "crypto_generichash", "crypto_generichash_blake2b_salt_personal", "crypto_generichash_final", "crypto_generichash_init", "crypto_generichash_keygen", "crypto_generichash_update", "crypto_hash", "crypto_hash_sha256", "crypto_hash_sha256_final", "crypto_hash_sha256_init", "crypto_hash_sha256_update", "crypto_hash_sha512", "crypto_hash_sha512_final", "crypto_hash_sha512_init", "crypto_hash_sha512_update", "crypto_kdf_derive_from_key", "crypto_kdf_keygen", "crypto_kx_client_session_keys", "crypto_kx_keypair", "crypto_kx_seed_keypair", "crypto_kx_server_session_keys", "crypto_onetimeauth", "crypto_onetimeauth_final", "crypto_onetimeauth_init", "crypto_onetimeauth_keygen", "crypto_onetimeauth_update", "crypto_onetimeauth_verify", "crypto_pwhash", "crypto_pwhash_scryptsalsa208sha256", "crypto_pwhash_scryptsalsa208sha256_ll", "crypto_pwhash_scryptsalsa208sha256_str", "crypto_pwhash_scryptsalsa208sha256_str_verify", "crypto_pwhash_str", "crypto_pwhash_str_needs_rehash", "crypto_pwhash_str_verify", "crypto_scalarmult", "crypto_scalarmult_base", "crypto_scalarmult_ed25519", "crypto_scalarmult_ed25519_base", "crypto_scalarmult_ed25519_base_noclamp", "crypto_scalarmult_ed25519_noclamp", "crypto_scalarmult_ristretto255", "crypto_scalarmult_ristretto255_base", "crypto_secretbox_detached", "crypto_secretbox_easy", "crypto_secretbox_keygen", "crypto_secretbox_open_detached", "crypto_secretbox_open_easy", "crypto_secretstream_xchacha20poly1305_init_pull", "crypto_secretstream_xchacha20poly1305_init_push", "crypto_secretstream_xchacha20poly1305_keygen", "crypto_secretstream_xchacha20poly1305_pull", "crypto_secretstream_xchacha20poly1305_push", "crypto_secretstream_xchacha20poly1305_rekey", "crypto_shorthash", "crypto_shorthash_keygen", "crypto_shorthash_siphashx24", "crypto_sign", "crypto_sign_detached", "crypto_sign_ed25519_pk_to_curve25519", "crypto_sign_ed25519_sk_to_curve25519", "crypto_sign_ed25519_sk_to_pk", "crypto_sign_ed25519_sk_to_seed", "crypto_sign_final_create", "crypto_sign_final_verify", "crypto_sign_init", "crypto_sign_keypair", "crypto_sign_open", "crypto_sign_seed_keypair", "crypto_sign_update", "crypto_sign_verify_detached", "crypto_stream_chacha20", "crypto_stream_chacha20_ietf_xor", "crypto_stream_chacha20_ietf_xor_ic", "crypto_stream_chacha20_keygen", "crypto_stream_chacha20_xor", "crypto_stream_chacha20_xor_ic", "crypto_stream_keygen", "crypto_stream_xchacha20_keygen", "crypto_stream_xchacha20_xor", "crypto_stream_xchacha20_xor_ic", "randombytes_buf", "randombytes_buf_deterministic", "randombytes_close", "randombytes_random", "randombytes_set_implementation", "randombytes_stir", "randombytes_uniform", "sodium_version_string"], o = [W, J, Q, Z, $, ee, te, ae, re, _e, ne, se, ce, oe, he, pe, ye, ie, le, ue, ve, de, ge, be, fe, me, xe, Ee, ke, Se, Te, we, Ye, Be, Ae, Ke, Me, Ie, Ne, Le, Ue, Oe, Ce, Re, Pe, Ge, Xe, De, Fe, Ve, qe, He, je, ze, We, Je, Qe, Ze, $e, et, tt, at, rt, _t, nt, st, ct, ot, ht, pt, yt, it, lt, ut, vt, dt, gt, bt, ft, mt, xt, Et, kt, St, Tt, wt, Yt, Bt, At, Kt, Mt, It, Nt, Lt, Ut, Ot, Ct, Rt, Pt, Gt, Xt, Dt, Ft, Vt, qt, Ht, jt, zt, Wt, Jt, Qt, Zt, $t, ea, ta, aa, ra, _a, na, sa, ca, oa, ha, pa, ya, ia, la, ua, va, da, ga, ba, fa, ma, xa, Ea, ka, Sa, Ta, wa, Ya, Ba, Aa, Ka, Ma, Ia, Na, La, Ua, Oa, Ca, Ra, Pa, Ga, Xa, Da, Fa, Va, qa, Ha, ja, za, Wa, Ja, Qa, Za, $a, er, tr, ar, rr, _r, nr, sr, cr, or, hr, pr, yr, ir, lr, ur], p = 0; p < o.length; p++)
|
|
12
|
+
typeof c["_" + n[p]] == "function" && (K[n[p]] = o[p]);
|
|
13
|
+
var i = ["SODIUM_LIBRARY_VERSION_MAJOR", "SODIUM_LIBRARY_VERSION_MINOR", "crypto_aead_chacha20poly1305_ABYTES", "crypto_aead_chacha20poly1305_IETF_ABYTES", "crypto_aead_chacha20poly1305_IETF_KEYBYTES", "crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX", "crypto_aead_chacha20poly1305_IETF_NPUBBYTES", "crypto_aead_chacha20poly1305_IETF_NSECBYTES", "crypto_aead_chacha20poly1305_KEYBYTES", "crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX", "crypto_aead_chacha20poly1305_NPUBBYTES", "crypto_aead_chacha20poly1305_NSECBYTES", "crypto_aead_chacha20poly1305_ietf_ABYTES", "crypto_aead_chacha20poly1305_ietf_KEYBYTES", "crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX", "crypto_aead_chacha20poly1305_ietf_NPUBBYTES", "crypto_aead_chacha20poly1305_ietf_NSECBYTES", "crypto_aead_xchacha20poly1305_IETF_ABYTES", "crypto_aead_xchacha20poly1305_IETF_KEYBYTES", "crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX", "crypto_aead_xchacha20poly1305_IETF_NPUBBYTES", "crypto_aead_xchacha20poly1305_IETF_NSECBYTES", "crypto_aead_xchacha20poly1305_ietf_ABYTES", "crypto_aead_xchacha20poly1305_ietf_KEYBYTES", "crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX", "crypto_aead_xchacha20poly1305_ietf_NPUBBYTES", "crypto_aead_xchacha20poly1305_ietf_NSECBYTES", "crypto_auth_BYTES", "crypto_auth_KEYBYTES", "crypto_auth_hmacsha256_BYTES", "crypto_auth_hmacsha256_KEYBYTES", "crypto_auth_hmacsha512256_BYTES", "crypto_auth_hmacsha512256_KEYBYTES", "crypto_auth_hmacsha512_BYTES", "crypto_auth_hmacsha512_KEYBYTES", "crypto_box_BEFORENMBYTES", "crypto_box_MACBYTES", "crypto_box_MESSAGEBYTES_MAX", "crypto_box_NONCEBYTES", "crypto_box_PUBLICKEYBYTES", "crypto_box_SEALBYTES", "crypto_box_SECRETKEYBYTES", "crypto_box_SEEDBYTES", "crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES", "crypto_box_curve25519xchacha20poly1305_MACBYTES", "crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX", "crypto_box_curve25519xchacha20poly1305_NONCEBYTES", "crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES", "crypto_box_curve25519xchacha20poly1305_SEALBYTES", "crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES", "crypto_box_curve25519xchacha20poly1305_SEEDBYTES", "crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES", "crypto_box_curve25519xsalsa20poly1305_MACBYTES", "crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX", "crypto_box_curve25519xsalsa20poly1305_NONCEBYTES", "crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES", "crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES", "crypto_box_curve25519xsalsa20poly1305_SEEDBYTES", "crypto_core_ed25519_BYTES", "crypto_core_ed25519_HASHBYTES", "crypto_core_ed25519_NONREDUCEDSCALARBYTES", "crypto_core_ed25519_SCALARBYTES", "crypto_core_ed25519_UNIFORMBYTES", "crypto_core_hchacha20_CONSTBYTES", "crypto_core_hchacha20_INPUTBYTES", "crypto_core_hchacha20_KEYBYTES", "crypto_core_hchacha20_OUTPUTBYTES", "crypto_core_hsalsa20_CONSTBYTES", "crypto_core_hsalsa20_INPUTBYTES", "crypto_core_hsalsa20_KEYBYTES", "crypto_core_hsalsa20_OUTPUTBYTES", "crypto_core_ristretto255_BYTES", "crypto_core_ristretto255_HASHBYTES", "crypto_core_ristretto255_NONREDUCEDSCALARBYTES", "crypto_core_ristretto255_SCALARBYTES", "crypto_core_salsa2012_CONSTBYTES", "crypto_core_salsa2012_INPUTBYTES", "crypto_core_salsa2012_KEYBYTES", "crypto_core_salsa2012_OUTPUTBYTES", "crypto_core_salsa20_CONSTBYTES", "crypto_core_salsa20_INPUTBYTES", "crypto_core_salsa20_KEYBYTES", "crypto_core_salsa20_OUTPUTBYTES", "crypto_generichash_BYTES", "crypto_generichash_BYTES_MAX", "crypto_generichash_BYTES_MIN", "crypto_generichash_KEYBYTES", "crypto_generichash_KEYBYTES_MAX", "crypto_generichash_KEYBYTES_MIN", "crypto_generichash_blake2b_BYTES", "crypto_generichash_blake2b_BYTES_MAX", "crypto_generichash_blake2b_BYTES_MIN", "crypto_generichash_blake2b_KEYBYTES", "crypto_generichash_blake2b_KEYBYTES_MAX", "crypto_generichash_blake2b_KEYBYTES_MIN", "crypto_generichash_blake2b_PERSONALBYTES", "crypto_generichash_blake2b_SALTBYTES", "crypto_hash_BYTES", "crypto_hash_sha256_BYTES", "crypto_hash_sha512_BYTES", "crypto_kdf_BYTES_MAX", "crypto_kdf_BYTES_MIN", "crypto_kdf_CONTEXTBYTES", "crypto_kdf_KEYBYTES", "crypto_kdf_blake2b_BYTES_MAX", "crypto_kdf_blake2b_BYTES_MIN", "crypto_kdf_blake2b_CONTEXTBYTES", "crypto_kdf_blake2b_KEYBYTES", "crypto_kx_PUBLICKEYBYTES", "crypto_kx_SECRETKEYBYTES", "crypto_kx_SEEDBYTES", "crypto_kx_SESSIONKEYBYTES", "crypto_onetimeauth_BYTES", "crypto_onetimeauth_KEYBYTES", "crypto_onetimeauth_poly1305_BYTES", "crypto_onetimeauth_poly1305_KEYBYTES", "crypto_pwhash_ALG_ARGON2I13", "crypto_pwhash_ALG_ARGON2ID13", "crypto_pwhash_ALG_DEFAULT", "crypto_pwhash_BYTES_MAX", "crypto_pwhash_BYTES_MIN", "crypto_pwhash_MEMLIMIT_INTERACTIVE", "crypto_pwhash_MEMLIMIT_MAX", "crypto_pwhash_MEMLIMIT_MIN", "crypto_pwhash_MEMLIMIT_MODERATE", "crypto_pwhash_MEMLIMIT_SENSITIVE", "crypto_pwhash_OPSLIMIT_INTERACTIVE", "crypto_pwhash_OPSLIMIT_MAX", "crypto_pwhash_OPSLIMIT_MIN", "crypto_pwhash_OPSLIMIT_MODERATE", "crypto_pwhash_OPSLIMIT_SENSITIVE", "crypto_pwhash_PASSWD_MAX", "crypto_pwhash_PASSWD_MIN", "crypto_pwhash_SALTBYTES", "crypto_pwhash_STRBYTES", "crypto_pwhash_argon2i_BYTES_MAX", "crypto_pwhash_argon2i_BYTES_MIN", "crypto_pwhash_argon2i_SALTBYTES", "crypto_pwhash_argon2i_STRBYTES", "crypto_pwhash_argon2id_BYTES_MAX", "crypto_pwhash_argon2id_BYTES_MIN", "crypto_pwhash_argon2id_SALTBYTES", "crypto_pwhash_argon2id_STRBYTES", "crypto_pwhash_scryptsalsa208sha256_BYTES_MAX", "crypto_pwhash_scryptsalsa208sha256_BYTES_MIN", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE", "crypto_pwhash_scryptsalsa208sha256_SALTBYTES", "crypto_pwhash_scryptsalsa208sha256_STRBYTES", "crypto_scalarmult_BYTES", "crypto_scalarmult_SCALARBYTES", "crypto_scalarmult_curve25519_BYTES", "crypto_scalarmult_curve25519_SCALARBYTES", "crypto_scalarmult_ed25519_BYTES", "crypto_scalarmult_ed25519_SCALARBYTES", "crypto_scalarmult_ristretto255_BYTES", "crypto_scalarmult_ristretto255_SCALARBYTES", "crypto_secretbox_KEYBYTES", "crypto_secretbox_MACBYTES", "crypto_secretbox_MESSAGEBYTES_MAX", "crypto_secretbox_NONCEBYTES", "crypto_secretbox_xchacha20poly1305_KEYBYTES", "crypto_secretbox_xchacha20poly1305_MACBYTES", "crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX", "crypto_secretbox_xchacha20poly1305_NONCEBYTES", "crypto_secretbox_xsalsa20poly1305_KEYBYTES", "crypto_secretbox_xsalsa20poly1305_MACBYTES", "crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX", "crypto_secretbox_xsalsa20poly1305_NONCEBYTES", "crypto_secretstream_xchacha20poly1305_ABYTES", "crypto_secretstream_xchacha20poly1305_HEADERBYTES", "crypto_secretstream_xchacha20poly1305_KEYBYTES", "crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX", "crypto_secretstream_xchacha20poly1305_TAG_FINAL", "crypto_secretstream_xchacha20poly1305_TAG_MESSAGE", "crypto_secretstream_xchacha20poly1305_TAG_PUSH", "crypto_secretstream_xchacha20poly1305_TAG_REKEY", "crypto_shorthash_BYTES", "crypto_shorthash_KEYBYTES", "crypto_shorthash_siphash24_BYTES", "crypto_shorthash_siphash24_KEYBYTES", "crypto_shorthash_siphashx24_BYTES", "crypto_shorthash_siphashx24_KEYBYTES", "crypto_sign_BYTES", "crypto_sign_MESSAGEBYTES_MAX", "crypto_sign_PUBLICKEYBYTES", "crypto_sign_SECRETKEYBYTES", "crypto_sign_SEEDBYTES", "crypto_sign_ed25519_BYTES", "crypto_sign_ed25519_MESSAGEBYTES_MAX", "crypto_sign_ed25519_PUBLICKEYBYTES", "crypto_sign_ed25519_SECRETKEYBYTES", "crypto_sign_ed25519_SEEDBYTES", "crypto_stream_KEYBYTES", "crypto_stream_MESSAGEBYTES_MAX", "crypto_stream_NONCEBYTES", "crypto_stream_chacha20_IETF_KEYBYTES", "crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX", "crypto_stream_chacha20_IETF_NONCEBYTES", "crypto_stream_chacha20_KEYBYTES", "crypto_stream_chacha20_MESSAGEBYTES_MAX", "crypto_stream_chacha20_NONCEBYTES", "crypto_stream_chacha20_ietf_KEYBYTES", "crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX", "crypto_stream_chacha20_ietf_NONCEBYTES", "crypto_stream_salsa2012_KEYBYTES", "crypto_stream_salsa2012_MESSAGEBYTES_MAX", "crypto_stream_salsa2012_NONCEBYTES", "crypto_stream_salsa208_KEYBYTES", "crypto_stream_salsa208_MESSAGEBYTES_MAX", "crypto_stream_salsa208_NONCEBYTES", "crypto_stream_salsa20_KEYBYTES", "crypto_stream_salsa20_MESSAGEBYTES_MAX", "crypto_stream_salsa20_NONCEBYTES", "crypto_stream_xchacha20_KEYBYTES", "crypto_stream_xchacha20_MESSAGEBYTES_MAX", "crypto_stream_xchacha20_NONCEBYTES", "crypto_stream_xsalsa20_KEYBYTES", "crypto_stream_xsalsa20_MESSAGEBYTES_MAX", "crypto_stream_xsalsa20_NONCEBYTES", "crypto_verify_16_BYTES", "crypto_verify_32_BYTES", "crypto_verify_64_BYTES"];
|
|
14
|
+
for (p = 0; p < i.length; p++)
|
|
15
|
+
typeof (v = c["_" + i[p].toLowerCase()]) == "function" && (K[i[p]] = v());
|
|
16
|
+
var u = ["SODIUM_VERSION_STRING", "crypto_pwhash_STRPREFIX", "crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];
|
|
17
|
+
for (p = 0; p < u.length; p++) {
|
|
18
|
+
var v;
|
|
19
|
+
typeof (v = c["_" + u[p].toLowerCase()]) == "function" && (K[u[p]] = c.UTF8ToString(v()));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
c = R;
|
|
23
|
+
try {
|
|
24
|
+
t();
|
|
25
|
+
var r = new Uint8Array([98, 97, 108, 108, 115]), a = K.randombytes_buf(K.crypto_secretbox_NONCEBYTES), e = K.randombytes_buf(K.crypto_secretbox_KEYBYTES), _ = K.crypto_secretbox_easy(r, a, e), s = K.crypto_secretbox_open_easy(_, a, e);
|
|
26
|
+
if (K.memcmp(r, s))
|
|
27
|
+
return;
|
|
28
|
+
} catch (n) {
|
|
29
|
+
if (c.useBackupModule == null)
|
|
30
|
+
throw new Error("Both wasm and asm failed to load" + n);
|
|
31
|
+
}
|
|
32
|
+
c.useBackupModule(), t();
|
|
33
|
+
});
|
|
34
|
+
function O(t) {
|
|
35
|
+
if (typeof TextEncoder == "function")
|
|
36
|
+
return new TextEncoder().encode(t);
|
|
37
|
+
t = unescape(encodeURIComponent(t));
|
|
38
|
+
for (var r = new Uint8Array(t.length), a = 0, e = t.length; a < e; a++)
|
|
39
|
+
r[a] = t.charCodeAt(a);
|
|
40
|
+
return r;
|
|
41
|
+
}
|
|
42
|
+
function C(t) {
|
|
43
|
+
if (typeof TextDecoder == "function")
|
|
44
|
+
return new TextDecoder("utf-8", { fatal: !0 }).decode(t);
|
|
45
|
+
var r = 8192, a = Math.ceil(t.length / r);
|
|
46
|
+
if (a <= 1)
|
|
47
|
+
try {
|
|
48
|
+
return decodeURIComponent(escape(String.fromCharCode.apply(null, t)));
|
|
49
|
+
} catch {
|
|
50
|
+
throw new TypeError("The encoded data was not valid.");
|
|
51
|
+
}
|
|
52
|
+
for (var e = "", _ = 0, s = 0; s < a; s++) {
|
|
53
|
+
var n = Array.prototype.slice.call(t, s * r + _, (s + 1) * r + _);
|
|
54
|
+
if (n.length != 0) {
|
|
55
|
+
var o, p = n.length, i = 0;
|
|
56
|
+
do {
|
|
57
|
+
var u = n[--p];
|
|
58
|
+
u >= 240 ? (i = 4, o = !0) : u >= 224 ? (i = 3, o = !0) : u >= 192 ? (i = 2, o = !0) : u < 128 && (i = 1, o = !0);
|
|
59
|
+
} while (!o);
|
|
60
|
+
for (var v = i - (n.length - p), b = 0; b < v; b++)
|
|
61
|
+
_--, n.pop();
|
|
62
|
+
e += C(n);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return e;
|
|
66
|
+
}
|
|
67
|
+
function D(t) {
|
|
68
|
+
t = y(null, t, "input");
|
|
69
|
+
for (var r, a, e, _ = "", s = 0; s < t.length; s++)
|
|
70
|
+
e = 87 + (a = 15 & t[s]) + (a - 10 >> 8 & -39) << 8 | 87 + (r = t[s] >>> 4) + (r - 10 >> 8 & -39), _ += String.fromCharCode(255 & e) + String.fromCharCode(e >>> 8);
|
|
71
|
+
return _;
|
|
72
|
+
}
|
|
73
|
+
var U = { ORIGINAL: 1, ORIGINAL_NO_PADDING: 3, URLSAFE: 5, URLSAFE_NO_PADDING: 7 };
|
|
74
|
+
function F(t) {
|
|
75
|
+
if (t == null)
|
|
76
|
+
return U.URLSAFE_NO_PADDING;
|
|
77
|
+
if (t !== U.ORIGINAL && t !== U.ORIGINAL_NO_PADDING && t !== U.URLSAFE && t != U.URLSAFE_NO_PADDING)
|
|
78
|
+
throw new Error("unsupported base64 variant");
|
|
79
|
+
return t;
|
|
80
|
+
}
|
|
81
|
+
function V(t, r) {
|
|
82
|
+
r = F(r), t = y(e, t, "input");
|
|
83
|
+
var a, e = [], _ = 0 | Math.floor(t.length / 3), s = t.length - 3 * _, n = 4 * _ + (s !== 0 ? 2 & r ? 2 + (s >>> 1) : 4 : 0), o = new g(n + 1), p = h(t);
|
|
84
|
+
return e.push(p), e.push(o.address), c._sodium_bin2base64(o.address, o.length, p, t.length, r) === 0 && E(e, "conversion failed"), o.length = n, a = C(o.to_Uint8Array()), d(e), a;
|
|
85
|
+
}
|
|
86
|
+
function m(t, r) {
|
|
87
|
+
var a = r || j;
|
|
88
|
+
if (!q(a))
|
|
89
|
+
throw new Error(a + " output format is not available");
|
|
90
|
+
if (t instanceof g) {
|
|
91
|
+
if (a === "uint8array")
|
|
92
|
+
return t.to_Uint8Array();
|
|
93
|
+
if (a === "text")
|
|
94
|
+
return C(t.to_Uint8Array());
|
|
95
|
+
if (a === "hex")
|
|
96
|
+
return D(t.to_Uint8Array());
|
|
97
|
+
if (a === "base64")
|
|
98
|
+
return V(t.to_Uint8Array(), U.URLSAFE_NO_PADDING);
|
|
99
|
+
throw new Error('What is output format "' + a + '"?');
|
|
100
|
+
}
|
|
101
|
+
if (typeof t == "object") {
|
|
102
|
+
for (var e = Object.keys(t), _ = {}, s = 0; s < e.length; s++)
|
|
103
|
+
_[e[s]] = m(t[e[s]], a);
|
|
104
|
+
return _;
|
|
105
|
+
}
|
|
106
|
+
if (typeof t == "string")
|
|
107
|
+
return t;
|
|
108
|
+
throw new TypeError("Cannot format output");
|
|
109
|
+
}
|
|
110
|
+
function q(t) {
|
|
111
|
+
for (var r = ["uint8array", "text", "hex", "base64"], a = 0; a < r.length; a++)
|
|
112
|
+
if (r[a] === t)
|
|
113
|
+
return !0;
|
|
114
|
+
return !1;
|
|
115
|
+
}
|
|
116
|
+
function f(t) {
|
|
117
|
+
if (t) {
|
|
118
|
+
if (typeof t != "string")
|
|
119
|
+
throw new TypeError("When defined, the output format must be a string");
|
|
120
|
+
if (!q(t))
|
|
121
|
+
throw new Error(t + " is not a supported output format");
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function g(t) {
|
|
125
|
+
this.length = t, this.address = L(t);
|
|
126
|
+
}
|
|
127
|
+
function h(t) {
|
|
128
|
+
var r = L(t.length);
|
|
129
|
+
return c.HEAPU8.set(t, r), r;
|
|
130
|
+
}
|
|
131
|
+
function L(t) {
|
|
132
|
+
var r = c._malloc(t);
|
|
133
|
+
if (r === 0)
|
|
134
|
+
throw { message: "_malloc() failed", length: t };
|
|
135
|
+
return r;
|
|
136
|
+
}
|
|
137
|
+
function d(t) {
|
|
138
|
+
if (t)
|
|
139
|
+
for (var r = 0; r < t.length; r++)
|
|
140
|
+
a = t[r], c._free(a);
|
|
141
|
+
var a;
|
|
142
|
+
}
|
|
143
|
+
function E(t, r) {
|
|
144
|
+
throw d(t), new Error(r);
|
|
145
|
+
}
|
|
146
|
+
function l(t, r) {
|
|
147
|
+
throw d(t), new TypeError(r);
|
|
148
|
+
}
|
|
149
|
+
function B(t, r, a) {
|
|
150
|
+
r == null && l(t, a + " cannot be null or undefined");
|
|
151
|
+
}
|
|
152
|
+
function y(t, r, a) {
|
|
153
|
+
return B(t, r, a), r instanceof Uint8Array ? r : typeof r == "string" ? O(r) : void l(t, "unsupported input type for " + a);
|
|
154
|
+
}
|
|
155
|
+
function W(t, r, a, e, _, s) {
|
|
156
|
+
var n = [];
|
|
157
|
+
f(s);
|
|
158
|
+
var o = null;
|
|
159
|
+
t != null && (o = h(t = y(n, t, "secret_nonce")), t.length, n.push(o)), r = y(n, r, "ciphertext");
|
|
160
|
+
var p, i = c._crypto_aead_aegis128l_abytes(), u = r.length;
|
|
161
|
+
u < i && l(n, "ciphertext is too short"), p = h(r), n.push(p);
|
|
162
|
+
var v = null, b = 0;
|
|
163
|
+
a != null && (v = h(a = y(n, a, "additional_data")), b = a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
164
|
+
var x, k = 0 | c._crypto_aead_aegis128l_npubbytes();
|
|
165
|
+
e.length !== k && l(n, "invalid public_nonce length"), x = h(e), n.push(x), _ = y(n, _, "key");
|
|
166
|
+
var S, w = 0 | c._crypto_aead_aegis128l_keybytes();
|
|
167
|
+
_.length !== w && l(n, "invalid key length"), S = h(_), n.push(S);
|
|
168
|
+
var T = new g(u - c._crypto_aead_aegis128l_abytes() | 0), Y = T.address;
|
|
169
|
+
if (n.push(Y), c._crypto_aead_aegis128l_decrypt(Y, null, o, p, u, 0, v, b, 0, x, S) === 0) {
|
|
170
|
+
var A = m(T, s);
|
|
171
|
+
return d(n), A;
|
|
172
|
+
}
|
|
173
|
+
E(n, "ciphertext cannot be decrypted using that key");
|
|
174
|
+
}
|
|
175
|
+
function J(t, r, a, e, _, s, n) {
|
|
176
|
+
var o = [];
|
|
177
|
+
f(n);
|
|
178
|
+
var p = null;
|
|
179
|
+
t != null && (p = h(t = y(o, t, "secret_nonce")), t.length, o.push(p));
|
|
180
|
+
var i = h(r = y(o, r, "ciphertext")), u = r.length;
|
|
181
|
+
o.push(i), a = y(o, a, "mac");
|
|
182
|
+
var v, b = 0 | c._crypto_box_macbytes();
|
|
183
|
+
a.length !== b && l(o, "invalid mac length"), v = h(a), o.push(v);
|
|
184
|
+
var x = null, k = 0;
|
|
185
|
+
e != null && (x = h(e = y(o, e, "additional_data")), k = e.length, o.push(x)), _ = y(o, _, "public_nonce");
|
|
186
|
+
var S, w = 0 | c._crypto_aead_aegis128l_npubbytes();
|
|
187
|
+
_.length !== w && l(o, "invalid public_nonce length"), S = h(_), o.push(S), s = y(o, s, "key");
|
|
188
|
+
var T, Y = 0 | c._crypto_aead_aegis128l_keybytes();
|
|
189
|
+
s.length !== Y && l(o, "invalid key length"), T = h(s), o.push(T);
|
|
190
|
+
var A = new g(0 | u), M = A.address;
|
|
191
|
+
if (o.push(M), c._crypto_aead_aegis128l_decrypt_detached(M, p, i, u, 0, v, x, k, 0, S, T) === 0) {
|
|
192
|
+
var I = m(A, n);
|
|
193
|
+
return d(o), I;
|
|
194
|
+
}
|
|
195
|
+
E(o, "ciphertext cannot be decrypted using that key");
|
|
196
|
+
}
|
|
197
|
+
function Q(t, r, a, e, _, s) {
|
|
198
|
+
var n = [];
|
|
199
|
+
f(s);
|
|
200
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
201
|
+
n.push(o);
|
|
202
|
+
var i = null, u = 0;
|
|
203
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
204
|
+
var v = null;
|
|
205
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
206
|
+
var b, x = 0 | c._crypto_aead_aegis128l_npubbytes();
|
|
207
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
208
|
+
var k, S = 0 | c._crypto_aead_aegis128l_keybytes();
|
|
209
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
210
|
+
var w = new g(p + c._crypto_aead_aegis128l_abytes() | 0), T = w.address;
|
|
211
|
+
if (n.push(T), c._crypto_aead_aegis128l_encrypt(T, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
212
|
+
var Y = m(w, s);
|
|
213
|
+
return d(n), Y;
|
|
214
|
+
}
|
|
215
|
+
E(n, "invalid usage");
|
|
216
|
+
}
|
|
217
|
+
function Z(t, r, a, e, _, s) {
|
|
218
|
+
var n = [];
|
|
219
|
+
f(s);
|
|
220
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
221
|
+
n.push(o);
|
|
222
|
+
var i = null, u = 0;
|
|
223
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
224
|
+
var v = null;
|
|
225
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
226
|
+
var b, x = 0 | c._crypto_aead_aegis128l_npubbytes();
|
|
227
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
228
|
+
var k, S = 0 | c._crypto_aead_aegis128l_keybytes();
|
|
229
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
230
|
+
var w = new g(0 | p), T = w.address;
|
|
231
|
+
n.push(T);
|
|
232
|
+
var Y = new g(0 | c._crypto_aead_aegis128l_abytes()), A = Y.address;
|
|
233
|
+
if (n.push(A), c._crypto_aead_aegis128l_encrypt_detached(T, A, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
234
|
+
var M = m({ ciphertext: w, mac: Y }, s);
|
|
235
|
+
return d(n), M;
|
|
236
|
+
}
|
|
237
|
+
E(n, "invalid usage");
|
|
238
|
+
}
|
|
239
|
+
function $(t) {
|
|
240
|
+
var r = [];
|
|
241
|
+
f(t);
|
|
242
|
+
var a = new g(0 | c._crypto_aead_aegis128l_keybytes()), e = a.address;
|
|
243
|
+
r.push(e), c._crypto_aead_aegis128l_keygen(e);
|
|
244
|
+
var _ = m(a, t);
|
|
245
|
+
return d(r), _;
|
|
246
|
+
}
|
|
247
|
+
function ee(t, r, a, e, _, s) {
|
|
248
|
+
var n = [];
|
|
249
|
+
f(s);
|
|
250
|
+
var o = null;
|
|
251
|
+
t != null && (o = h(t = y(n, t, "secret_nonce")), t.length, n.push(o)), r = y(n, r, "ciphertext");
|
|
252
|
+
var p, i = c._crypto_aead_aegis256_abytes(), u = r.length;
|
|
253
|
+
u < i && l(n, "ciphertext is too short"), p = h(r), n.push(p);
|
|
254
|
+
var v = null, b = 0;
|
|
255
|
+
a != null && (v = h(a = y(n, a, "additional_data")), b = a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
256
|
+
var x, k = 0 | c._crypto_aead_aegis256_npubbytes();
|
|
257
|
+
e.length !== k && l(n, "invalid public_nonce length"), x = h(e), n.push(x), _ = y(n, _, "key");
|
|
258
|
+
var S, w = 0 | c._crypto_aead_aegis256_keybytes();
|
|
259
|
+
_.length !== w && l(n, "invalid key length"), S = h(_), n.push(S);
|
|
260
|
+
var T = new g(u - c._crypto_aead_aegis256_abytes() | 0), Y = T.address;
|
|
261
|
+
if (n.push(Y), c._crypto_aead_aegis256_decrypt(Y, null, o, p, u, 0, v, b, 0, x, S) === 0) {
|
|
262
|
+
var A = m(T, s);
|
|
263
|
+
return d(n), A;
|
|
264
|
+
}
|
|
265
|
+
E(n, "ciphertext cannot be decrypted using that key");
|
|
266
|
+
}
|
|
267
|
+
function te(t, r, a, e, _, s, n) {
|
|
268
|
+
var o = [];
|
|
269
|
+
f(n);
|
|
270
|
+
var p = null;
|
|
271
|
+
t != null && (p = h(t = y(o, t, "secret_nonce")), t.length, o.push(p));
|
|
272
|
+
var i = h(r = y(o, r, "ciphertext")), u = r.length;
|
|
273
|
+
o.push(i), a = y(o, a, "mac");
|
|
274
|
+
var v, b = 0 | c._crypto_box_macbytes();
|
|
275
|
+
a.length !== b && l(o, "invalid mac length"), v = h(a), o.push(v);
|
|
276
|
+
var x = null, k = 0;
|
|
277
|
+
e != null && (x = h(e = y(o, e, "additional_data")), k = e.length, o.push(x)), _ = y(o, _, "public_nonce");
|
|
278
|
+
var S, w = 0 | c._crypto_aead_aegis256_npubbytes();
|
|
279
|
+
_.length !== w && l(o, "invalid public_nonce length"), S = h(_), o.push(S), s = y(o, s, "key");
|
|
280
|
+
var T, Y = 0 | c._crypto_aead_aegis256_keybytes();
|
|
281
|
+
s.length !== Y && l(o, "invalid key length"), T = h(s), o.push(T);
|
|
282
|
+
var A = new g(0 | u), M = A.address;
|
|
283
|
+
if (o.push(M), c._crypto_aead_aegis256_decrypt_detached(M, p, i, u, 0, v, x, k, 0, S, T) === 0) {
|
|
284
|
+
var I = m(A, n);
|
|
285
|
+
return d(o), I;
|
|
286
|
+
}
|
|
287
|
+
E(o, "ciphertext cannot be decrypted using that key");
|
|
288
|
+
}
|
|
289
|
+
function ae(t, r, a, e, _, s) {
|
|
290
|
+
var n = [];
|
|
291
|
+
f(s);
|
|
292
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
293
|
+
n.push(o);
|
|
294
|
+
var i = null, u = 0;
|
|
295
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
296
|
+
var v = null;
|
|
297
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
298
|
+
var b, x = 0 | c._crypto_aead_aegis256_npubbytes();
|
|
299
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
300
|
+
var k, S = 0 | c._crypto_aead_aegis256_keybytes();
|
|
301
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
302
|
+
var w = new g(p + c._crypto_aead_aegis256_abytes() | 0), T = w.address;
|
|
303
|
+
if (n.push(T), c._crypto_aead_aegis256_encrypt(T, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
304
|
+
var Y = m(w, s);
|
|
305
|
+
return d(n), Y;
|
|
306
|
+
}
|
|
307
|
+
E(n, "invalid usage");
|
|
308
|
+
}
|
|
309
|
+
function re(t, r, a, e, _, s) {
|
|
310
|
+
var n = [];
|
|
311
|
+
f(s);
|
|
312
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
313
|
+
n.push(o);
|
|
314
|
+
var i = null, u = 0;
|
|
315
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
316
|
+
var v = null;
|
|
317
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
318
|
+
var b, x = 0 | c._crypto_aead_aegis256_npubbytes();
|
|
319
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
320
|
+
var k, S = 0 | c._crypto_aead_aegis256_keybytes();
|
|
321
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
322
|
+
var w = new g(0 | p), T = w.address;
|
|
323
|
+
n.push(T);
|
|
324
|
+
var Y = new g(0 | c._crypto_aead_aegis256_abytes()), A = Y.address;
|
|
325
|
+
if (n.push(A), c._crypto_aead_aegis256_encrypt_detached(T, A, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
326
|
+
var M = m({ ciphertext: w, mac: Y }, s);
|
|
327
|
+
return d(n), M;
|
|
328
|
+
}
|
|
329
|
+
E(n, "invalid usage");
|
|
330
|
+
}
|
|
331
|
+
function _e(t) {
|
|
332
|
+
var r = [];
|
|
333
|
+
f(t);
|
|
334
|
+
var a = new g(0 | c._crypto_aead_aegis256_keybytes()), e = a.address;
|
|
335
|
+
r.push(e), c._crypto_aead_aegis256_keygen(e);
|
|
336
|
+
var _ = m(a, t);
|
|
337
|
+
return d(r), _;
|
|
338
|
+
}
|
|
339
|
+
function ne(t, r, a, e, _, s) {
|
|
340
|
+
var n = [];
|
|
341
|
+
f(s);
|
|
342
|
+
var o = null;
|
|
343
|
+
t != null && (o = h(t = y(n, t, "secret_nonce")), t.length, n.push(o)), r = y(n, r, "ciphertext");
|
|
344
|
+
var p, i = c._crypto_aead_chacha20poly1305_abytes(), u = r.length;
|
|
345
|
+
u < i && l(n, "ciphertext is too short"), p = h(r), n.push(p);
|
|
346
|
+
var v = null, b = 0;
|
|
347
|
+
a != null && (v = h(a = y(n, a, "additional_data")), b = a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
348
|
+
var x, k = 0 | c._crypto_aead_chacha20poly1305_npubbytes();
|
|
349
|
+
e.length !== k && l(n, "invalid public_nonce length"), x = h(e), n.push(x), _ = y(n, _, "key");
|
|
350
|
+
var S, w = 0 | c._crypto_aead_chacha20poly1305_keybytes();
|
|
351
|
+
_.length !== w && l(n, "invalid key length"), S = h(_), n.push(S);
|
|
352
|
+
var T = new g(u - c._crypto_aead_chacha20poly1305_abytes() | 0), Y = T.address;
|
|
353
|
+
if (n.push(Y), c._crypto_aead_chacha20poly1305_decrypt(Y, null, o, p, u, 0, v, b, 0, x, S) === 0) {
|
|
354
|
+
var A = m(T, s);
|
|
355
|
+
return d(n), A;
|
|
356
|
+
}
|
|
357
|
+
E(n, "ciphertext cannot be decrypted using that key");
|
|
358
|
+
}
|
|
359
|
+
function se(t, r, a, e, _, s, n) {
|
|
360
|
+
var o = [];
|
|
361
|
+
f(n);
|
|
362
|
+
var p = null;
|
|
363
|
+
t != null && (p = h(t = y(o, t, "secret_nonce")), t.length, o.push(p));
|
|
364
|
+
var i = h(r = y(o, r, "ciphertext")), u = r.length;
|
|
365
|
+
o.push(i), a = y(o, a, "mac");
|
|
366
|
+
var v, b = 0 | c._crypto_box_macbytes();
|
|
367
|
+
a.length !== b && l(o, "invalid mac length"), v = h(a), o.push(v);
|
|
368
|
+
var x = null, k = 0;
|
|
369
|
+
e != null && (x = h(e = y(o, e, "additional_data")), k = e.length, o.push(x)), _ = y(o, _, "public_nonce");
|
|
370
|
+
var S, w = 0 | c._crypto_aead_chacha20poly1305_npubbytes();
|
|
371
|
+
_.length !== w && l(o, "invalid public_nonce length"), S = h(_), o.push(S), s = y(o, s, "key");
|
|
372
|
+
var T, Y = 0 | c._crypto_aead_chacha20poly1305_keybytes();
|
|
373
|
+
s.length !== Y && l(o, "invalid key length"), T = h(s), o.push(T);
|
|
374
|
+
var A = new g(0 | u), M = A.address;
|
|
375
|
+
if (o.push(M), c._crypto_aead_chacha20poly1305_decrypt_detached(M, p, i, u, 0, v, x, k, 0, S, T) === 0) {
|
|
376
|
+
var I = m(A, n);
|
|
377
|
+
return d(o), I;
|
|
378
|
+
}
|
|
379
|
+
E(o, "ciphertext cannot be decrypted using that key");
|
|
380
|
+
}
|
|
381
|
+
function ce(t, r, a, e, _, s) {
|
|
382
|
+
var n = [];
|
|
383
|
+
f(s);
|
|
384
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
385
|
+
n.push(o);
|
|
386
|
+
var i = null, u = 0;
|
|
387
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
388
|
+
var v = null;
|
|
389
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
390
|
+
var b, x = 0 | c._crypto_aead_chacha20poly1305_npubbytes();
|
|
391
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
392
|
+
var k, S = 0 | c._crypto_aead_chacha20poly1305_keybytes();
|
|
393
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
394
|
+
var w = new g(p + c._crypto_aead_chacha20poly1305_abytes() | 0), T = w.address;
|
|
395
|
+
if (n.push(T), c._crypto_aead_chacha20poly1305_encrypt(T, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
396
|
+
var Y = m(w, s);
|
|
397
|
+
return d(n), Y;
|
|
398
|
+
}
|
|
399
|
+
E(n, "invalid usage");
|
|
400
|
+
}
|
|
401
|
+
function oe(t, r, a, e, _, s) {
|
|
402
|
+
var n = [];
|
|
403
|
+
f(s);
|
|
404
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
405
|
+
n.push(o);
|
|
406
|
+
var i = null, u = 0;
|
|
407
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
408
|
+
var v = null;
|
|
409
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
410
|
+
var b, x = 0 | c._crypto_aead_chacha20poly1305_npubbytes();
|
|
411
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
412
|
+
var k, S = 0 | c._crypto_aead_chacha20poly1305_keybytes();
|
|
413
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
414
|
+
var w = new g(0 | p), T = w.address;
|
|
415
|
+
n.push(T);
|
|
416
|
+
var Y = new g(0 | c._crypto_aead_chacha20poly1305_abytes()), A = Y.address;
|
|
417
|
+
if (n.push(A), c._crypto_aead_chacha20poly1305_encrypt_detached(T, A, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
418
|
+
var M = m({ ciphertext: w, mac: Y }, s);
|
|
419
|
+
return d(n), M;
|
|
420
|
+
}
|
|
421
|
+
E(n, "invalid usage");
|
|
422
|
+
}
|
|
423
|
+
function he(t, r, a, e, _, s) {
|
|
424
|
+
var n = [];
|
|
425
|
+
f(s);
|
|
426
|
+
var o = null;
|
|
427
|
+
t != null && (o = h(t = y(n, t, "secret_nonce")), t.length, n.push(o)), r = y(n, r, "ciphertext");
|
|
428
|
+
var p, i = c._crypto_aead_chacha20poly1305_ietf_abytes(), u = r.length;
|
|
429
|
+
u < i && l(n, "ciphertext is too short"), p = h(r), n.push(p);
|
|
430
|
+
var v = null, b = 0;
|
|
431
|
+
a != null && (v = h(a = y(n, a, "additional_data")), b = a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
432
|
+
var x, k = 0 | c._crypto_aead_chacha20poly1305_ietf_npubbytes();
|
|
433
|
+
e.length !== k && l(n, "invalid public_nonce length"), x = h(e), n.push(x), _ = y(n, _, "key");
|
|
434
|
+
var S, w = 0 | c._crypto_aead_chacha20poly1305_ietf_keybytes();
|
|
435
|
+
_.length !== w && l(n, "invalid key length"), S = h(_), n.push(S);
|
|
436
|
+
var T = new g(u - c._crypto_aead_chacha20poly1305_ietf_abytes() | 0), Y = T.address;
|
|
437
|
+
if (n.push(Y), c._crypto_aead_chacha20poly1305_ietf_decrypt(Y, null, o, p, u, 0, v, b, 0, x, S) === 0) {
|
|
438
|
+
var A = m(T, s);
|
|
439
|
+
return d(n), A;
|
|
440
|
+
}
|
|
441
|
+
E(n, "ciphertext cannot be decrypted using that key");
|
|
442
|
+
}
|
|
443
|
+
function pe(t, r, a, e, _, s, n) {
|
|
444
|
+
var o = [];
|
|
445
|
+
f(n);
|
|
446
|
+
var p = null;
|
|
447
|
+
t != null && (p = h(t = y(o, t, "secret_nonce")), t.length, o.push(p));
|
|
448
|
+
var i = h(r = y(o, r, "ciphertext")), u = r.length;
|
|
449
|
+
o.push(i), a = y(o, a, "mac");
|
|
450
|
+
var v, b = 0 | c._crypto_box_macbytes();
|
|
451
|
+
a.length !== b && l(o, "invalid mac length"), v = h(a), o.push(v);
|
|
452
|
+
var x = null, k = 0;
|
|
453
|
+
e != null && (x = h(e = y(o, e, "additional_data")), k = e.length, o.push(x)), _ = y(o, _, "public_nonce");
|
|
454
|
+
var S, w = 0 | c._crypto_aead_chacha20poly1305_ietf_npubbytes();
|
|
455
|
+
_.length !== w && l(o, "invalid public_nonce length"), S = h(_), o.push(S), s = y(o, s, "key");
|
|
456
|
+
var T, Y = 0 | c._crypto_aead_chacha20poly1305_ietf_keybytes();
|
|
457
|
+
s.length !== Y && l(o, "invalid key length"), T = h(s), o.push(T);
|
|
458
|
+
var A = new g(0 | u), M = A.address;
|
|
459
|
+
if (o.push(M), c._crypto_aead_chacha20poly1305_ietf_decrypt_detached(M, p, i, u, 0, v, x, k, 0, S, T) === 0) {
|
|
460
|
+
var I = m(A, n);
|
|
461
|
+
return d(o), I;
|
|
462
|
+
}
|
|
463
|
+
E(o, "ciphertext cannot be decrypted using that key");
|
|
464
|
+
}
|
|
465
|
+
function ye(t, r, a, e, _, s) {
|
|
466
|
+
var n = [];
|
|
467
|
+
f(s);
|
|
468
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
469
|
+
n.push(o);
|
|
470
|
+
var i = null, u = 0;
|
|
471
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
472
|
+
var v = null;
|
|
473
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
474
|
+
var b, x = 0 | c._crypto_aead_chacha20poly1305_ietf_npubbytes();
|
|
475
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
476
|
+
var k, S = 0 | c._crypto_aead_chacha20poly1305_ietf_keybytes();
|
|
477
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
478
|
+
var w = new g(p + c._crypto_aead_chacha20poly1305_ietf_abytes() | 0), T = w.address;
|
|
479
|
+
if (n.push(T), c._crypto_aead_chacha20poly1305_ietf_encrypt(T, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
480
|
+
var Y = m(w, s);
|
|
481
|
+
return d(n), Y;
|
|
482
|
+
}
|
|
483
|
+
E(n, "invalid usage");
|
|
484
|
+
}
|
|
485
|
+
function ie(t, r, a, e, _, s) {
|
|
486
|
+
var n = [];
|
|
487
|
+
f(s);
|
|
488
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
489
|
+
n.push(o);
|
|
490
|
+
var i = null, u = 0;
|
|
491
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
492
|
+
var v = null;
|
|
493
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
494
|
+
var b, x = 0 | c._crypto_aead_chacha20poly1305_ietf_npubbytes();
|
|
495
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
496
|
+
var k, S = 0 | c._crypto_aead_chacha20poly1305_ietf_keybytes();
|
|
497
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
498
|
+
var w = new g(0 | p), T = w.address;
|
|
499
|
+
n.push(T);
|
|
500
|
+
var Y = new g(0 | c._crypto_aead_chacha20poly1305_ietf_abytes()), A = Y.address;
|
|
501
|
+
if (n.push(A), c._crypto_aead_chacha20poly1305_ietf_encrypt_detached(T, A, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
502
|
+
var M = m({ ciphertext: w, mac: Y }, s);
|
|
503
|
+
return d(n), M;
|
|
504
|
+
}
|
|
505
|
+
E(n, "invalid usage");
|
|
506
|
+
}
|
|
507
|
+
function le(t) {
|
|
508
|
+
var r = [];
|
|
509
|
+
f(t);
|
|
510
|
+
var a = new g(0 | c._crypto_aead_chacha20poly1305_ietf_keybytes()), e = a.address;
|
|
511
|
+
r.push(e), c._crypto_aead_chacha20poly1305_ietf_keygen(e);
|
|
512
|
+
var _ = m(a, t);
|
|
513
|
+
return d(r), _;
|
|
514
|
+
}
|
|
515
|
+
function ue(t) {
|
|
516
|
+
var r = [];
|
|
517
|
+
f(t);
|
|
518
|
+
var a = new g(0 | c._crypto_aead_chacha20poly1305_keybytes()), e = a.address;
|
|
519
|
+
r.push(e), c._crypto_aead_chacha20poly1305_keygen(e);
|
|
520
|
+
var _ = m(a, t);
|
|
521
|
+
return d(r), _;
|
|
522
|
+
}
|
|
523
|
+
function ve(t, r, a, e, _, s) {
|
|
524
|
+
var n = [];
|
|
525
|
+
f(s);
|
|
526
|
+
var o = null;
|
|
527
|
+
t != null && (o = h(t = y(n, t, "secret_nonce")), t.length, n.push(o)), r = y(n, r, "ciphertext");
|
|
528
|
+
var p, i = c._crypto_aead_xchacha20poly1305_ietf_abytes(), u = r.length;
|
|
529
|
+
u < i && l(n, "ciphertext is too short"), p = h(r), n.push(p);
|
|
530
|
+
var v = null, b = 0;
|
|
531
|
+
a != null && (v = h(a = y(n, a, "additional_data")), b = a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
532
|
+
var x, k = 0 | c._crypto_aead_xchacha20poly1305_ietf_npubbytes();
|
|
533
|
+
e.length !== k && l(n, "invalid public_nonce length"), x = h(e), n.push(x), _ = y(n, _, "key");
|
|
534
|
+
var S, w = 0 | c._crypto_aead_xchacha20poly1305_ietf_keybytes();
|
|
535
|
+
_.length !== w && l(n, "invalid key length"), S = h(_), n.push(S);
|
|
536
|
+
var T = new g(u - c._crypto_aead_xchacha20poly1305_ietf_abytes() | 0), Y = T.address;
|
|
537
|
+
if (n.push(Y), c._crypto_aead_xchacha20poly1305_ietf_decrypt(Y, null, o, p, u, 0, v, b, 0, x, S) === 0) {
|
|
538
|
+
var A = m(T, s);
|
|
539
|
+
return d(n), A;
|
|
540
|
+
}
|
|
541
|
+
E(n, "ciphertext cannot be decrypted using that key");
|
|
542
|
+
}
|
|
543
|
+
function de(t, r, a, e, _, s, n) {
|
|
544
|
+
var o = [];
|
|
545
|
+
f(n);
|
|
546
|
+
var p = null;
|
|
547
|
+
t != null && (p = h(t = y(o, t, "secret_nonce")), t.length, o.push(p));
|
|
548
|
+
var i = h(r = y(o, r, "ciphertext")), u = r.length;
|
|
549
|
+
o.push(i), a = y(o, a, "mac");
|
|
550
|
+
var v, b = 0 | c._crypto_box_macbytes();
|
|
551
|
+
a.length !== b && l(o, "invalid mac length"), v = h(a), o.push(v);
|
|
552
|
+
var x = null, k = 0;
|
|
553
|
+
e != null && (x = h(e = y(o, e, "additional_data")), k = e.length, o.push(x)), _ = y(o, _, "public_nonce");
|
|
554
|
+
var S, w = 0 | c._crypto_aead_xchacha20poly1305_ietf_npubbytes();
|
|
555
|
+
_.length !== w && l(o, "invalid public_nonce length"), S = h(_), o.push(S), s = y(o, s, "key");
|
|
556
|
+
var T, Y = 0 | c._crypto_aead_xchacha20poly1305_ietf_keybytes();
|
|
557
|
+
s.length !== Y && l(o, "invalid key length"), T = h(s), o.push(T);
|
|
558
|
+
var A = new g(0 | u), M = A.address;
|
|
559
|
+
if (o.push(M), c._crypto_aead_xchacha20poly1305_ietf_decrypt_detached(M, p, i, u, 0, v, x, k, 0, S, T) === 0) {
|
|
560
|
+
var I = m(A, n);
|
|
561
|
+
return d(o), I;
|
|
562
|
+
}
|
|
563
|
+
E(o, "ciphertext cannot be decrypted using that key");
|
|
564
|
+
}
|
|
565
|
+
function ge(t, r, a, e, _, s) {
|
|
566
|
+
var n = [];
|
|
567
|
+
f(s);
|
|
568
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
569
|
+
n.push(o);
|
|
570
|
+
var i = null, u = 0;
|
|
571
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
572
|
+
var v = null;
|
|
573
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
574
|
+
var b, x = 0 | c._crypto_aead_xchacha20poly1305_ietf_npubbytes();
|
|
575
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
576
|
+
var k, S = 0 | c._crypto_aead_xchacha20poly1305_ietf_keybytes();
|
|
577
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
578
|
+
var w = new g(p + c._crypto_aead_xchacha20poly1305_ietf_abytes() | 0), T = w.address;
|
|
579
|
+
if (n.push(T), c._crypto_aead_xchacha20poly1305_ietf_encrypt(T, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
580
|
+
var Y = m(w, s);
|
|
581
|
+
return d(n), Y;
|
|
582
|
+
}
|
|
583
|
+
E(n, "invalid usage");
|
|
584
|
+
}
|
|
585
|
+
function be(t, r, a, e, _, s) {
|
|
586
|
+
var n = [];
|
|
587
|
+
f(s);
|
|
588
|
+
var o = h(t = y(n, t, "message")), p = t.length;
|
|
589
|
+
n.push(o);
|
|
590
|
+
var i = null, u = 0;
|
|
591
|
+
r != null && (i = h(r = y(n, r, "additional_data")), u = r.length, n.push(i));
|
|
592
|
+
var v = null;
|
|
593
|
+
a != null && (v = h(a = y(n, a, "secret_nonce")), a.length, n.push(v)), e = y(n, e, "public_nonce");
|
|
594
|
+
var b, x = 0 | c._crypto_aead_xchacha20poly1305_ietf_npubbytes();
|
|
595
|
+
e.length !== x && l(n, "invalid public_nonce length"), b = h(e), n.push(b), _ = y(n, _, "key");
|
|
596
|
+
var k, S = 0 | c._crypto_aead_xchacha20poly1305_ietf_keybytes();
|
|
597
|
+
_.length !== S && l(n, "invalid key length"), k = h(_), n.push(k);
|
|
598
|
+
var w = new g(0 | p), T = w.address;
|
|
599
|
+
n.push(T);
|
|
600
|
+
var Y = new g(0 | c._crypto_aead_xchacha20poly1305_ietf_abytes()), A = Y.address;
|
|
601
|
+
if (n.push(A), c._crypto_aead_xchacha20poly1305_ietf_encrypt_detached(T, A, null, o, p, 0, i, u, 0, v, b, k) === 0) {
|
|
602
|
+
var M = m({ ciphertext: w, mac: Y }, s);
|
|
603
|
+
return d(n), M;
|
|
604
|
+
}
|
|
605
|
+
E(n, "invalid usage");
|
|
606
|
+
}
|
|
607
|
+
function fe(t) {
|
|
608
|
+
var r = [];
|
|
609
|
+
f(t);
|
|
610
|
+
var a = new g(0 | c._crypto_aead_xchacha20poly1305_ietf_keybytes()), e = a.address;
|
|
611
|
+
r.push(e), c._crypto_aead_xchacha20poly1305_ietf_keygen(e);
|
|
612
|
+
var _ = m(a, t);
|
|
613
|
+
return d(r), _;
|
|
614
|
+
}
|
|
615
|
+
function me(t, r, a) {
|
|
616
|
+
var e = [];
|
|
617
|
+
f(a);
|
|
618
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
619
|
+
e.push(_), r = y(e, r, "key");
|
|
620
|
+
var n, o = 0 | c._crypto_auth_keybytes();
|
|
621
|
+
r.length !== o && l(e, "invalid key length"), n = h(r), e.push(n);
|
|
622
|
+
var p = new g(0 | c._crypto_auth_bytes()), i = p.address;
|
|
623
|
+
if (e.push(i), (0 | c._crypto_auth(i, _, s, 0, n)) == 0) {
|
|
624
|
+
var u = m(p, a);
|
|
625
|
+
return d(e), u;
|
|
626
|
+
}
|
|
627
|
+
E(e, "invalid usage");
|
|
628
|
+
}
|
|
629
|
+
function xe(t, r, a) {
|
|
630
|
+
var e = [];
|
|
631
|
+
f(a);
|
|
632
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
633
|
+
e.push(_), r = y(e, r, "key");
|
|
634
|
+
var n, o = 0 | c._crypto_auth_hmacsha256_keybytes();
|
|
635
|
+
r.length !== o && l(e, "invalid key length"), n = h(r), e.push(n);
|
|
636
|
+
var p = new g(0 | c._crypto_auth_hmacsha256_bytes()), i = p.address;
|
|
637
|
+
if (e.push(i), (0 | c._crypto_auth_hmacsha256(i, _, s, 0, n)) == 0) {
|
|
638
|
+
var u = m(p, a);
|
|
639
|
+
return d(e), u;
|
|
640
|
+
}
|
|
641
|
+
E(e, "invalid usage");
|
|
642
|
+
}
|
|
643
|
+
function Ee(t, r) {
|
|
644
|
+
var a = [];
|
|
645
|
+
f(r), B(a, t, "state_address");
|
|
646
|
+
var e = new g(0 | c._crypto_auth_hmacsha256_bytes()), _ = e.address;
|
|
647
|
+
if (a.push(_), (0 | c._crypto_auth_hmacsha256_final(t, _)) == 0) {
|
|
648
|
+
var s = (c._free(t), m(e, r));
|
|
649
|
+
return d(a), s;
|
|
650
|
+
}
|
|
651
|
+
E(a, "invalid usage");
|
|
652
|
+
}
|
|
653
|
+
function ke(t, r) {
|
|
654
|
+
var a = [];
|
|
655
|
+
f(r);
|
|
656
|
+
var e = null, _ = 0;
|
|
657
|
+
t != null && (e = h(t = y(a, t, "key")), _ = t.length, a.push(e));
|
|
658
|
+
var s = new g(208).address;
|
|
659
|
+
if (!(0 | c._crypto_auth_hmacsha256_init(s, e, _))) {
|
|
660
|
+
var n = s;
|
|
661
|
+
return d(a), n;
|
|
662
|
+
}
|
|
663
|
+
E(a, "invalid usage");
|
|
664
|
+
}
|
|
665
|
+
function Se(t) {
|
|
666
|
+
var r = [];
|
|
667
|
+
f(t);
|
|
668
|
+
var a = new g(0 | c._crypto_auth_hmacsha256_keybytes()), e = a.address;
|
|
669
|
+
r.push(e), c._crypto_auth_hmacsha256_keygen(e);
|
|
670
|
+
var _ = m(a, t);
|
|
671
|
+
return d(r), _;
|
|
672
|
+
}
|
|
673
|
+
function Te(t, r, a) {
|
|
674
|
+
var e = [];
|
|
675
|
+
f(a), B(e, t, "state_address");
|
|
676
|
+
var _ = h(r = y(e, r, "message_chunk")), s = r.length;
|
|
677
|
+
e.push(_), 0 | c._crypto_auth_hmacsha256_update(t, _, s) && E(e, "invalid usage"), d(e);
|
|
678
|
+
}
|
|
679
|
+
function we(t, r, a) {
|
|
680
|
+
var e = [];
|
|
681
|
+
t = y(e, t, "tag");
|
|
682
|
+
var _, s = 0 | c._crypto_auth_hmacsha256_bytes();
|
|
683
|
+
t.length !== s && l(e, "invalid tag length"), _ = h(t), e.push(_);
|
|
684
|
+
var n = h(r = y(e, r, "message")), o = r.length;
|
|
685
|
+
e.push(n), a = y(e, a, "key");
|
|
686
|
+
var p, i = 0 | c._crypto_auth_hmacsha256_keybytes();
|
|
687
|
+
a.length !== i && l(e, "invalid key length"), p = h(a), e.push(p);
|
|
688
|
+
var u = (0 | c._crypto_auth_hmacsha256_verify(_, n, o, 0, p)) == 0;
|
|
689
|
+
return d(e), u;
|
|
690
|
+
}
|
|
691
|
+
function Ye(t, r, a) {
|
|
692
|
+
var e = [];
|
|
693
|
+
f(a);
|
|
694
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
695
|
+
e.push(_), r = y(e, r, "key");
|
|
696
|
+
var n, o = 0 | c._crypto_auth_hmacsha512_keybytes();
|
|
697
|
+
r.length !== o && l(e, "invalid key length"), n = h(r), e.push(n);
|
|
698
|
+
var p = new g(0 | c._crypto_auth_hmacsha512_bytes()), i = p.address;
|
|
699
|
+
if (e.push(i), (0 | c._crypto_auth_hmacsha512(i, _, s, 0, n)) == 0) {
|
|
700
|
+
var u = m(p, a);
|
|
701
|
+
return d(e), u;
|
|
702
|
+
}
|
|
703
|
+
E(e, "invalid usage");
|
|
704
|
+
}
|
|
705
|
+
function Be(t, r) {
|
|
706
|
+
var a = [];
|
|
707
|
+
f(r), B(a, t, "state_address");
|
|
708
|
+
var e = new g(0 | c._crypto_auth_hmacsha512_bytes()), _ = e.address;
|
|
709
|
+
if (a.push(_), (0 | c._crypto_auth_hmacsha512_final(t, _)) == 0) {
|
|
710
|
+
var s = (c._free(t), m(e, r));
|
|
711
|
+
return d(a), s;
|
|
712
|
+
}
|
|
713
|
+
E(a, "invalid usage");
|
|
714
|
+
}
|
|
715
|
+
function Ae(t, r) {
|
|
716
|
+
var a = [];
|
|
717
|
+
f(r);
|
|
718
|
+
var e = null, _ = 0;
|
|
719
|
+
t != null && (e = h(t = y(a, t, "key")), _ = t.length, a.push(e));
|
|
720
|
+
var s = new g(416).address;
|
|
721
|
+
if (!(0 | c._crypto_auth_hmacsha512_init(s, e, _))) {
|
|
722
|
+
var n = s;
|
|
723
|
+
return d(a), n;
|
|
724
|
+
}
|
|
725
|
+
E(a, "invalid usage");
|
|
726
|
+
}
|
|
727
|
+
function Ke(t) {
|
|
728
|
+
var r = [];
|
|
729
|
+
f(t);
|
|
730
|
+
var a = new g(0 | c._crypto_auth_hmacsha512_keybytes()), e = a.address;
|
|
731
|
+
r.push(e), c._crypto_auth_hmacsha512_keygen(e);
|
|
732
|
+
var _ = m(a, t);
|
|
733
|
+
return d(r), _;
|
|
734
|
+
}
|
|
735
|
+
function Me(t, r, a) {
|
|
736
|
+
var e = [];
|
|
737
|
+
f(a), B(e, t, "state_address");
|
|
738
|
+
var _ = h(r = y(e, r, "message_chunk")), s = r.length;
|
|
739
|
+
e.push(_), 0 | c._crypto_auth_hmacsha512_update(t, _, s) && E(e, "invalid usage"), d(e);
|
|
740
|
+
}
|
|
741
|
+
function Ie(t, r, a) {
|
|
742
|
+
var e = [];
|
|
743
|
+
t = y(e, t, "tag");
|
|
744
|
+
var _, s = 0 | c._crypto_auth_hmacsha512_bytes();
|
|
745
|
+
t.length !== s && l(e, "invalid tag length"), _ = h(t), e.push(_);
|
|
746
|
+
var n = h(r = y(e, r, "message")), o = r.length;
|
|
747
|
+
e.push(n), a = y(e, a, "key");
|
|
748
|
+
var p, i = 0 | c._crypto_auth_hmacsha512_keybytes();
|
|
749
|
+
a.length !== i && l(e, "invalid key length"), p = h(a), e.push(p);
|
|
750
|
+
var u = (0 | c._crypto_auth_hmacsha512_verify(_, n, o, 0, p)) == 0;
|
|
751
|
+
return d(e), u;
|
|
752
|
+
}
|
|
753
|
+
function Ne(t) {
|
|
754
|
+
var r = [];
|
|
755
|
+
f(t);
|
|
756
|
+
var a = new g(0 | c._crypto_auth_keybytes()), e = a.address;
|
|
757
|
+
r.push(e), c._crypto_auth_keygen(e);
|
|
758
|
+
var _ = m(a, t);
|
|
759
|
+
return d(r), _;
|
|
760
|
+
}
|
|
761
|
+
function Le(t, r, a) {
|
|
762
|
+
var e = [];
|
|
763
|
+
t = y(e, t, "tag");
|
|
764
|
+
var _, s = 0 | c._crypto_auth_bytes();
|
|
765
|
+
t.length !== s && l(e, "invalid tag length"), _ = h(t), e.push(_);
|
|
766
|
+
var n = h(r = y(e, r, "message")), o = r.length;
|
|
767
|
+
e.push(n), a = y(e, a, "key");
|
|
768
|
+
var p, i = 0 | c._crypto_auth_keybytes();
|
|
769
|
+
a.length !== i && l(e, "invalid key length"), p = h(a), e.push(p);
|
|
770
|
+
var u = (0 | c._crypto_auth_verify(_, n, o, 0, p)) == 0;
|
|
771
|
+
return d(e), u;
|
|
772
|
+
}
|
|
773
|
+
function Ue(t, r, a) {
|
|
774
|
+
var e = [];
|
|
775
|
+
f(a), t = y(e, t, "publicKey");
|
|
776
|
+
var _, s = 0 | c._crypto_box_publickeybytes();
|
|
777
|
+
t.length !== s && l(e, "invalid publicKey length"), _ = h(t), e.push(_), r = y(e, r, "privateKey");
|
|
778
|
+
var n, o = 0 | c._crypto_box_secretkeybytes();
|
|
779
|
+
r.length !== o && l(e, "invalid privateKey length"), n = h(r), e.push(n);
|
|
780
|
+
var p = new g(0 | c._crypto_box_beforenmbytes()), i = p.address;
|
|
781
|
+
if (e.push(i), (0 | c._crypto_box_beforenm(i, _, n)) == 0) {
|
|
782
|
+
var u = m(p, a);
|
|
783
|
+
return d(e), u;
|
|
784
|
+
}
|
|
785
|
+
E(e, "invalid usage");
|
|
786
|
+
}
|
|
787
|
+
function Oe(t, r, a) {
|
|
788
|
+
var e = [];
|
|
789
|
+
f(a), t = y(e, t, "publicKey");
|
|
790
|
+
var _, s = 0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes();
|
|
791
|
+
t.length !== s && l(e, "invalid publicKey length"), _ = h(t), e.push(_), r = y(e, r, "privateKey");
|
|
792
|
+
var n, o = 0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes();
|
|
793
|
+
r.length !== o && l(e, "invalid privateKey length"), n = h(r), e.push(n);
|
|
794
|
+
var p = new g(0 | c._crypto_box_curve25519xchacha20poly1305_beforenmbytes()), i = p.address;
|
|
795
|
+
if (e.push(i), (0 | c._crypto_box_curve25519xchacha20poly1305_beforenm(i, _, n)) == 0) {
|
|
796
|
+
var u = m(p, a);
|
|
797
|
+
return d(e), u;
|
|
798
|
+
}
|
|
799
|
+
E(e, "invalid usage");
|
|
800
|
+
}
|
|
801
|
+
function Ce(t, r, a, e, _) {
|
|
802
|
+
var s = [];
|
|
803
|
+
f(_);
|
|
804
|
+
var n = h(t = y(s, t, "message")), o = t.length;
|
|
805
|
+
s.push(n), r = y(s, r, "nonce");
|
|
806
|
+
var p, i = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
807
|
+
r.length !== i && l(s, "invalid nonce length"), p = h(r), s.push(p), a = y(s, a, "publicKey");
|
|
808
|
+
var u, v = 0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes();
|
|
809
|
+
a.length !== v && l(s, "invalid publicKey length"), u = h(a), s.push(u), e = y(s, e, "privateKey");
|
|
810
|
+
var b, x = 0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes();
|
|
811
|
+
e.length !== x && l(s, "invalid privateKey length"), b = h(e), s.push(b);
|
|
812
|
+
var k = new g(0 | o), S = k.address;
|
|
813
|
+
s.push(S);
|
|
814
|
+
var w = new g(0 | c._crypto_box_curve25519xchacha20poly1305_macbytes()), T = w.address;
|
|
815
|
+
if (s.push(T), (0 | c._crypto_box_curve25519xchacha20poly1305_detached(S, T, n, o, 0, p, u, b)) == 0) {
|
|
816
|
+
var Y = m({ ciphertext: k, mac: w }, _);
|
|
817
|
+
return d(s), Y;
|
|
818
|
+
}
|
|
819
|
+
E(s, "invalid usage");
|
|
820
|
+
}
|
|
821
|
+
function Re(t, r, a, e) {
|
|
822
|
+
var _ = [];
|
|
823
|
+
f(e);
|
|
824
|
+
var s = h(t = y(_, t, "message")), n = t.length;
|
|
825
|
+
_.push(s), r = y(_, r, "nonce");
|
|
826
|
+
var o, p = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
827
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "sharedKey");
|
|
828
|
+
var i, u = 0 | c._crypto_box_curve25519xchacha20poly1305_beforenmbytes();
|
|
829
|
+
a.length !== u && l(_, "invalid sharedKey length"), i = h(a), _.push(i);
|
|
830
|
+
var v = new g(0 | n), b = v.address;
|
|
831
|
+
_.push(b);
|
|
832
|
+
var x = new g(0 | c._crypto_box_curve25519xchacha20poly1305_macbytes()), k = x.address;
|
|
833
|
+
if (_.push(k), (0 | c._crypto_box_curve25519xchacha20poly1305_detached_afternm(b, k, s, n, 0, o, i)) == 0) {
|
|
834
|
+
var S = m({ ciphertext: v, mac: x }, e);
|
|
835
|
+
return d(_), S;
|
|
836
|
+
}
|
|
837
|
+
E(_, "invalid usage");
|
|
838
|
+
}
|
|
839
|
+
function Pe(t, r, a, e, _) {
|
|
840
|
+
var s = [];
|
|
841
|
+
f(_);
|
|
842
|
+
var n = h(t = y(s, t, "message")), o = t.length;
|
|
843
|
+
s.push(n), r = y(s, r, "nonce");
|
|
844
|
+
var p, i = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
845
|
+
r.length !== i && l(s, "invalid nonce length"), p = h(r), s.push(p), a = y(s, a, "publicKey");
|
|
846
|
+
var u, v = 0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes();
|
|
847
|
+
a.length !== v && l(s, "invalid publicKey length"), u = h(a), s.push(u), e = y(s, e, "privateKey");
|
|
848
|
+
var b, x = 0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes();
|
|
849
|
+
e.length !== x && l(s, "invalid privateKey length"), b = h(e), s.push(b);
|
|
850
|
+
var k = new g(o + c._crypto_box_curve25519xchacha20poly1305_macbytes() | 0), S = k.address;
|
|
851
|
+
if (s.push(S), (0 | c._crypto_box_curve25519xchacha20poly1305_easy(S, n, o, 0, p, u, b)) == 0) {
|
|
852
|
+
var w = m(k, _);
|
|
853
|
+
return d(s), w;
|
|
854
|
+
}
|
|
855
|
+
E(s, "invalid usage");
|
|
856
|
+
}
|
|
857
|
+
function Ge(t, r, a, e) {
|
|
858
|
+
var _ = [];
|
|
859
|
+
f(e);
|
|
860
|
+
var s = h(t = y(_, t, "message")), n = t.length;
|
|
861
|
+
_.push(s), r = y(_, r, "nonce");
|
|
862
|
+
var o, p = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
863
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "sharedKey");
|
|
864
|
+
var i, u = 0 | c._crypto_box_curve25519xchacha20poly1305_beforenmbytes();
|
|
865
|
+
a.length !== u && l(_, "invalid sharedKey length"), i = h(a), _.push(i);
|
|
866
|
+
var v = new g(n + c._crypto_box_curve25519xchacha20poly1305_macbytes() | 0), b = v.address;
|
|
867
|
+
if (_.push(b), (0 | c._crypto_box_curve25519xchacha20poly1305_easy_afternm(b, s, n, 0, o, i)) == 0) {
|
|
868
|
+
var x = m(v, e);
|
|
869
|
+
return d(_), x;
|
|
870
|
+
}
|
|
871
|
+
E(_, "invalid usage");
|
|
872
|
+
}
|
|
873
|
+
function Xe(t) {
|
|
874
|
+
var r = [];
|
|
875
|
+
f(t);
|
|
876
|
+
var a = new g(0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes()), e = a.address;
|
|
877
|
+
r.push(e);
|
|
878
|
+
var _ = new g(0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes()), s = _.address;
|
|
879
|
+
r.push(s), c._crypto_box_curve25519xchacha20poly1305_keypair(e, s);
|
|
880
|
+
var n = m({ publicKey: a, privateKey: _, keyType: "curve25519" }, t);
|
|
881
|
+
return d(r), n;
|
|
882
|
+
}
|
|
883
|
+
function De(t, r, a, e, _, s) {
|
|
884
|
+
var n = [];
|
|
885
|
+
f(s);
|
|
886
|
+
var o = h(t = y(n, t, "ciphertext")), p = t.length;
|
|
887
|
+
n.push(o), r = y(n, r, "mac");
|
|
888
|
+
var i, u = 0 | c._crypto_box_curve25519xchacha20poly1305_macbytes();
|
|
889
|
+
r.length !== u && l(n, "invalid mac length"), i = h(r), n.push(i), a = y(n, a, "nonce");
|
|
890
|
+
var v, b = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
891
|
+
a.length !== b && l(n, "invalid nonce length"), v = h(a), n.push(v), e = y(n, e, "publicKey");
|
|
892
|
+
var x, k = 0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes();
|
|
893
|
+
e.length !== k && l(n, "invalid publicKey length"), x = h(e), n.push(x), _ = y(n, _, "privateKey");
|
|
894
|
+
var S, w = 0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes();
|
|
895
|
+
_.length !== w && l(n, "invalid privateKey length"), S = h(_), n.push(S);
|
|
896
|
+
var T = new g(0 | p), Y = T.address;
|
|
897
|
+
if (n.push(Y), (0 | c._crypto_box_curve25519xchacha20poly1305_open_detached(Y, o, i, p, 0, v, x, S)) == 0) {
|
|
898
|
+
var A = m(T, s);
|
|
899
|
+
return d(n), A;
|
|
900
|
+
}
|
|
901
|
+
E(n, "incorrect key pair for the given ciphertext");
|
|
902
|
+
}
|
|
903
|
+
function Fe(t, r, a, e, _) {
|
|
904
|
+
var s = [];
|
|
905
|
+
f(_);
|
|
906
|
+
var n = h(t = y(s, t, "ciphertext")), o = t.length;
|
|
907
|
+
s.push(n), r = y(s, r, "mac");
|
|
908
|
+
var p, i = 0 | c._crypto_box_curve25519xchacha20poly1305_macbytes();
|
|
909
|
+
r.length !== i && l(s, "invalid mac length"), p = h(r), s.push(p), a = y(s, a, "nonce");
|
|
910
|
+
var u, v = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
911
|
+
a.length !== v && l(s, "invalid nonce length"), u = h(a), s.push(u), e = y(s, e, "sharedKey");
|
|
912
|
+
var b, x = 0 | c._crypto_box_curve25519xchacha20poly1305_beforenmbytes();
|
|
913
|
+
e.length !== x && l(s, "invalid sharedKey length"), b = h(e), s.push(b);
|
|
914
|
+
var k = new g(0 | o), S = k.address;
|
|
915
|
+
if (s.push(S), (0 | c._crypto_box_curve25519xchacha20poly1305_open_detached_afternm(S, n, p, o, 0, u, b)) == 0) {
|
|
916
|
+
var w = m(k, _);
|
|
917
|
+
return d(s), w;
|
|
918
|
+
}
|
|
919
|
+
E(s, "incorrect secret key for the given ciphertext");
|
|
920
|
+
}
|
|
921
|
+
function Ve(t, r, a, e, _) {
|
|
922
|
+
var s = [];
|
|
923
|
+
f(_), t = y(s, t, "ciphertext");
|
|
924
|
+
var n, o = c._crypto_box_curve25519xchacha20poly1305_macbytes(), p = t.length;
|
|
925
|
+
p < o && l(s, "ciphertext is too short"), n = h(t), s.push(n), r = y(s, r, "nonce");
|
|
926
|
+
var i, u = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
927
|
+
r.length !== u && l(s, "invalid nonce length"), i = h(r), s.push(i), a = y(s, a, "publicKey");
|
|
928
|
+
var v, b = 0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes();
|
|
929
|
+
a.length !== b && l(s, "invalid publicKey length"), v = h(a), s.push(v), e = y(s, e, "privateKey");
|
|
930
|
+
var x, k = 0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes();
|
|
931
|
+
e.length !== k && l(s, "invalid privateKey length"), x = h(e), s.push(x);
|
|
932
|
+
var S = new g(p - c._crypto_box_curve25519xchacha20poly1305_macbytes() | 0), w = S.address;
|
|
933
|
+
if (s.push(w), (0 | c._crypto_box_curve25519xchacha20poly1305_open_easy(w, n, p, 0, i, v, x)) == 0) {
|
|
934
|
+
var T = m(S, _);
|
|
935
|
+
return d(s), T;
|
|
936
|
+
}
|
|
937
|
+
E(s, "incorrect key pair for the given ciphertext");
|
|
938
|
+
}
|
|
939
|
+
function qe(t, r, a, e) {
|
|
940
|
+
var _ = [];
|
|
941
|
+
f(e);
|
|
942
|
+
var s = h(t = y(_, t, "ciphertext")), n = t.length;
|
|
943
|
+
_.push(s), r = y(_, r, "nonce");
|
|
944
|
+
var o, p = 0 | c._crypto_box_curve25519xchacha20poly1305_noncebytes();
|
|
945
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "sharedKey");
|
|
946
|
+
var i, u = 0 | c._crypto_box_curve25519xchacha20poly1305_beforenmbytes();
|
|
947
|
+
a.length !== u && l(_, "invalid sharedKey length"), i = h(a), _.push(i);
|
|
948
|
+
var v = new g(n - c._crypto_box_curve25519xchacha20poly1305_macbytes() | 0), b = v.address;
|
|
949
|
+
if (_.push(b), (0 | c._crypto_box_curve25519xchacha20poly1305_open_easy_afternm(b, s, n, 0, o, i)) == 0) {
|
|
950
|
+
var x = m(v, e);
|
|
951
|
+
return d(_), x;
|
|
952
|
+
}
|
|
953
|
+
E(_, "incorrect secret key for the given ciphertext");
|
|
954
|
+
}
|
|
955
|
+
function He(t, r, a) {
|
|
956
|
+
var e = [];
|
|
957
|
+
f(a);
|
|
958
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
959
|
+
e.push(_), r = y(e, r, "publicKey");
|
|
960
|
+
var n, o = 0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes();
|
|
961
|
+
r.length !== o && l(e, "invalid publicKey length"), n = h(r), e.push(n);
|
|
962
|
+
var p = new g(s + c._crypto_box_curve25519xchacha20poly1305_sealbytes() | 0), i = p.address;
|
|
963
|
+
e.push(i), c._crypto_box_curve25519xchacha20poly1305_seal(i, _, s, 0, n);
|
|
964
|
+
var u = m(p, a);
|
|
965
|
+
return d(e), u;
|
|
966
|
+
}
|
|
967
|
+
function je(t, r, a, e) {
|
|
968
|
+
var _ = [];
|
|
969
|
+
f(e), t = y(_, t, "ciphertext");
|
|
970
|
+
var s, n = c._crypto_box_curve25519xchacha20poly1305_sealbytes(), o = t.length;
|
|
971
|
+
o < n && l(_, "ciphertext is too short"), s = h(t), _.push(s), r = y(_, r, "publicKey");
|
|
972
|
+
var p, i = 0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes();
|
|
973
|
+
r.length !== i && l(_, "invalid publicKey length"), p = h(r), _.push(p), a = y(_, a, "secretKey");
|
|
974
|
+
var u, v = 0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes();
|
|
975
|
+
a.length !== v && l(_, "invalid secretKey length"), u = h(a), _.push(u);
|
|
976
|
+
var b = new g(o - c._crypto_box_curve25519xchacha20poly1305_sealbytes() | 0), x = b.address;
|
|
977
|
+
_.push(x), c._crypto_box_curve25519xchacha20poly1305_seal_open(x, s, o, 0, p, u);
|
|
978
|
+
var k = m(b, e);
|
|
979
|
+
return d(_), k;
|
|
980
|
+
}
|
|
981
|
+
function ze(t, r) {
|
|
982
|
+
var a = [];
|
|
983
|
+
f(r), t = y(a, t, "seed");
|
|
984
|
+
var e, _ = 0 | c._crypto_box_curve25519xchacha20poly1305_seedbytes();
|
|
985
|
+
t.length !== _ && l(a, "invalid seed length"), e = h(t), a.push(e);
|
|
986
|
+
var s = new g(0 | c._crypto_box_curve25519xchacha20poly1305_publickeybytes()), n = s.address;
|
|
987
|
+
a.push(n);
|
|
988
|
+
var o = new g(0 | c._crypto_box_curve25519xchacha20poly1305_secretkeybytes()), p = o.address;
|
|
989
|
+
if (a.push(p), (0 | c._crypto_box_curve25519xchacha20poly1305_seed_keypair(n, p, e)) == 0) {
|
|
990
|
+
var i = { publicKey: m(s, r), privateKey: m(o, r), keyType: "x25519" };
|
|
991
|
+
return d(a), i;
|
|
992
|
+
}
|
|
993
|
+
E(a, "invalid usage");
|
|
994
|
+
}
|
|
995
|
+
function We(t, r, a, e, _) {
|
|
996
|
+
var s = [];
|
|
997
|
+
f(_);
|
|
998
|
+
var n = h(t = y(s, t, "message")), o = t.length;
|
|
999
|
+
s.push(n), r = y(s, r, "nonce");
|
|
1000
|
+
var p, i = 0 | c._crypto_box_noncebytes();
|
|
1001
|
+
r.length !== i && l(s, "invalid nonce length"), p = h(r), s.push(p), a = y(s, a, "publicKey");
|
|
1002
|
+
var u, v = 0 | c._crypto_box_publickeybytes();
|
|
1003
|
+
a.length !== v && l(s, "invalid publicKey length"), u = h(a), s.push(u), e = y(s, e, "privateKey");
|
|
1004
|
+
var b, x = 0 | c._crypto_box_secretkeybytes();
|
|
1005
|
+
e.length !== x && l(s, "invalid privateKey length"), b = h(e), s.push(b);
|
|
1006
|
+
var k = new g(0 | o), S = k.address;
|
|
1007
|
+
s.push(S);
|
|
1008
|
+
var w = new g(0 | c._crypto_box_macbytes()), T = w.address;
|
|
1009
|
+
if (s.push(T), (0 | c._crypto_box_detached(S, T, n, o, 0, p, u, b)) == 0) {
|
|
1010
|
+
var Y = m({ ciphertext: k, mac: w }, _);
|
|
1011
|
+
return d(s), Y;
|
|
1012
|
+
}
|
|
1013
|
+
E(s, "invalid usage");
|
|
1014
|
+
}
|
|
1015
|
+
function Je(t, r, a, e, _) {
|
|
1016
|
+
var s = [];
|
|
1017
|
+
f(_);
|
|
1018
|
+
var n = h(t = y(s, t, "message")), o = t.length;
|
|
1019
|
+
s.push(n), r = y(s, r, "nonce");
|
|
1020
|
+
var p, i = 0 | c._crypto_box_noncebytes();
|
|
1021
|
+
r.length !== i && l(s, "invalid nonce length"), p = h(r), s.push(p), a = y(s, a, "publicKey");
|
|
1022
|
+
var u, v = 0 | c._crypto_box_publickeybytes();
|
|
1023
|
+
a.length !== v && l(s, "invalid publicKey length"), u = h(a), s.push(u), e = y(s, e, "privateKey");
|
|
1024
|
+
var b, x = 0 | c._crypto_box_secretkeybytes();
|
|
1025
|
+
e.length !== x && l(s, "invalid privateKey length"), b = h(e), s.push(b);
|
|
1026
|
+
var k = new g(o + c._crypto_box_macbytes() | 0), S = k.address;
|
|
1027
|
+
if (s.push(S), (0 | c._crypto_box_easy(S, n, o, 0, p, u, b)) == 0) {
|
|
1028
|
+
var w = m(k, _);
|
|
1029
|
+
return d(s), w;
|
|
1030
|
+
}
|
|
1031
|
+
E(s, "invalid usage");
|
|
1032
|
+
}
|
|
1033
|
+
function Qe(t, r, a, e) {
|
|
1034
|
+
var _ = [];
|
|
1035
|
+
f(e);
|
|
1036
|
+
var s = h(t = y(_, t, "message")), n = t.length;
|
|
1037
|
+
_.push(s), r = y(_, r, "nonce");
|
|
1038
|
+
var o, p = 0 | c._crypto_box_noncebytes();
|
|
1039
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "sharedKey");
|
|
1040
|
+
var i, u = 0 | c._crypto_box_beforenmbytes();
|
|
1041
|
+
a.length !== u && l(_, "invalid sharedKey length"), i = h(a), _.push(i);
|
|
1042
|
+
var v = new g(n + c._crypto_box_macbytes() | 0), b = v.address;
|
|
1043
|
+
if (_.push(b), (0 | c._crypto_box_easy_afternm(b, s, n, 0, o, i)) == 0) {
|
|
1044
|
+
var x = m(v, e);
|
|
1045
|
+
return d(_), x;
|
|
1046
|
+
}
|
|
1047
|
+
E(_, "invalid usage");
|
|
1048
|
+
}
|
|
1049
|
+
function Ze(t) {
|
|
1050
|
+
var r = [];
|
|
1051
|
+
f(t);
|
|
1052
|
+
var a = new g(0 | c._crypto_box_publickeybytes()), e = a.address;
|
|
1053
|
+
r.push(e);
|
|
1054
|
+
var _ = new g(0 | c._crypto_box_secretkeybytes()), s = _.address;
|
|
1055
|
+
if (r.push(s), (0 | c._crypto_box_keypair(e, s)) == 0) {
|
|
1056
|
+
var n = { publicKey: m(a, t), privateKey: m(_, t), keyType: "x25519" };
|
|
1057
|
+
return d(r), n;
|
|
1058
|
+
}
|
|
1059
|
+
E(r, "internal error");
|
|
1060
|
+
}
|
|
1061
|
+
function $e(t, r, a, e, _, s) {
|
|
1062
|
+
var n = [];
|
|
1063
|
+
f(s);
|
|
1064
|
+
var o = h(t = y(n, t, "ciphertext")), p = t.length;
|
|
1065
|
+
n.push(o), r = y(n, r, "mac");
|
|
1066
|
+
var i, u = 0 | c._crypto_box_macbytes();
|
|
1067
|
+
r.length !== u && l(n, "invalid mac length"), i = h(r), n.push(i), a = y(n, a, "nonce");
|
|
1068
|
+
var v, b = 0 | c._crypto_box_noncebytes();
|
|
1069
|
+
a.length !== b && l(n, "invalid nonce length"), v = h(a), n.push(v), e = y(n, e, "publicKey");
|
|
1070
|
+
var x, k = 0 | c._crypto_box_publickeybytes();
|
|
1071
|
+
e.length !== k && l(n, "invalid publicKey length"), x = h(e), n.push(x), _ = y(n, _, "privateKey");
|
|
1072
|
+
var S, w = 0 | c._crypto_box_secretkeybytes();
|
|
1073
|
+
_.length !== w && l(n, "invalid privateKey length"), S = h(_), n.push(S);
|
|
1074
|
+
var T = new g(0 | p), Y = T.address;
|
|
1075
|
+
if (n.push(Y), (0 | c._crypto_box_open_detached(Y, o, i, p, 0, v, x, S)) == 0) {
|
|
1076
|
+
var A = m(T, s);
|
|
1077
|
+
return d(n), A;
|
|
1078
|
+
}
|
|
1079
|
+
E(n, "incorrect key pair for the given ciphertext");
|
|
1080
|
+
}
|
|
1081
|
+
function et(t, r, a, e, _) {
|
|
1082
|
+
var s = [];
|
|
1083
|
+
f(_), t = y(s, t, "ciphertext");
|
|
1084
|
+
var n, o = c._crypto_box_macbytes(), p = t.length;
|
|
1085
|
+
p < o && l(s, "ciphertext is too short"), n = h(t), s.push(n), r = y(s, r, "nonce");
|
|
1086
|
+
var i, u = 0 | c._crypto_box_noncebytes();
|
|
1087
|
+
r.length !== u && l(s, "invalid nonce length"), i = h(r), s.push(i), a = y(s, a, "publicKey");
|
|
1088
|
+
var v, b = 0 | c._crypto_box_publickeybytes();
|
|
1089
|
+
a.length !== b && l(s, "invalid publicKey length"), v = h(a), s.push(v), e = y(s, e, "privateKey");
|
|
1090
|
+
var x, k = 0 | c._crypto_box_secretkeybytes();
|
|
1091
|
+
e.length !== k && l(s, "invalid privateKey length"), x = h(e), s.push(x);
|
|
1092
|
+
var S = new g(p - c._crypto_box_macbytes() | 0), w = S.address;
|
|
1093
|
+
if (s.push(w), (0 | c._crypto_box_open_easy(w, n, p, 0, i, v, x)) == 0) {
|
|
1094
|
+
var T = m(S, _);
|
|
1095
|
+
return d(s), T;
|
|
1096
|
+
}
|
|
1097
|
+
E(s, "incorrect key pair for the given ciphertext");
|
|
1098
|
+
}
|
|
1099
|
+
function tt(t, r, a, e) {
|
|
1100
|
+
var _ = [];
|
|
1101
|
+
f(e);
|
|
1102
|
+
var s = h(t = y(_, t, "ciphertext")), n = t.length;
|
|
1103
|
+
_.push(s), r = y(_, r, "nonce");
|
|
1104
|
+
var o, p = 0 | c._crypto_box_noncebytes();
|
|
1105
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "sharedKey");
|
|
1106
|
+
var i, u = 0 | c._crypto_box_beforenmbytes();
|
|
1107
|
+
a.length !== u && l(_, "invalid sharedKey length"), i = h(a), _.push(i);
|
|
1108
|
+
var v = new g(n - c._crypto_box_macbytes() | 0), b = v.address;
|
|
1109
|
+
if (_.push(b), (0 | c._crypto_box_open_easy_afternm(b, s, n, 0, o, i)) == 0) {
|
|
1110
|
+
var x = m(v, e);
|
|
1111
|
+
return d(_), x;
|
|
1112
|
+
}
|
|
1113
|
+
E(_, "incorrect secret key for the given ciphertext");
|
|
1114
|
+
}
|
|
1115
|
+
function at(t, r, a) {
|
|
1116
|
+
var e = [];
|
|
1117
|
+
f(a);
|
|
1118
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
1119
|
+
e.push(_), r = y(e, r, "publicKey");
|
|
1120
|
+
var n, o = 0 | c._crypto_box_publickeybytes();
|
|
1121
|
+
r.length !== o && l(e, "invalid publicKey length"), n = h(r), e.push(n);
|
|
1122
|
+
var p = new g(s + c._crypto_box_sealbytes() | 0), i = p.address;
|
|
1123
|
+
if (e.push(i), (0 | c._crypto_box_seal(i, _, s, 0, n)) == 0) {
|
|
1124
|
+
var u = m(p, a);
|
|
1125
|
+
return d(e), u;
|
|
1126
|
+
}
|
|
1127
|
+
E(e, "invalid usage");
|
|
1128
|
+
}
|
|
1129
|
+
function rt(t, r, a, e) {
|
|
1130
|
+
var _ = [];
|
|
1131
|
+
f(e), t = y(_, t, "ciphertext");
|
|
1132
|
+
var s, n = c._crypto_box_sealbytes(), o = t.length;
|
|
1133
|
+
o < n && l(_, "ciphertext is too short"), s = h(t), _.push(s), r = y(_, r, "publicKey");
|
|
1134
|
+
var p, i = 0 | c._crypto_box_publickeybytes();
|
|
1135
|
+
r.length !== i && l(_, "invalid publicKey length"), p = h(r), _.push(p), a = y(_, a, "privateKey");
|
|
1136
|
+
var u, v = 0 | c._crypto_box_secretkeybytes();
|
|
1137
|
+
a.length !== v && l(_, "invalid privateKey length"), u = h(a), _.push(u);
|
|
1138
|
+
var b = new g(o - c._crypto_box_sealbytes() | 0), x = b.address;
|
|
1139
|
+
if (_.push(x), (0 | c._crypto_box_seal_open(x, s, o, 0, p, u)) == 0) {
|
|
1140
|
+
var k = m(b, e);
|
|
1141
|
+
return d(_), k;
|
|
1142
|
+
}
|
|
1143
|
+
E(_, "incorrect key pair for the given ciphertext");
|
|
1144
|
+
}
|
|
1145
|
+
function _t(t, r) {
|
|
1146
|
+
var a = [];
|
|
1147
|
+
f(r), t = y(a, t, "seed");
|
|
1148
|
+
var e, _ = 0 | c._crypto_box_seedbytes();
|
|
1149
|
+
t.length !== _ && l(a, "invalid seed length"), e = h(t), a.push(e);
|
|
1150
|
+
var s = new g(0 | c._crypto_box_publickeybytes()), n = s.address;
|
|
1151
|
+
a.push(n);
|
|
1152
|
+
var o = new g(0 | c._crypto_box_secretkeybytes()), p = o.address;
|
|
1153
|
+
if (a.push(p), (0 | c._crypto_box_seed_keypair(n, p, e)) == 0) {
|
|
1154
|
+
var i = { publicKey: m(s, r), privateKey: m(o, r), keyType: "x25519" };
|
|
1155
|
+
return d(a), i;
|
|
1156
|
+
}
|
|
1157
|
+
E(a, "invalid usage");
|
|
1158
|
+
}
|
|
1159
|
+
function nt(t, r, a) {
|
|
1160
|
+
var e = [];
|
|
1161
|
+
f(a), t = y(e, t, "p");
|
|
1162
|
+
var _, s = 0 | c._crypto_core_ed25519_bytes();
|
|
1163
|
+
t.length !== s && l(e, "invalid p length"), _ = h(t), e.push(_), r = y(e, r, "q");
|
|
1164
|
+
var n, o = 0 | c._crypto_core_ed25519_bytes();
|
|
1165
|
+
r.length !== o && l(e, "invalid q length"), n = h(r), e.push(n);
|
|
1166
|
+
var p = new g(0 | c._crypto_core_ed25519_bytes()), i = p.address;
|
|
1167
|
+
if (e.push(i), (0 | c._crypto_core_ed25519_add(i, _, n)) == 0) {
|
|
1168
|
+
var u = m(p, a);
|
|
1169
|
+
return d(e), u;
|
|
1170
|
+
}
|
|
1171
|
+
E(e, "input is an invalid element");
|
|
1172
|
+
}
|
|
1173
|
+
function st(t, r) {
|
|
1174
|
+
var a = [];
|
|
1175
|
+
f(r);
|
|
1176
|
+
var e = h(t = y(a, t, "r"));
|
|
1177
|
+
t.length, a.push(e);
|
|
1178
|
+
var _ = new g(0 | c._crypto_core_ed25519_bytes()), s = _.address;
|
|
1179
|
+
if (a.push(s), (0 | c._crypto_core_ed25519_from_hash(s, e)) == 0) {
|
|
1180
|
+
var n = m(_, r);
|
|
1181
|
+
return d(a), n;
|
|
1182
|
+
}
|
|
1183
|
+
E(a, "invalid usage");
|
|
1184
|
+
}
|
|
1185
|
+
function ct(t, r) {
|
|
1186
|
+
var a = [];
|
|
1187
|
+
f(r);
|
|
1188
|
+
var e = h(t = y(a, t, "r"));
|
|
1189
|
+
t.length, a.push(e);
|
|
1190
|
+
var _ = new g(0 | c._crypto_core_ed25519_bytes()), s = _.address;
|
|
1191
|
+
if (a.push(s), (0 | c._crypto_core_ed25519_from_uniform(s, e)) == 0) {
|
|
1192
|
+
var n = m(_, r);
|
|
1193
|
+
return d(a), n;
|
|
1194
|
+
}
|
|
1195
|
+
E(a, "invalid usage");
|
|
1196
|
+
}
|
|
1197
|
+
function ot(t, r) {
|
|
1198
|
+
var a = [];
|
|
1199
|
+
f(r), t = y(a, t, "repr");
|
|
1200
|
+
var e, _ = 0 | c._crypto_core_ed25519_bytes();
|
|
1201
|
+
t.length !== _ && l(a, "invalid repr length"), e = h(t), a.push(e);
|
|
1202
|
+
var s = (0 | c._crypto_core_ed25519_is_valid_point(e)) == 1;
|
|
1203
|
+
return d(a), s;
|
|
1204
|
+
}
|
|
1205
|
+
function ht(t) {
|
|
1206
|
+
var r = [];
|
|
1207
|
+
f(t);
|
|
1208
|
+
var a = new g(0 | c._crypto_core_ed25519_bytes()), e = a.address;
|
|
1209
|
+
r.push(e), c._crypto_core_ed25519_random(e);
|
|
1210
|
+
var _ = m(a, t);
|
|
1211
|
+
return d(r), _;
|
|
1212
|
+
}
|
|
1213
|
+
function pt(t, r, a) {
|
|
1214
|
+
var e = [];
|
|
1215
|
+
f(a), t = y(e, t, "x");
|
|
1216
|
+
var _, s = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1217
|
+
t.length !== s && l(e, "invalid x length"), _ = h(t), e.push(_), r = y(e, r, "y");
|
|
1218
|
+
var n, o = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1219
|
+
r.length !== o && l(e, "invalid y length"), n = h(r), e.push(n);
|
|
1220
|
+
var p = new g(0 | c._crypto_core_ed25519_scalarbytes()), i = p.address;
|
|
1221
|
+
e.push(i), c._crypto_core_ed25519_scalar_add(i, _, n);
|
|
1222
|
+
var u = m(p, a);
|
|
1223
|
+
return d(e), u;
|
|
1224
|
+
}
|
|
1225
|
+
function yt(t, r) {
|
|
1226
|
+
var a = [];
|
|
1227
|
+
f(r), t = y(a, t, "s");
|
|
1228
|
+
var e, _ = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1229
|
+
t.length !== _ && l(a, "invalid s length"), e = h(t), a.push(e);
|
|
1230
|
+
var s = new g(0 | c._crypto_core_ed25519_scalarbytes()), n = s.address;
|
|
1231
|
+
a.push(n), c._crypto_core_ed25519_scalar_complement(n, e);
|
|
1232
|
+
var o = m(s, r);
|
|
1233
|
+
return d(a), o;
|
|
1234
|
+
}
|
|
1235
|
+
function it(t, r) {
|
|
1236
|
+
var a = [];
|
|
1237
|
+
f(r), t = y(a, t, "s");
|
|
1238
|
+
var e, _ = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1239
|
+
t.length !== _ && l(a, "invalid s length"), e = h(t), a.push(e);
|
|
1240
|
+
var s = new g(0 | c._crypto_core_ed25519_scalarbytes()), n = s.address;
|
|
1241
|
+
if (a.push(n), (0 | c._crypto_core_ed25519_scalar_invert(n, e)) == 0) {
|
|
1242
|
+
var o = m(s, r);
|
|
1243
|
+
return d(a), o;
|
|
1244
|
+
}
|
|
1245
|
+
E(a, "invalid reciprocate");
|
|
1246
|
+
}
|
|
1247
|
+
function lt(t, r, a) {
|
|
1248
|
+
var e = [];
|
|
1249
|
+
f(a), t = y(e, t, "x");
|
|
1250
|
+
var _, s = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1251
|
+
t.length !== s && l(e, "invalid x length"), _ = h(t), e.push(_), r = y(e, r, "y");
|
|
1252
|
+
var n, o = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1253
|
+
r.length !== o && l(e, "invalid y length"), n = h(r), e.push(n);
|
|
1254
|
+
var p = new g(0 | c._crypto_core_ed25519_scalarbytes()), i = p.address;
|
|
1255
|
+
e.push(i), c._crypto_core_ed25519_scalar_mul(i, _, n);
|
|
1256
|
+
var u = m(p, a);
|
|
1257
|
+
return d(e), u;
|
|
1258
|
+
}
|
|
1259
|
+
function ut(t, r) {
|
|
1260
|
+
var a = [];
|
|
1261
|
+
f(r), t = y(a, t, "s");
|
|
1262
|
+
var e, _ = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1263
|
+
t.length !== _ && l(a, "invalid s length"), e = h(t), a.push(e);
|
|
1264
|
+
var s = new g(0 | c._crypto_core_ed25519_scalarbytes()), n = s.address;
|
|
1265
|
+
a.push(n), c._crypto_core_ed25519_scalar_negate(n, e);
|
|
1266
|
+
var o = m(s, r);
|
|
1267
|
+
return d(a), o;
|
|
1268
|
+
}
|
|
1269
|
+
function vt(t) {
|
|
1270
|
+
var r = [];
|
|
1271
|
+
f(t);
|
|
1272
|
+
var a = new g(0 | c._crypto_core_ed25519_scalarbytes()), e = a.address;
|
|
1273
|
+
r.push(e), c._crypto_core_ed25519_scalar_random(e);
|
|
1274
|
+
var _ = m(a, t);
|
|
1275
|
+
return d(r), _;
|
|
1276
|
+
}
|
|
1277
|
+
function dt(t, r) {
|
|
1278
|
+
var a = [];
|
|
1279
|
+
f(r), t = y(a, t, "sample");
|
|
1280
|
+
var e, _ = 0 | c._crypto_core_ed25519_nonreducedscalarbytes();
|
|
1281
|
+
t.length !== _ && l(a, "invalid sample length"), e = h(t), a.push(e);
|
|
1282
|
+
var s = new g(0 | c._crypto_core_ed25519_scalarbytes()), n = s.address;
|
|
1283
|
+
a.push(n), c._crypto_core_ed25519_scalar_reduce(n, e);
|
|
1284
|
+
var o = m(s, r);
|
|
1285
|
+
return d(a), o;
|
|
1286
|
+
}
|
|
1287
|
+
function gt(t, r, a) {
|
|
1288
|
+
var e = [];
|
|
1289
|
+
f(a), t = y(e, t, "x");
|
|
1290
|
+
var _, s = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1291
|
+
t.length !== s && l(e, "invalid x length"), _ = h(t), e.push(_), r = y(e, r, "y");
|
|
1292
|
+
var n, o = 0 | c._crypto_core_ed25519_scalarbytes();
|
|
1293
|
+
r.length !== o && l(e, "invalid y length"), n = h(r), e.push(n);
|
|
1294
|
+
var p = new g(0 | c._crypto_core_ed25519_scalarbytes()), i = p.address;
|
|
1295
|
+
e.push(i), c._crypto_core_ed25519_scalar_sub(i, _, n);
|
|
1296
|
+
var u = m(p, a);
|
|
1297
|
+
return d(e), u;
|
|
1298
|
+
}
|
|
1299
|
+
function bt(t, r, a) {
|
|
1300
|
+
var e = [];
|
|
1301
|
+
f(a), t = y(e, t, "p");
|
|
1302
|
+
var _, s = 0 | c._crypto_core_ed25519_bytes();
|
|
1303
|
+
t.length !== s && l(e, "invalid p length"), _ = h(t), e.push(_), r = y(e, r, "q");
|
|
1304
|
+
var n, o = 0 | c._crypto_core_ed25519_bytes();
|
|
1305
|
+
r.length !== o && l(e, "invalid q length"), n = h(r), e.push(n);
|
|
1306
|
+
var p = new g(0 | c._crypto_core_ed25519_bytes()), i = p.address;
|
|
1307
|
+
if (e.push(i), (0 | c._crypto_core_ed25519_sub(i, _, n)) == 0) {
|
|
1308
|
+
var u = m(p, a);
|
|
1309
|
+
return d(e), u;
|
|
1310
|
+
}
|
|
1311
|
+
E(e, "input is an invalid element");
|
|
1312
|
+
}
|
|
1313
|
+
function ft(t, r, a, e) {
|
|
1314
|
+
var _ = [];
|
|
1315
|
+
f(e), t = y(_, t, "input");
|
|
1316
|
+
var s, n = 0 | c._crypto_core_hchacha20_inputbytes();
|
|
1317
|
+
t.length !== n && l(_, "invalid input length"), s = h(t), _.push(s), r = y(_, r, "privateKey");
|
|
1318
|
+
var o, p = 0 | c._crypto_core_hchacha20_keybytes();
|
|
1319
|
+
r.length !== p && l(_, "invalid privateKey length"), o = h(r), _.push(o);
|
|
1320
|
+
var i = null;
|
|
1321
|
+
a != null && (i = h(a = y(_, a, "constant")), a.length, _.push(i));
|
|
1322
|
+
var u = new g(0 | c._crypto_core_hchacha20_outputbytes()), v = u.address;
|
|
1323
|
+
if (_.push(v), (0 | c._crypto_core_hchacha20(v, s, o, i)) == 0) {
|
|
1324
|
+
var b = m(u, e);
|
|
1325
|
+
return d(_), b;
|
|
1326
|
+
}
|
|
1327
|
+
E(_, "invalid usage");
|
|
1328
|
+
}
|
|
1329
|
+
function mt(t, r, a, e) {
|
|
1330
|
+
var _ = [];
|
|
1331
|
+
f(e), t = y(_, t, "input");
|
|
1332
|
+
var s, n = 0 | c._crypto_core_hsalsa20_inputbytes();
|
|
1333
|
+
t.length !== n && l(_, "invalid input length"), s = h(t), _.push(s), r = y(_, r, "privateKey");
|
|
1334
|
+
var o, p = 0 | c._crypto_core_hsalsa20_keybytes();
|
|
1335
|
+
r.length !== p && l(_, "invalid privateKey length"), o = h(r), _.push(o);
|
|
1336
|
+
var i = null;
|
|
1337
|
+
a != null && (i = h(a = y(_, a, "constant")), a.length, _.push(i));
|
|
1338
|
+
var u = new g(0 | c._crypto_core_hsalsa20_outputbytes()), v = u.address;
|
|
1339
|
+
if (_.push(v), (0 | c._crypto_core_hsalsa20(v, s, o, i)) == 0) {
|
|
1340
|
+
var b = m(u, e);
|
|
1341
|
+
return d(_), b;
|
|
1342
|
+
}
|
|
1343
|
+
E(_, "invalid usage");
|
|
1344
|
+
}
|
|
1345
|
+
function xt(t, r, a) {
|
|
1346
|
+
var e = [];
|
|
1347
|
+
f(a), t = y(e, t, "p");
|
|
1348
|
+
var _, s = 0 | c._crypto_core_ristretto255_bytes();
|
|
1349
|
+
t.length !== s && l(e, "invalid p length"), _ = h(t), e.push(_), r = y(e, r, "q");
|
|
1350
|
+
var n, o = 0 | c._crypto_core_ristretto255_bytes();
|
|
1351
|
+
r.length !== o && l(e, "invalid q length"), n = h(r), e.push(n);
|
|
1352
|
+
var p = new g(0 | c._crypto_core_ristretto255_bytes()), i = p.address;
|
|
1353
|
+
if (e.push(i), (0 | c._crypto_core_ristretto255_add(i, _, n)) == 0) {
|
|
1354
|
+
var u = m(p, a);
|
|
1355
|
+
return d(e), u;
|
|
1356
|
+
}
|
|
1357
|
+
E(e, "input is an invalid element");
|
|
1358
|
+
}
|
|
1359
|
+
function Et(t, r) {
|
|
1360
|
+
var a = [];
|
|
1361
|
+
f(r);
|
|
1362
|
+
var e = h(t = y(a, t, "r"));
|
|
1363
|
+
t.length, a.push(e);
|
|
1364
|
+
var _ = new g(0 | c._crypto_core_ristretto255_bytes()), s = _.address;
|
|
1365
|
+
if (a.push(s), (0 | c._crypto_core_ristretto255_from_hash(s, e)) == 0) {
|
|
1366
|
+
var n = m(_, r);
|
|
1367
|
+
return d(a), n;
|
|
1368
|
+
}
|
|
1369
|
+
E(a, "invalid usage");
|
|
1370
|
+
}
|
|
1371
|
+
function kt(t, r) {
|
|
1372
|
+
var a = [];
|
|
1373
|
+
f(r), t = y(a, t, "repr");
|
|
1374
|
+
var e, _ = 0 | c._crypto_core_ristretto255_bytes();
|
|
1375
|
+
t.length !== _ && l(a, "invalid repr length"), e = h(t), a.push(e);
|
|
1376
|
+
var s = (0 | c._crypto_core_ristretto255_is_valid_point(e)) == 1;
|
|
1377
|
+
return d(a), s;
|
|
1378
|
+
}
|
|
1379
|
+
function St(t) {
|
|
1380
|
+
var r = [];
|
|
1381
|
+
f(t);
|
|
1382
|
+
var a = new g(0 | c._crypto_core_ristretto255_bytes()), e = a.address;
|
|
1383
|
+
r.push(e), c._crypto_core_ristretto255_random(e);
|
|
1384
|
+
var _ = m(a, t);
|
|
1385
|
+
return d(r), _;
|
|
1386
|
+
}
|
|
1387
|
+
function Tt(t, r, a) {
|
|
1388
|
+
var e = [];
|
|
1389
|
+
f(a), t = y(e, t, "x");
|
|
1390
|
+
var _, s = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1391
|
+
t.length !== s && l(e, "invalid x length"), _ = h(t), e.push(_), r = y(e, r, "y");
|
|
1392
|
+
var n, o = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1393
|
+
r.length !== o && l(e, "invalid y length"), n = h(r), e.push(n);
|
|
1394
|
+
var p = new g(0 | c._crypto_core_ristretto255_scalarbytes()), i = p.address;
|
|
1395
|
+
e.push(i), c._crypto_core_ristretto255_scalar_add(i, _, n);
|
|
1396
|
+
var u = m(p, a);
|
|
1397
|
+
return d(e), u;
|
|
1398
|
+
}
|
|
1399
|
+
function wt(t, r) {
|
|
1400
|
+
var a = [];
|
|
1401
|
+
f(r), t = y(a, t, "s");
|
|
1402
|
+
var e, _ = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1403
|
+
t.length !== _ && l(a, "invalid s length"), e = h(t), a.push(e);
|
|
1404
|
+
var s = new g(0 | c._crypto_core_ristretto255_scalarbytes()), n = s.address;
|
|
1405
|
+
a.push(n), c._crypto_core_ristretto255_scalar_complement(n, e);
|
|
1406
|
+
var o = m(s, r);
|
|
1407
|
+
return d(a), o;
|
|
1408
|
+
}
|
|
1409
|
+
function Yt(t, r) {
|
|
1410
|
+
var a = [];
|
|
1411
|
+
f(r), t = y(a, t, "s");
|
|
1412
|
+
var e, _ = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1413
|
+
t.length !== _ && l(a, "invalid s length"), e = h(t), a.push(e);
|
|
1414
|
+
var s = new g(0 | c._crypto_core_ristretto255_scalarbytes()), n = s.address;
|
|
1415
|
+
if (a.push(n), (0 | c._crypto_core_ristretto255_scalar_invert(n, e)) == 0) {
|
|
1416
|
+
var o = m(s, r);
|
|
1417
|
+
return d(a), o;
|
|
1418
|
+
}
|
|
1419
|
+
E(a, "invalid reciprocate");
|
|
1420
|
+
}
|
|
1421
|
+
function Bt(t, r, a) {
|
|
1422
|
+
var e = [];
|
|
1423
|
+
f(a), t = y(e, t, "x");
|
|
1424
|
+
var _, s = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1425
|
+
t.length !== s && l(e, "invalid x length"), _ = h(t), e.push(_), r = y(e, r, "y");
|
|
1426
|
+
var n, o = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1427
|
+
r.length !== o && l(e, "invalid y length"), n = h(r), e.push(n);
|
|
1428
|
+
var p = new g(0 | c._crypto_core_ristretto255_scalarbytes()), i = p.address;
|
|
1429
|
+
e.push(i), c._crypto_core_ristretto255_scalar_mul(i, _, n);
|
|
1430
|
+
var u = m(p, a);
|
|
1431
|
+
return d(e), u;
|
|
1432
|
+
}
|
|
1433
|
+
function At(t, r) {
|
|
1434
|
+
var a = [];
|
|
1435
|
+
f(r), t = y(a, t, "s");
|
|
1436
|
+
var e, _ = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1437
|
+
t.length !== _ && l(a, "invalid s length"), e = h(t), a.push(e);
|
|
1438
|
+
var s = new g(0 | c._crypto_core_ristretto255_scalarbytes()), n = s.address;
|
|
1439
|
+
a.push(n), c._crypto_core_ristretto255_scalar_negate(n, e);
|
|
1440
|
+
var o = m(s, r);
|
|
1441
|
+
return d(a), o;
|
|
1442
|
+
}
|
|
1443
|
+
function Kt(t) {
|
|
1444
|
+
var r = [];
|
|
1445
|
+
f(t);
|
|
1446
|
+
var a = new g(0 | c._crypto_core_ristretto255_scalarbytes()), e = a.address;
|
|
1447
|
+
r.push(e), c._crypto_core_ristretto255_scalar_random(e);
|
|
1448
|
+
var _ = m(a, t);
|
|
1449
|
+
return d(r), _;
|
|
1450
|
+
}
|
|
1451
|
+
function Mt(t, r) {
|
|
1452
|
+
var a = [];
|
|
1453
|
+
f(r), t = y(a, t, "sample");
|
|
1454
|
+
var e, _ = 0 | c._crypto_core_ristretto255_nonreducedscalarbytes();
|
|
1455
|
+
t.length !== _ && l(a, "invalid sample length"), e = h(t), a.push(e);
|
|
1456
|
+
var s = new g(0 | c._crypto_core_ristretto255_scalarbytes()), n = s.address;
|
|
1457
|
+
a.push(n), c._crypto_core_ristretto255_scalar_reduce(n, e);
|
|
1458
|
+
var o = m(s, r);
|
|
1459
|
+
return d(a), o;
|
|
1460
|
+
}
|
|
1461
|
+
function It(t, r, a) {
|
|
1462
|
+
var e = [];
|
|
1463
|
+
f(a), t = y(e, t, "x");
|
|
1464
|
+
var _, s = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1465
|
+
t.length !== s && l(e, "invalid x length"), _ = h(t), e.push(_), r = y(e, r, "y");
|
|
1466
|
+
var n, o = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1467
|
+
r.length !== o && l(e, "invalid y length"), n = h(r), e.push(n);
|
|
1468
|
+
var p = new g(0 | c._crypto_core_ristretto255_scalarbytes()), i = p.address;
|
|
1469
|
+
e.push(i), c._crypto_core_ristretto255_scalar_sub(i, _, n);
|
|
1470
|
+
var u = m(p, a);
|
|
1471
|
+
return d(e), u;
|
|
1472
|
+
}
|
|
1473
|
+
function Nt(t, r, a) {
|
|
1474
|
+
var e = [];
|
|
1475
|
+
f(a), t = y(e, t, "p");
|
|
1476
|
+
var _, s = 0 | c._crypto_core_ristretto255_bytes();
|
|
1477
|
+
t.length !== s && l(e, "invalid p length"), _ = h(t), e.push(_), r = y(e, r, "q");
|
|
1478
|
+
var n, o = 0 | c._crypto_core_ristretto255_bytes();
|
|
1479
|
+
r.length !== o && l(e, "invalid q length"), n = h(r), e.push(n);
|
|
1480
|
+
var p = new g(0 | c._crypto_core_ristretto255_bytes()), i = p.address;
|
|
1481
|
+
if (e.push(i), (0 | c._crypto_core_ristretto255_sub(i, _, n)) == 0) {
|
|
1482
|
+
var u = m(p, a);
|
|
1483
|
+
return d(e), u;
|
|
1484
|
+
}
|
|
1485
|
+
E(e, "input is an invalid element");
|
|
1486
|
+
}
|
|
1487
|
+
function Lt(t, r, a, e) {
|
|
1488
|
+
var _ = [];
|
|
1489
|
+
f(e), B(_, t, "hash_length"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(_, "hash_length must be an unsigned integer");
|
|
1490
|
+
var s = h(r = y(_, r, "message")), n = r.length;
|
|
1491
|
+
_.push(s);
|
|
1492
|
+
var o = null, p = 0;
|
|
1493
|
+
a != null && (o = h(a = y(_, a, "key")), p = a.length, _.push(o));
|
|
1494
|
+
var i = new g(t |= 0), u = i.address;
|
|
1495
|
+
if (_.push(u), (0 | c._crypto_generichash(u, t, s, n, 0, o, p)) == 0) {
|
|
1496
|
+
var v = m(i, e);
|
|
1497
|
+
return d(_), v;
|
|
1498
|
+
}
|
|
1499
|
+
E(_, "invalid usage");
|
|
1500
|
+
}
|
|
1501
|
+
function Ut(t, r, a, e, _) {
|
|
1502
|
+
var s = [];
|
|
1503
|
+
f(_), B(s, t, "subkey_len"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(s, "subkey_len must be an unsigned integer");
|
|
1504
|
+
var n = null, o = 0;
|
|
1505
|
+
r != null && (n = h(r = y(s, r, "key")), o = r.length, s.push(n));
|
|
1506
|
+
var p = null, i = 0;
|
|
1507
|
+
a != null && (a = y(s, a, "id"), i = 0 | c._crypto_generichash_blake2b_saltbytes(), a.length !== i && l(s, "invalid id length"), p = h(a), s.push(p));
|
|
1508
|
+
var u = null, v = 0;
|
|
1509
|
+
e != null && (e = y(s, e, "ctx"), v = 0 | c._crypto_generichash_blake2b_personalbytes(), e.length !== v && l(s, "invalid ctx length"), u = h(e), s.push(u));
|
|
1510
|
+
var b = new g(0 | t), x = b.address;
|
|
1511
|
+
if (s.push(x), (0 | c._crypto_generichash_blake2b_salt_personal(x, t, null, 0, 0, n, o, p, u)) == 0) {
|
|
1512
|
+
var k = m(b, _);
|
|
1513
|
+
return d(s), k;
|
|
1514
|
+
}
|
|
1515
|
+
E(s, "invalid usage");
|
|
1516
|
+
}
|
|
1517
|
+
function Ot(t, r, a) {
|
|
1518
|
+
var e = [];
|
|
1519
|
+
f(a), B(e, t, "state_address"), B(e, r, "hash_length"), (typeof r != "number" || (0 | r) !== r || r < 0) && l(e, "hash_length must be an unsigned integer");
|
|
1520
|
+
var _ = new g(r |= 0), s = _.address;
|
|
1521
|
+
if (e.push(s), (0 | c._crypto_generichash_final(t, s, r)) == 0) {
|
|
1522
|
+
var n = (c._free(t), m(_, a));
|
|
1523
|
+
return d(e), n;
|
|
1524
|
+
}
|
|
1525
|
+
E(e, "invalid usage");
|
|
1526
|
+
}
|
|
1527
|
+
function Ct(t, r, a) {
|
|
1528
|
+
var e = [];
|
|
1529
|
+
f(a);
|
|
1530
|
+
var _ = null, s = 0;
|
|
1531
|
+
t != null && (_ = h(t = y(e, t, "key")), s = t.length, e.push(_)), B(e, r, "hash_length"), (typeof r != "number" || (0 | r) !== r || r < 0) && l(e, "hash_length must be an unsigned integer");
|
|
1532
|
+
var n = new g(357).address;
|
|
1533
|
+
if (!(0 | c._crypto_generichash_init(n, _, s, r))) {
|
|
1534
|
+
var o = n;
|
|
1535
|
+
return d(e), o;
|
|
1536
|
+
}
|
|
1537
|
+
E(e, "invalid usage");
|
|
1538
|
+
}
|
|
1539
|
+
function Rt(t) {
|
|
1540
|
+
var r = [];
|
|
1541
|
+
f(t);
|
|
1542
|
+
var a = new g(0 | c._crypto_generichash_keybytes()), e = a.address;
|
|
1543
|
+
r.push(e), c._crypto_generichash_keygen(e);
|
|
1544
|
+
var _ = m(a, t);
|
|
1545
|
+
return d(r), _;
|
|
1546
|
+
}
|
|
1547
|
+
function Pt(t, r, a) {
|
|
1548
|
+
var e = [];
|
|
1549
|
+
f(a), B(e, t, "state_address");
|
|
1550
|
+
var _ = h(r = y(e, r, "message_chunk")), s = r.length;
|
|
1551
|
+
e.push(_), 0 | c._crypto_generichash_update(t, _, s) && E(e, "invalid usage"), d(e);
|
|
1552
|
+
}
|
|
1553
|
+
function Gt(t, r) {
|
|
1554
|
+
var a = [];
|
|
1555
|
+
f(r);
|
|
1556
|
+
var e = h(t = y(a, t, "message")), _ = t.length;
|
|
1557
|
+
a.push(e);
|
|
1558
|
+
var s = new g(0 | c._crypto_hash_bytes()), n = s.address;
|
|
1559
|
+
if (a.push(n), (0 | c._crypto_hash(n, e, _, 0)) == 0) {
|
|
1560
|
+
var o = m(s, r);
|
|
1561
|
+
return d(a), o;
|
|
1562
|
+
}
|
|
1563
|
+
E(a, "invalid usage");
|
|
1564
|
+
}
|
|
1565
|
+
function Xt(t, r) {
|
|
1566
|
+
var a = [];
|
|
1567
|
+
f(r);
|
|
1568
|
+
var e = h(t = y(a, t, "message")), _ = t.length;
|
|
1569
|
+
a.push(e);
|
|
1570
|
+
var s = new g(0 | c._crypto_hash_sha256_bytes()), n = s.address;
|
|
1571
|
+
if (a.push(n), (0 | c._crypto_hash_sha256(n, e, _, 0)) == 0) {
|
|
1572
|
+
var o = m(s, r);
|
|
1573
|
+
return d(a), o;
|
|
1574
|
+
}
|
|
1575
|
+
E(a, "invalid usage");
|
|
1576
|
+
}
|
|
1577
|
+
function Dt(t, r) {
|
|
1578
|
+
var a = [];
|
|
1579
|
+
f(r), B(a, t, "state_address");
|
|
1580
|
+
var e = new g(0 | c._crypto_hash_sha256_bytes()), _ = e.address;
|
|
1581
|
+
if (a.push(_), (0 | c._crypto_hash_sha256_final(t, _)) == 0) {
|
|
1582
|
+
var s = (c._free(t), m(e, r));
|
|
1583
|
+
return d(a), s;
|
|
1584
|
+
}
|
|
1585
|
+
E(a, "invalid usage");
|
|
1586
|
+
}
|
|
1587
|
+
function Ft(t) {
|
|
1588
|
+
var r = [];
|
|
1589
|
+
f(t);
|
|
1590
|
+
var a = new g(104).address;
|
|
1591
|
+
if (!(0 | c._crypto_hash_sha256_init(a))) {
|
|
1592
|
+
var e = a;
|
|
1593
|
+
return d(r), e;
|
|
1594
|
+
}
|
|
1595
|
+
E(r, "invalid usage");
|
|
1596
|
+
}
|
|
1597
|
+
function Vt(t, r, a) {
|
|
1598
|
+
var e = [];
|
|
1599
|
+
f(a), B(e, t, "state_address");
|
|
1600
|
+
var _ = h(r = y(e, r, "message_chunk")), s = r.length;
|
|
1601
|
+
e.push(_), 0 | c._crypto_hash_sha256_update(t, _, s) && E(e, "invalid usage"), d(e);
|
|
1602
|
+
}
|
|
1603
|
+
function qt(t, r) {
|
|
1604
|
+
var a = [];
|
|
1605
|
+
f(r);
|
|
1606
|
+
var e = h(t = y(a, t, "message")), _ = t.length;
|
|
1607
|
+
a.push(e);
|
|
1608
|
+
var s = new g(0 | c._crypto_hash_sha512_bytes()), n = s.address;
|
|
1609
|
+
if (a.push(n), (0 | c._crypto_hash_sha512(n, e, _, 0)) == 0) {
|
|
1610
|
+
var o = m(s, r);
|
|
1611
|
+
return d(a), o;
|
|
1612
|
+
}
|
|
1613
|
+
E(a, "invalid usage");
|
|
1614
|
+
}
|
|
1615
|
+
function Ht(t, r) {
|
|
1616
|
+
var a = [];
|
|
1617
|
+
f(r), B(a, t, "state_address");
|
|
1618
|
+
var e = new g(0 | c._crypto_hash_sha512_bytes()), _ = e.address;
|
|
1619
|
+
if (a.push(_), (0 | c._crypto_hash_sha512_final(t, _)) == 0) {
|
|
1620
|
+
var s = (c._free(t), m(e, r));
|
|
1621
|
+
return d(a), s;
|
|
1622
|
+
}
|
|
1623
|
+
E(a, "invalid usage");
|
|
1624
|
+
}
|
|
1625
|
+
function jt(t) {
|
|
1626
|
+
var r = [];
|
|
1627
|
+
f(t);
|
|
1628
|
+
var a = new g(208).address;
|
|
1629
|
+
if (!(0 | c._crypto_hash_sha512_init(a))) {
|
|
1630
|
+
var e = a;
|
|
1631
|
+
return d(r), e;
|
|
1632
|
+
}
|
|
1633
|
+
E(r, "invalid usage");
|
|
1634
|
+
}
|
|
1635
|
+
function zt(t, r, a) {
|
|
1636
|
+
var e = [];
|
|
1637
|
+
f(a), B(e, t, "state_address");
|
|
1638
|
+
var _ = h(r = y(e, r, "message_chunk")), s = r.length;
|
|
1639
|
+
e.push(_), 0 | c._crypto_hash_sha512_update(t, _, s) && E(e, "invalid usage"), d(e);
|
|
1640
|
+
}
|
|
1641
|
+
function Wt(t, r, a, e, _) {
|
|
1642
|
+
var s = [];
|
|
1643
|
+
f(_), B(s, t, "subkey_len"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(s, "subkey_len must be an unsigned integer"), B(s, r, "subkey_id"), (typeof r != "number" || (0 | r) !== r || r < 0) && l(s, "subkey_id must be an unsigned integer"), typeof a != "string" && l(s, "ctx must be a string"), a = O(a + "\0"), o != null && a.length - 1 !== o && l(s, "invalid ctx length");
|
|
1644
|
+
var n = h(a), o = a.length - 1;
|
|
1645
|
+
s.push(n), e = y(s, e, "key");
|
|
1646
|
+
var p, i = 0 | c._crypto_kdf_keybytes();
|
|
1647
|
+
e.length !== i && l(s, "invalid key length"), p = h(e), s.push(p);
|
|
1648
|
+
var u = new g(0 | t), v = u.address;
|
|
1649
|
+
s.push(v), c._crypto_kdf_derive_from_key(v, t, r, r >>> 24 >>> 8, n, p);
|
|
1650
|
+
var b = m(u, _);
|
|
1651
|
+
return d(s), b;
|
|
1652
|
+
}
|
|
1653
|
+
function Jt(t) {
|
|
1654
|
+
var r = [];
|
|
1655
|
+
f(t);
|
|
1656
|
+
var a = new g(0 | c._crypto_kdf_keybytes()), e = a.address;
|
|
1657
|
+
r.push(e), c._crypto_kdf_keygen(e);
|
|
1658
|
+
var _ = m(a, t);
|
|
1659
|
+
return d(r), _;
|
|
1660
|
+
}
|
|
1661
|
+
function Qt(t, r, a, e) {
|
|
1662
|
+
var _ = [];
|
|
1663
|
+
f(e), t = y(_, t, "clientPublicKey");
|
|
1664
|
+
var s, n = 0 | c._crypto_kx_publickeybytes();
|
|
1665
|
+
t.length !== n && l(_, "invalid clientPublicKey length"), s = h(t), _.push(s), r = y(_, r, "clientSecretKey");
|
|
1666
|
+
var o, p = 0 | c._crypto_kx_secretkeybytes();
|
|
1667
|
+
r.length !== p && l(_, "invalid clientSecretKey length"), o = h(r), _.push(o), a = y(_, a, "serverPublicKey");
|
|
1668
|
+
var i, u = 0 | c._crypto_kx_publickeybytes();
|
|
1669
|
+
a.length !== u && l(_, "invalid serverPublicKey length"), i = h(a), _.push(i);
|
|
1670
|
+
var v = new g(0 | c._crypto_kx_sessionkeybytes()), b = v.address;
|
|
1671
|
+
_.push(b);
|
|
1672
|
+
var x = new g(0 | c._crypto_kx_sessionkeybytes()), k = x.address;
|
|
1673
|
+
if (_.push(k), (0 | c._crypto_kx_client_session_keys(b, k, s, o, i)) == 0) {
|
|
1674
|
+
var S = m({ sharedRx: v, sharedTx: x }, e);
|
|
1675
|
+
return d(_), S;
|
|
1676
|
+
}
|
|
1677
|
+
E(_, "invalid usage");
|
|
1678
|
+
}
|
|
1679
|
+
function Zt(t) {
|
|
1680
|
+
var r = [];
|
|
1681
|
+
f(t);
|
|
1682
|
+
var a = new g(0 | c._crypto_kx_publickeybytes()), e = a.address;
|
|
1683
|
+
r.push(e);
|
|
1684
|
+
var _ = new g(0 | c._crypto_kx_secretkeybytes()), s = _.address;
|
|
1685
|
+
if (r.push(s), (0 | c._crypto_kx_keypair(e, s)) == 0) {
|
|
1686
|
+
var n = { publicKey: m(a, t), privateKey: m(_, t), keyType: "x25519" };
|
|
1687
|
+
return d(r), n;
|
|
1688
|
+
}
|
|
1689
|
+
E(r, "internal error");
|
|
1690
|
+
}
|
|
1691
|
+
function $t(t, r) {
|
|
1692
|
+
var a = [];
|
|
1693
|
+
f(r), t = y(a, t, "seed");
|
|
1694
|
+
var e, _ = 0 | c._crypto_kx_seedbytes();
|
|
1695
|
+
t.length !== _ && l(a, "invalid seed length"), e = h(t), a.push(e);
|
|
1696
|
+
var s = new g(0 | c._crypto_kx_publickeybytes()), n = s.address;
|
|
1697
|
+
a.push(n);
|
|
1698
|
+
var o = new g(0 | c._crypto_kx_secretkeybytes()), p = o.address;
|
|
1699
|
+
if (a.push(p), (0 | c._crypto_kx_seed_keypair(n, p, e)) == 0) {
|
|
1700
|
+
var i = { publicKey: m(s, r), privateKey: m(o, r), keyType: "x25519" };
|
|
1701
|
+
return d(a), i;
|
|
1702
|
+
}
|
|
1703
|
+
E(a, "internal error");
|
|
1704
|
+
}
|
|
1705
|
+
function ea(t, r, a, e) {
|
|
1706
|
+
var _ = [];
|
|
1707
|
+
f(e), t = y(_, t, "serverPublicKey");
|
|
1708
|
+
var s, n = 0 | c._crypto_kx_publickeybytes();
|
|
1709
|
+
t.length !== n && l(_, "invalid serverPublicKey length"), s = h(t), _.push(s), r = y(_, r, "serverSecretKey");
|
|
1710
|
+
var o, p = 0 | c._crypto_kx_secretkeybytes();
|
|
1711
|
+
r.length !== p && l(_, "invalid serverSecretKey length"), o = h(r), _.push(o), a = y(_, a, "clientPublicKey");
|
|
1712
|
+
var i, u = 0 | c._crypto_kx_publickeybytes();
|
|
1713
|
+
a.length !== u && l(_, "invalid clientPublicKey length"), i = h(a), _.push(i);
|
|
1714
|
+
var v = new g(0 | c._crypto_kx_sessionkeybytes()), b = v.address;
|
|
1715
|
+
_.push(b);
|
|
1716
|
+
var x = new g(0 | c._crypto_kx_sessionkeybytes()), k = x.address;
|
|
1717
|
+
if (_.push(k), (0 | c._crypto_kx_server_session_keys(b, k, s, o, i)) == 0) {
|
|
1718
|
+
var S = m({ sharedRx: v, sharedTx: x }, e);
|
|
1719
|
+
return d(_), S;
|
|
1720
|
+
}
|
|
1721
|
+
E(_, "invalid usage");
|
|
1722
|
+
}
|
|
1723
|
+
function ta(t, r, a) {
|
|
1724
|
+
var e = [];
|
|
1725
|
+
f(a);
|
|
1726
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
1727
|
+
e.push(_), r = y(e, r, "key");
|
|
1728
|
+
var n, o = 0 | c._crypto_onetimeauth_keybytes();
|
|
1729
|
+
r.length !== o && l(e, "invalid key length"), n = h(r), e.push(n);
|
|
1730
|
+
var p = new g(0 | c._crypto_onetimeauth_bytes()), i = p.address;
|
|
1731
|
+
if (e.push(i), (0 | c._crypto_onetimeauth(i, _, s, 0, n)) == 0) {
|
|
1732
|
+
var u = m(p, a);
|
|
1733
|
+
return d(e), u;
|
|
1734
|
+
}
|
|
1735
|
+
E(e, "invalid usage");
|
|
1736
|
+
}
|
|
1737
|
+
function aa(t, r) {
|
|
1738
|
+
var a = [];
|
|
1739
|
+
f(r), B(a, t, "state_address");
|
|
1740
|
+
var e = new g(0 | c._crypto_onetimeauth_bytes()), _ = e.address;
|
|
1741
|
+
if (a.push(_), (0 | c._crypto_onetimeauth_final(t, _)) == 0) {
|
|
1742
|
+
var s = (c._free(t), m(e, r));
|
|
1743
|
+
return d(a), s;
|
|
1744
|
+
}
|
|
1745
|
+
E(a, "invalid usage");
|
|
1746
|
+
}
|
|
1747
|
+
function ra(t, r) {
|
|
1748
|
+
var a = [];
|
|
1749
|
+
f(r);
|
|
1750
|
+
var e = null;
|
|
1751
|
+
t != null && (e = h(t = y(a, t, "key")), t.length, a.push(e));
|
|
1752
|
+
var _ = new g(144).address;
|
|
1753
|
+
if (!(0 | c._crypto_onetimeauth_init(_, e))) {
|
|
1754
|
+
var s = _;
|
|
1755
|
+
return d(a), s;
|
|
1756
|
+
}
|
|
1757
|
+
E(a, "invalid usage");
|
|
1758
|
+
}
|
|
1759
|
+
function _a(t) {
|
|
1760
|
+
var r = [];
|
|
1761
|
+
f(t);
|
|
1762
|
+
var a = new g(0 | c._crypto_onetimeauth_keybytes()), e = a.address;
|
|
1763
|
+
r.push(e), c._crypto_onetimeauth_keygen(e);
|
|
1764
|
+
var _ = m(a, t);
|
|
1765
|
+
return d(r), _;
|
|
1766
|
+
}
|
|
1767
|
+
function na(t, r, a) {
|
|
1768
|
+
var e = [];
|
|
1769
|
+
f(a), B(e, t, "state_address");
|
|
1770
|
+
var _ = h(r = y(e, r, "message_chunk")), s = r.length;
|
|
1771
|
+
e.push(_), 0 | c._crypto_onetimeauth_update(t, _, s) && E(e, "invalid usage"), d(e);
|
|
1772
|
+
}
|
|
1773
|
+
function sa(t, r, a) {
|
|
1774
|
+
var e = [];
|
|
1775
|
+
t = y(e, t, "hash");
|
|
1776
|
+
var _, s = 0 | c._crypto_onetimeauth_bytes();
|
|
1777
|
+
t.length !== s && l(e, "invalid hash length"), _ = h(t), e.push(_);
|
|
1778
|
+
var n = h(r = y(e, r, "message")), o = r.length;
|
|
1779
|
+
e.push(n), a = y(e, a, "key");
|
|
1780
|
+
var p, i = 0 | c._crypto_onetimeauth_keybytes();
|
|
1781
|
+
a.length !== i && l(e, "invalid key length"), p = h(a), e.push(p);
|
|
1782
|
+
var u = (0 | c._crypto_onetimeauth_verify(_, n, o, 0, p)) == 0;
|
|
1783
|
+
return d(e), u;
|
|
1784
|
+
}
|
|
1785
|
+
function ca(t, r, a, e, _, s, n) {
|
|
1786
|
+
var o = [];
|
|
1787
|
+
f(n), B(o, t, "keyLength"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(o, "keyLength must be an unsigned integer");
|
|
1788
|
+
var p = h(r = y(o, r, "password")), i = r.length;
|
|
1789
|
+
o.push(p), a = y(o, a, "salt");
|
|
1790
|
+
var u, v = 0 | c._crypto_pwhash_saltbytes();
|
|
1791
|
+
a.length !== v && l(o, "invalid salt length"), u = h(a), o.push(u), B(o, e, "opsLimit"), (typeof e != "number" || (0 | e) !== e || e < 0) && l(o, "opsLimit must be an unsigned integer"), B(o, _, "memLimit"), (typeof _ != "number" || (0 | _) !== _ || _ < 0) && l(o, "memLimit must be an unsigned integer"), B(o, s, "algorithm"), (typeof s != "number" || (0 | s) !== s || s < 0) && l(o, "algorithm must be an unsigned integer");
|
|
1792
|
+
var b = new g(0 | t), x = b.address;
|
|
1793
|
+
if (o.push(x), (0 | c._crypto_pwhash(x, t, 0, p, i, 0, u, e, 0, _, s)) == 0) {
|
|
1794
|
+
var k = m(b, n);
|
|
1795
|
+
return d(o), k;
|
|
1796
|
+
}
|
|
1797
|
+
E(o, "invalid usage");
|
|
1798
|
+
}
|
|
1799
|
+
function oa(t, r, a, e, _, s) {
|
|
1800
|
+
var n = [];
|
|
1801
|
+
f(s), B(n, t, "keyLength"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(n, "keyLength must be an unsigned integer");
|
|
1802
|
+
var o = h(r = y(n, r, "password")), p = r.length;
|
|
1803
|
+
n.push(o), a = y(n, a, "salt");
|
|
1804
|
+
var i, u = 0 | c._crypto_pwhash_scryptsalsa208sha256_saltbytes();
|
|
1805
|
+
a.length !== u && l(n, "invalid salt length"), i = h(a), n.push(i), B(n, e, "opsLimit"), (typeof e != "number" || (0 | e) !== e || e < 0) && l(n, "opsLimit must be an unsigned integer"), B(n, _, "memLimit"), (typeof _ != "number" || (0 | _) !== _ || _ < 0) && l(n, "memLimit must be an unsigned integer");
|
|
1806
|
+
var v = new g(0 | t), b = v.address;
|
|
1807
|
+
if (n.push(b), (0 | c._crypto_pwhash_scryptsalsa208sha256(b, t, 0, o, p, 0, i, e, 0, _)) == 0) {
|
|
1808
|
+
var x = m(v, s);
|
|
1809
|
+
return d(n), x;
|
|
1810
|
+
}
|
|
1811
|
+
E(n, "invalid usage");
|
|
1812
|
+
}
|
|
1813
|
+
function ha(t, r, a, e, _, s, n) {
|
|
1814
|
+
var o = [];
|
|
1815
|
+
f(n);
|
|
1816
|
+
var p = h(t = y(o, t, "password")), i = t.length;
|
|
1817
|
+
o.push(p);
|
|
1818
|
+
var u = h(r = y(o, r, "salt")), v = r.length;
|
|
1819
|
+
o.push(u), B(o, a, "opsLimit"), (typeof a != "number" || (0 | a) !== a || a < 0) && l(o, "opsLimit must be an unsigned integer"), B(o, e, "r"), (typeof e != "number" || (0 | e) !== e || e < 0) && l(o, "r must be an unsigned integer"), B(o, _, "p"), (typeof _ != "number" || (0 | _) !== _ || _ < 0) && l(o, "p must be an unsigned integer"), B(o, s, "keyLength"), (typeof s != "number" || (0 | s) !== s || s < 0) && l(o, "keyLength must be an unsigned integer");
|
|
1820
|
+
var b = new g(0 | s), x = b.address;
|
|
1821
|
+
if (o.push(x), (0 | c._crypto_pwhash_scryptsalsa208sha256_ll(p, i, u, v, a, 0, e, _, x, s)) == 0) {
|
|
1822
|
+
var k = m(b, n);
|
|
1823
|
+
return d(o), k;
|
|
1824
|
+
}
|
|
1825
|
+
E(o, "invalid usage");
|
|
1826
|
+
}
|
|
1827
|
+
function pa(t, r, a, e) {
|
|
1828
|
+
var _ = [];
|
|
1829
|
+
f(e);
|
|
1830
|
+
var s = h(t = y(_, t, "password")), n = t.length;
|
|
1831
|
+
_.push(s), B(_, r, "opsLimit"), (typeof r != "number" || (0 | r) !== r || r < 0) && l(_, "opsLimit must be an unsigned integer"), B(_, a, "memLimit"), (typeof a != "number" || (0 | a) !== a || a < 0) && l(_, "memLimit must be an unsigned integer");
|
|
1832
|
+
var o = new g(0 | c._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;
|
|
1833
|
+
if (_.push(o), (0 | c._crypto_pwhash_scryptsalsa208sha256_str(o, s, n, 0, r, 0, a)) == 0) {
|
|
1834
|
+
var p = c.UTF8ToString(o);
|
|
1835
|
+
return d(_), p;
|
|
1836
|
+
}
|
|
1837
|
+
E(_, "invalid usage");
|
|
1838
|
+
}
|
|
1839
|
+
function ya(t, r, a) {
|
|
1840
|
+
var e = [];
|
|
1841
|
+
f(a), typeof t != "string" && l(e, "hashed_password must be a string"), t = O(t + "\0"), s != null && t.length - 1 !== s && l(e, "invalid hashed_password length");
|
|
1842
|
+
var _ = h(t), s = t.length - 1;
|
|
1843
|
+
e.push(_);
|
|
1844
|
+
var n = h(r = y(e, r, "password")), o = r.length;
|
|
1845
|
+
e.push(n);
|
|
1846
|
+
var p = (0 | c._crypto_pwhash_scryptsalsa208sha256_str_verify(_, n, o, 0)) == 0;
|
|
1847
|
+
return d(e), p;
|
|
1848
|
+
}
|
|
1849
|
+
function ia(t, r, a, e) {
|
|
1850
|
+
var _ = [];
|
|
1851
|
+
f(e);
|
|
1852
|
+
var s = h(t = y(_, t, "password")), n = t.length;
|
|
1853
|
+
_.push(s), B(_, r, "opsLimit"), (typeof r != "number" || (0 | r) !== r || r < 0) && l(_, "opsLimit must be an unsigned integer"), B(_, a, "memLimit"), (typeof a != "number" || (0 | a) !== a || a < 0) && l(_, "memLimit must be an unsigned integer");
|
|
1854
|
+
var o = new g(0 | c._crypto_pwhash_strbytes()).address;
|
|
1855
|
+
if (_.push(o), (0 | c._crypto_pwhash_str(o, s, n, 0, r, 0, a)) == 0) {
|
|
1856
|
+
var p = c.UTF8ToString(o);
|
|
1857
|
+
return d(_), p;
|
|
1858
|
+
}
|
|
1859
|
+
E(_, "invalid usage");
|
|
1860
|
+
}
|
|
1861
|
+
function la(t, r, a, e) {
|
|
1862
|
+
var _ = [];
|
|
1863
|
+
f(e), typeof t != "string" && l(_, "hashed_password must be a string"), t = O(t + "\0"), n != null && t.length - 1 !== n && l(_, "invalid hashed_password length");
|
|
1864
|
+
var s = h(t), n = t.length - 1;
|
|
1865
|
+
_.push(s), B(_, r, "opsLimit"), (typeof r != "number" || (0 | r) !== r || r < 0) && l(_, "opsLimit must be an unsigned integer"), B(_, a, "memLimit"), (typeof a != "number" || (0 | a) !== a || a < 0) && l(_, "memLimit must be an unsigned integer");
|
|
1866
|
+
var o = (0 | c._crypto_pwhash_str_needs_rehash(s, r, 0, a)) != 0;
|
|
1867
|
+
return d(_), o;
|
|
1868
|
+
}
|
|
1869
|
+
function ua(t, r, a) {
|
|
1870
|
+
var e = [];
|
|
1871
|
+
f(a), typeof t != "string" && l(e, "hashed_password must be a string"), t = O(t + "\0"), s != null && t.length - 1 !== s && l(e, "invalid hashed_password length");
|
|
1872
|
+
var _ = h(t), s = t.length - 1;
|
|
1873
|
+
e.push(_);
|
|
1874
|
+
var n = h(r = y(e, r, "password")), o = r.length;
|
|
1875
|
+
e.push(n);
|
|
1876
|
+
var p = (0 | c._crypto_pwhash_str_verify(_, n, o, 0)) == 0;
|
|
1877
|
+
return d(e), p;
|
|
1878
|
+
}
|
|
1879
|
+
function va(t, r, a) {
|
|
1880
|
+
var e = [];
|
|
1881
|
+
f(a), t = y(e, t, "privateKey");
|
|
1882
|
+
var _, s = 0 | c._crypto_scalarmult_scalarbytes();
|
|
1883
|
+
t.length !== s && l(e, "invalid privateKey length"), _ = h(t), e.push(_), r = y(e, r, "publicKey");
|
|
1884
|
+
var n, o = 0 | c._crypto_scalarmult_bytes();
|
|
1885
|
+
r.length !== o && l(e, "invalid publicKey length"), n = h(r), e.push(n);
|
|
1886
|
+
var p = new g(0 | c._crypto_scalarmult_bytes()), i = p.address;
|
|
1887
|
+
if (e.push(i), (0 | c._crypto_scalarmult(i, _, n)) == 0) {
|
|
1888
|
+
var u = m(p, a);
|
|
1889
|
+
return d(e), u;
|
|
1890
|
+
}
|
|
1891
|
+
E(e, "weak public key");
|
|
1892
|
+
}
|
|
1893
|
+
function da(t, r) {
|
|
1894
|
+
var a = [];
|
|
1895
|
+
f(r), t = y(a, t, "privateKey");
|
|
1896
|
+
var e, _ = 0 | c._crypto_scalarmult_scalarbytes();
|
|
1897
|
+
t.length !== _ && l(a, "invalid privateKey length"), e = h(t), a.push(e);
|
|
1898
|
+
var s = new g(0 | c._crypto_scalarmult_bytes()), n = s.address;
|
|
1899
|
+
if (a.push(n), (0 | c._crypto_scalarmult_base(n, e)) == 0) {
|
|
1900
|
+
var o = m(s, r);
|
|
1901
|
+
return d(a), o;
|
|
1902
|
+
}
|
|
1903
|
+
E(a, "unknown error");
|
|
1904
|
+
}
|
|
1905
|
+
function ga(t, r, a) {
|
|
1906
|
+
var e = [];
|
|
1907
|
+
f(a), t = y(e, t, "n");
|
|
1908
|
+
var _, s = 0 | c._crypto_scalarmult_ed25519_scalarbytes();
|
|
1909
|
+
t.length !== s && l(e, "invalid n length"), _ = h(t), e.push(_), r = y(e, r, "p");
|
|
1910
|
+
var n, o = 0 | c._crypto_scalarmult_ed25519_bytes();
|
|
1911
|
+
r.length !== o && l(e, "invalid p length"), n = h(r), e.push(n);
|
|
1912
|
+
var p = new g(0 | c._crypto_scalarmult_ed25519_bytes()), i = p.address;
|
|
1913
|
+
if (e.push(i), (0 | c._crypto_scalarmult_ed25519(i, _, n)) == 0) {
|
|
1914
|
+
var u = m(p, a);
|
|
1915
|
+
return d(e), u;
|
|
1916
|
+
}
|
|
1917
|
+
E(e, "invalid point or scalar is 0");
|
|
1918
|
+
}
|
|
1919
|
+
function ba(t, r) {
|
|
1920
|
+
var a = [];
|
|
1921
|
+
f(r), t = y(a, t, "scalar");
|
|
1922
|
+
var e, _ = 0 | c._crypto_scalarmult_ed25519_scalarbytes();
|
|
1923
|
+
t.length !== _ && l(a, "invalid scalar length"), e = h(t), a.push(e);
|
|
1924
|
+
var s = new g(0 | c._crypto_scalarmult_ed25519_bytes()), n = s.address;
|
|
1925
|
+
if (a.push(n), (0 | c._crypto_scalarmult_ed25519_base(n, e)) == 0) {
|
|
1926
|
+
var o = m(s, r);
|
|
1927
|
+
return d(a), o;
|
|
1928
|
+
}
|
|
1929
|
+
E(a, "scalar is 0");
|
|
1930
|
+
}
|
|
1931
|
+
function fa(t, r) {
|
|
1932
|
+
var a = [];
|
|
1933
|
+
f(r), t = y(a, t, "scalar");
|
|
1934
|
+
var e, _ = 0 | c._crypto_scalarmult_ed25519_scalarbytes();
|
|
1935
|
+
t.length !== _ && l(a, "invalid scalar length"), e = h(t), a.push(e);
|
|
1936
|
+
var s = new g(0 | c._crypto_scalarmult_ed25519_bytes()), n = s.address;
|
|
1937
|
+
if (a.push(n), (0 | c._crypto_scalarmult_ed25519_base_noclamp(n, e)) == 0) {
|
|
1938
|
+
var o = m(s, r);
|
|
1939
|
+
return d(a), o;
|
|
1940
|
+
}
|
|
1941
|
+
E(a, "scalar is 0");
|
|
1942
|
+
}
|
|
1943
|
+
function ma(t, r, a) {
|
|
1944
|
+
var e = [];
|
|
1945
|
+
f(a), t = y(e, t, "n");
|
|
1946
|
+
var _, s = 0 | c._crypto_scalarmult_ed25519_scalarbytes();
|
|
1947
|
+
t.length !== s && l(e, "invalid n length"), _ = h(t), e.push(_), r = y(e, r, "p");
|
|
1948
|
+
var n, o = 0 | c._crypto_scalarmult_ed25519_bytes();
|
|
1949
|
+
r.length !== o && l(e, "invalid p length"), n = h(r), e.push(n);
|
|
1950
|
+
var p = new g(0 | c._crypto_scalarmult_ed25519_bytes()), i = p.address;
|
|
1951
|
+
if (e.push(i), (0 | c._crypto_scalarmult_ed25519_noclamp(i, _, n)) == 0) {
|
|
1952
|
+
var u = m(p, a);
|
|
1953
|
+
return d(e), u;
|
|
1954
|
+
}
|
|
1955
|
+
E(e, "invalid point or scalar is 0");
|
|
1956
|
+
}
|
|
1957
|
+
function xa(t, r, a) {
|
|
1958
|
+
var e = [];
|
|
1959
|
+
f(a), t = y(e, t, "scalar");
|
|
1960
|
+
var _, s = 0 | c._crypto_scalarmult_ristretto255_scalarbytes();
|
|
1961
|
+
t.length !== s && l(e, "invalid scalar length"), _ = h(t), e.push(_), r = y(e, r, "element");
|
|
1962
|
+
var n, o = 0 | c._crypto_scalarmult_ristretto255_bytes();
|
|
1963
|
+
r.length !== o && l(e, "invalid element length"), n = h(r), e.push(n);
|
|
1964
|
+
var p = new g(0 | c._crypto_scalarmult_ristretto255_bytes()), i = p.address;
|
|
1965
|
+
if (e.push(i), (0 | c._crypto_scalarmult_ristretto255(i, _, n)) == 0) {
|
|
1966
|
+
var u = m(p, a);
|
|
1967
|
+
return d(e), u;
|
|
1968
|
+
}
|
|
1969
|
+
E(e, "result is identity element");
|
|
1970
|
+
}
|
|
1971
|
+
function Ea(t, r) {
|
|
1972
|
+
var a = [];
|
|
1973
|
+
f(r), t = y(a, t, "scalar");
|
|
1974
|
+
var e, _ = 0 | c._crypto_core_ristretto255_scalarbytes();
|
|
1975
|
+
t.length !== _ && l(a, "invalid scalar length"), e = h(t), a.push(e);
|
|
1976
|
+
var s = new g(0 | c._crypto_core_ristretto255_bytes()), n = s.address;
|
|
1977
|
+
if (a.push(n), (0 | c._crypto_scalarmult_ristretto255_base(n, e)) == 0) {
|
|
1978
|
+
var o = m(s, r);
|
|
1979
|
+
return d(a), o;
|
|
1980
|
+
}
|
|
1981
|
+
E(a, "scalar is 0");
|
|
1982
|
+
}
|
|
1983
|
+
function ka(t, r, a, e) {
|
|
1984
|
+
var _ = [];
|
|
1985
|
+
f(e);
|
|
1986
|
+
var s = h(t = y(_, t, "message")), n = t.length;
|
|
1987
|
+
_.push(s), r = y(_, r, "nonce");
|
|
1988
|
+
var o, p = 0 | c._crypto_secretbox_noncebytes();
|
|
1989
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "key");
|
|
1990
|
+
var i, u = 0 | c._crypto_secretbox_keybytes();
|
|
1991
|
+
a.length !== u && l(_, "invalid key length"), i = h(a), _.push(i);
|
|
1992
|
+
var v = new g(0 | n), b = v.address;
|
|
1993
|
+
_.push(b);
|
|
1994
|
+
var x = new g(0 | c._crypto_secretbox_macbytes()), k = x.address;
|
|
1995
|
+
if (_.push(k), (0 | c._crypto_secretbox_detached(b, k, s, n, 0, o, i)) == 0) {
|
|
1996
|
+
var S = m({ mac: x, cipher: v }, e);
|
|
1997
|
+
return d(_), S;
|
|
1998
|
+
}
|
|
1999
|
+
E(_, "invalid usage");
|
|
2000
|
+
}
|
|
2001
|
+
function Sa(t, r, a, e) {
|
|
2002
|
+
var _ = [];
|
|
2003
|
+
f(e);
|
|
2004
|
+
var s = h(t = y(_, t, "message")), n = t.length;
|
|
2005
|
+
_.push(s), r = y(_, r, "nonce");
|
|
2006
|
+
var o, p = 0 | c._crypto_secretbox_noncebytes();
|
|
2007
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "key");
|
|
2008
|
+
var i, u = 0 | c._crypto_secretbox_keybytes();
|
|
2009
|
+
a.length !== u && l(_, "invalid key length"), i = h(a), _.push(i);
|
|
2010
|
+
var v = new g(n + c._crypto_secretbox_macbytes() | 0), b = v.address;
|
|
2011
|
+
if (_.push(b), (0 | c._crypto_secretbox_easy(b, s, n, 0, o, i)) == 0) {
|
|
2012
|
+
var x = m(v, e);
|
|
2013
|
+
return d(_), x;
|
|
2014
|
+
}
|
|
2015
|
+
E(_, "invalid usage");
|
|
2016
|
+
}
|
|
2017
|
+
function Ta(t) {
|
|
2018
|
+
var r = [];
|
|
2019
|
+
f(t);
|
|
2020
|
+
var a = new g(0 | c._crypto_secretbox_keybytes()), e = a.address;
|
|
2021
|
+
r.push(e), c._crypto_secretbox_keygen(e);
|
|
2022
|
+
var _ = m(a, t);
|
|
2023
|
+
return d(r), _;
|
|
2024
|
+
}
|
|
2025
|
+
function wa(t, r, a, e, _) {
|
|
2026
|
+
var s = [];
|
|
2027
|
+
f(_);
|
|
2028
|
+
var n = h(t = y(s, t, "ciphertext")), o = t.length;
|
|
2029
|
+
s.push(n), r = y(s, r, "mac");
|
|
2030
|
+
var p, i = 0 | c._crypto_secretbox_macbytes();
|
|
2031
|
+
r.length !== i && l(s, "invalid mac length"), p = h(r), s.push(p), a = y(s, a, "nonce");
|
|
2032
|
+
var u, v = 0 | c._crypto_secretbox_noncebytes();
|
|
2033
|
+
a.length !== v && l(s, "invalid nonce length"), u = h(a), s.push(u), e = y(s, e, "key");
|
|
2034
|
+
var b, x = 0 | c._crypto_secretbox_keybytes();
|
|
2035
|
+
e.length !== x && l(s, "invalid key length"), b = h(e), s.push(b);
|
|
2036
|
+
var k = new g(0 | o), S = k.address;
|
|
2037
|
+
if (s.push(S), (0 | c._crypto_secretbox_open_detached(S, n, p, o, 0, u, b)) == 0) {
|
|
2038
|
+
var w = m(k, _);
|
|
2039
|
+
return d(s), w;
|
|
2040
|
+
}
|
|
2041
|
+
E(s, "wrong secret key for the given ciphertext");
|
|
2042
|
+
}
|
|
2043
|
+
function Ya(t, r, a, e) {
|
|
2044
|
+
var _ = [];
|
|
2045
|
+
f(e), t = y(_, t, "ciphertext");
|
|
2046
|
+
var s, n = c._crypto_secretbox_macbytes(), o = t.length;
|
|
2047
|
+
o < n && l(_, "ciphertext is too short"), s = h(t), _.push(s), r = y(_, r, "nonce");
|
|
2048
|
+
var p, i = 0 | c._crypto_secretbox_noncebytes();
|
|
2049
|
+
r.length !== i && l(_, "invalid nonce length"), p = h(r), _.push(p), a = y(_, a, "key");
|
|
2050
|
+
var u, v = 0 | c._crypto_secretbox_keybytes();
|
|
2051
|
+
a.length !== v && l(_, "invalid key length"), u = h(a), _.push(u);
|
|
2052
|
+
var b = new g(o - c._crypto_secretbox_macbytes() | 0), x = b.address;
|
|
2053
|
+
if (_.push(x), (0 | c._crypto_secretbox_open_easy(x, s, o, 0, p, u)) == 0) {
|
|
2054
|
+
var k = m(b, e);
|
|
2055
|
+
return d(_), k;
|
|
2056
|
+
}
|
|
2057
|
+
E(_, "wrong secret key for the given ciphertext");
|
|
2058
|
+
}
|
|
2059
|
+
function Ba(t, r, a) {
|
|
2060
|
+
var e = [];
|
|
2061
|
+
f(a), t = y(e, t, "header");
|
|
2062
|
+
var _, s = 0 | c._crypto_secretstream_xchacha20poly1305_headerbytes();
|
|
2063
|
+
t.length !== s && l(e, "invalid header length"), _ = h(t), e.push(_), r = y(e, r, "key");
|
|
2064
|
+
var n, o = 0 | c._crypto_secretstream_xchacha20poly1305_keybytes();
|
|
2065
|
+
r.length !== o && l(e, "invalid key length"), n = h(r), e.push(n);
|
|
2066
|
+
var p = new g(52).address;
|
|
2067
|
+
if (!(0 | c._crypto_secretstream_xchacha20poly1305_init_pull(p, _, n))) {
|
|
2068
|
+
var i = p;
|
|
2069
|
+
return d(e), i;
|
|
2070
|
+
}
|
|
2071
|
+
E(e, "invalid usage");
|
|
2072
|
+
}
|
|
2073
|
+
function Aa(t, r) {
|
|
2074
|
+
var a = [];
|
|
2075
|
+
f(r), t = y(a, t, "key");
|
|
2076
|
+
var e, _ = 0 | c._crypto_secretstream_xchacha20poly1305_keybytes();
|
|
2077
|
+
t.length !== _ && l(a, "invalid key length"), e = h(t), a.push(e);
|
|
2078
|
+
var s = new g(52).address, n = new g(0 | c._crypto_secretstream_xchacha20poly1305_headerbytes()), o = n.address;
|
|
2079
|
+
if (a.push(o), (0 | c._crypto_secretstream_xchacha20poly1305_init_push(s, o, e)) == 0) {
|
|
2080
|
+
var p = { state: s, header: m(n, r) };
|
|
2081
|
+
return d(a), p;
|
|
2082
|
+
}
|
|
2083
|
+
E(a, "invalid usage");
|
|
2084
|
+
}
|
|
2085
|
+
function Ka(t) {
|
|
2086
|
+
var r = [];
|
|
2087
|
+
f(t);
|
|
2088
|
+
var a = new g(0 | c._crypto_secretstream_xchacha20poly1305_keybytes()), e = a.address;
|
|
2089
|
+
r.push(e), c._crypto_secretstream_xchacha20poly1305_keygen(e);
|
|
2090
|
+
var _ = m(a, t);
|
|
2091
|
+
return d(r), _;
|
|
2092
|
+
}
|
|
2093
|
+
function Ma(t, r, a, e) {
|
|
2094
|
+
var _ = [];
|
|
2095
|
+
f(e), B(_, t, "state_address"), r = y(_, r, "cipher");
|
|
2096
|
+
var s, n = c._crypto_secretstream_xchacha20poly1305_abytes(), o = r.length;
|
|
2097
|
+
o < n && l(_, "cipher is too short"), s = h(r), _.push(s);
|
|
2098
|
+
var p = null, i = 0;
|
|
2099
|
+
a != null && (p = h(a = y(_, a, "ad")), i = a.length, _.push(p));
|
|
2100
|
+
var u = new g(o - c._crypto_secretstream_xchacha20poly1305_abytes() | 0), v = u.address;
|
|
2101
|
+
_.push(v);
|
|
2102
|
+
var b, x = (b = L(1), _.push(b), (x = c._crypto_secretstream_xchacha20poly1305_pull(t, v, 0, b, s, o, 0, p, i) === 0 && { tag: c.HEAPU8[b], message: u }) && { message: m(x.message, e), tag: x.tag });
|
|
2103
|
+
return d(_), x;
|
|
2104
|
+
}
|
|
2105
|
+
function Ia(t, r, a, e, _) {
|
|
2106
|
+
var s = [];
|
|
2107
|
+
f(_), B(s, t, "state_address");
|
|
2108
|
+
var n = h(r = y(s, r, "message_chunk")), o = r.length;
|
|
2109
|
+
s.push(n);
|
|
2110
|
+
var p = null, i = 0;
|
|
2111
|
+
a != null && (p = h(a = y(s, a, "ad")), i = a.length, s.push(p)), B(s, e, "tag"), (typeof e != "number" || (0 | e) !== e || e < 0) && l(s, "tag must be an unsigned integer");
|
|
2112
|
+
var u = new g(o + c._crypto_secretstream_xchacha20poly1305_abytes() | 0), v = u.address;
|
|
2113
|
+
if (s.push(v), (0 | c._crypto_secretstream_xchacha20poly1305_push(t, v, 0, n, o, 0, p, i, 0, e)) == 0) {
|
|
2114
|
+
var b = m(u, _);
|
|
2115
|
+
return d(s), b;
|
|
2116
|
+
}
|
|
2117
|
+
E(s, "invalid usage");
|
|
2118
|
+
}
|
|
2119
|
+
function Na(t, r) {
|
|
2120
|
+
var a = [];
|
|
2121
|
+
return f(r), B(a, t, "state_address"), c._crypto_secretstream_xchacha20poly1305_rekey(t), d(a), !0;
|
|
2122
|
+
}
|
|
2123
|
+
function La(t, r, a) {
|
|
2124
|
+
var e = [];
|
|
2125
|
+
f(a);
|
|
2126
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
2127
|
+
e.push(_), r = y(e, r, "key");
|
|
2128
|
+
var n, o = 0 | c._crypto_shorthash_keybytes();
|
|
2129
|
+
r.length !== o && l(e, "invalid key length"), n = h(r), e.push(n);
|
|
2130
|
+
var p = new g(0 | c._crypto_shorthash_bytes()), i = p.address;
|
|
2131
|
+
if (e.push(i), (0 | c._crypto_shorthash(i, _, s, 0, n)) == 0) {
|
|
2132
|
+
var u = m(p, a);
|
|
2133
|
+
return d(e), u;
|
|
2134
|
+
}
|
|
2135
|
+
E(e, "invalid usage");
|
|
2136
|
+
}
|
|
2137
|
+
function Ua(t) {
|
|
2138
|
+
var r = [];
|
|
2139
|
+
f(t);
|
|
2140
|
+
var a = new g(0 | c._crypto_shorthash_keybytes()), e = a.address;
|
|
2141
|
+
r.push(e), c._crypto_shorthash_keygen(e);
|
|
2142
|
+
var _ = m(a, t);
|
|
2143
|
+
return d(r), _;
|
|
2144
|
+
}
|
|
2145
|
+
function Oa(t, r, a) {
|
|
2146
|
+
var e = [];
|
|
2147
|
+
f(a);
|
|
2148
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
2149
|
+
e.push(_), r = y(e, r, "key");
|
|
2150
|
+
var n, o = 0 | c._crypto_shorthash_siphashx24_keybytes();
|
|
2151
|
+
r.length !== o && l(e, "invalid key length"), n = h(r), e.push(n);
|
|
2152
|
+
var p = new g(0 | c._crypto_shorthash_siphashx24_bytes()), i = p.address;
|
|
2153
|
+
if (e.push(i), (0 | c._crypto_shorthash_siphashx24(i, _, s, 0, n)) == 0) {
|
|
2154
|
+
var u = m(p, a);
|
|
2155
|
+
return d(e), u;
|
|
2156
|
+
}
|
|
2157
|
+
E(e, "invalid usage");
|
|
2158
|
+
}
|
|
2159
|
+
function Ca(t, r, a) {
|
|
2160
|
+
var e = [];
|
|
2161
|
+
f(a);
|
|
2162
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
2163
|
+
e.push(_), r = y(e, r, "privateKey");
|
|
2164
|
+
var n, o = 0 | c._crypto_sign_secretkeybytes();
|
|
2165
|
+
r.length !== o && l(e, "invalid privateKey length"), n = h(r), e.push(n);
|
|
2166
|
+
var p = new g(t.length + c._crypto_sign_bytes() | 0), i = p.address;
|
|
2167
|
+
if (e.push(i), (0 | c._crypto_sign(i, null, _, s, 0, n)) == 0) {
|
|
2168
|
+
var u = m(p, a);
|
|
2169
|
+
return d(e), u;
|
|
2170
|
+
}
|
|
2171
|
+
E(e, "invalid usage");
|
|
2172
|
+
}
|
|
2173
|
+
function Ra(t, r, a) {
|
|
2174
|
+
var e = [];
|
|
2175
|
+
f(a);
|
|
2176
|
+
var _ = h(t = y(e, t, "message")), s = t.length;
|
|
2177
|
+
e.push(_), r = y(e, r, "privateKey");
|
|
2178
|
+
var n, o = 0 | c._crypto_sign_secretkeybytes();
|
|
2179
|
+
r.length !== o && l(e, "invalid privateKey length"), n = h(r), e.push(n);
|
|
2180
|
+
var p = new g(0 | c._crypto_sign_bytes()), i = p.address;
|
|
2181
|
+
if (e.push(i), (0 | c._crypto_sign_detached(i, null, _, s, 0, n)) == 0) {
|
|
2182
|
+
var u = m(p, a);
|
|
2183
|
+
return d(e), u;
|
|
2184
|
+
}
|
|
2185
|
+
E(e, "invalid usage");
|
|
2186
|
+
}
|
|
2187
|
+
function Pa(t, r) {
|
|
2188
|
+
var a = [];
|
|
2189
|
+
f(r), t = y(a, t, "edPk");
|
|
2190
|
+
var e, _ = 0 | c._crypto_sign_publickeybytes();
|
|
2191
|
+
t.length !== _ && l(a, "invalid edPk length"), e = h(t), a.push(e);
|
|
2192
|
+
var s = new g(0 | c._crypto_scalarmult_scalarbytes()), n = s.address;
|
|
2193
|
+
if (a.push(n), (0 | c._crypto_sign_ed25519_pk_to_curve25519(n, e)) == 0) {
|
|
2194
|
+
var o = m(s, r);
|
|
2195
|
+
return d(a), o;
|
|
2196
|
+
}
|
|
2197
|
+
E(a, "invalid key");
|
|
2198
|
+
}
|
|
2199
|
+
function Ga(t, r) {
|
|
2200
|
+
var a = [];
|
|
2201
|
+
f(r), t = y(a, t, "edSk");
|
|
2202
|
+
var e, _ = 0 | c._crypto_sign_secretkeybytes();
|
|
2203
|
+
t.length !== _ && l(a, "invalid edSk length"), e = h(t), a.push(e);
|
|
2204
|
+
var s = new g(0 | c._crypto_scalarmult_scalarbytes()), n = s.address;
|
|
2205
|
+
if (a.push(n), (0 | c._crypto_sign_ed25519_sk_to_curve25519(n, e)) == 0) {
|
|
2206
|
+
var o = m(s, r);
|
|
2207
|
+
return d(a), o;
|
|
2208
|
+
}
|
|
2209
|
+
E(a, "invalid key");
|
|
2210
|
+
}
|
|
2211
|
+
function Xa(t, r) {
|
|
2212
|
+
var a = [];
|
|
2213
|
+
f(r), t = y(a, t, "privateKey");
|
|
2214
|
+
var e, _ = 0 | c._crypto_sign_secretkeybytes();
|
|
2215
|
+
t.length !== _ && l(a, "invalid privateKey length"), e = h(t), a.push(e);
|
|
2216
|
+
var s = new g(0 | c._crypto_sign_publickeybytes()), n = s.address;
|
|
2217
|
+
if (a.push(n), (0 | c._crypto_sign_ed25519_sk_to_pk(n, e)) == 0) {
|
|
2218
|
+
var o = m(s, r);
|
|
2219
|
+
return d(a), o;
|
|
2220
|
+
}
|
|
2221
|
+
E(a, "invalid key");
|
|
2222
|
+
}
|
|
2223
|
+
function Da(t, r) {
|
|
2224
|
+
var a = [];
|
|
2225
|
+
f(r), t = y(a, t, "privateKey");
|
|
2226
|
+
var e, _ = 0 | c._crypto_sign_secretkeybytes();
|
|
2227
|
+
t.length !== _ && l(a, "invalid privateKey length"), e = h(t), a.push(e);
|
|
2228
|
+
var s = new g(0 | c._crypto_sign_seedbytes()), n = s.address;
|
|
2229
|
+
if (a.push(n), (0 | c._crypto_sign_ed25519_sk_to_seed(n, e)) == 0) {
|
|
2230
|
+
var o = m(s, r);
|
|
2231
|
+
return d(a), o;
|
|
2232
|
+
}
|
|
2233
|
+
E(a, "invalid key");
|
|
2234
|
+
}
|
|
2235
|
+
function Fa(t, r, a) {
|
|
2236
|
+
var e = [];
|
|
2237
|
+
f(a), B(e, t, "state_address"), r = y(e, r, "privateKey");
|
|
2238
|
+
var _, s = 0 | c._crypto_sign_secretkeybytes();
|
|
2239
|
+
r.length !== s && l(e, "invalid privateKey length"), _ = h(r), e.push(_);
|
|
2240
|
+
var n = new g(0 | c._crypto_sign_bytes()), o = n.address;
|
|
2241
|
+
if (e.push(o), (0 | c._crypto_sign_final_create(t, o, null, _)) == 0) {
|
|
2242
|
+
var p = (c._free(t), m(n, a));
|
|
2243
|
+
return d(e), p;
|
|
2244
|
+
}
|
|
2245
|
+
E(e, "invalid usage");
|
|
2246
|
+
}
|
|
2247
|
+
function Va(t, r, a, e) {
|
|
2248
|
+
var _ = [];
|
|
2249
|
+
f(e), B(_, t, "state_address"), r = y(_, r, "signature");
|
|
2250
|
+
var s, n = 0 | c._crypto_sign_bytes();
|
|
2251
|
+
r.length !== n && l(_, "invalid signature length"), s = h(r), _.push(s), a = y(_, a, "publicKey");
|
|
2252
|
+
var o, p = 0 | c._crypto_sign_publickeybytes();
|
|
2253
|
+
a.length !== p && l(_, "invalid publicKey length"), o = h(a), _.push(o);
|
|
2254
|
+
var i = (0 | c._crypto_sign_final_verify(t, s, o)) == 0;
|
|
2255
|
+
return d(_), i;
|
|
2256
|
+
}
|
|
2257
|
+
function qa(t) {
|
|
2258
|
+
var r = [];
|
|
2259
|
+
f(t);
|
|
2260
|
+
var a = new g(208).address;
|
|
2261
|
+
if (!(0 | c._crypto_sign_init(a))) {
|
|
2262
|
+
var e = a;
|
|
2263
|
+
return d(r), e;
|
|
2264
|
+
}
|
|
2265
|
+
E(r, "internal error");
|
|
2266
|
+
}
|
|
2267
|
+
function Ha(t) {
|
|
2268
|
+
var r = [];
|
|
2269
|
+
f(t);
|
|
2270
|
+
var a = new g(0 | c._crypto_sign_publickeybytes()), e = a.address;
|
|
2271
|
+
r.push(e);
|
|
2272
|
+
var _ = new g(0 | c._crypto_sign_secretkeybytes()), s = _.address;
|
|
2273
|
+
if (r.push(s), (0 | c._crypto_sign_keypair(e, s)) == 0) {
|
|
2274
|
+
var n = { publicKey: m(a, t), privateKey: m(_, t), keyType: "ed25519" };
|
|
2275
|
+
return d(r), n;
|
|
2276
|
+
}
|
|
2277
|
+
E(r, "internal error");
|
|
2278
|
+
}
|
|
2279
|
+
function ja(t, r, a) {
|
|
2280
|
+
var e = [];
|
|
2281
|
+
f(a), t = y(e, t, "signedMessage");
|
|
2282
|
+
var _, s = c._crypto_sign_bytes(), n = t.length;
|
|
2283
|
+
n < s && l(e, "signedMessage is too short"), _ = h(t), e.push(_), r = y(e, r, "publicKey");
|
|
2284
|
+
var o, p = 0 | c._crypto_sign_publickeybytes();
|
|
2285
|
+
r.length !== p && l(e, "invalid publicKey length"), o = h(r), e.push(o);
|
|
2286
|
+
var i = new g(n - c._crypto_sign_bytes() | 0), u = i.address;
|
|
2287
|
+
if (e.push(u), (0 | c._crypto_sign_open(u, null, _, n, 0, o)) == 0) {
|
|
2288
|
+
var v = m(i, a);
|
|
2289
|
+
return d(e), v;
|
|
2290
|
+
}
|
|
2291
|
+
E(e, "incorrect signature for the given public key");
|
|
2292
|
+
}
|
|
2293
|
+
function za(t, r) {
|
|
2294
|
+
var a = [];
|
|
2295
|
+
f(r), t = y(a, t, "seed");
|
|
2296
|
+
var e, _ = 0 | c._crypto_sign_seedbytes();
|
|
2297
|
+
t.length !== _ && l(a, "invalid seed length"), e = h(t), a.push(e);
|
|
2298
|
+
var s = new g(0 | c._crypto_sign_publickeybytes()), n = s.address;
|
|
2299
|
+
a.push(n);
|
|
2300
|
+
var o = new g(0 | c._crypto_sign_secretkeybytes()), p = o.address;
|
|
2301
|
+
if (a.push(p), (0 | c._crypto_sign_seed_keypair(n, p, e)) == 0) {
|
|
2302
|
+
var i = { publicKey: m(s, r), privateKey: m(o, r), keyType: "ed25519" };
|
|
2303
|
+
return d(a), i;
|
|
2304
|
+
}
|
|
2305
|
+
E(a, "invalid usage");
|
|
2306
|
+
}
|
|
2307
|
+
function Wa(t, r, a) {
|
|
2308
|
+
var e = [];
|
|
2309
|
+
f(a), B(e, t, "state_address");
|
|
2310
|
+
var _ = h(r = y(e, r, "message_chunk")), s = r.length;
|
|
2311
|
+
e.push(_), 0 | c._crypto_sign_update(t, _, s, 0) && E(e, "invalid usage"), d(e);
|
|
2312
|
+
}
|
|
2313
|
+
function Ja(t, r, a) {
|
|
2314
|
+
var e = [];
|
|
2315
|
+
t = y(e, t, "signature");
|
|
2316
|
+
var _, s = 0 | c._crypto_sign_bytes();
|
|
2317
|
+
t.length !== s && l(e, "invalid signature length"), _ = h(t), e.push(_);
|
|
2318
|
+
var n = h(r = y(e, r, "message")), o = r.length;
|
|
2319
|
+
e.push(n), a = y(e, a, "publicKey");
|
|
2320
|
+
var p, i = 0 | c._crypto_sign_publickeybytes();
|
|
2321
|
+
a.length !== i && l(e, "invalid publicKey length"), p = h(a), e.push(p);
|
|
2322
|
+
var u = (0 | c._crypto_sign_verify_detached(_, n, o, 0, p)) == 0;
|
|
2323
|
+
return d(e), u;
|
|
2324
|
+
}
|
|
2325
|
+
function Qa(t, r, a, e) {
|
|
2326
|
+
var _ = [];
|
|
2327
|
+
f(e), B(_, t, "outLength"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(_, "outLength must be an unsigned integer"), r = y(_, r, "key");
|
|
2328
|
+
var s, n = 0 | c._crypto_stream_chacha20_keybytes();
|
|
2329
|
+
r.length !== n && l(_, "invalid key length"), s = h(r), _.push(s), a = y(_, a, "nonce");
|
|
2330
|
+
var o, p = 0 | c._crypto_stream_chacha20_noncebytes();
|
|
2331
|
+
a.length !== p && l(_, "invalid nonce length"), o = h(a), _.push(o);
|
|
2332
|
+
var i = new g(0 | t), u = i.address;
|
|
2333
|
+
_.push(u), c._crypto_stream_chacha20(u, t, 0, o, s);
|
|
2334
|
+
var v = m(i, e);
|
|
2335
|
+
return d(_), v;
|
|
2336
|
+
}
|
|
2337
|
+
function Za(t, r, a, e) {
|
|
2338
|
+
var _ = [];
|
|
2339
|
+
f(e);
|
|
2340
|
+
var s = h(t = y(_, t, "input_message")), n = t.length;
|
|
2341
|
+
_.push(s), r = y(_, r, "nonce");
|
|
2342
|
+
var o, p = 0 | c._crypto_stream_chacha20_ietf_noncebytes();
|
|
2343
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "key");
|
|
2344
|
+
var i, u = 0 | c._crypto_stream_chacha20_ietf_keybytes();
|
|
2345
|
+
a.length !== u && l(_, "invalid key length"), i = h(a), _.push(i);
|
|
2346
|
+
var v = new g(0 | n), b = v.address;
|
|
2347
|
+
if (_.push(b), c._crypto_stream_chacha20_ietf_xor(b, s, n, 0, o, i) === 0) {
|
|
2348
|
+
var x = m(v, e);
|
|
2349
|
+
return d(_), x;
|
|
2350
|
+
}
|
|
2351
|
+
E(_, "invalid usage");
|
|
2352
|
+
}
|
|
2353
|
+
function $a(t, r, a, e, _) {
|
|
2354
|
+
var s = [];
|
|
2355
|
+
f(_);
|
|
2356
|
+
var n = h(t = y(s, t, "input_message")), o = t.length;
|
|
2357
|
+
s.push(n), r = y(s, r, "nonce");
|
|
2358
|
+
var p, i = 0 | c._crypto_stream_chacha20_ietf_noncebytes();
|
|
2359
|
+
r.length !== i && l(s, "invalid nonce length"), p = h(r), s.push(p), B(s, a, "nonce_increment"), (typeof a != "number" || (0 | a) !== a || a < 0) && l(s, "nonce_increment must be an unsigned integer"), e = y(s, e, "key");
|
|
2360
|
+
var u, v = 0 | c._crypto_stream_chacha20_ietf_keybytes();
|
|
2361
|
+
e.length !== v && l(s, "invalid key length"), u = h(e), s.push(u);
|
|
2362
|
+
var b = new g(0 | o), x = b.address;
|
|
2363
|
+
if (s.push(x), c._crypto_stream_chacha20_ietf_xor_ic(x, n, o, 0, p, a, u) === 0) {
|
|
2364
|
+
var k = m(b, _);
|
|
2365
|
+
return d(s), k;
|
|
2366
|
+
}
|
|
2367
|
+
E(s, "invalid usage");
|
|
2368
|
+
}
|
|
2369
|
+
function er(t) {
|
|
2370
|
+
var r = [];
|
|
2371
|
+
f(t);
|
|
2372
|
+
var a = new g(0 | c._crypto_stream_chacha20_keybytes()), e = a.address;
|
|
2373
|
+
r.push(e), c._crypto_stream_chacha20_keygen(e);
|
|
2374
|
+
var _ = m(a, t);
|
|
2375
|
+
return d(r), _;
|
|
2376
|
+
}
|
|
2377
|
+
function tr(t, r, a, e) {
|
|
2378
|
+
var _ = [];
|
|
2379
|
+
f(e);
|
|
2380
|
+
var s = h(t = y(_, t, "input_message")), n = t.length;
|
|
2381
|
+
_.push(s), r = y(_, r, "nonce");
|
|
2382
|
+
var o, p = 0 | c._crypto_stream_chacha20_noncebytes();
|
|
2383
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "key");
|
|
2384
|
+
var i, u = 0 | c._crypto_stream_chacha20_keybytes();
|
|
2385
|
+
a.length !== u && l(_, "invalid key length"), i = h(a), _.push(i);
|
|
2386
|
+
var v = new g(0 | n), b = v.address;
|
|
2387
|
+
if (_.push(b), c._crypto_stream_chacha20_xor(b, s, n, 0, o, i) === 0) {
|
|
2388
|
+
var x = m(v, e);
|
|
2389
|
+
return d(_), x;
|
|
2390
|
+
}
|
|
2391
|
+
E(_, "invalid usage");
|
|
2392
|
+
}
|
|
2393
|
+
function ar(t, r, a, e, _) {
|
|
2394
|
+
var s = [];
|
|
2395
|
+
f(_);
|
|
2396
|
+
var n = h(t = y(s, t, "input_message")), o = t.length;
|
|
2397
|
+
s.push(n), r = y(s, r, "nonce");
|
|
2398
|
+
var p, i = 0 | c._crypto_stream_chacha20_noncebytes();
|
|
2399
|
+
r.length !== i && l(s, "invalid nonce length"), p = h(r), s.push(p), B(s, a, "nonce_increment"), (typeof a != "number" || (0 | a) !== a || a < 0) && l(s, "nonce_increment must be an unsigned integer"), e = y(s, e, "key");
|
|
2400
|
+
var u, v = 0 | c._crypto_stream_chacha20_keybytes();
|
|
2401
|
+
e.length !== v && l(s, "invalid key length"), u = h(e), s.push(u);
|
|
2402
|
+
var b = new g(0 | o), x = b.address;
|
|
2403
|
+
if (s.push(x), c._crypto_stream_chacha20_xor_ic(x, n, o, 0, p, a, 0, u) === 0) {
|
|
2404
|
+
var k = m(b, _);
|
|
2405
|
+
return d(s), k;
|
|
2406
|
+
}
|
|
2407
|
+
E(s, "invalid usage");
|
|
2408
|
+
}
|
|
2409
|
+
function rr(t) {
|
|
2410
|
+
var r = [];
|
|
2411
|
+
f(t);
|
|
2412
|
+
var a = new g(0 | c._crypto_stream_keybytes()), e = a.address;
|
|
2413
|
+
r.push(e), c._crypto_stream_keygen(e);
|
|
2414
|
+
var _ = m(a, t);
|
|
2415
|
+
return d(r), _;
|
|
2416
|
+
}
|
|
2417
|
+
function _r(t) {
|
|
2418
|
+
var r = [];
|
|
2419
|
+
f(t);
|
|
2420
|
+
var a = new g(0 | c._crypto_stream_xchacha20_keybytes()), e = a.address;
|
|
2421
|
+
r.push(e), c._crypto_stream_xchacha20_keygen(e);
|
|
2422
|
+
var _ = m(a, t);
|
|
2423
|
+
return d(r), _;
|
|
2424
|
+
}
|
|
2425
|
+
function nr(t, r, a, e) {
|
|
2426
|
+
var _ = [];
|
|
2427
|
+
f(e);
|
|
2428
|
+
var s = h(t = y(_, t, "input_message")), n = t.length;
|
|
2429
|
+
_.push(s), r = y(_, r, "nonce");
|
|
2430
|
+
var o, p = 0 | c._crypto_stream_xchacha20_noncebytes();
|
|
2431
|
+
r.length !== p && l(_, "invalid nonce length"), o = h(r), _.push(o), a = y(_, a, "key");
|
|
2432
|
+
var i, u = 0 | c._crypto_stream_xchacha20_keybytes();
|
|
2433
|
+
a.length !== u && l(_, "invalid key length"), i = h(a), _.push(i);
|
|
2434
|
+
var v = new g(0 | n), b = v.address;
|
|
2435
|
+
if (_.push(b), c._crypto_stream_xchacha20_xor(b, s, n, 0, o, i) === 0) {
|
|
2436
|
+
var x = m(v, e);
|
|
2437
|
+
return d(_), x;
|
|
2438
|
+
}
|
|
2439
|
+
E(_, "invalid usage");
|
|
2440
|
+
}
|
|
2441
|
+
function sr(t, r, a, e, _) {
|
|
2442
|
+
var s = [];
|
|
2443
|
+
f(_);
|
|
2444
|
+
var n = h(t = y(s, t, "input_message")), o = t.length;
|
|
2445
|
+
s.push(n), r = y(s, r, "nonce");
|
|
2446
|
+
var p, i = 0 | c._crypto_stream_xchacha20_noncebytes();
|
|
2447
|
+
r.length !== i && l(s, "invalid nonce length"), p = h(r), s.push(p), B(s, a, "nonce_increment"), (typeof a != "number" || (0 | a) !== a || a < 0) && l(s, "nonce_increment must be an unsigned integer"), e = y(s, e, "key");
|
|
2448
|
+
var u, v = 0 | c._crypto_stream_xchacha20_keybytes();
|
|
2449
|
+
e.length !== v && l(s, "invalid key length"), u = h(e), s.push(u);
|
|
2450
|
+
var b = new g(0 | o), x = b.address;
|
|
2451
|
+
if (s.push(x), c._crypto_stream_xchacha20_xor_ic(x, n, o, 0, p, a, 0, u) === 0) {
|
|
2452
|
+
var k = m(b, _);
|
|
2453
|
+
return d(s), k;
|
|
2454
|
+
}
|
|
2455
|
+
E(s, "invalid usage");
|
|
2456
|
+
}
|
|
2457
|
+
function cr(t, r) {
|
|
2458
|
+
var a = [];
|
|
2459
|
+
f(r), B(a, t, "length"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(a, "length must be an unsigned integer");
|
|
2460
|
+
var e = new g(0 | t), _ = e.address;
|
|
2461
|
+
a.push(_), c._randombytes_buf(_, t);
|
|
2462
|
+
var s = m(e, r);
|
|
2463
|
+
return d(a), s;
|
|
2464
|
+
}
|
|
2465
|
+
function or(t, r, a) {
|
|
2466
|
+
var e = [];
|
|
2467
|
+
f(a), B(e, t, "length"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(e, "length must be an unsigned integer"), r = y(e, r, "seed");
|
|
2468
|
+
var _, s = 0 | c._randombytes_seedbytes();
|
|
2469
|
+
r.length !== s && l(e, "invalid seed length"), _ = h(r), e.push(_);
|
|
2470
|
+
var n = new g(0 | t), o = n.address;
|
|
2471
|
+
e.push(o), c._randombytes_buf_deterministic(o, t, _);
|
|
2472
|
+
var p = m(n, a);
|
|
2473
|
+
return d(e), p;
|
|
2474
|
+
}
|
|
2475
|
+
function hr(t) {
|
|
2476
|
+
f(t), c._randombytes_close();
|
|
2477
|
+
}
|
|
2478
|
+
function pr(t) {
|
|
2479
|
+
f(t);
|
|
2480
|
+
var r = c._randombytes_random() >>> 0;
|
|
2481
|
+
return d([]), r;
|
|
2482
|
+
}
|
|
2483
|
+
function yr(t, r) {
|
|
2484
|
+
var a = [];
|
|
2485
|
+
f(r);
|
|
2486
|
+
for (var e = c._malloc(24), _ = 0; _ < 6; _++)
|
|
2487
|
+
c.setValue(e + 4 * _, c.Runtime.addFunction(t[["implementation_name", "random", "stir", "uniform", "buf", "close"][_]]), "i32");
|
|
2488
|
+
0 | c._randombytes_set_implementation(e) && E(a, "unsupported implementation"), d(a);
|
|
2489
|
+
}
|
|
2490
|
+
function ir(t) {
|
|
2491
|
+
f(t), c._randombytes_stir();
|
|
2492
|
+
}
|
|
2493
|
+
function lr(t, r) {
|
|
2494
|
+
var a = [];
|
|
2495
|
+
f(r), B(a, t, "upper_bound"), (typeof t != "number" || (0 | t) !== t || t < 0) && l(a, "upper_bound must be an unsigned integer");
|
|
2496
|
+
var e = c._randombytes_uniform(t) >>> 0;
|
|
2497
|
+
return d(a), e;
|
|
2498
|
+
}
|
|
2499
|
+
function ur() {
|
|
2500
|
+
var t = c._sodium_version_string(), r = c.UTF8ToString(t);
|
|
2501
|
+
return d([]), r;
|
|
2502
|
+
}
|
|
2503
|
+
return g.prototype.to_Uint8Array = function() {
|
|
2504
|
+
var t = new Uint8Array(this.length);
|
|
2505
|
+
return t.set(c.HEAPU8.subarray(this.address, this.address + this.length)), t;
|
|
2506
|
+
}, K.add = function(t, r) {
|
|
2507
|
+
if (!(t instanceof Uint8Array && r instanceof Uint8Array))
|
|
2508
|
+
throw new TypeError("Only Uint8Array instances can added");
|
|
2509
|
+
var a = t.length, e = 0, _ = 0;
|
|
2510
|
+
if (r.length != t.length)
|
|
2511
|
+
throw new TypeError("Arguments must have the same length");
|
|
2512
|
+
for (_ = 0; _ < a; _++)
|
|
2513
|
+
e >>= 8, e += t[_] + r[_], t[_] = 255 & e;
|
|
2514
|
+
}, K.base64_variants = U, K.compare = function(t, r) {
|
|
2515
|
+
if (!(t instanceof Uint8Array && r instanceof Uint8Array))
|
|
2516
|
+
throw new TypeError("Only Uint8Array instances can be compared");
|
|
2517
|
+
if (t.length !== r.length)
|
|
2518
|
+
throw new TypeError("Only instances of identical length can be compared");
|
|
2519
|
+
for (var a = 0, e = 1, _ = t.length; _-- > 0; )
|
|
2520
|
+
a |= r[_] - t[_] >> 8 & e, e &= (r[_] ^ t[_]) - 1 >> 8;
|
|
2521
|
+
return a + a + e - 1;
|
|
2522
|
+
}, K.from_base64 = function(t, r) {
|
|
2523
|
+
r = F(r);
|
|
2524
|
+
var a, e = [], _ = new g(3 * (t = y(e, t, "input")).length / 4), s = h(t), n = L(4), o = L(4);
|
|
2525
|
+
return e.push(s), e.push(_.address), e.push(_.result_bin_len_p), e.push(_.b64_end_p), c._sodium_base642bin(_.address, _.length, s, t.length, 0, n, o, r) !== 0 && E(e, "invalid input"), c.getValue(o, "i32") - s !== t.length && E(e, "incomplete input"), _.length = c.getValue(n, "i32"), a = _.to_Uint8Array(), d(e), a;
|
|
2526
|
+
}, K.from_hex = function(t) {
|
|
2527
|
+
var r, a = [], e = new g((t = y(a, t, "input")).length / 2), _ = h(t), s = L(4);
|
|
2528
|
+
return a.push(_), a.push(e.address), a.push(e.hex_end_p), c._sodium_hex2bin(e.address, e.length, _, t.length, 0, 0, s) !== 0 && E(a, "invalid input"), c.getValue(s, "i32") - _ !== t.length && E(a, "incomplete input"), r = e.to_Uint8Array(), d(a), r;
|
|
2529
|
+
}, K.from_string = O, K.increment = function(t) {
|
|
2530
|
+
if (!(t instanceof Uint8Array))
|
|
2531
|
+
throw new TypeError("Only Uint8Array instances can be incremented");
|
|
2532
|
+
for (var r = 256, a = 0, e = t.length; a < e; a++)
|
|
2533
|
+
r >>= 8, r += t[a], t[a] = 255 & r;
|
|
2534
|
+
}, K.is_zero = function(t) {
|
|
2535
|
+
if (!(t instanceof Uint8Array))
|
|
2536
|
+
throw new TypeError("Only Uint8Array instances can be checked");
|
|
2537
|
+
for (var r = 0, a = 0, e = t.length; a < e; a++)
|
|
2538
|
+
r |= t[a];
|
|
2539
|
+
return r === 0;
|
|
2540
|
+
}, K.libsodium = R, K.memcmp = function(t, r) {
|
|
2541
|
+
if (!(t instanceof Uint8Array && r instanceof Uint8Array))
|
|
2542
|
+
throw new TypeError("Only Uint8Array instances can be compared");
|
|
2543
|
+
if (t.length !== r.length)
|
|
2544
|
+
throw new TypeError("Only instances of identical length can be compared");
|
|
2545
|
+
for (var a = 0, e = 0, _ = t.length; e < _; e++)
|
|
2546
|
+
a |= t[e] ^ r[e];
|
|
2547
|
+
return a === 0;
|
|
2548
|
+
}, K.memzero = function(t) {
|
|
2549
|
+
if (!(t instanceof Uint8Array))
|
|
2550
|
+
throw new TypeError("Only Uint8Array instances can be wiped");
|
|
2551
|
+
for (var r = 0, a = t.length; r < a; r++)
|
|
2552
|
+
t[r] = 0;
|
|
2553
|
+
}, K.output_formats = function() {
|
|
2554
|
+
return ["uint8array", "text", "hex", "base64"];
|
|
2555
|
+
}, K.pad = function(t, r) {
|
|
2556
|
+
if (!(t instanceof Uint8Array))
|
|
2557
|
+
throw new TypeError("buffer must be a Uint8Array");
|
|
2558
|
+
if ((r |= 0) <= 0)
|
|
2559
|
+
throw new Error("block size must be > 0");
|
|
2560
|
+
var a, e = [], _ = L(4), s = 1, n = 0, o = 0 | t.length, p = new g(o + r);
|
|
2561
|
+
e.push(_), e.push(p.address);
|
|
2562
|
+
for (var i = p.address, u = p.address + o + r; i < u; i++)
|
|
2563
|
+
c.HEAPU8[i] = t[n], n += s = 1 & ~((65535 & ((o -= s) >>> 48 | o >>> 32 | o >>> 16 | o)) - 1 >> 16);
|
|
2564
|
+
return c._sodium_pad(_, p.address, t.length, r, p.length) !== 0 && E(e, "internal error"), p.length = c.getValue(_, "i32"), a = p.to_Uint8Array(), d(e), a;
|
|
2565
|
+
}, K.unpad = function(t, r) {
|
|
2566
|
+
if (!(t instanceof Uint8Array))
|
|
2567
|
+
throw new TypeError("buffer must be a Uint8Array");
|
|
2568
|
+
if ((r |= 0) <= 0)
|
|
2569
|
+
throw new Error("block size must be > 0");
|
|
2570
|
+
var a = [], e = h(t), _ = L(4);
|
|
2571
|
+
return a.push(e), a.push(_), c._sodium_unpad(_, e, t.length, r) !== 0 && E(a, "unsupported/invalid padding"), t = (t = new Uint8Array(t)).subarray(0, c.getValue(_, "i32")), d(a), t;
|
|
2572
|
+
}, K.ready = z, K.symbols = function() {
|
|
2573
|
+
return Object.keys(K).sort();
|
|
2574
|
+
}, K.to_base64 = V, K.to_hex = D, K.to_string = C, K;
|
|
2575
|
+
}
|
|
2576
|
+
var X = typeof N.sodium == "object" && typeof N.sodium.onload == "function" ? N.sodium.onload : null;
|
|
2577
|
+
typeof P.nodeName != "string" ? G(P, gr()) : N.sodium = G(N.commonJsStrict = {}, N.libsodium), X && N.sodium.ready.then(function() {
|
|
2578
|
+
X(N.sodium);
|
|
2579
|
+
});
|
|
2580
|
+
})(vr);
|
|
2581
|
+
})(H);
|
|
2582
|
+
const xr = /* @__PURE__ */ dr(H);
|
|
2583
|
+
export {
|
|
2584
|
+
xr as default
|
|
2585
|
+
};
|