@trezor/connect 10.0.0-beta.1 → 10.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -9
- package/README.md +4 -2
- package/lib/exports.d.ts +1 -3
- package/lib/exports.js +1 -3
- package/lib/impl/core-in-module-native.d.ts +7 -0
- package/lib/impl/core-in-module-native.js +11 -0
- package/lib/impl/core-in-module-node.d.ts +8 -0
- package/lib/impl/core-in-module-node.js +12 -0
- package/lib/impl/core-in-module-web.d.ts +9 -0
- package/lib/impl/core-in-module-web.js +26 -0
- package/lib/index.browser.js +2 -26
- package/lib/index.js +1 -11
- package/lib/index.native.d.ts +4 -0
- package/lib/index.native.js +5 -0
- package/package.json +16 -67
- package/lib/api/applyFlags.d.ts +0 -20
- package/lib/api/applyFlags.js +0 -38
- package/lib/api/applySettings.d.ts +0 -20
- package/lib/api/applySettings.js +0 -57
- package/lib/api/authenticateDevice.d.ts +0 -25
- package/lib/api/authenticateDevice.js +0 -195
- package/lib/api/authorizeCoinjoin.d.ts +0 -11
- package/lib/api/authorizeCoinjoin.js +0 -44
- package/lib/api/backupDevice.d.ts +0 -19
- package/lib/api/backupDevice.js +0 -39
- package/lib/api/bitcoin/TransactionComposer.d.ts +0 -46
- package/lib/api/bitcoin/TransactionComposer.js +0 -147
- package/lib/api/bitcoin/createPendingTx.d.ts +0 -37
- package/lib/api/bitcoin/createPendingTx.js +0 -55
- package/lib/api/bitcoin/enhanceSignTx.d.ts +0 -2
- package/lib/api/bitcoin/enhanceSignTx.js +0 -23
- package/lib/api/bitcoin/index.d.ts +0 -9
- package/lib/api/bitcoin/index.js +0 -9
- package/lib/api/bitcoin/inputs.d.ts +0 -4
- package/lib/api/bitcoin/inputs.js +0 -63
- package/lib/api/bitcoin/outputs.d.ts +0 -5
- package/lib/api/bitcoin/outputs.js +0 -128
- package/lib/api/bitcoin/refTx.d.ts +0 -23
- package/lib/api/bitcoin/refTx.js +0 -249
- package/lib/api/bitcoin/signtx.d.ts +0 -30
- package/lib/api/bitcoin/signtx.js +0 -229
- package/lib/api/bitcoin/signtxLegacy.d.ts +0 -10
- package/lib/api/bitcoin/signtxLegacy.js +0 -186
- package/lib/api/bitcoin/signtxVerify.d.ts +0 -12
- package/lib/api/bitcoin/signtxVerify.js +0 -95
- package/lib/api/bitcoin/transactionBytes.d.ts +0 -3
- package/lib/api/bitcoin/transactionBytes.js +0 -65
- package/lib/api/bleUnpair.d.ts +0 -11
- package/lib/api/bleUnpair.js +0 -37
- package/lib/api/blockchainDisconnect.d.ts +0 -16
- package/lib/api/blockchainDisconnect.js +0 -37
- package/lib/api/blockchainEstimateFee.d.ts +0 -16
- package/lib/api/blockchainEstimateFee.js +0 -102
- package/lib/api/blockchainEvmRpcCall.d.ts +0 -19
- package/lib/api/blockchainEvmRpcCall.js +0 -57
- package/lib/api/blockchainGetAccountBalanceHistory.d.ts +0 -16
- package/lib/api/blockchainGetAccountBalanceHistory.js +0 -60
- package/lib/api/blockchainGetContractInfo.d.ts +0 -16
- package/lib/api/blockchainGetContractInfo.js +0 -46
- package/lib/api/blockchainGetCurrentFiatRates.d.ts +0 -20
- package/lib/api/blockchainGetCurrentFiatRates.js +0 -49
- package/lib/api/blockchainGetFiatRatesForTimestamps.d.ts +0 -23
- package/lib/api/blockchainGetFiatRatesForTimestamps.js +0 -55
- package/lib/api/blockchainGetInfo.d.ts +0 -15
- package/lib/api/blockchainGetInfo.js +0 -37
- package/lib/api/blockchainGetTransactions.d.ts +0 -18
- package/lib/api/blockchainGetTransactions.js +0 -47
- package/lib/api/blockchainSetCustomBackend.d.ts +0 -17
- package/lib/api/blockchainSetCustomBackend.js +0 -43
- package/lib/api/blockchainSubscribe.d.ts +0 -19
- package/lib/api/blockchainSubscribe.js +0 -66
- package/lib/api/blockchainSubscribeFiatRates.d.ts +0 -19
- package/lib/api/blockchainSubscribeFiatRates.js +0 -43
- package/lib/api/blockchainUnsubscribe.d.ts +0 -19
- package/lib/api/blockchainUnsubscribe.js +0 -66
- package/lib/api/blockchainUnsubscribeFiatRates.d.ts +0 -17
- package/lib/api/blockchainUnsubscribeFiatRates.js +0 -37
- package/lib/api/blockchainValidateEvmRpcUrl.d.ts +0 -17
- package/lib/api/blockchainValidateEvmRpcUrl.js +0 -54
- package/lib/api/cancelCoinjoinAuthorization.d.ts +0 -11
- package/lib/api/cancelCoinjoinAuthorization.js +0 -33
- package/lib/api/cardano/api/cardanoComposeTransaction.d.ts +0 -10
- package/lib/api/cardano/api/cardanoComposeTransaction.js +0 -84
- package/lib/api/cardano/api/cardanoGetAddress.d.ts +0 -34
- package/lib/api/cardano/api/cardanoGetAddress.js +0 -130
- package/lib/api/cardano/api/cardanoGetNativeScriptHash.d.ts +0 -12
- package/lib/api/cardano/api/cardanoGetNativeScriptHash.js +0 -66
- package/lib/api/cardano/api/cardanoGetPublicKey.d.ts +0 -22
- package/lib/api/cardano/api/cardanoGetPublicKey.js +0 -92
- package/lib/api/cardano/api/cardanoSignMessage.d.ts +0 -22
- package/lib/api/cardano/api/cardanoSignMessage.js +0 -90
- package/lib/api/cardano/api/cardanoSignTransaction.d.ts +0 -81
- package/lib/api/cardano/api/cardanoSignTransaction.js +0 -301
- package/lib/api/cardano/api/index.d.ts +0 -6
- package/lib/api/cardano/api/index.js +0 -6
- package/lib/api/cardano/cardanoAddressParameters.d.ts +0 -6
- package/lib/api/cardano/cardanoAddressParameters.js +0 -79
- package/lib/api/cardano/cardanoAuxiliaryData.d.ts +0 -4
- package/lib/api/cardano/cardanoAuxiliaryData.js +0 -74
- package/lib/api/cardano/cardanoCertificate.d.ts +0 -13
- package/lib/api/cardano/cardanoCertificate.js +0 -142
- package/lib/api/cardano/cardanoInputs.d.ts +0 -25
- package/lib/api/cardano/cardanoInputs.js +0 -39
- package/lib/api/cardano/cardanoOutputs.d.ts +0 -40
- package/lib/api/cardano/cardanoOutputs.js +0 -70
- package/lib/api/cardano/cardanoTokenBundle.d.ts +0 -12
- package/lib/api/cardano/cardanoTokenBundle.js +0 -21
- package/lib/api/cardano/cardanoUtils.d.ts +0 -17
- package/lib/api/cardano/cardanoUtils.js +0 -100
- package/lib/api/cardano/cardanoWitnesses.d.ts +0 -4
- package/lib/api/cardano/cardanoWitnesses.js +0 -47
- package/lib/api/changeLanguage.d.ts +0 -18
- package/lib/api/changeLanguage.js +0 -49
- package/lib/api/changePin.d.ts +0 -11
- package/lib/api/changePin.js +0 -27
- package/lib/api/changeWipeCode.d.ts +0 -11
- package/lib/api/changeWipeCode.js +0 -29
- package/lib/api/cipherKeyValue.d.ts +0 -17
- package/lib/api/cipherKeyValue.js +0 -58
- package/lib/api/common/AbstractMiscGetAddress.d.ts +0 -37
- package/lib/api/common/AbstractMiscGetAddress.js +0 -126
- package/lib/api/common/Discovery.d.ts +0 -33
- package/lib/api/common/Discovery.js +0 -119
- package/lib/api/common/paramsValidator.d.ts +0 -24
- package/lib/api/common/paramsValidator.js +0 -136
- package/lib/api/common/requestExistingAccounts.d.ts +0 -14
- package/lib/api/common/requestExistingAccounts.js +0 -20
- package/lib/api/composeTransaction.d.ts +0 -36
- package/lib/api/composeTransaction.js +0 -404
- package/lib/api/discoverAccounts.d.ts +0 -40
- package/lib/api/discoverAccounts.js +0 -360
- package/lib/api/ethereum/api/ethereumGetAddress.d.ts +0 -30
- package/lib/api/ethereum/api/ethereumGetAddress.js +0 -150
- package/lib/api/ethereum/api/ethereumGetPublicKey.d.ts +0 -52
- package/lib/api/ethereum/api/ethereumGetPublicKey.js +0 -100
- package/lib/api/ethereum/api/ethereumSignMessage.d.ts +0 -27
- package/lib/api/ethereum/api/ethereumSignMessage.js +0 -64
- package/lib/api/ethereum/api/ethereumSignTransaction.d.ts +0 -83
- package/lib/api/ethereum/api/ethereumSignTransaction.js +0 -148
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +0 -117
- package/lib/api/ethereum/api/ethereumSignTypedData.js +0 -203
- package/lib/api/ethereum/api/ethereumVerifyMessage.d.ts +0 -12
- package/lib/api/ethereum/api/ethereumVerifyMessage.js +0 -35
- package/lib/api/ethereum/api/index.d.ts +0 -6
- package/lib/api/ethereum/api/index.js +0 -6
- package/lib/api/ethereum/ethereumDefinitions.d.ts +0 -53
- package/lib/api/ethereum/ethereumDefinitions.js +0 -135
- package/lib/api/ethereum/ethereumSignTx.d.ts +0 -16
- package/lib/api/ethereum/ethereumSignTx.js +0 -144
- package/lib/api/ethereum/ethereumSignTypedData.d.ts +0 -32
- package/lib/api/ethereum/ethereumSignTypedData.js +0 -175
- package/lib/api/evoluGetDelegatedIdentityKey.d.ts +0 -14
- package/lib/api/evoluGetDelegatedIdentityKey.js +0 -29
- package/lib/api/evoluGetNode.d.ts +0 -13
- package/lib/api/evoluGetNode.js +0 -29
- package/lib/api/evoluSignRegistrationRequest.d.ts +0 -16
- package/lib/api/evoluSignRegistrationRequest.js +0 -33
- package/lib/api/firmware/calculateFirmwareHash.d.ts +0 -18
- package/lib/api/firmware/calculateFirmwareHash.js +0 -56
- package/lib/api/firmware/calculateXPubHash.d.ts +0 -14
- package/lib/api/firmware/calculateXPubHash.js +0 -16
- package/lib/api/firmware/getBinary.d.ts +0 -14
- package/lib/api/firmware/getBinary.js +0 -33
- package/lib/api/firmware/index.d.ts +0 -6
- package/lib/api/firmware/index.js +0 -6
- package/lib/api/firmware/modifyFirmware.d.ts +0 -3
- package/lib/api/firmware/modifyFirmware.js +0 -13
- package/lib/api/firmware/parseFirmwareHeaders.d.ts +0 -4
- package/lib/api/firmware/parseFirmwareHeaders.js +0 -26
- package/lib/api/firmware/uploadFirmware.d.ts +0 -27
- package/lib/api/firmware/uploadFirmware.js +0 -99
- package/lib/api/firmware/verifyEntropy.d.ts +0 -25
- package/lib/api/firmware/verifyEntropy.js +0 -110
- package/lib/api/getAccountInfo.d.ts +0 -21
- package/lib/api/getAccountInfo.js +0 -253
- package/lib/api/getAddress.d.ts +0 -45
- package/lib/api/getAddress.js +0 -153
- package/lib/api/getCoinInfo.d.ts +0 -148
- package/lib/api/getCoinInfo.js +0 -25
- package/lib/api/getDeviceState.d.ts +0 -8
- package/lib/api/getDeviceState.js +0 -18
- package/lib/api/getFeatures.d.ts +0 -71
- package/lib/api/getFeatures.js +0 -22
- package/lib/api/getFirmwareHash.d.ts +0 -11
- package/lib/api/getFirmwareHash.js +0 -29
- package/lib/api/getNonce.d.ts +0 -10
- package/lib/api/getNonce.js +0 -18
- package/lib/api/getOwnershipId.d.ts +0 -17
- package/lib/api/getOwnershipId.js +0 -88
- package/lib/api/getOwnershipProof.d.ts +0 -17
- package/lib/api/getOwnershipProof.js +0 -95
- package/lib/api/getPublicKey.d.ts +0 -54
- package/lib/api/getPublicKey.js +0 -106
- package/lib/api/getSettings.d.ts +0 -24
- package/lib/api/getSettings.js +0 -21
- package/lib/api/index.d.ts +0 -62
- package/lib/api/index.js +0 -62
- package/lib/api/loadDevice.d.ts +0 -16
- package/lib/api/loadDevice.js +0 -46
- package/lib/api/monero/api/index.d.ts +0 -4
- package/lib/api/monero/api/index.js +0 -4
- package/lib/api/monero/api/moneroGetAddress.d.ts +0 -32
- package/lib/api/monero/api/moneroGetAddress.js +0 -117
- package/lib/api/monero/api/moneroGetWatchKey.d.ts +0 -14
- package/lib/api/monero/api/moneroGetWatchKey.js +0 -45
- package/lib/api/monero/api/moneroKeyImageSync.d.ts +0 -17
- package/lib/api/monero/api/moneroKeyImageSync.js +0 -128
- package/lib/api/monero/api/moneroSignTransaction.d.ts +0 -17
- package/lib/api/monero/api/moneroSignTransaction.js +0 -218
- package/lib/api/nostr/nostrGetPublicKey.d.ts +0 -15
- package/lib/api/nostr/nostrGetPublicKey.js +0 -38
- package/lib/api/nostr/nostrSignEvent.d.ts +0 -13
- package/lib/api/nostr/nostrSignEvent.js +0 -36
- package/lib/api/pingDevice.d.ts +0 -11
- package/lib/api/pingDevice.js +0 -29
- package/lib/api/pushTransaction.d.ts +0 -19
- package/lib/api/pushTransaction.js +0 -39
- package/lib/api/recoveryDevice.d.ts +0 -20
- package/lib/api/recoveryDevice.js +0 -52
- package/lib/api/requestLogin.d.ts +0 -14
- package/lib/api/requestLogin.js +0 -53
- package/lib/api/resetDevice.d.ts +0 -22
- package/lib/api/resetDevice.js +0 -133
- package/lib/api/ripple/api/index.d.ts +0 -2
- package/lib/api/ripple/api/index.js +0 -2
- package/lib/api/ripple/api/rippleGetAddress.d.ts +0 -17
- package/lib/api/ripple/api/rippleGetAddress.js +0 -22
- package/lib/api/ripple/api/rippleSignTransaction.d.ts +0 -13
- package/lib/api/ripple/api/rippleSignTransaction.js +0 -52
- package/lib/api/selectAccount.d.ts +0 -15
- package/lib/api/selectAccount.js +0 -42
- package/lib/api/setBrightness.d.ts +0 -12
- package/lib/api/setBrightness.js +0 -28
- package/lib/api/setBusy.d.ts +0 -11
- package/lib/api/setBusy.js +0 -31
- package/lib/api/showDeviceTutorial.d.ts +0 -11
- package/lib/api/showDeviceTutorial.js +0 -21
- package/lib/api/signMessage.d.ts +0 -25
- package/lib/api/signMessage.js +0 -75
- package/lib/api/signTransaction.d.ts +0 -199
- package/lib/api/signTransaction.js +0 -331
- package/lib/api/solana/api/index.d.ts +0 -4
- package/lib/api/solana/api/index.js +0 -4
- package/lib/api/solana/api/solanaComposeTransaction.d.ts +0 -33
- package/lib/api/solana/api/solanaComposeTransaction.js +0 -73
- package/lib/api/solana/api/solanaGetAddress.d.ts +0 -17
- package/lib/api/solana/api/solanaGetAddress.js +0 -22
- package/lib/api/solana/api/solanaGetPublicKey.d.ts +0 -32
- package/lib/api/solana/api/solanaGetPublicKey.js +0 -86
- package/lib/api/solana/api/solanaSignTransaction.d.ts +0 -41
- package/lib/api/solana/api/solanaSignTransaction.js +0 -204
- package/lib/api/solana/solanaDefinitions.d.ts +0 -9
- package/lib/api/solana/solanaDefinitions.js +0 -33
- package/lib/api/stellar/api/index.d.ts +0 -2
- package/lib/api/stellar/api/index.js +0 -2
- package/lib/api/stellar/api/stellarGetAddress.d.ts +0 -17
- package/lib/api/stellar/api/stellarGetAddress.js +0 -22
- package/lib/api/stellar/api/stellarSignTransaction.d.ts +0 -20
- package/lib/api/stellar/api/stellarSignTransaction.js +0 -65
- package/lib/api/stellar/stellarSignTx.d.ts +0 -7
- package/lib/api/stellar/stellarSignTx.js +0 -183
- package/lib/api/telemetryGet.d.ts +0 -14
- package/lib/api/telemetryGet.js +0 -26
- package/lib/api/tezos/api/index.d.ts +0 -3
- package/lib/api/tezos/api/index.js +0 -3
- package/lib/api/tezos/api/tezosGetAddress.d.ts +0 -17
- package/lib/api/tezos/api/tezosGetAddress.js +0 -22
- package/lib/api/tezos/api/tezosGetPublicKey.d.ts +0 -28
- package/lib/api/tezos/api/tezosGetPublicKey.js +0 -84
- package/lib/api/tezos/api/tezosSignTransaction.d.ts +0 -14
- package/lib/api/tezos/api/tezosSignTransaction.js +0 -30
- package/lib/api/tezos/tezosSignTx.d.ts +0 -71
- package/lib/api/tezos/tezosSignTx.js +0 -204
- package/lib/api/thpGetCredentials.d.ts +0 -13
- package/lib/api/thpGetCredentials.js +0 -30
- package/lib/api/thpRemoveCredentials.d.ts +0 -15
- package/lib/api/thpRemoveCredentials.js +0 -44
- package/lib/api/tron/api/index.d.ts +0 -3
- package/lib/api/tron/api/index.js +0 -3
- package/lib/api/tron/api/tronComposeTransaction.d.ts +0 -17
- package/lib/api/tron/api/tronComposeTransaction.js +0 -52
- package/lib/api/tron/api/tronGetAddress.d.ts +0 -17
- package/lib/api/tron/api/tronGetAddress.js +0 -22
- package/lib/api/tron/api/tronSignTransaction.d.ts +0 -20
- package/lib/api/tron/api/tronSignTransaction.js +0 -137
- package/lib/api/tron/tronEncode.d.ts +0 -11
- package/lib/api/tron/tronEncode.js +0 -157
- package/lib/api/tron/tronProtobuf.d.ts +0 -5
- package/lib/api/tron/tronProtobuf.js +0 -28
- package/lib/api/unlockPath.d.ts +0 -12
- package/lib/api/unlockPath.js +0 -33
- package/lib/api/verifyMessage.d.ts +0 -16
- package/lib/api/verifyMessage.js +0 -46
- package/lib/api/wipeDevice.d.ts +0 -21
- package/lib/api/wipeDevice.js +0 -49
- package/lib/backend/BackendManager.d.ts +0 -30
- package/lib/backend/BackendManager.js +0 -145
- package/lib/backend/Blockchain.d.ts +0 -81
- package/lib/backend/Blockchain.js +0 -235
- package/lib/backend/BlockchainLink.d.ts +0 -10
- package/lib/backend/BlockchainLink.js +0 -19
- package/lib/backend/fees/BitcoinFeeLevels.d.ts +0 -19
- package/lib/backend/fees/BitcoinFeeLevels.js +0 -44
- package/lib/backend/fees/EthereumFeeLevels.d.ts +0 -17
- package/lib/backend/fees/EthereumFeeLevels.js +0 -63
- package/lib/backend/fees/MiscFeeLevels.d.ts +0 -18
- package/lib/backend/fees/MiscFeeLevels.js +0 -30
- package/lib/backend/fees/index.d.ts +0 -5
- package/lib/backend/fees/index.js +0 -31
- package/lib/core/AbstractMethod.d.ts +0 -63
- package/lib/core/AbstractMethod.js +0 -189
- package/lib/core/index.d.ts +0 -29
- package/lib/core/index.js +0 -805
- package/lib/core/method.d.ts +0 -3
- package/lib/core/method.js +0 -19
- package/lib/core/method.native.d.ts +0 -2
- package/lib/core/method.native.js +0 -29
- package/lib/core/onCallFirmwareUpdate.d.ts +0 -42
- package/lib/core/onCallFirmwareUpdate.js +0 -436
- package/lib/data/coinInfo.d.ts +0 -101
- package/lib/data/coinInfo.js +0 -195
- package/lib/data/config.d.ts +0 -8
- package/lib/data/config.js +0 -273
- package/lib/data/defaultFeeLevels.d.ts +0 -18
- package/lib/data/defaultFeeLevels.js +0 -200
- package/lib/data/enabledNetworksStore.d.ts +0 -5
- package/lib/data/enabledNetworksStore.js +0 -20
- package/lib/data/firmwareInfo.d.ts +0 -55
- package/lib/data/firmwareInfo.js +0 -413
- package/lib/data/firmwareReleaseStore.d.ts +0 -10
- package/lib/data/firmwareReleaseStore.js +0 -16
- package/lib/data/localFirmwareStore.d.ts +0 -3
- package/lib/data/localFirmwareStore.js +0 -8
- package/lib/data/protobufLoader.d.ts +0 -1
- package/lib/data/protobufLoader.js +0 -30
- package/lib/data/settingsStore.d.ts +0 -6
- package/lib/data/settingsStore.js +0 -21
- package/lib/device/Device.d.ts +0 -259
- package/lib/device/Device.js +0 -765
- package/lib/device/DeviceCommands.d.ts +0 -87
- package/lib/device/DeviceCommands.js +0 -248
- package/lib/device/DeviceCurrentSession.d.ts +0 -750
- package/lib/device/DeviceCurrentSession.js +0 -239
- package/lib/device/DeviceList.d.ts +0 -75
- package/lib/device/DeviceList.js +0 -243
- package/lib/device/TransportList.d.ts +0 -3
- package/lib/device/TransportList.js +0 -13
- package/lib/device/TransportManager.d.ts +0 -33
- package/lib/device/TransportManager.js +0 -144
- package/lib/device/calculateRevisionForDevice.d.ts +0 -10
- package/lib/device/calculateRevisionForDevice.js +0 -19
- package/lib/device/checkFirmwareRevision.d.ts +0 -22
- package/lib/device/checkFirmwareRevision.js +0 -104
- package/lib/device/resolveDescriptorForTaproot.d.ts +0 -17
- package/lib/device/resolveDescriptorForTaproot.js +0 -27
- package/lib/device/thp/handshake.d.ts +0 -3
- package/lib/device/thp/handshake.js +0 -100
- package/lib/device/thp/index.d.ts +0 -5
- package/lib/device/thp/index.js +0 -65
- package/lib/device/thp/pairing.d.ts +0 -16
- package/lib/device/thp/pairing.js +0 -242
- package/lib/device/thp/session.d.ts +0 -2
- package/lib/device/thp/session.js +0 -27
- package/lib/device/thp/thpCall.d.ts +0 -31
- package/lib/device/thp/thpCall.js +0 -58
- package/lib/device/validateMessageSize.d.ts +0 -2
- package/lib/device/validateMessageSize.js +0 -9
- package/lib/device/workflow/changeLanguage.d.ts +0 -18
- package/lib/device/workflow/changeLanguage.js +0 -62
- package/lib/device/workflow/checkFirmwareHash.d.ts +0 -12
- package/lib/device/workflow/checkFirmwareHash.js +0 -86
- package/lib/device/workflow/checkFirmwareHashWithRetries.d.ts +0 -8
- package/lib/device/workflow/checkFirmwareHashWithRetries.js +0 -36
- package/lib/device/workflow/handshake.d.ts +0 -13
- package/lib/device/workflow/handshake.js +0 -55
- package/lib/device/workflow/trezorPushNotification.d.ts +0 -5
- package/lib/device/workflow/trezorPushNotification.js +0 -73
- package/lib/device/workflow/validateState.d.ts +0 -2
- package/lib/device/workflow/validateState.js +0 -152
- package/lib/events/ui-promise.d.ts +0 -20
- package/lib/events/ui-promise.js +0 -1
- package/lib/impl/core-in-module.d.ts +0 -33
- package/lib/impl/core-in-module.js +0 -194
- package/lib/types/idevice.d.ts +0 -110
- package/lib/types/idevice.js +0 -1
- package/lib/types/typed-call-provider.d.ts +0 -29
- package/lib/types/typed-call-provider.js +0 -1
- package/lib/types/workflow.d.ts +0 -16
- package/lib/types/workflow.js +0 -1
- package/lib/utils/accountUtils.d.ts +0 -10
- package/lib/utils/accountUtils.js +0 -90
- package/lib/utils/addressUtils.d.ts +0 -2
- package/lib/utils/addressUtils.js +0 -24
- package/lib/utils/assetUtils.d.ts +0 -13
- package/lib/utils/assetUtils.js +0 -55
- package/lib/utils/assets.browser.d.ts +0 -1
- package/lib/utils/assets.browser.js +0 -1
- package/lib/utils/assets.d.ts +0 -2
- package/lib/utils/assets.js +0 -13
- package/lib/utils/assets.native.d.ts +0 -2
- package/lib/utils/assets.native.js +0 -23
- package/lib/utils/assetsTypes.d.ts +0 -5
- package/lib/utils/assetsTypes.js +0 -1
- package/lib/utils/buildOutputDescriptor.d.ts +0 -20
- package/lib/utils/buildOutputDescriptor.js +0 -67
- package/lib/utils/deviceFeaturesUtils.d.ts +0 -7
- package/lib/utils/deviceFeaturesUtils.js +0 -109
- package/lib/utils/ethereumUtils.d.ts +0 -3
- package/lib/utils/ethereumUtils.js +0 -7
- package/lib/utils/firmwareReleaseConfigUtils.d.ts +0 -19
- package/lib/utils/firmwareReleaseConfigUtils.js +0 -131
- package/lib/utils/firmwareUtils.d.ts +0 -15
- package/lib/utils/firmwareUtils.js +0 -57
- package/lib/utils/formatUtils.d.ts +0 -13
- package/lib/utils/formatUtils.js +0 -45
- package/lib/utils/hdnodeUtils.d.ts +0 -6
- package/lib/utils/hdnodeUtils.js +0 -62
- package/lib/utils/pathUtils.d.ts +0 -1
- package/lib/utils/pathUtils.js +0 -1
- package/lib/utils/paymentRequest.d.ts +0 -8
- package/lib/utils/paymentRequest.js +0 -25
- package/lib/utils/uiPromiseManager.d.ts +0 -8
- package/lib/utils/uiPromiseManager.js +0 -51
- package/lib/workers/workers.browser.d.ts +0 -10
- package/lib/workers/workers.browser.js +0 -16
- package/lib/workers/workers.d.ts +0 -10
- package/lib/workers/workers.js +0 -8
- package/lib/workers/workers.native.d.ts +0 -7
- package/lib/workers/workers.native.js +0 -7
|
@@ -1,750 +0,0 @@
|
|
|
1
|
-
import { MessagesSchema as Messages } from '@trezor/protobuf';
|
|
2
|
-
import { type MessageResponse, type Session, type Transport } from '@trezor/transport-common';
|
|
3
|
-
import { type Logger } from '@trezor/utils';
|
|
4
|
-
import type { IDevice } from "../types/idevice.js";
|
|
5
|
-
import type { TypedCallProvider } from "../types/typed-call-provider.js";
|
|
6
|
-
type AbortableOptions = {
|
|
7
|
-
timeout?: number;
|
|
8
|
-
signal?: AbortSignal;
|
|
9
|
-
};
|
|
10
|
-
export type { TypedCallProvider } from "../types/typed-call-provider.js";
|
|
11
|
-
export declare class DeviceCurrentSession implements TypedCallProvider {
|
|
12
|
-
private readonly device;
|
|
13
|
-
private readonly transport;
|
|
14
|
-
private readonly session;
|
|
15
|
-
private readonly logger;
|
|
16
|
-
private disposed?;
|
|
17
|
-
private callPromise?;
|
|
18
|
-
private abortController?;
|
|
19
|
-
constructor(device: IDevice, transport: Transport, session: Session, logger: Logger);
|
|
20
|
-
isDisposed(): boolean;
|
|
21
|
-
typedCall(type: Messages.WireInMessage, expectedType: Messages.WireOutMessage | Messages.WireOutMessage[], msg?: Messages.MessagePayload<Messages.WireInMessage>): Promise<{
|
|
22
|
-
type: "Success";
|
|
23
|
-
message: {
|
|
24
|
-
message: string;
|
|
25
|
-
};
|
|
26
|
-
} | {
|
|
27
|
-
type: "PublicKey";
|
|
28
|
-
message: {
|
|
29
|
-
descriptor?: string | undefined;
|
|
30
|
-
root_fingerprint?: number | undefined;
|
|
31
|
-
xpub: string;
|
|
32
|
-
node: {
|
|
33
|
-
private_key?: string | undefined;
|
|
34
|
-
fingerprint: number;
|
|
35
|
-
depth: number;
|
|
36
|
-
child_num: number;
|
|
37
|
-
chain_code: string;
|
|
38
|
-
public_key: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
|
-
type: "Address";
|
|
43
|
-
message: {
|
|
44
|
-
mac?: string | undefined;
|
|
45
|
-
address: string;
|
|
46
|
-
};
|
|
47
|
-
} | {
|
|
48
|
-
type: "OwnershipId";
|
|
49
|
-
message: {
|
|
50
|
-
ownership_id: string;
|
|
51
|
-
};
|
|
52
|
-
} | {
|
|
53
|
-
type: "MessageSignature";
|
|
54
|
-
message: {
|
|
55
|
-
address: string;
|
|
56
|
-
signature: string;
|
|
57
|
-
};
|
|
58
|
-
} | {
|
|
59
|
-
type: "TxRequest";
|
|
60
|
-
message: {
|
|
61
|
-
request_type?: "TXINPUT" | "TXOUTPUT" | "TXMETA" | "TXFINISHED" | "TXEXTRADATA" | "TXORIGINPUT" | "TXORIGOUTPUT" | "TXPAYMENTREQ" | undefined;
|
|
62
|
-
details?: {
|
|
63
|
-
extra_data_len?: number | undefined;
|
|
64
|
-
tx_hash?: string | undefined;
|
|
65
|
-
request_index?: number | undefined;
|
|
66
|
-
extra_data_offset?: number | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
serialized?: {
|
|
69
|
-
signature?: string | undefined;
|
|
70
|
-
serialized_tx?: string | undefined;
|
|
71
|
-
signature_index?: number | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
};
|
|
74
|
-
} | {
|
|
75
|
-
type: "OwnershipProof";
|
|
76
|
-
message: {
|
|
77
|
-
ownership_proof: string;
|
|
78
|
-
signature: string;
|
|
79
|
-
};
|
|
80
|
-
} | {
|
|
81
|
-
type: "FirmwareRequest";
|
|
82
|
-
message: {
|
|
83
|
-
length: number;
|
|
84
|
-
offset: number;
|
|
85
|
-
};
|
|
86
|
-
} | {
|
|
87
|
-
type: "CardanoNativeScriptHash";
|
|
88
|
-
message: {
|
|
89
|
-
script_hash: string;
|
|
90
|
-
};
|
|
91
|
-
} | {
|
|
92
|
-
type: "CardanoAddress";
|
|
93
|
-
message: {
|
|
94
|
-
mac?: string | undefined;
|
|
95
|
-
address: string;
|
|
96
|
-
};
|
|
97
|
-
} | {
|
|
98
|
-
type: "CardanoPublicKey";
|
|
99
|
-
message: {
|
|
100
|
-
xpub: string;
|
|
101
|
-
node: {
|
|
102
|
-
private_key?: string | undefined;
|
|
103
|
-
fingerprint: number;
|
|
104
|
-
depth: number;
|
|
105
|
-
child_num: number;
|
|
106
|
-
chain_code: string;
|
|
107
|
-
public_key: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
} | {
|
|
111
|
-
type: "CardanoTxItemAck";
|
|
112
|
-
message: {};
|
|
113
|
-
} | {
|
|
114
|
-
type: "CardanoTxAuxiliaryDataSupplement";
|
|
115
|
-
message: {
|
|
116
|
-
auxiliary_data_hash?: string | undefined;
|
|
117
|
-
cvote_registration_signature?: string | undefined;
|
|
118
|
-
type: Messages.CardanoTxAuxiliaryDataSupplementType;
|
|
119
|
-
};
|
|
120
|
-
} | {
|
|
121
|
-
type: "CardanoTxWitnessResponse";
|
|
122
|
-
message: {
|
|
123
|
-
chain_code?: string | undefined;
|
|
124
|
-
type: Messages.CardanoTxWitnessType;
|
|
125
|
-
signature: string;
|
|
126
|
-
pub_key: string;
|
|
127
|
-
};
|
|
128
|
-
} | {
|
|
129
|
-
type: "CardanoTxBodyHash";
|
|
130
|
-
message: {
|
|
131
|
-
tx_hash: string;
|
|
132
|
-
};
|
|
133
|
-
} | {
|
|
134
|
-
type: "CardanoSignTxFinished";
|
|
135
|
-
message: {};
|
|
136
|
-
} | {
|
|
137
|
-
type: "CardanoMessageDataRequest";
|
|
138
|
-
message: {
|
|
139
|
-
length: number;
|
|
140
|
-
offset: number;
|
|
141
|
-
};
|
|
142
|
-
} | {
|
|
143
|
-
type: "CardanoMessageSignature";
|
|
144
|
-
message: {
|
|
145
|
-
address: string;
|
|
146
|
-
signature: string;
|
|
147
|
-
pub_key: string;
|
|
148
|
-
};
|
|
149
|
-
} | {
|
|
150
|
-
type: "CipheredKeyValue";
|
|
151
|
-
message: {
|
|
152
|
-
value: string;
|
|
153
|
-
};
|
|
154
|
-
} | {
|
|
155
|
-
type: "SignedIdentity";
|
|
156
|
-
message: {
|
|
157
|
-
public_key: string;
|
|
158
|
-
address: string;
|
|
159
|
-
signature: string;
|
|
160
|
-
};
|
|
161
|
-
} | {
|
|
162
|
-
type: "ECDHSessionKey";
|
|
163
|
-
message: {
|
|
164
|
-
public_key?: string | undefined;
|
|
165
|
-
session_key: string;
|
|
166
|
-
};
|
|
167
|
-
} | {
|
|
168
|
-
type: "Features";
|
|
169
|
-
message: {
|
|
170
|
-
label?: string | null | undefined;
|
|
171
|
-
session_id?: string | null | undefined;
|
|
172
|
-
language?: string | null | undefined;
|
|
173
|
-
auto_lock_delay_ms?: number | null | undefined;
|
|
174
|
-
display_rotation?: "North" | "East" | "South" | "West" | null | undefined;
|
|
175
|
-
passphrase_always_on_device?: boolean | null | undefined;
|
|
176
|
-
safety_checks?: "Strict" | "PromptAlways" | "PromptTemporarily" | null | undefined;
|
|
177
|
-
experimental_features?: boolean | null | undefined;
|
|
178
|
-
hide_passphrase_from_host?: boolean | undefined;
|
|
179
|
-
haptic_feedback?: boolean | undefined;
|
|
180
|
-
auto_lock_delay_battery_ms?: number | undefined;
|
|
181
|
-
flags?: number | null | undefined;
|
|
182
|
-
passphrase_protection?: boolean | null | undefined;
|
|
183
|
-
no_backup?: boolean | null | undefined;
|
|
184
|
-
unfinished_backup?: boolean | null | undefined;
|
|
185
|
-
pin_protection?: boolean | null | undefined;
|
|
186
|
-
backup_type?: "Bip39" | "Slip39_Basic" | "Slip39_Advanced" | "Slip39_Single_Extendable" | "Slip39_Basic_Extendable" | "Slip39_Advanced_Extendable" | null | undefined;
|
|
187
|
-
vendor?: string | undefined;
|
|
188
|
-
build_version?: number | undefined;
|
|
189
|
-
bootloader_mode?: boolean | null | undefined;
|
|
190
|
-
initialized?: boolean | null | undefined;
|
|
191
|
-
revision?: string | null | undefined;
|
|
192
|
-
bootloader_hash?: string | null | undefined;
|
|
193
|
-
imported?: boolean | null | undefined;
|
|
194
|
-
unlocked?: boolean | null | undefined;
|
|
195
|
-
_passphrase_cached?: boolean | undefined;
|
|
196
|
-
firmware_present?: boolean | null | undefined;
|
|
197
|
-
backup_availability?: "NotAvailable" | "Required" | "Available" | null | undefined;
|
|
198
|
-
fw_major?: number | null | undefined;
|
|
199
|
-
fw_minor?: number | null | undefined;
|
|
200
|
-
fw_patch?: number | null | undefined;
|
|
201
|
-
fw_build?: number | undefined;
|
|
202
|
-
fw_vendor?: string | null | undefined;
|
|
203
|
-
recovery_status?: "Nothing" | "Recovery" | "Backup" | null | undefined;
|
|
204
|
-
sd_card_present?: boolean | null | undefined;
|
|
205
|
-
sd_protection?: boolean | null | undefined;
|
|
206
|
-
wipe_code_protection?: boolean | null | undefined;
|
|
207
|
-
busy?: boolean | undefined;
|
|
208
|
-
homescreen_format?: "Toif" | "Jpeg" | "ToiG" | null | undefined;
|
|
209
|
-
unit_color?: number | undefined;
|
|
210
|
-
unit_btconly?: boolean | undefined;
|
|
211
|
-
homescreen_width?: number | undefined;
|
|
212
|
-
homescreen_height?: number | undefined;
|
|
213
|
-
bootloader_locked?: boolean | undefined;
|
|
214
|
-
language_version_matches?: boolean | undefined;
|
|
215
|
-
unit_packaging?: number | undefined;
|
|
216
|
-
recovery_type?: "NormalRecovery" | "DryRun" | "UnlockRepeatedBackup" | null | undefined;
|
|
217
|
-
optiga_sec?: number | undefined;
|
|
218
|
-
soc?: number | undefined;
|
|
219
|
-
firmware_corrupted?: boolean | undefined;
|
|
220
|
-
led?: boolean | undefined;
|
|
221
|
-
usb_connected?: boolean | undefined;
|
|
222
|
-
wireless_connected?: boolean | undefined;
|
|
223
|
-
tap_to_wake?: boolean | undefined;
|
|
224
|
-
capabilities: ("Capability_Bitcoin" | "Capability_Bitcoin_like" | "Capability_Binance" | "Capability_Cardano" | "Capability_Crypto" | "Capability_EOS" | "Capability_Ethereum" | "Capability_Lisk" | "Capability_Monero" | "Capability_NEM" | "Capability_Ripple" | "Capability_Stellar" | "Capability_Tezos" | "Capability_U2F" | "Capability_Shamir" | "Capability_ShamirGroups" | "Capability_PassphraseEntry" | "Capability_Solana" | "Capability_Translations" | "Capability_Brightness" | "Capability_Haptic" | "Capability_BLE" | "Capability_NFC" | "Capability_Tron" | "Capability_N4W1" | "Capability_TouchWakeup")[];
|
|
225
|
-
model: string;
|
|
226
|
-
major_version: number;
|
|
227
|
-
minor_version: number;
|
|
228
|
-
patch_version: number;
|
|
229
|
-
device_id: string | null;
|
|
230
|
-
internal_model: Messages.DeviceModelInternal;
|
|
231
|
-
};
|
|
232
|
-
} | {
|
|
233
|
-
type: "DataChunkRequest";
|
|
234
|
-
message: {
|
|
235
|
-
data_length: number;
|
|
236
|
-
data_offset: number;
|
|
237
|
-
};
|
|
238
|
-
} | {
|
|
239
|
-
type: "Entropy";
|
|
240
|
-
message: {
|
|
241
|
-
entropy: string;
|
|
242
|
-
};
|
|
243
|
-
} | {
|
|
244
|
-
type: "FirmwareHash";
|
|
245
|
-
message: {
|
|
246
|
-
hash: string;
|
|
247
|
-
};
|
|
248
|
-
} | {
|
|
249
|
-
type: "AuthenticityProof";
|
|
250
|
-
message: {
|
|
251
|
-
tropic_signature?: string | undefined;
|
|
252
|
-
mcu_signature?: string | undefined;
|
|
253
|
-
optiga_certificates: string[];
|
|
254
|
-
optiga_signature: string;
|
|
255
|
-
tropic_certificates: string[];
|
|
256
|
-
mcu_certificates: string[];
|
|
257
|
-
};
|
|
258
|
-
} | {
|
|
259
|
-
type: "AuthenticityProofSizes";
|
|
260
|
-
message: {
|
|
261
|
-
tropic_signature?: number | undefined;
|
|
262
|
-
mcu_signature?: number | undefined;
|
|
263
|
-
optiga_certificates: number[];
|
|
264
|
-
optiga_signature: number;
|
|
265
|
-
tropic_certificates: number[];
|
|
266
|
-
mcu_certificates: number[];
|
|
267
|
-
};
|
|
268
|
-
} | {
|
|
269
|
-
type: "AuthenticityProofChunk";
|
|
270
|
-
message: {
|
|
271
|
-
chunk: string;
|
|
272
|
-
};
|
|
273
|
-
} | {
|
|
274
|
-
type: "EntropyRequest";
|
|
275
|
-
message: {
|
|
276
|
-
entropy_commitment?: string | undefined;
|
|
277
|
-
prev_entropy?: string | undefined;
|
|
278
|
-
};
|
|
279
|
-
} | {
|
|
280
|
-
type: "EntropyCheckReady";
|
|
281
|
-
message: {};
|
|
282
|
-
} | {
|
|
283
|
-
type: "NextU2FCounter";
|
|
284
|
-
message: {
|
|
285
|
-
u2f_counter: number;
|
|
286
|
-
};
|
|
287
|
-
} | {
|
|
288
|
-
type: "PreauthorizedRequest";
|
|
289
|
-
message: {};
|
|
290
|
-
} | {
|
|
291
|
-
type: "Nonce";
|
|
292
|
-
message: {
|
|
293
|
-
nonce: string;
|
|
294
|
-
};
|
|
295
|
-
} | {
|
|
296
|
-
type: "UnlockedPathRequest";
|
|
297
|
-
message: {
|
|
298
|
-
mac: string;
|
|
299
|
-
};
|
|
300
|
-
} | {
|
|
301
|
-
type: "SerialNumber";
|
|
302
|
-
message: {
|
|
303
|
-
serial_number: string;
|
|
304
|
-
};
|
|
305
|
-
} | {
|
|
306
|
-
type: "EosPublicKey";
|
|
307
|
-
message: {
|
|
308
|
-
wif_public_key: string;
|
|
309
|
-
raw_public_key: string;
|
|
310
|
-
};
|
|
311
|
-
} | {
|
|
312
|
-
type: "EosTxActionRequest";
|
|
313
|
-
message: {
|
|
314
|
-
data_size?: number | undefined;
|
|
315
|
-
};
|
|
316
|
-
} | {
|
|
317
|
-
type: "EosSignedTx";
|
|
318
|
-
message: {
|
|
319
|
-
signature: string;
|
|
320
|
-
};
|
|
321
|
-
} | {
|
|
322
|
-
type: "EthereumPublicKey";
|
|
323
|
-
message: {
|
|
324
|
-
xpub: string;
|
|
325
|
-
node: {
|
|
326
|
-
private_key?: string | undefined;
|
|
327
|
-
fingerprint: number;
|
|
328
|
-
depth: number;
|
|
329
|
-
child_num: number;
|
|
330
|
-
chain_code: string;
|
|
331
|
-
public_key: string;
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
} | {
|
|
335
|
-
type: "EthereumAddress";
|
|
336
|
-
message: {
|
|
337
|
-
mac?: string | undefined;
|
|
338
|
-
_old_address?: string | undefined;
|
|
339
|
-
address: string;
|
|
340
|
-
};
|
|
341
|
-
} | {
|
|
342
|
-
type: "EthereumTxRequest";
|
|
343
|
-
message: {
|
|
344
|
-
data_length?: number | undefined;
|
|
345
|
-
signature_v?: number | undefined;
|
|
346
|
-
signature_r?: string | undefined;
|
|
347
|
-
signature_s?: string | undefined;
|
|
348
|
-
};
|
|
349
|
-
} | {
|
|
350
|
-
type: "EthereumDefinitionRequest";
|
|
351
|
-
message: {
|
|
352
|
-
func_sig?: string | undefined;
|
|
353
|
-
chain_id: number;
|
|
354
|
-
token_address: string;
|
|
355
|
-
};
|
|
356
|
-
} | {
|
|
357
|
-
type: "EthereumMessageSignature";
|
|
358
|
-
message: {
|
|
359
|
-
address: string;
|
|
360
|
-
signature: string;
|
|
361
|
-
};
|
|
362
|
-
} | {
|
|
363
|
-
type: "EthereumTypedDataSignature";
|
|
364
|
-
message: {
|
|
365
|
-
address: string;
|
|
366
|
-
signature: string;
|
|
367
|
-
};
|
|
368
|
-
} | {
|
|
369
|
-
type: "EthereumAuth7702Signature";
|
|
370
|
-
message: {
|
|
371
|
-
signature_v: number;
|
|
372
|
-
signature_r: string;
|
|
373
|
-
signature_s: string;
|
|
374
|
-
};
|
|
375
|
-
} | {
|
|
376
|
-
type: "EthereumTypedDataStructRequest";
|
|
377
|
-
message: {
|
|
378
|
-
name: string;
|
|
379
|
-
};
|
|
380
|
-
} | {
|
|
381
|
-
type: "EthereumTypedDataValueRequest";
|
|
382
|
-
message: {
|
|
383
|
-
member_path: number[];
|
|
384
|
-
};
|
|
385
|
-
} | {
|
|
386
|
-
type: "EvoluNode";
|
|
387
|
-
message: {
|
|
388
|
-
data: string;
|
|
389
|
-
};
|
|
390
|
-
} | {
|
|
391
|
-
type: "EvoluRegistrationRequest";
|
|
392
|
-
message: {
|
|
393
|
-
rotation_index?: number | undefined;
|
|
394
|
-
signature: string;
|
|
395
|
-
certificate_chain: string[];
|
|
396
|
-
};
|
|
397
|
-
} | {
|
|
398
|
-
type: "EvoluDelegatedIdentityKey";
|
|
399
|
-
message: {
|
|
400
|
-
rotation_index?: number | undefined;
|
|
401
|
-
private_key: string;
|
|
402
|
-
};
|
|
403
|
-
} | {
|
|
404
|
-
type: "EvoluIndexManagementResponse";
|
|
405
|
-
message: {
|
|
406
|
-
rotation_index?: number | undefined;
|
|
407
|
-
};
|
|
408
|
-
} | {
|
|
409
|
-
type: "MoneroAddress";
|
|
410
|
-
message: {
|
|
411
|
-
address: string;
|
|
412
|
-
};
|
|
413
|
-
} | {
|
|
414
|
-
type: "MoneroWatchKey";
|
|
415
|
-
message: {
|
|
416
|
-
address: string;
|
|
417
|
-
watch_key: string;
|
|
418
|
-
};
|
|
419
|
-
} | {
|
|
420
|
-
type: "MoneroTransactionInitAck";
|
|
421
|
-
message: {
|
|
422
|
-
rsig_data?: {
|
|
423
|
-
mask?: string | undefined;
|
|
424
|
-
rsig_type?: number | undefined;
|
|
425
|
-
offload_type?: number | undefined;
|
|
426
|
-
rsig?: string | undefined;
|
|
427
|
-
bp_version?: number | undefined;
|
|
428
|
-
grouping: number[];
|
|
429
|
-
rsig_parts: string[];
|
|
430
|
-
} | undefined;
|
|
431
|
-
hmacs: string[];
|
|
432
|
-
};
|
|
433
|
-
} | {
|
|
434
|
-
type: "MoneroTransactionSetInputAck";
|
|
435
|
-
message: {
|
|
436
|
-
vini: string;
|
|
437
|
-
vini_hmac: string;
|
|
438
|
-
pseudo_out: string;
|
|
439
|
-
pseudo_out_hmac: string;
|
|
440
|
-
pseudo_out_alpha: string;
|
|
441
|
-
spend_key: string;
|
|
442
|
-
};
|
|
443
|
-
} | {
|
|
444
|
-
type: "MoneroTransactionInputViniAck";
|
|
445
|
-
message: {};
|
|
446
|
-
} | {
|
|
447
|
-
type: "MoneroTransactionAllInputsSetAck";
|
|
448
|
-
message: {
|
|
449
|
-
rsig_data?: {
|
|
450
|
-
mask?: string | undefined;
|
|
451
|
-
rsig_type?: number | undefined;
|
|
452
|
-
offload_type?: number | undefined;
|
|
453
|
-
rsig?: string | undefined;
|
|
454
|
-
bp_version?: number | undefined;
|
|
455
|
-
grouping: number[];
|
|
456
|
-
rsig_parts: string[];
|
|
457
|
-
} | undefined;
|
|
458
|
-
};
|
|
459
|
-
} | {
|
|
460
|
-
type: "MoneroTransactionSetOutputAck";
|
|
461
|
-
message: {
|
|
462
|
-
rsig_data?: {
|
|
463
|
-
mask?: string | undefined;
|
|
464
|
-
rsig_type?: number | undefined;
|
|
465
|
-
offload_type?: number | undefined;
|
|
466
|
-
rsig?: string | undefined;
|
|
467
|
-
bp_version?: number | undefined;
|
|
468
|
-
grouping: number[];
|
|
469
|
-
rsig_parts: string[];
|
|
470
|
-
} | undefined;
|
|
471
|
-
tx_out?: string | undefined;
|
|
472
|
-
vouti_hmac?: string | undefined;
|
|
473
|
-
out_pk?: string | undefined;
|
|
474
|
-
ecdh_info?: string | undefined;
|
|
475
|
-
};
|
|
476
|
-
} | {
|
|
477
|
-
type: "MoneroTransactionAllOutSetAck";
|
|
478
|
-
message: {
|
|
479
|
-
extra?: string | undefined;
|
|
480
|
-
full_message_hash?: string | undefined;
|
|
481
|
-
tx_prefix_hash: string;
|
|
482
|
-
rv: {
|
|
483
|
-
message?: string | undefined;
|
|
484
|
-
txn_fee?: number | undefined;
|
|
485
|
-
rv_type?: number | undefined;
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
} | {
|
|
489
|
-
type: "MoneroTransactionSignInputAck";
|
|
490
|
-
message: {
|
|
491
|
-
signature?: string | undefined;
|
|
492
|
-
pseudo_out?: string | undefined;
|
|
493
|
-
};
|
|
494
|
-
} | {
|
|
495
|
-
type: "MoneroTransactionFinalAck";
|
|
496
|
-
message: {
|
|
497
|
-
tx_enc_keys?: string | undefined;
|
|
498
|
-
cout_key?: string | undefined;
|
|
499
|
-
salt?: string | undefined;
|
|
500
|
-
rand_mult?: string | undefined;
|
|
501
|
-
opening_key?: string | undefined;
|
|
502
|
-
};
|
|
503
|
-
} | {
|
|
504
|
-
type: "MoneroKeyImageExportInitAck";
|
|
505
|
-
message: {};
|
|
506
|
-
} | {
|
|
507
|
-
type: "MoneroKeyImageSyncStepAck";
|
|
508
|
-
message: {
|
|
509
|
-
kis: {
|
|
510
|
-
iv?: string | undefined;
|
|
511
|
-
blob?: string | undefined;
|
|
512
|
-
}[];
|
|
513
|
-
};
|
|
514
|
-
} | {
|
|
515
|
-
type: "MoneroKeyImageSyncFinalAck";
|
|
516
|
-
message: {
|
|
517
|
-
enc_key?: string | undefined;
|
|
518
|
-
};
|
|
519
|
-
} | {
|
|
520
|
-
type: "MoneroGetTxKeyAck";
|
|
521
|
-
message: {
|
|
522
|
-
salt?: string | undefined;
|
|
523
|
-
tx_keys?: string | undefined;
|
|
524
|
-
tx_derivations?: string | undefined;
|
|
525
|
-
};
|
|
526
|
-
} | {
|
|
527
|
-
type: "MoneroLiveRefreshStartAck";
|
|
528
|
-
message: {};
|
|
529
|
-
} | {
|
|
530
|
-
type: "MoneroLiveRefreshStepAck";
|
|
531
|
-
message: {
|
|
532
|
-
salt?: string | undefined;
|
|
533
|
-
key_image?: string | undefined;
|
|
534
|
-
};
|
|
535
|
-
} | {
|
|
536
|
-
type: "MoneroLiveRefreshFinalAck";
|
|
537
|
-
message: {};
|
|
538
|
-
} | {
|
|
539
|
-
type: "DebugMoneroDiagAck";
|
|
540
|
-
message: {
|
|
541
|
-
ins?: number | undefined;
|
|
542
|
-
p1?: number | undefined;
|
|
543
|
-
p2?: number | undefined;
|
|
544
|
-
data1?: string | undefined;
|
|
545
|
-
data2?: string | undefined;
|
|
546
|
-
pd: number[];
|
|
547
|
-
};
|
|
548
|
-
} | {
|
|
549
|
-
type: "NostrPubkey";
|
|
550
|
-
message: {
|
|
551
|
-
pubkey: string;
|
|
552
|
-
};
|
|
553
|
-
} | {
|
|
554
|
-
type: "NostrEventSignature";
|
|
555
|
-
message: {
|
|
556
|
-
signature: string;
|
|
557
|
-
id: string;
|
|
558
|
-
pubkey: string;
|
|
559
|
-
};
|
|
560
|
-
} | {
|
|
561
|
-
type: "RippleAddress";
|
|
562
|
-
message: {
|
|
563
|
-
mac?: string | undefined;
|
|
564
|
-
address: string;
|
|
565
|
-
};
|
|
566
|
-
} | {
|
|
567
|
-
type: "RippleSignedTx";
|
|
568
|
-
message: {
|
|
569
|
-
signature: string;
|
|
570
|
-
serialized_tx: string;
|
|
571
|
-
};
|
|
572
|
-
} | {
|
|
573
|
-
type: "SolanaPublicKey";
|
|
574
|
-
message: {
|
|
575
|
-
public_key: string;
|
|
576
|
-
};
|
|
577
|
-
} | {
|
|
578
|
-
type: "SolanaAddress";
|
|
579
|
-
message: {
|
|
580
|
-
mac?: string | undefined;
|
|
581
|
-
address: string;
|
|
582
|
-
};
|
|
583
|
-
} | {
|
|
584
|
-
type: "SolanaTxSignature";
|
|
585
|
-
message: {
|
|
586
|
-
signature: string;
|
|
587
|
-
};
|
|
588
|
-
} | {
|
|
589
|
-
type: "SolanaMessageSignature";
|
|
590
|
-
message: {
|
|
591
|
-
signed_data?: string | undefined;
|
|
592
|
-
signature: string;
|
|
593
|
-
};
|
|
594
|
-
} | {
|
|
595
|
-
type: "StellarAddress";
|
|
596
|
-
message: {
|
|
597
|
-
mac?: string | undefined;
|
|
598
|
-
address: string;
|
|
599
|
-
};
|
|
600
|
-
} | {
|
|
601
|
-
type: "StellarTxOpRequest";
|
|
602
|
-
message: {};
|
|
603
|
-
} | {
|
|
604
|
-
type: "StellarSignedTx";
|
|
605
|
-
message: {
|
|
606
|
-
public_key: string;
|
|
607
|
-
signature: string;
|
|
608
|
-
};
|
|
609
|
-
} | {
|
|
610
|
-
type: "StellarTxExtRequest";
|
|
611
|
-
message: {};
|
|
612
|
-
} | {
|
|
613
|
-
type: "Telemetry";
|
|
614
|
-
message: {
|
|
615
|
-
min_temp_c?: number | undefined;
|
|
616
|
-
max_temp_c?: number | undefined;
|
|
617
|
-
battery_errors?: number | undefined;
|
|
618
|
-
battery_cycles?: number | undefined;
|
|
619
|
-
};
|
|
620
|
-
} | {
|
|
621
|
-
type: "TezosAddress";
|
|
622
|
-
message: {
|
|
623
|
-
mac?: string | undefined;
|
|
624
|
-
address: string;
|
|
625
|
-
};
|
|
626
|
-
} | {
|
|
627
|
-
type: "TezosPublicKey";
|
|
628
|
-
message: {
|
|
629
|
-
public_key: string;
|
|
630
|
-
};
|
|
631
|
-
} | {
|
|
632
|
-
type: "TezosSignedTx";
|
|
633
|
-
message: {
|
|
634
|
-
signature: string;
|
|
635
|
-
sig_op_contents: string;
|
|
636
|
-
operation_hash: string;
|
|
637
|
-
};
|
|
638
|
-
} | {
|
|
639
|
-
type: "ThpPairingRequestApproved";
|
|
640
|
-
message: {};
|
|
641
|
-
} | {
|
|
642
|
-
type: "ThpPairingPreparationsFinished";
|
|
643
|
-
message: {};
|
|
644
|
-
} | {
|
|
645
|
-
type: "ThpCodeEntryCommitment";
|
|
646
|
-
message: {
|
|
647
|
-
commitment: string;
|
|
648
|
-
};
|
|
649
|
-
} | {
|
|
650
|
-
type: "ThpCodeEntryCpaceTrezor";
|
|
651
|
-
message: {
|
|
652
|
-
cpace_trezor_public_key: string;
|
|
653
|
-
};
|
|
654
|
-
} | {
|
|
655
|
-
type: "ThpCodeEntrySecret";
|
|
656
|
-
message: {
|
|
657
|
-
secret: string;
|
|
658
|
-
};
|
|
659
|
-
} | {
|
|
660
|
-
type: "ThpQrCodeSecret";
|
|
661
|
-
message: {
|
|
662
|
-
secret: string;
|
|
663
|
-
};
|
|
664
|
-
} | {
|
|
665
|
-
type: "ThpNfcTagTrezor";
|
|
666
|
-
message: {
|
|
667
|
-
tag: string;
|
|
668
|
-
};
|
|
669
|
-
} | {
|
|
670
|
-
type: "ThpCredentialResponse";
|
|
671
|
-
message: {
|
|
672
|
-
credential: string;
|
|
673
|
-
trezor_static_public_key: string;
|
|
674
|
-
};
|
|
675
|
-
} | {
|
|
676
|
-
type: "ThpEndResponse";
|
|
677
|
-
message: {};
|
|
678
|
-
} | {
|
|
679
|
-
type: "TronAddress";
|
|
680
|
-
message: {
|
|
681
|
-
mac?: string | undefined;
|
|
682
|
-
address: string;
|
|
683
|
-
};
|
|
684
|
-
} | {
|
|
685
|
-
type: "TronContractRequest";
|
|
686
|
-
message: {};
|
|
687
|
-
} | {
|
|
688
|
-
type: "TronSignature";
|
|
689
|
-
message: {
|
|
690
|
-
signature: string;
|
|
691
|
-
};
|
|
692
|
-
} | {
|
|
693
|
-
type: "ThpPairingRequestApproved";
|
|
694
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpPairingRequestApproved;
|
|
695
|
-
} | {
|
|
696
|
-
type: "ThpPairingPreparationsFinished";
|
|
697
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpPairingPreparationsFinished;
|
|
698
|
-
} | {
|
|
699
|
-
type: "ThpCodeEntryCommitment";
|
|
700
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpCodeEntryCommitment;
|
|
701
|
-
} | {
|
|
702
|
-
type: "ThpCodeEntryCpaceTrezor";
|
|
703
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpCodeEntryCpaceTrezor;
|
|
704
|
-
} | {
|
|
705
|
-
type: "ThpCodeEntrySecret";
|
|
706
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpCodeEntrySecret;
|
|
707
|
-
} | {
|
|
708
|
-
type: "ThpQrCodeSecret";
|
|
709
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpQrCodeSecret;
|
|
710
|
-
} | {
|
|
711
|
-
type: "ThpNfcTagTrezor";
|
|
712
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpNfcTagTrezor;
|
|
713
|
-
} | {
|
|
714
|
-
type: "ThpCredentialResponse";
|
|
715
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpCredentialResponse;
|
|
716
|
-
} | {
|
|
717
|
-
type: "ThpEndResponse";
|
|
718
|
-
message: import("@trezor/protocol/lib/protocol-thp").ThpEndResponse;
|
|
719
|
-
}>;
|
|
720
|
-
private callLoop;
|
|
721
|
-
call(name: string, data: Record<string, unknown>, options?: AbortableOptions): Promise<{
|
|
722
|
-
success: false;
|
|
723
|
-
error: Error;
|
|
724
|
-
} | {
|
|
725
|
-
success: true;
|
|
726
|
-
payload: MessageResponse;
|
|
727
|
-
}>;
|
|
728
|
-
send(name: string, data: Record<string, unknown>, options?: AbortableOptions): Promise<{
|
|
729
|
-
success: false;
|
|
730
|
-
error: Error;
|
|
731
|
-
} | {
|
|
732
|
-
success: true;
|
|
733
|
-
payload: undefined;
|
|
734
|
-
}>;
|
|
735
|
-
receive(options?: AbortableOptions): Promise<{
|
|
736
|
-
success: false;
|
|
737
|
-
error: Error;
|
|
738
|
-
} | {
|
|
739
|
-
success: true;
|
|
740
|
-
payload: MessageResponse;
|
|
741
|
-
}>;
|
|
742
|
-
cancelCall(): Promise<{
|
|
743
|
-
success: false;
|
|
744
|
-
error: Error;
|
|
745
|
-
} | {
|
|
746
|
-
success: true;
|
|
747
|
-
payload: MessageResponse;
|
|
748
|
-
}>;
|
|
749
|
-
abort(reason: Error): Promise<void>;
|
|
750
|
-
}
|