@ukeyfe/hardware-core 1.1.13
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/.eslintrc +6 -0
- package/README.md +32 -0
- package/__tests__/benfen.test.ts +68 -0
- package/__tests__/checkBootloaderReleast.test.ts +114 -0
- package/__tests__/evmSignTransaction.test.ts +418 -0
- package/dist/api/BaseMethod.d.ts +46 -0
- package/dist/api/BaseMethod.d.ts.map +1 -0
- package/dist/api/CheckAllFirmwareRelease.d.ts +7 -0
- package/dist/api/CheckAllFirmwareRelease.d.ts.map +1 -0
- package/dist/api/CheckBLEFirmwareRelease.d.ts +14 -0
- package/dist/api/CheckBLEFirmwareRelease.d.ts.map +1 -0
- package/dist/api/CheckBootloaderRelease.d.ts +15 -0
- package/dist/api/CheckBootloaderRelease.d.ts.map +1 -0
- package/dist/api/CheckBridgeRelease.d.ts +14 -0
- package/dist/api/CheckBridgeRelease.d.ts.map +1 -0
- package/dist/api/CheckBridgeStatus.d.ts +6 -0
- package/dist/api/CheckBridgeStatus.d.ts.map +1 -0
- package/dist/api/CheckFirmwareRelease.d.ts +14 -0
- package/dist/api/CheckFirmwareRelease.d.ts.map +1 -0
- package/dist/api/CipherKeyValue.d.ts +9 -0
- package/dist/api/CipherKeyValue.d.ts.map +1 -0
- package/dist/api/EmmcFileWrite.d.ts +13 -0
- package/dist/api/EmmcFileWrite.d.ts.map +1 -0
- package/dist/api/FirmwareUpdate.d.ts +16 -0
- package/dist/api/FirmwareUpdate.d.ts.map +1 -0
- package/dist/api/FirmwareUpdateV2.d.ts +24 -0
- package/dist/api/FirmwareUpdateV2.d.ts.map +1 -0
- package/dist/api/FirmwareUpdateV3.d.ts +20 -0
- package/dist/api/FirmwareUpdateV3.d.ts.map +1 -0
- package/dist/api/GetFeatures.d.ts +6 -0
- package/dist/api/GetFeatures.d.ts.map +1 -0
- package/dist/api/GetLogs.d.ts +12 -0
- package/dist/api/GetLogs.d.ts.map +1 -0
- package/dist/api/GetPassphraseState.d.ts +6 -0
- package/dist/api/GetPassphraseState.d.ts.map +1 -0
- package/dist/api/GetUkeyFeatures.d.ts +6 -0
- package/dist/api/GetUkeyFeatures.d.ts.map +1 -0
- package/dist/api/PromptWebDeviceAccess.d.ts +8 -0
- package/dist/api/PromptWebDeviceAccess.d.ts.map +1 -0
- package/dist/api/SearchDevices.d.ts +17 -0
- package/dist/api/SearchDevices.d.ts.map +1 -0
- package/dist/api/alephium/AlephiumGetAddress.d.ts +14 -0
- package/dist/api/alephium/AlephiumGetAddress.d.ts.map +1 -0
- package/dist/api/alephium/AlephiumSignMessage.d.ts +12 -0
- package/dist/api/alephium/AlephiumSignMessage.d.ts.map +1 -0
- package/dist/api/alephium/AlephiumSignTransaction.d.ts +16 -0
- package/dist/api/alephium/AlephiumSignTransaction.d.ts.map +1 -0
- package/dist/api/algo/AlgoGetAddress.d.ts +14 -0
- package/dist/api/algo/AlgoGetAddress.d.ts.map +1 -0
- package/dist/api/algo/AlgoSignTransaction.d.ts +16 -0
- package/dist/api/algo/AlgoSignTransaction.d.ts.map +1 -0
- package/dist/api/allnetwork/AllNetworkGetAddress.d.ts +6 -0
- package/dist/api/allnetwork/AllNetworkGetAddress.d.ts.map +1 -0
- package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts +47 -0
- package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -0
- package/dist/api/allnetwork/AllNetworkGetAddressByLoop.d.ts +8 -0
- package/dist/api/allnetwork/AllNetworkGetAddressByLoop.d.ts.map +1 -0
- package/dist/api/aptos/AptosGetAddress.d.ts +16 -0
- package/dist/api/aptos/AptosGetAddress.d.ts.map +1 -0
- package/dist/api/aptos/AptosGetPublicKey.d.ts +13 -0
- package/dist/api/aptos/AptosGetPublicKey.d.ts.map +1 -0
- package/dist/api/aptos/AptosSignInMessage.d.ts +13 -0
- package/dist/api/aptos/AptosSignInMessage.d.ts.map +1 -0
- package/dist/api/aptos/AptosSignMessage.d.ts +13 -0
- package/dist/api/aptos/AptosSignMessage.d.ts.map +1 -0
- package/dist/api/aptos/AptosSignTransaction.d.ts +24 -0
- package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -0
- package/dist/api/benfen/BenfenGetAddress.d.ts +19 -0
- package/dist/api/benfen/BenfenGetAddress.d.ts.map +1 -0
- package/dist/api/benfen/BenfenGetPublicKey.d.ts +17 -0
- package/dist/api/benfen/BenfenGetPublicKey.d.ts.map +1 -0
- package/dist/api/benfen/BenfenSignMessage.d.ts +15 -0
- package/dist/api/benfen/BenfenSignMessage.d.ts.map +1 -0
- package/dist/api/benfen/BenfenSignTransaction.d.ts +19 -0
- package/dist/api/benfen/BenfenSignTransaction.d.ts.map +1 -0
- package/dist/api/benfen/normalize.d.ts +9 -0
- package/dist/api/benfen/normalize.d.ts.map +1 -0
- package/dist/api/btc/BTCGetAddress.d.ts +20 -0
- package/dist/api/btc/BTCGetAddress.d.ts.map +1 -0
- package/dist/api/btc/BTCGetPublicKey.d.ts +21 -0
- package/dist/api/btc/BTCGetPublicKey.d.ts.map +1 -0
- package/dist/api/btc/BTCSignMessage.d.ts +22 -0
- package/dist/api/btc/BTCSignMessage.d.ts.map +1 -0
- package/dist/api/btc/BTCSignPsbt.d.ts +15 -0
- package/dist/api/btc/BTCSignPsbt.d.ts.map +1 -0
- package/dist/api/btc/BTCSignTransaction.d.ts +28 -0
- package/dist/api/btc/BTCSignTransaction.d.ts.map +1 -0
- package/dist/api/btc/BTCVerifyMessage.d.ts +18 -0
- package/dist/api/btc/BTCVerifyMessage.d.ts.map +1 -0
- package/dist/api/btc/helpers/btcParamsUtils.d.ts +11 -0
- package/dist/api/btc/helpers/btcParamsUtils.d.ts.map +1 -0
- package/dist/api/btc/helpers/signtx.d.ts +5 -0
- package/dist/api/btc/helpers/signtx.d.ts.map +1 -0
- package/dist/api/btc/helpers/signtxLegacy.d.ts +5 -0
- package/dist/api/btc/helpers/signtxLegacy.d.ts.map +1 -0
- package/dist/api/btc/helpers/versionLimit.d.ts +12 -0
- package/dist/api/btc/helpers/versionLimit.d.ts.map +1 -0
- package/dist/api/btc/helpers/xpubUtils.d.ts +4 -0
- package/dist/api/btc/helpers/xpubUtils.d.ts.map +1 -0
- package/dist/api/cardano/CardanoGetAddress.d.ts +17 -0
- package/dist/api/cardano/CardanoGetAddress.d.ts.map +1 -0
- package/dist/api/cardano/CardanoGetPublicKey.d.ts +16 -0
- package/dist/api/cardano/CardanoGetPublicKey.d.ts.map +1 -0
- package/dist/api/cardano/CardanoSignMessage.d.ts +19 -0
- package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -0
- package/dist/api/cardano/CardanoSignTransaction.d.ts +21 -0
- package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -0
- package/dist/api/cardano/helper/addressParameters.d.ts +7 -0
- package/dist/api/cardano/helper/addressParameters.d.ts.map +1 -0
- package/dist/api/cardano/helper/auxiliaryData.d.ts +5 -0
- package/dist/api/cardano/helper/auxiliaryData.d.ts.map +1 -0
- package/dist/api/cardano/helper/cardanoInputs.d.ts +14 -0
- package/dist/api/cardano/helper/cardanoInputs.d.ts.map +1 -0
- package/dist/api/cardano/helper/cardanoOutputs.d.ts +11 -0
- package/dist/api/cardano/helper/cardanoOutputs.d.ts.map +1 -0
- package/dist/api/cardano/helper/certificate.d.ts +9 -0
- package/dist/api/cardano/helper/certificate.d.ts.map +1 -0
- package/dist/api/cardano/helper/token.d.ts +3 -0
- package/dist/api/cardano/helper/token.d.ts.map +1 -0
- package/dist/api/cardano/helper/utils.d.ts +3 -0
- package/dist/api/cardano/helper/utils.d.ts.map +1 -0
- package/dist/api/cardano/helper/witnesses.d.ts +5 -0
- package/dist/api/cardano/helper/witnesses.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxGetAddress.d.ts +14 -0
- package/dist/api/conflux/ConfluxGetAddress.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxSignMessage.d.ts +12 -0
- package/dist/api/conflux/ConfluxSignMessage.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts +12 -0
- package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts.map +1 -0
- package/dist/api/conflux/ConfluxSignTransaction.d.ts +17 -0
- package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -0
- package/dist/api/cosmos/CosmosGetAddress.d.ts +17 -0
- package/dist/api/cosmos/CosmosGetAddress.d.ts.map +1 -0
- package/dist/api/cosmos/CosmosGetPublicKey.d.ts +16 -0
- package/dist/api/cosmos/CosmosGetPublicKey.d.ts.map +1 -0
- package/dist/api/cosmos/CosmosSignTransaction.d.ts +19 -0
- package/dist/api/cosmos/CosmosSignTransaction.d.ts.map +1 -0
- package/dist/api/device/DeviceBackup.d.ts +7 -0
- package/dist/api/device/DeviceBackup.d.ts.map +1 -0
- package/dist/api/device/DeviceCancel.d.ts +7 -0
- package/dist/api/device/DeviceCancel.d.ts.map +1 -0
- package/dist/api/device/DeviceChangePin.d.ts +7 -0
- package/dist/api/device/DeviceChangePin.d.ts.map +1 -0
- package/dist/api/device/DeviceFlags.d.ts +7 -0
- package/dist/api/device/DeviceFlags.d.ts.map +1 -0
- package/dist/api/device/DeviceFullyUploadResource.d.ts +11 -0
- package/dist/api/device/DeviceFullyUploadResource.d.ts.map +1 -0
- package/dist/api/device/DeviceLock.d.ts +7 -0
- package/dist/api/device/DeviceLock.d.ts.map +1 -0
- package/dist/api/device/DeviceRebootToBoardloader.d.ts +15 -0
- package/dist/api/device/DeviceRebootToBoardloader.d.ts.map +1 -0
- package/dist/api/device/DeviceRebootToBootloader.d.ts +15 -0
- package/dist/api/device/DeviceRebootToBootloader.d.ts.map +1 -0
- package/dist/api/device/DeviceRecovery.d.ts +7 -0
- package/dist/api/device/DeviceRecovery.d.ts.map +1 -0
- package/dist/api/device/DeviceReset.d.ts +7 -0
- package/dist/api/device/DeviceReset.d.ts.map +1 -0
- package/dist/api/device/DeviceSettings.d.ts +14 -0
- package/dist/api/device/DeviceSettings.d.ts.map +1 -0
- package/dist/api/device/DeviceSupportFeatures.d.ts +10 -0
- package/dist/api/device/DeviceSupportFeatures.d.ts.map +1 -0
- package/dist/api/device/DeviceUnlock.d.ts +7 -0
- package/dist/api/device/DeviceUnlock.d.ts.map +1 -0
- package/dist/api/device/DeviceUpdateBootloader.d.ts +12 -0
- package/dist/api/device/DeviceUpdateBootloader.d.ts.map +1 -0
- package/dist/api/device/DeviceUpdateReboot.d.ts +7 -0
- package/dist/api/device/DeviceUpdateReboot.d.ts.map +1 -0
- package/dist/api/device/DeviceUploadResource.d.ts +19 -0
- package/dist/api/device/DeviceUploadResource.d.ts.map +1 -0
- package/dist/api/device/DeviceVerify.d.ts +8 -0
- package/dist/api/device/DeviceVerify.d.ts.map +1 -0
- package/dist/api/device/DeviceWipe.d.ts +7 -0
- package/dist/api/device/DeviceWipe.d.ts.map +1 -0
- package/dist/api/dynex/DnxGetAddress.d.ts +14 -0
- package/dist/api/dynex/DnxGetAddress.d.ts.map +1 -0
- package/dist/api/dynex/DnxSignTransaction.d.ts +16 -0
- package/dist/api/dynex/DnxSignTransaction.d.ts.map +1 -0
- package/dist/api/evm/EVMGetAddress.d.ts +10 -0
- package/dist/api/evm/EVMGetAddress.d.ts.map +1 -0
- package/dist/api/evm/EVMGetPublicKey.d.ts +16 -0
- package/dist/api/evm/EVMGetPublicKey.d.ts.map +1 -0
- package/dist/api/evm/EVMSignMessage.d.ts +7 -0
- package/dist/api/evm/EVMSignMessage.d.ts.map +1 -0
- package/dist/api/evm/EVMSignMessageEIP712.d.ts +15 -0
- package/dist/api/evm/EVMSignMessageEIP712.d.ts.map +1 -0
- package/dist/api/evm/EVMSignTransaction.d.ts +28 -0
- package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -0
- package/dist/api/evm/EVMSignTypedData.d.ts +44 -0
- package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -0
- package/dist/api/evm/EVMVerifyMessage.d.ts +7 -0
- package/dist/api/evm/EVMVerifyMessage.d.ts.map +1 -0
- package/dist/api/evm/latest/getAddress.d.ts +6 -0
- package/dist/api/evm/latest/getAddress.d.ts.map +1 -0
- package/dist/api/evm/latest/getPublicKey.d.ts +6 -0
- package/dist/api/evm/latest/getPublicKey.d.ts.map +1 -0
- package/dist/api/evm/latest/signMessage.d.ts +6 -0
- package/dist/api/evm/latest/signMessage.d.ts.map +1 -0
- package/dist/api/evm/latest/signTransaction.d.ts +35 -0
- package/dist/api/evm/latest/signTransaction.d.ts.map +1 -0
- package/dist/api/evm/latest/signTypedData.d.ts +10 -0
- package/dist/api/evm/latest/signTypedData.d.ts.map +1 -0
- package/dist/api/evm/latest/signTypedHash.d.ts +11 -0
- package/dist/api/evm/latest/signTypedHash.d.ts.map +1 -0
- package/dist/api/evm/latest/verifyMessage.d.ts +6 -0
- package/dist/api/evm/latest/verifyMessage.d.ts.map +1 -0
- package/dist/api/evm/legacyV1/getAddress.d.ts +6 -0
- package/dist/api/evm/legacyV1/getAddress.d.ts.map +1 -0
- package/dist/api/evm/legacyV1/getPublicKey.d.ts +6 -0
- package/dist/api/evm/legacyV1/getPublicKey.d.ts.map +1 -0
- package/dist/api/evm/legacyV1/signMessage.d.ts +6 -0
- package/dist/api/evm/legacyV1/signMessage.d.ts.map +1 -0
- package/dist/api/evm/legacyV1/signTransaction.d.ts +10 -0
- package/dist/api/evm/legacyV1/signTransaction.d.ts.map +1 -0
- package/dist/api/evm/legacyV1/signTypedData.d.ts +10 -0
- package/dist/api/evm/legacyV1/signTypedData.d.ts.map +1 -0
- package/dist/api/evm/legacyV1/signTypedHash.d.ts +11 -0
- package/dist/api/evm/legacyV1/signTypedHash.d.ts.map +1 -0
- package/dist/api/evm/legacyV1/verifyMessage.d.ts +6 -0
- package/dist/api/evm/legacyV1/verifyMessage.d.ts.map +1 -0
- package/dist/api/filecoin/FilecoinGetAddress.d.ts +17 -0
- package/dist/api/filecoin/FilecoinGetAddress.d.ts.map +1 -0
- package/dist/api/filecoin/FilecoinSignTransaction.d.ts +19 -0
- package/dist/api/filecoin/FilecoinSignTransaction.d.ts.map +1 -0
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +31 -0
- package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -0
- package/dist/api/firmware/bootloaderHelper.d.ts +10 -0
- package/dist/api/firmware/bootloaderHelper.d.ts.map +1 -0
- package/dist/api/firmware/getBinary.d.ts +38 -0
- package/dist/api/firmware/getBinary.d.ts.map +1 -0
- package/dist/api/firmware/releaseHelper.d.ts +30 -0
- package/dist/api/firmware/releaseHelper.d.ts.map +1 -0
- package/dist/api/firmware/updateBootloader.d.ts +5 -0
- package/dist/api/firmware/updateBootloader.d.ts.map +1 -0
- package/dist/api/firmware/uploadFirmware.d.ts +13 -0
- package/dist/api/firmware/uploadFirmware.d.ts.map +1 -0
- package/dist/api/helpers/batchGetPublickeys.d.ts +7 -0
- package/dist/api/helpers/batchGetPublickeys.d.ts.map +1 -0
- package/dist/api/helpers/bigNumberUtils.d.ts +4 -0
- package/dist/api/helpers/bigNumberUtils.d.ts.map +1 -0
- package/dist/api/helpers/hexUtils.d.ts +10 -0
- package/dist/api/helpers/hexUtils.d.ts.map +1 -0
- package/dist/api/helpers/paramsValidator.d.ts +12 -0
- package/dist/api/helpers/paramsValidator.d.ts.map +1 -0
- package/dist/api/helpers/pathUtils.d.ts +16 -0
- package/dist/api/helpers/pathUtils.d.ts.map +1 -0
- package/dist/api/helpers/stringUtils.d.ts +3 -0
- package/dist/api/helpers/stringUtils.d.ts.map +1 -0
- package/dist/api/helpers/typeNameUtils.d.ts +9 -0
- package/dist/api/helpers/typeNameUtils.d.ts.map +1 -0
- package/dist/api/index.d.ts +129 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/kaspa/KaspaGetAddress.d.ts +25 -0
- package/dist/api/kaspa/KaspaGetAddress.d.ts.map +1 -0
- package/dist/api/kaspa/KaspaSignTransaction.d.ts +27 -0
- package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -0
- package/dist/api/kaspa/helpers/BufferWriter.d.ts +28 -0
- package/dist/api/kaspa/helpers/BufferWriter.d.ts.map +1 -0
- package/dist/api/kaspa/helpers/HashWriter.d.ts +22 -0
- package/dist/api/kaspa/helpers/HashWriter.d.ts.map +1 -0
- package/dist/api/kaspa/helpers/SignatureType.d.ts +8 -0
- package/dist/api/kaspa/helpers/SignatureType.d.ts.map +1 -0
- package/dist/api/kaspa/helpers/TransferSerialize.d.ts +9 -0
- package/dist/api/kaspa/helpers/TransferSerialize.d.ts.map +1 -0
- package/dist/api/lightning/LnurlAuth.d.ts +21 -0
- package/dist/api/lightning/LnurlAuth.d.ts.map +1 -0
- package/dist/api/near/NearGetAddress.d.ts +14 -0
- package/dist/api/near/NearGetAddress.d.ts.map +1 -0
- package/dist/api/near/NearSignTransaction.d.ts +12 -0
- package/dist/api/near/NearSignTransaction.d.ts.map +1 -0
- package/dist/api/nem/NEMGetAddress.d.ts +9 -0
- package/dist/api/nem/NEMGetAddress.d.ts.map +1 -0
- package/dist/api/nem/NEMSignTransaction.d.ts +20 -0
- package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -0
- package/dist/api/neo/NeoGetAddress.d.ts +17 -0
- package/dist/api/neo/NeoGetAddress.d.ts.map +1 -0
- package/dist/api/neo/NeoSignTransaction.d.ts +18 -0
- package/dist/api/neo/NeoSignTransaction.d.ts.map +1 -0
- package/dist/api/nervos/NervosGetAddress.d.ts +17 -0
- package/dist/api/nervos/NervosGetAddress.d.ts.map +1 -0
- package/dist/api/nervos/NervosSignTransaction.d.ts +25 -0
- package/dist/api/nervos/NervosSignTransaction.d.ts.map +1 -0
- package/dist/api/nexa/NexaGetAddress.d.ts +24 -0
- package/dist/api/nexa/NexaGetAddress.d.ts.map +1 -0
- package/dist/api/nexa/NexaSignTransaction.d.ts +19 -0
- package/dist/api/nexa/NexaSignTransaction.d.ts.map +1 -0
- package/dist/api/nostr/NostrDecryptMessage.d.ts +21 -0
- package/dist/api/nostr/NostrDecryptMessage.d.ts.map +1 -0
- package/dist/api/nostr/NostrEncryptMessage.d.ts +21 -0
- package/dist/api/nostr/NostrEncryptMessage.d.ts.map +1 -0
- package/dist/api/nostr/NostrGetPublicKey.d.ts +17 -0
- package/dist/api/nostr/NostrGetPublicKey.d.ts.map +1 -0
- package/dist/api/nostr/NostrSignEvent.d.ts +20 -0
- package/dist/api/nostr/NostrSignEvent.d.ts.map +1 -0
- package/dist/api/nostr/NostrSignSchnorr.d.ts +20 -0
- package/dist/api/nostr/NostrSignSchnorr.d.ts.map +1 -0
- package/dist/api/nostr/helper/index.d.ts +4 -0
- package/dist/api/nostr/helper/index.d.ts.map +1 -0
- package/dist/api/polkadot/PolkadotGetAddress.d.ts +17 -0
- package/dist/api/polkadot/PolkadotGetAddress.d.ts.map +1 -0
- package/dist/api/polkadot/PolkadotSignTransaction.d.ts +12 -0
- package/dist/api/polkadot/PolkadotSignTransaction.d.ts.map +1 -0
- package/dist/api/polkadot/networks.d.ts +20 -0
- package/dist/api/polkadot/networks.d.ts.map +1 -0
- package/dist/api/scdo/ScdoGetAddress.d.ts +14 -0
- package/dist/api/scdo/ScdoGetAddress.d.ts.map +1 -0
- package/dist/api/scdo/ScdoSignMessage.d.ts +12 -0
- package/dist/api/scdo/ScdoSignMessage.d.ts.map +1 -0
- package/dist/api/scdo/ScdoSignTransaction.d.ts +16 -0
- package/dist/api/scdo/ScdoSignTransaction.d.ts.map +1 -0
- package/dist/api/solana/SolGetAddress.d.ts +9 -0
- package/dist/api/solana/SolGetAddress.d.ts.map +1 -0
- package/dist/api/solana/SolSignMessage.d.ts +24 -0
- package/dist/api/solana/SolSignMessage.d.ts.map +1 -0
- package/dist/api/solana/SolSignOffchainMessage.d.ts +18 -0
- package/dist/api/solana/SolSignOffchainMessage.d.ts.map +1 -0
- package/dist/api/solana/SolSignTransaction.d.ts +30 -0
- package/dist/api/solana/SolSignTransaction.d.ts.map +1 -0
- package/dist/api/starcoin/StarcoinGetAddress.d.ts +9 -0
- package/dist/api/starcoin/StarcoinGetAddress.d.ts.map +1 -0
- package/dist/api/starcoin/StarcoinGetPublicKey.d.ts +9 -0
- package/dist/api/starcoin/StarcoinGetPublicKey.d.ts.map +1 -0
- package/dist/api/starcoin/StarcoinSignMessage.d.ts +7 -0
- package/dist/api/starcoin/StarcoinSignMessage.d.ts.map +1 -0
- package/dist/api/starcoin/StarcoinSignTransaction.d.ts +7 -0
- package/dist/api/starcoin/StarcoinSignTransaction.d.ts.map +1 -0
- package/dist/api/starcoin/StarcoinVerifyMessage.d.ts +7 -0
- package/dist/api/starcoin/StarcoinVerifyMessage.d.ts.map +1 -0
- package/dist/api/stellar/StellarGetAddress.d.ts +9 -0
- package/dist/api/stellar/StellarGetAddress.d.ts.map +1 -0
- package/dist/api/stellar/StellarSignTransaction.d.ts +335 -0
- package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -0
- package/dist/api/sui/SuiGetAddress.d.ts +18 -0
- package/dist/api/sui/SuiGetAddress.d.ts.map +1 -0
- package/dist/api/sui/SuiGetPublicKey.d.ts +16 -0
- package/dist/api/sui/SuiGetPublicKey.d.ts.map +1 -0
- package/dist/api/sui/SuiSignMessage.d.ts +15 -0
- package/dist/api/sui/SuiSignMessage.d.ts.map +1 -0
- package/dist/api/sui/SuiSignTransaction.d.ts +22 -0
- package/dist/api/sui/SuiSignTransaction.d.ts.map +1 -0
- package/dist/api/sui/normalize.d.ts +9 -0
- package/dist/api/sui/normalize.d.ts.map +1 -0
- package/dist/api/test/TestInitializeDeviceDuration.d.ts +6 -0
- package/dist/api/test/TestInitializeDeviceDuration.d.ts.map +1 -0
- package/dist/api/ton/TonGetAddress.d.ts +18 -0
- package/dist/api/ton/TonGetAddress.d.ts.map +1 -0
- package/dist/api/ton/TonSignMessage.d.ts +25 -0
- package/dist/api/ton/TonSignMessage.d.ts.map +1 -0
- package/dist/api/ton/TonSignProof.d.ts +15 -0
- package/dist/api/ton/TonSignProof.d.ts.map +1 -0
- package/dist/api/tron/TronGetAddress.d.ts +14 -0
- package/dist/api/tron/TronGetAddress.d.ts.map +1 -0
- package/dist/api/tron/TronSignMessage.d.ts +20 -0
- package/dist/api/tron/TronSignMessage.d.ts.map +1 -0
- package/dist/api/tron/TronSignTransaction.d.ts +19 -0
- package/dist/api/tron/TronSignTransaction.d.ts.map +1 -0
- package/dist/api/u2f/GetNextU2FCounter.d.ts +7 -0
- package/dist/api/u2f/GetNextU2FCounter.d.ts.map +1 -0
- package/dist/api/u2f/SetU2FCounter.d.ts +7 -0
- package/dist/api/u2f/SetU2FCounter.d.ts.map +1 -0
- package/dist/api/utils.d.ts +5 -0
- package/dist/api/utils.d.ts.map +1 -0
- package/dist/api/xrp/XrpGetAddress.d.ts +17 -0
- package/dist/api/xrp/XrpGetAddress.d.ts.map +1 -0
- package/dist/api/xrp/XrpSignTransaction.d.ts +16 -0
- package/dist/api/xrp/XrpSignTransaction.d.ts.map +1 -0
- package/dist/constants/errors.d.ts +2 -0
- package/dist/constants/errors.d.ts.map +1 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/ui-request.d.ts +3 -0
- package/dist/constants/ui-request.d.ts.map +1 -0
- package/dist/core/RequestQueue.d.ts +27 -0
- package/dist/core/RequestQueue.d.ts.map +1 -0
- package/dist/core/index.d.ts +28 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/data/config.d.ts +7 -0
- package/dist/data/config.d.ts.map +1 -0
- package/dist/data-manager/CoinManager.d.ts +13 -0
- package/dist/data-manager/CoinManager.d.ts.map +1 -0
- package/dist/data-manager/DataManager.d.ts +43 -0
- package/dist/data-manager/DataManager.d.ts.map +1 -0
- package/dist/data-manager/MessagesConfig.d.ts +11 -0
- package/dist/data-manager/MessagesConfig.d.ts.map +1 -0
- package/dist/data-manager/TransportManager.d.ts +20 -0
- package/dist/data-manager/TransportManager.d.ts.map +1 -0
- package/dist/data-manager/connectSettings.d.ts +11 -0
- package/dist/data-manager/connectSettings.d.ts.map +1 -0
- package/dist/data-manager/index.d.ts +4 -0
- package/dist/data-manager/index.d.ts.map +1 -0
- package/dist/device/Device.d.ts +100 -0
- package/dist/device/Device.d.ts.map +1 -0
- package/dist/device/DeviceCommands.d.ts +116 -0
- package/dist/device/DeviceCommands.d.ts.map +1 -0
- package/dist/device/DeviceConnector.d.ts +20 -0
- package/dist/device/DeviceConnector.d.ts.map +1 -0
- package/dist/device/DeviceList.d.ts +12 -0
- package/dist/device/DeviceList.d.ts.map +1 -0
- package/dist/device/DevicePool.d.ts +43 -0
- package/dist/device/DevicePool.d.ts.map +1 -0
- package/dist/events/call.d.ts +64 -0
- package/dist/events/call.d.ts.map +1 -0
- package/dist/events/core.d.ts +19 -0
- package/dist/events/core.d.ts.map +1 -0
- package/dist/events/device.d.ts +68 -0
- package/dist/events/device.d.ts.map +1 -0
- package/dist/events/firmware.d.ts +28 -0
- package/dist/events/firmware.d.ts.map +1 -0
- package/dist/events/iframe.d.ts +42 -0
- package/dist/events/iframe.d.ts.map +1 -0
- package/dist/events/index.d.ts +11 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/log.d.ts +15 -0
- package/dist/events/log.d.ts.map +1 -0
- package/dist/events/logBlockEvent.d.ts +2 -0
- package/dist/events/logBlockEvent.d.ts.map +1 -0
- package/dist/events/ui-promise.d.ts +12 -0
- package/dist/events/ui-promise.d.ts.map +1 -0
- package/dist/events/ui-request.d.ts +152 -0
- package/dist/events/ui-request.d.ts.map +1 -0
- package/dist/events/ui-response.d.ts +32 -0
- package/dist/events/ui-response.d.ts.map +1 -0
- package/dist/events/utils.d.ts +15 -0
- package/dist/events/utils.d.ts.map +1 -0
- package/dist/index.d.ts +3269 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39955 -0
- package/dist/inject.d.ts +20 -0
- package/dist/inject.d.ts.map +1 -0
- package/dist/lowLevelInject.d.ts +22 -0
- package/dist/lowLevelInject.d.ts.map +1 -0
- package/dist/topLevelInject.d.ts +7 -0
- package/dist/topLevelInject.d.ts.map +1 -0
- package/dist/types/api/alephiumGetAddress.d.ts +19 -0
- package/dist/types/api/alephiumGetAddress.d.ts.map +1 -0
- package/dist/types/api/alephiumSignMessage.d.ts +9 -0
- package/dist/types/api/alephiumSignMessage.d.ts.map +1 -0
- package/dist/types/api/alephiumSignTransaction.d.ts +12 -0
- package/dist/types/api/alephiumSignTransaction.d.ts.map +1 -0
- package/dist/types/api/algoGetAddress.d.ts +14 -0
- package/dist/types/api/algoGetAddress.d.ts.map +1 -0
- package/dist/types/api/algoSignTransaction.d.ts +11 -0
- package/dist/types/api/algoSignTransaction.d.ts.map +1 -0
- package/dist/types/api/allNetworkGetAddress.d.ts +71 -0
- package/dist/types/api/allNetworkGetAddress.d.ts.map +1 -0
- package/dist/types/api/aptosGetAddress.d.ts +16 -0
- package/dist/types/api/aptosGetAddress.d.ts.map +1 -0
- package/dist/types/api/aptosGetPublicKey.d.ts +15 -0
- package/dist/types/api/aptosGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/aptosSignInMessage.d.ts +11 -0
- package/dist/types/api/aptosSignInMessage.d.ts.map +1 -0
- package/dist/types/api/aptosSignMessage.d.ts +20 -0
- package/dist/types/api/aptosSignMessage.d.ts.map +1 -0
- package/dist/types/api/aptosSignTransaction.d.ts +12 -0
- package/dist/types/api/aptosSignTransaction.d.ts.map +1 -0
- package/dist/types/api/benfenGetAddress.d.ts +15 -0
- package/dist/types/api/benfenGetAddress.d.ts.map +1 -0
- package/dist/types/api/benfenGetPublicKey.d.ts +14 -0
- package/dist/types/api/benfenGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/benfenSignMessage.d.ts +8 -0
- package/dist/types/api/benfenSignMessage.d.ts.map +1 -0
- package/dist/types/api/benfenSignTransaction.d.ts +13 -0
- package/dist/types/api/benfenSignTransaction.d.ts.map +1 -0
- package/dist/types/api/btcGetAddress.d.ts +17 -0
- package/dist/types/api/btcGetAddress.d.ts.map +1 -0
- package/dist/types/api/btcGetPublicKey.d.ts +17 -0
- package/dist/types/api/btcGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/btcSignMessage.d.ts +11 -0
- package/dist/types/api/btcSignMessage.d.ts.map +1 -0
- package/dist/types/api/btcSignPsbt.d.ts +8 -0
- package/dist/types/api/btcSignPsbt.d.ts.map +1 -0
- package/dist/types/api/btcSignTransaction.d.ts +74 -0
- package/dist/types/api/btcSignTransaction.d.ts.map +1 -0
- package/dist/types/api/btcVerifyMessage.d.ts +10 -0
- package/dist/types/api/btcVerifyMessage.d.ts.map +1 -0
- package/dist/types/api/cardano.d.ts +182 -0
- package/dist/types/api/cardano.d.ts.map +1 -0
- package/dist/types/api/cardanoGetAddress.d.ts +35 -0
- package/dist/types/api/cardanoGetAddress.d.ts.map +1 -0
- package/dist/types/api/cardanoGetPublicKey.d.ts +23 -0
- package/dist/types/api/cardanoGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/cardanoSignMessage.d.ts +19 -0
- package/dist/types/api/cardanoSignMessage.d.ts.map +1 -0
- package/dist/types/api/cardanoSignTransaction.d.ts +4 -0
- package/dist/types/api/cardanoSignTransaction.d.ts.map +1 -0
- package/dist/types/api/checkAllFirmwareRelease.d.ts +24 -0
- package/dist/types/api/checkAllFirmwareRelease.d.ts.map +1 -0
- package/dist/types/api/checkBLEFirmwareRelease.d.ts +15 -0
- package/dist/types/api/checkBLEFirmwareRelease.d.ts.map +1 -0
- package/dist/types/api/checkBootloaderRelease.d.ts +11 -0
- package/dist/types/api/checkBootloaderRelease.d.ts.map +1 -0
- package/dist/types/api/checkBridgeRelease.d.ts +10 -0
- package/dist/types/api/checkBridgeRelease.d.ts.map +1 -0
- package/dist/types/api/checkBridgeStatus.d.ts +3 -0
- package/dist/types/api/checkBridgeStatus.d.ts.map +1 -0
- package/dist/types/api/checkFirmwareRelease.d.ts +15 -0
- package/dist/types/api/checkFirmwareRelease.d.ts.map +1 -0
- package/dist/types/api/cipherKeyValue.d.ts +19 -0
- package/dist/types/api/cipherKeyValue.d.ts.map +1 -0
- package/dist/types/api/confluxGetAddress.d.ts +15 -0
- package/dist/types/api/confluxGetAddress.d.ts.map +1 -0
- package/dist/types/api/confluxSignMessage.d.ts +8 -0
- package/dist/types/api/confluxSignMessage.d.ts.map +1 -0
- package/dist/types/api/confluxSignMessageCIP23.d.ts +9 -0
- package/dist/types/api/confluxSignMessageCIP23.d.ts.map +1 -0
- package/dist/types/api/confluxSignTransaction.d.ts +25 -0
- package/dist/types/api/confluxSignTransaction.d.ts.map +1 -0
- package/dist/types/api/cosmosGetAddress.d.ts +15 -0
- package/dist/types/api/cosmosGetAddress.d.ts.map +1 -0
- package/dist/types/api/cosmosGetPublicKey.d.ts +16 -0
- package/dist/types/api/cosmosGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/cosmosSignTransaction.d.ts +11 -0
- package/dist/types/api/cosmosSignTransaction.d.ts.map +1 -0
- package/dist/types/api/deviceBackup.d.ts +4 -0
- package/dist/types/api/deviceBackup.d.ts.map +1 -0
- package/dist/types/api/deviceCancel.d.ts +4 -0
- package/dist/types/api/deviceCancel.d.ts.map +1 -0
- package/dist/types/api/deviceChangePin.d.ts +7 -0
- package/dist/types/api/deviceChangePin.d.ts.map +1 -0
- package/dist/types/api/deviceFlags.d.ts +7 -0
- package/dist/types/api/deviceFlags.d.ts.map +1 -0
- package/dist/types/api/deviceFullyUploadResource.d.ts +6 -0
- package/dist/types/api/deviceFullyUploadResource.d.ts.map +1 -0
- package/dist/types/api/deviceLock.d.ts +4 -0
- package/dist/types/api/deviceLock.d.ts.map +1 -0
- package/dist/types/api/deviceRebootToBoardloader.d.ts +5 -0
- package/dist/types/api/deviceRebootToBoardloader.d.ts.map +1 -0
- package/dist/types/api/deviceRebootToBootloader.d.ts +4 -0
- package/dist/types/api/deviceRebootToBootloader.d.ts.map +1 -0
- package/dist/types/api/deviceRecovery.d.ts +15 -0
- package/dist/types/api/deviceRecovery.d.ts.map +1 -0
- package/dist/types/api/deviceReset.d.ts +16 -0
- package/dist/types/api/deviceReset.d.ts.map +1 -0
- package/dist/types/api/deviceSettings.d.ts +16 -0
- package/dist/types/api/deviceSettings.d.ts.map +1 -0
- package/dist/types/api/deviceSupportFeatures.d.ts +7 -0
- package/dist/types/api/deviceSupportFeatures.d.ts.map +1 -0
- package/dist/types/api/deviceUnlock.d.ts +4 -0
- package/dist/types/api/deviceUnlock.d.ts.map +1 -0
- package/dist/types/api/deviceUpdateBootloader.d.ts +6 -0
- package/dist/types/api/deviceUpdateBootloader.d.ts.map +1 -0
- package/dist/types/api/deviceUpdateReboot.d.ts +3 -0
- package/dist/types/api/deviceUpdateReboot.d.ts.map +1 -0
- package/dist/types/api/deviceUploadResource.d.ts +12 -0
- package/dist/types/api/deviceUploadResource.d.ts.map +1 -0
- package/dist/types/api/deviceVerify.d.ts +10 -0
- package/dist/types/api/deviceVerify.d.ts.map +1 -0
- package/dist/types/api/deviceWipe.d.ts +4 -0
- package/dist/types/api/deviceWipe.d.ts.map +1 -0
- package/dist/types/api/dnxGetAddress.d.ts +14 -0
- package/dist/types/api/dnxGetAddress.d.ts.map +1 -0
- package/dist/types/api/dnxSignTransaction.d.ts +29 -0
- package/dist/types/api/dnxSignTransaction.d.ts.map +1 -0
- package/dist/types/api/emmcFileWrite.d.ts +8 -0
- package/dist/types/api/emmcFileWrite.d.ts.map +1 -0
- package/dist/types/api/event.d.ts +4 -0
- package/dist/types/api/event.d.ts.map +1 -0
- package/dist/types/api/evmGetAddress.d.ts +15 -0
- package/dist/types/api/evmGetAddress.d.ts.map +1 -0
- package/dist/types/api/evmGetPublicKey.d.ts +21 -0
- package/dist/types/api/evmGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/evmSignMessage.d.ts +9 -0
- package/dist/types/api/evmSignMessage.d.ts.map +1 -0
- package/dist/types/api/evmSignMessageEIP712.d.ts +9 -0
- package/dist/types/api/evmSignMessageEIP712.d.ts.map +1 -0
- package/dist/types/api/evmSignTransaction.d.ts +68 -0
- package/dist/types/api/evmSignTransaction.d.ts.map +1 -0
- package/dist/types/api/evmSignTypedData.d.ts +34 -0
- package/dist/types/api/evmSignTypedData.d.ts.map +1 -0
- package/dist/types/api/evmVerifyMessage.d.ts +10 -0
- package/dist/types/api/evmVerifyMessage.d.ts.map +1 -0
- package/dist/types/api/export.d.ts +89 -0
- package/dist/types/api/export.d.ts.map +1 -0
- package/dist/types/api/filecoinGetAddress.d.ts +15 -0
- package/dist/types/api/filecoinGetAddress.d.ts.map +1 -0
- package/dist/types/api/filecoinSignTransaction.d.ts +15 -0
- package/dist/types/api/filecoinSignTransaction.d.ts.map +1 -0
- package/dist/types/api/firmwareUpdate.d.ts +44 -0
- package/dist/types/api/firmwareUpdate.d.ts.map +1 -0
- package/dist/types/api/getFeatures.d.ts +4 -0
- package/dist/types/api/getFeatures.d.ts.map +1 -0
- package/dist/types/api/getLogs.d.ts +3 -0
- package/dist/types/api/getLogs.d.ts.map +1 -0
- package/dist/types/api/getNextU2FCounter.d.ts +4 -0
- package/dist/types/api/getNextU2FCounter.d.ts.map +1 -0
- package/dist/types/api/getPassphraseState.d.ts +3 -0
- package/dist/types/api/getPassphraseState.d.ts.map +1 -0
- package/dist/types/api/getUkeyFeatures.d.ts +4 -0
- package/dist/types/api/getUkeyFeatures.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +274 -0
- package/dist/types/api/index.d.ts.map +1 -0
- package/dist/types/api/init.d.ts +6 -0
- package/dist/types/api/init.d.ts.map +1 -0
- package/dist/types/api/kaspaGetAddress.d.ts +17 -0
- package/dist/types/api/kaspaGetAddress.d.ts.map +1 -0
- package/dist/types/api/kaspaSignTransaction.d.ts +36 -0
- package/dist/types/api/kaspaSignTransaction.d.ts.map +1 -0
- package/dist/types/api/lnurlAuth.d.ts +13 -0
- package/dist/types/api/lnurlAuth.d.ts.map +1 -0
- package/dist/types/api/nearGetAddress.d.ts +14 -0
- package/dist/types/api/nearGetAddress.d.ts.map +1 -0
- package/dist/types/api/nearSignTransaction.d.ts +8 -0
- package/dist/types/api/nearSignTransaction.d.ts.map +1 -0
- package/dist/types/api/nemGetAddress.d.ts +15 -0
- package/dist/types/api/nemGetAddress.d.ts.map +1 -0
- package/dist/types/api/nemSignTransaction.d.ts +93 -0
- package/dist/types/api/nemSignTransaction.d.ts.map +1 -0
- package/dist/types/api/neoGetAddress.d.ts +15 -0
- package/dist/types/api/neoGetAddress.d.ts.map +1 -0
- package/dist/types/api/neoSignTransaction.d.ts +12 -0
- package/dist/types/api/neoSignTransaction.d.ts.map +1 -0
- package/dist/types/api/nervosGetAddress.d.ts +15 -0
- package/dist/types/api/nervosGetAddress.d.ts.map +1 -0
- package/dist/types/api/nervosSignTransaction.d.ts +13 -0
- package/dist/types/api/nervosSignTransaction.d.ts.map +1 -0
- package/dist/types/api/nexaGetAddress.d.ts +17 -0
- package/dist/types/api/nexaGetAddress.d.ts.map +1 -0
- package/dist/types/api/nexaSignTransaction.d.ts +20 -0
- package/dist/types/api/nexaSignTransaction.d.ts.map +1 -0
- package/dist/types/api/nostrDecryptMessage.d.ts +18 -0
- package/dist/types/api/nostrDecryptMessage.d.ts.map +1 -0
- package/dist/types/api/nostrEncryptMessage.d.ts +18 -0
- package/dist/types/api/nostrEncryptMessage.d.ts.map +1 -0
- package/dist/types/api/nostrGetPublicKey.d.ts +16 -0
- package/dist/types/api/nostrGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/nostrSignEvent.d.ts +44 -0
- package/dist/types/api/nostrSignEvent.d.ts.map +1 -0
- package/dist/types/api/nostrSignSchnorr.d.ts +15 -0
- package/dist/types/api/nostrSignSchnorr.d.ts.map +1 -0
- package/dist/types/api/polkadotGetAddress.d.ts +18 -0
- package/dist/types/api/polkadotGetAddress.d.ts.map +1 -0
- package/dist/types/api/polkadotSignTransaction.d.ts +12 -0
- package/dist/types/api/polkadotSignTransaction.d.ts.map +1 -0
- package/dist/types/api/promptWebDeviceAccess.d.ts +8 -0
- package/dist/types/api/promptWebDeviceAccess.d.ts.map +1 -0
- package/dist/types/api/scdoGetAddress.d.ts +14 -0
- package/dist/types/api/scdoGetAddress.d.ts.map +1 -0
- package/dist/types/api/scdoSignMessage.d.ts +8 -0
- package/dist/types/api/scdoSignMessage.d.ts.map +1 -0
- package/dist/types/api/scdoSignTransaction.d.ts +18 -0
- package/dist/types/api/scdoSignTransaction.d.ts.map +1 -0
- package/dist/types/api/searchDevices.d.ts +4 -0
- package/dist/types/api/searchDevices.d.ts.map +1 -0
- package/dist/types/api/setU2FCounter.d.ts +4 -0
- package/dist/types/api/setU2FCounter.d.ts.map +1 -0
- package/dist/types/api/solGetAddress.d.ts +14 -0
- package/dist/types/api/solGetAddress.d.ts.map +1 -0
- package/dist/types/api/solSignMessage.d.ts +11 -0
- package/dist/types/api/solSignMessage.d.ts.map +1 -0
- package/dist/types/api/solSignOffchainMessage.d.ts +15 -0
- package/dist/types/api/solSignOffchainMessage.d.ts.map +1 -0
- package/dist/types/api/solSignTransaction.d.ts +14 -0
- package/dist/types/api/solSignTransaction.d.ts.map +1 -0
- package/dist/types/api/starcoinGetAddress.d.ts +14 -0
- package/dist/types/api/starcoinGetAddress.d.ts.map +1 -0
- package/dist/types/api/starcoinGetPublicKey.d.ts +14 -0
- package/dist/types/api/starcoinGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/starcoinSignMessage.d.ts +8 -0
- package/dist/types/api/starcoinSignMessage.d.ts.map +1 -0
- package/dist/types/api/starcoinSignTransaction.d.ts +8 -0
- package/dist/types/api/starcoinSignTransaction.d.ts.map +1 -0
- package/dist/types/api/starcoinVerifyMessage.d.ts +9 -0
- package/dist/types/api/starcoinVerifyMessage.d.ts.map +1 -0
- package/dist/types/api/stellarGetAddress.d.ts +14 -0
- package/dist/types/api/stellarGetAddress.d.ts.map +1 -0
- package/dist/types/api/stellarSignTransaction.d.ts +130 -0
- package/dist/types/api/stellarSignTransaction.d.ts.map +1 -0
- package/dist/types/api/suiGetAddress.d.ts +16 -0
- package/dist/types/api/suiGetAddress.d.ts.map +1 -0
- package/dist/types/api/suiGetPublicKey.d.ts +15 -0
- package/dist/types/api/suiGetPublicKey.d.ts.map +1 -0
- package/dist/types/api/suiSignMessage.d.ts +8 -0
- package/dist/types/api/suiSignMessage.d.ts.map +1 -0
- package/dist/types/api/suiSignTransaction.d.ts +11 -0
- package/dist/types/api/suiSignTransaction.d.ts.map +1 -0
- package/dist/types/api/testInitializeDeviceDuration.d.ts +3 -0
- package/dist/types/api/testInitializeDeviceDuration.d.ts.map +1 -0
- package/dist/types/api/tonGetAddress.d.ts +22 -0
- package/dist/types/api/tonGetAddress.d.ts.map +1 -0
- package/dist/types/api/tonSignMessage.d.ts +31 -0
- package/dist/types/api/tonSignMessage.d.ts.map +1 -0
- package/dist/types/api/tonSignProof.d.ts +15 -0
- package/dist/types/api/tonSignProof.d.ts.map +1 -0
- package/dist/types/api/tronGetAddress.d.ts +14 -0
- package/dist/types/api/tronGetAddress.d.ts.map +1 -0
- package/dist/types/api/tronSignMessage.d.ts +9 -0
- package/dist/types/api/tronSignMessage.d.ts.map +1 -0
- package/dist/types/api/tronSignTransaction.d.ts +72 -0
- package/dist/types/api/tronSignTransaction.d.ts.map +1 -0
- package/dist/types/api/uiResponse.d.ts +3 -0
- package/dist/types/api/uiResponse.d.ts.map +1 -0
- package/dist/types/api/xrpGetAddress.d.ts +16 -0
- package/dist/types/api/xrpGetAddress.d.ts.map +1 -0
- package/dist/types/api/xrpSignTransaction.d.ts +22 -0
- package/dist/types/api/xrpSignTransaction.d.ts.map +1 -0
- package/dist/types/device.d.ts +105 -0
- package/dist/types/device.d.ts.map +1 -0
- package/dist/types/firmware.d.ts +38 -0
- package/dist/types/firmware.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/params.d.ts +29 -0
- package/dist/types/params.d.ts.map +1 -0
- package/dist/types/settings.d.ts +82 -0
- package/dist/types/settings.d.ts.map +1 -0
- package/dist/utils/arrayUtils.d.ts +2 -0
- package/dist/utils/arrayUtils.d.ts.map +1 -0
- package/dist/utils/assets.d.ts +3 -0
- package/dist/utils/assets.d.ts.map +1 -0
- package/dist/utils/bridgeUpdate.d.ts +15 -0
- package/dist/utils/bridgeUpdate.d.ts.map +1 -0
- package/dist/utils/capabilitieUtils.d.ts +5 -0
- package/dist/utils/capabilitieUtils.d.ts.map +1 -0
- package/dist/utils/deviceFeaturesUtils.d.ts +39 -0
- package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -0
- package/dist/utils/deviceInfoUtils.d.ts +10 -0
- package/dist/utils/deviceInfoUtils.d.ts.map +1 -0
- package/dist/utils/deviceVersionUtils.d.ts +6 -0
- package/dist/utils/deviceVersionUtils.d.ts.map +1 -0
- package/dist/utils/findDefectiveBatchDevice.d.ts +8 -0
- package/dist/utils/findDefectiveBatchDevice.d.ts.map +1 -0
- package/dist/utils/getMutex.d.ts +2 -0
- package/dist/utils/getMutex.d.ts.map +1 -0
- package/dist/utils/getSynchronize.d.ts +4 -0
- package/dist/utils/getSynchronize.d.ts.map +1 -0
- package/dist/utils/homescreen.d.ts +22 -0
- package/dist/utils/homescreen.d.ts.map +1 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +64 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/networkUtils.d.ts +2 -0
- package/dist/utils/networkUtils.d.ts.map +1 -0
- package/dist/utils/patch.d.ts +3 -0
- package/dist/utils/patch.d.ts.map +1 -0
- package/dist/utils/promiseUtils.d.ts +2 -0
- package/dist/utils/promiseUtils.d.ts.map +1 -0
- package/dist/utils/release.d.ts +7 -0
- package/dist/utils/release.d.ts.map +1 -0
- package/dist/utils/versionUtils.d.ts +6 -0
- package/dist/utils/versionUtils.d.ts.map +1 -0
- package/jest.config.js +6 -0
- package/package.json +49 -0
- package/src/api/BaseMethod.ts +226 -0
- package/src/api/CheckAllFirmwareRelease.ts +65 -0
- package/src/api/CheckBLEFirmwareRelease.ts +24 -0
- package/src/api/CheckBootloaderRelease.ts +21 -0
- package/src/api/CheckBridgeRelease.ts +28 -0
- package/src/api/CheckBridgeStatus.ts +31 -0
- package/src/api/CheckFirmwareRelease.ts +24 -0
- package/src/api/CipherKeyValue.ts +67 -0
- package/src/api/EmmcFileWrite.ts +49 -0
- package/src/api/FirmwareUpdate.ts +216 -0
- package/src/api/FirmwareUpdateV2.ts +391 -0
- package/src/api/FirmwareUpdateV3.ts +437 -0
- package/src/api/GetFeatures.ts +22 -0
- package/src/api/GetLogs.ts +40 -0
- package/src/api/GetPassphraseState.ts +27 -0
- package/src/api/GetUkeyFeatures.ts +24 -0
- package/src/api/PromptWebDeviceAccess.ts +75 -0
- package/src/api/SearchDevices.ts +49 -0
- package/src/api/alephium/AlephiumGetAddress.ts +83 -0
- package/src/api/alephium/AlephiumSignMessage.ts +50 -0
- package/src/api/alephium/AlephiumSignTransaction.ts +134 -0
- package/src/api/algo/AlgoGetAddress.ts +73 -0
- package/src/api/algo/AlgoSignTransaction.ts +51 -0
- package/src/api/allnetwork/AllNetworkGetAddress.ts +87 -0
- package/src/api/allnetwork/AllNetworkGetAddressBase.ts +480 -0
- package/src/api/allnetwork/AllNetworkGetAddressByLoop.ts +161 -0
- package/src/api/aptos/AptosGetAddress.ts +128 -0
- package/src/api/aptos/AptosGetPublicKey.ts +63 -0
- package/src/api/aptos/AptosSignInMessage.ts +54 -0
- package/src/api/aptos/AptosSignMessage.ts +78 -0
- package/src/api/aptos/AptosSignTransaction.ts +71 -0
- package/src/api/benfen/BenfenGetAddress.ts +122 -0
- package/src/api/benfen/BenfenGetPublicKey.ts +67 -0
- package/src/api/benfen/BenfenSignMessage.ts +49 -0
- package/src/api/benfen/BenfenSignTransaction.ts +104 -0
- package/src/api/benfen/normalize.ts +51 -0
- package/src/api/btc/BTCGetAddress.ts +90 -0
- package/src/api/btc/BTCGetPublicKey.ts +172 -0
- package/src/api/btc/BTCSignMessage.ts +72 -0
- package/src/api/btc/BTCSignPsbt.ts +63 -0
- package/src/api/btc/BTCSignTransaction.ts +147 -0
- package/src/api/btc/BTCVerifyMessage.ts +46 -0
- package/src/api/btc/helpers/btcParamsUtils.ts +63 -0
- package/src/api/btc/helpers/signtx.ts +250 -0
- package/src/api/btc/helpers/signtxLegacy.ts +226 -0
- package/src/api/btc/helpers/versionLimit.ts +25 -0
- package/src/api/btc/helpers/xpubUtils.ts +131 -0
- package/src/api/cardano/CardanoGetAddress.ts +138 -0
- package/src/api/cardano/CardanoGetPublicKey.ts +71 -0
- package/src/api/cardano/CardanoSignMessage.ts +70 -0
- package/src/api/cardano/CardanoSignTransaction.ts +403 -0
- package/src/api/cardano/helper/addressParameters.ts +118 -0
- package/src/api/cardano/helper/auxiliaryData.ts +131 -0
- package/src/api/cardano/helper/cardanoInputs.ts +54 -0
- package/src/api/cardano/helper/cardanoOutputs.ts +88 -0
- package/src/api/cardano/helper/certificate.ts +244 -0
- package/src/api/cardano/helper/token.ts +43 -0
- package/src/api/cardano/helper/utils.ts +17 -0
- package/src/api/cardano/helper/witnesses.ts +61 -0
- package/src/api/conflux/ConfluxGetAddress.ts +77 -0
- package/src/api/conflux/ConfluxSignMessage.ts +48 -0
- package/src/api/conflux/ConfluxSignMessageCIP23.ts +48 -0
- package/src/api/conflux/ConfluxSignTransaction.ts +134 -0
- package/src/api/cosmos/CosmosGetAddress.ts +80 -0
- package/src/api/cosmos/CosmosGetPublicKey.ts +76 -0
- package/src/api/cosmos/CosmosSignTransaction.ts +54 -0
- package/src/api/device/DeviceBackup.ts +14 -0
- package/src/api/device/DeviceCancel.ts +14 -0
- package/src/api/device/DeviceChangePin.ts +24 -0
- package/src/api/device/DeviceFlags.ts +25 -0
- package/src/api/device/DeviceFullyUploadResource.ts +71 -0
- package/src/api/device/DeviceLock.ts +14 -0
- package/src/api/device/DeviceRebootToBoardloader.ts +29 -0
- package/src/api/device/DeviceRebootToBootloader.ts +27 -0
- package/src/api/device/DeviceRecovery.ts +43 -0
- package/src/api/device/DeviceReset.ts +45 -0
- package/src/api/device/DeviceSettings.ts +56 -0
- package/src/api/device/DeviceSupportFeatures.ts +28 -0
- package/src/api/device/DeviceUnlock.ts +12 -0
- package/src/api/device/DeviceUpdateBootloader.ts +78 -0
- package/src/api/device/DeviceUpdateReboot.ts +16 -0
- package/src/api/device/DeviceUploadResource.ts +140 -0
- package/src/api/device/DeviceVerify.ts +63 -0
- package/src/api/device/DeviceWipe.ts +14 -0
- package/src/api/dynex/DnxGetAddress.ts +75 -0
- package/src/api/dynex/DnxSignTransaction.ts +126 -0
- package/src/api/evm/EVMGetAddress.ts +87 -0
- package/src/api/evm/EVMGetPublicKey.ts +115 -0
- package/src/api/evm/EVMSignMessage.ts +48 -0
- package/src/api/evm/EVMSignMessageEIP712.ts +55 -0
- package/src/api/evm/EVMSignTransaction.ts +138 -0
- package/src/api/evm/EVMSignTypedData.ts +474 -0
- package/src/api/evm/EVMVerifyMessage.ts +45 -0
- package/src/api/evm/latest/getAddress.ts +13 -0
- package/src/api/evm/latest/getPublicKey.ts +13 -0
- package/src/api/evm/latest/signMessage.ts +19 -0
- package/src/api/evm/latest/signTransaction.ts +301 -0
- package/src/api/evm/latest/signTypedData.ts +34 -0
- package/src/api/evm/latest/signTypedHash.ts +44 -0
- package/src/api/evm/latest/verifyMessage.ts +15 -0
- package/src/api/evm/legacyV1/getAddress.ts +16 -0
- package/src/api/evm/legacyV1/getPublicKey.ts +16 -0
- package/src/api/evm/legacyV1/signMessage.ts +22 -0
- package/src/api/evm/legacyV1/signTransaction.ts +36 -0
- package/src/api/evm/legacyV1/signTypedData.ts +37 -0
- package/src/api/evm/legacyV1/signTypedHash.ts +48 -0
- package/src/api/evm/legacyV1/verifyMessage.ts +19 -0
- package/src/api/filecoin/FilecoinGetAddress.ts +79 -0
- package/src/api/filecoin/FilecoinSignTransaction.ts +56 -0
- package/src/api/firmware/FirmwareUpdateBaseMethod.ts +417 -0
- package/src/api/firmware/bootloaderHelper.ts +44 -0
- package/src/api/firmware/getBinary.ts +88 -0
- package/src/api/firmware/releaseHelper.ts +67 -0
- package/src/api/firmware/updateBootloader.ts +71 -0
- package/src/api/firmware/uploadFirmware.ts +453 -0
- package/src/api/helpers/batchGetPublickeys.ts +76 -0
- package/src/api/helpers/bigNumberUtils.ts +58 -0
- package/src/api/helpers/hexUtils.ts +111 -0
- package/src/api/helpers/paramsValidator.ts +148 -0
- package/src/api/helpers/pathUtils.ts +144 -0
- package/src/api/helpers/stringUtils.ts +11 -0
- package/src/api/helpers/typeNameUtils.ts +135 -0
- package/src/api/index.ts +161 -0
- package/src/api/kaspa/KaspaGetAddress.ts +102 -0
- package/src/api/kaspa/KaspaSignTransaction.ts +180 -0
- package/src/api/kaspa/helpers/BufferWriter.ts +177 -0
- package/src/api/kaspa/helpers/HashWriter.ts +72 -0
- package/src/api/kaspa/helpers/SignatureType.ts +7 -0
- package/src/api/kaspa/helpers/TransferSerialize.ts +143 -0
- package/src/api/lightning/LnurlAuth.ts +51 -0
- package/src/api/near/NearGetAddress.ts +74 -0
- package/src/api/near/NearSignTransaction.ts +45 -0
- package/src/api/nem/NEMGetAddress.ts +71 -0
- package/src/api/nem/NEMSignTransaction.ts +250 -0
- package/src/api/neo/NeoGetAddress.ts +79 -0
- package/src/api/neo/NeoSignTransaction.ts +59 -0
- package/src/api/nervos/NervosGetAddress.ts +80 -0
- package/src/api/nervos/NervosSignTransaction.ts +114 -0
- package/src/api/nexa/NexaGetAddress.ts +87 -0
- package/src/api/nexa/NexaSignTransaction.ts +105 -0
- package/src/api/nostr/NostrDecryptMessage.ts +56 -0
- package/src/api/nostr/NostrEncryptMessage.ts +56 -0
- package/src/api/nostr/NostrGetPublicKey.ts +73 -0
- package/src/api/nostr/NostrSignEvent.ts +63 -0
- package/src/api/nostr/NostrSignSchnorr.ts +51 -0
- package/src/api/nostr/helper/index.ts +28 -0
- package/src/api/polkadot/PolkadotGetAddress.ts +83 -0
- package/src/api/polkadot/PolkadotSignTransaction.ts +50 -0
- package/src/api/polkadot/networks.ts +56 -0
- package/src/api/scdo/ScdoGetAddress.ts +75 -0
- package/src/api/scdo/ScdoSignMessage.ts +44 -0
- package/src/api/scdo/ScdoSignTransaction.ts +100 -0
- package/src/api/solana/SolGetAddress.ts +67 -0
- package/src/api/solana/SolSignMessage.ts +60 -0
- package/src/api/solana/SolSignOffchainMessage.ts +60 -0
- package/src/api/solana/SolSignTransaction.ts +105 -0
- package/src/api/starcoin/StarcoinGetAddress.ts +68 -0
- package/src/api/starcoin/StarcoinGetPublicKey.ts +69 -0
- package/src/api/starcoin/StarcoinSignMessage.ts +41 -0
- package/src/api/starcoin/StarcoinSignTransaction.ts +37 -0
- package/src/api/starcoin/StarcoinVerifyMessage.ts +34 -0
- package/src/api/stellar/StellarGetAddress.ts +67 -0
- package/src/api/stellar/StellarSignTransaction.ts +218 -0
- package/src/api/sui/SuiGetAddress.ts +117 -0
- package/src/api/sui/SuiGetPublicKey.ts +65 -0
- package/src/api/sui/SuiSignMessage.ts +47 -0
- package/src/api/sui/SuiSignTransaction.ts +120 -0
- package/src/api/sui/normalize.ts +28 -0
- package/src/api/test/TestInitializeDeviceDuration.ts +22 -0
- package/src/api/ton/TonGetAddress.ts +96 -0
- package/src/api/ton/TonSignMessage.ts +214 -0
- package/src/api/ton/TonSignProof.ts +62 -0
- package/src/api/tron/TronGetAddress.ts +74 -0
- package/src/api/tron/TronSignMessage.ts +82 -0
- package/src/api/tron/TronSignTransaction.ts +203 -0
- package/src/api/u2f/GetNextU2FCounter.ts +14 -0
- package/src/api/u2f/SetU2FCounter.ts +18 -0
- package/src/api/utils.ts +21 -0
- package/src/api/xrp/XrpGetAddress.ts +114 -0
- package/src/api/xrp/XrpSignTransaction.ts +70 -0
- package/src/constants/errors.ts +15 -0
- package/src/constants/index.ts +2 -0
- package/src/constants/ui-request.ts +3 -0
- package/src/core/RequestQueue.ts +133 -0
- package/src/core/index.ts +1167 -0
- package/src/data/coins/bitcoin.json +44 -0
- package/src/data/config.ts +25 -0
- package/src/data/messages/messages.json +13066 -0
- package/src/data/messages/messages_legacy_v1.json +10270 -0
- package/src/data-manager/CoinManager.ts +31 -0
- package/src/data-manager/DataManager.ts +355 -0
- package/src/data-manager/MessagesConfig.ts +20 -0
- package/src/data-manager/TransportManager.ts +134 -0
- package/src/data-manager/connectSettings.ts +120 -0
- package/src/data-manager/index.ts +3 -0
- package/src/device/Device.ts +858 -0
- package/src/device/DeviceCommands.ts +589 -0
- package/src/device/DeviceConnector.ts +112 -0
- package/src/device/DeviceList.ts +37 -0
- package/src/device/DevicePool.ts +263 -0
- package/src/events/call.ts +94 -0
- package/src/events/core.ts +64 -0
- package/src/events/device.ts +91 -0
- package/src/events/firmware.ts +40 -0
- package/src/events/iframe.ts +54 -0
- package/src/events/index.ts +10 -0
- package/src/events/log.ts +23 -0
- package/src/events/logBlockEvent.ts +6 -0
- package/src/events/ui-promise.ts +14 -0
- package/src/events/ui-request.ts +205 -0
- package/src/events/ui-response.ts +48 -0
- package/src/events/utils.ts +19 -0
- package/src/index.ts +67 -0
- package/src/inject.ts +408 -0
- package/src/lowLevelInject.ts +60 -0
- package/src/topLevelInject.ts +60 -0
- package/src/types/api/alephiumGetAddress.ts +31 -0
- package/src/types/api/alephiumSignMessage.ts +14 -0
- package/src/types/api/alephiumSignTransaction.ts +18 -0
- package/src/types/api/algoGetAddress.ts +23 -0
- package/src/types/api/algoSignTransaction.ts +17 -0
- package/src/types/api/allNetworkGetAddress.ts +129 -0
- package/src/types/api/aptosGetAddress.ts +28 -0
- package/src/types/api/aptosGetPublicKey.ts +27 -0
- package/src/types/api/aptosSignInMessage.ts +17 -0
- package/src/types/api/aptosSignMessage.ts +26 -0
- package/src/types/api/aptosSignTransaction.ts +18 -0
- package/src/types/api/benfenGetAddress.ts +24 -0
- package/src/types/api/benfenGetPublicKey.ts +23 -0
- package/src/types/api/benfenSignMessage.ts +13 -0
- package/src/types/api/benfenSignTransaction.ts +19 -0
- package/src/types/api/btcGetAddress.ts +26 -0
- package/src/types/api/btcGetPublicKey.ts +26 -0
- package/src/types/api/btcSignMessage.ts +16 -0
- package/src/types/api/btcSignPsbt.ts +13 -0
- package/src/types/api/btcSignTransaction.ts +98 -0
- package/src/types/api/btcVerifyMessage.ts +15 -0
- package/src/types/api/cardano.ts +212 -0
- package/src/types/api/cardanoGetAddress.ts +49 -0
- package/src/types/api/cardanoGetPublicKey.ts +33 -0
- package/src/types/api/cardanoSignMessage.ts +25 -0
- package/src/types/api/cardanoSignTransaction.ts +8 -0
- package/src/types/api/checkAllFirmwareRelease.ts +30 -0
- package/src/types/api/checkBLEFirmwareRelease.ts +15 -0
- package/src/types/api/checkBootloaderRelease.ts +15 -0
- package/src/types/api/checkBridgeRelease.ts +14 -0
- package/src/types/api/checkBridgeStatus.ts +3 -0
- package/src/types/api/checkFirmwareRelease.ts +15 -0
- package/src/types/api/cipherKeyValue.ts +28 -0
- package/src/types/api/confluxGetAddress.ts +24 -0
- package/src/types/api/confluxSignMessage.ts +13 -0
- package/src/types/api/confluxSignMessageCIP23.ts +14 -0
- package/src/types/api/confluxSignTransaction.ts +32 -0
- package/src/types/api/cosmosGetAddress.ts +24 -0
- package/src/types/api/cosmosGetPublicKey.ts +28 -0
- package/src/types/api/cosmosSignTransaction.ts +17 -0
- package/src/types/api/deviceBackup.ts +4 -0
- package/src/types/api/deviceCancel.ts +4 -0
- package/src/types/api/deviceChangePin.ts +11 -0
- package/src/types/api/deviceFlags.ts +11 -0
- package/src/types/api/deviceFullyUploadResource.ts +9 -0
- package/src/types/api/deviceLock.ts +4 -0
- package/src/types/api/deviceRebootToBoardloader.ts +6 -0
- package/src/types/api/deviceRebootToBootloader.ts +4 -0
- package/src/types/api/deviceRecovery.ts +19 -0
- package/src/types/api/deviceReset.ts +20 -0
- package/src/types/api/deviceSettings.ts +20 -0
- package/src/types/api/deviceSupportFeatures.ts +6 -0
- package/src/types/api/deviceUnlock.ts +4 -0
- package/src/types/api/deviceUpdateBootloader.ts +9 -0
- package/src/types/api/deviceUpdateReboot.ts +3 -0
- package/src/types/api/deviceUploadResource.ts +16 -0
- package/src/types/api/deviceVerify.ts +15 -0
- package/src/types/api/deviceWipe.ts +4 -0
- package/src/types/api/dnxGetAddress.ts +23 -0
- package/src/types/api/dnxSignTransaction.ts +36 -0
- package/src/types/api/emmcFileWrite.ts +12 -0
- package/src/types/api/event.ts +8 -0
- package/src/types/api/evmGetAddress.ts +24 -0
- package/src/types/api/evmGetPublicKey.ts +36 -0
- package/src/types/api/evmSignMessage.ts +14 -0
- package/src/types/api/evmSignMessageEIP712.ts +14 -0
- package/src/types/api/evmSignTransaction.ts +80 -0
- package/src/types/api/evmSignTypedData.ts +42 -0
- package/src/types/api/evmVerifyMessage.ts +15 -0
- package/src/types/api/export.ts +191 -0
- package/src/types/api/filecoinGetAddress.ts +24 -0
- package/src/types/api/filecoinSignTransaction.ts +24 -0
- package/src/types/api/firmwareUpdate.ts +63 -0
- package/src/types/api/getFeatures.ts +4 -0
- package/src/types/api/getLogs.ts +3 -0
- package/src/types/api/getNextU2FCounter.ts +7 -0
- package/src/types/api/getPassphraseState.ts +6 -0
- package/src/types/api/getUkeyFeatures.ts +7 -0
- package/src/types/api/index.ts +437 -0
- package/src/types/api/init.ts +11 -0
- package/src/types/api/kaspaGetAddress.ts +26 -0
- package/src/types/api/kaspaSignTransaction.ts +44 -0
- package/src/types/api/lnurlAuth.ts +22 -0
- package/src/types/api/nearGetAddress.ts +23 -0
- package/src/types/api/nearSignTransaction.ts +13 -0
- package/src/types/api/nemGetAddress.ts +24 -0
- package/src/types/api/nemSignTransaction.ts +118 -0
- package/src/types/api/neoGetAddress.ts +24 -0
- package/src/types/api/neoSignTransaction.ts +18 -0
- package/src/types/api/nervosGetAddress.ts +24 -0
- package/src/types/api/nervosSignTransaction.ts +19 -0
- package/src/types/api/nexaGetAddress.ts +26 -0
- package/src/types/api/nexaSignTransaction.ts +28 -0
- package/src/types/api/nostrDecryptMessage.ts +25 -0
- package/src/types/api/nostrEncryptMessage.ts +25 -0
- package/src/types/api/nostrGetPublicKey.ts +28 -0
- package/src/types/api/nostrSignEvent.ts +52 -0
- package/src/types/api/nostrSignSchnorr.ts +22 -0
- package/src/types/api/polkadotGetAddress.ts +30 -0
- package/src/types/api/polkadotSignTransaction.ts +18 -0
- package/src/types/api/promptWebDeviceAccess.ts +6 -0
- package/src/types/api/scdoGetAddress.ts +23 -0
- package/src/types/api/scdoSignMessage.ts +13 -0
- package/src/types/api/scdoSignTransaction.ts +24 -0
- package/src/types/api/searchDevices.ts +5 -0
- package/src/types/api/setU2FCounter.ts +7 -0
- package/src/types/api/solGetAddress.ts +23 -0
- package/src/types/api/solSignMessage.ts +17 -0
- package/src/types/api/solSignOffchainMessage.ts +21 -0
- package/src/types/api/solSignTransaction.ts +23 -0
- package/src/types/api/starcoinGetAddress.ts +23 -0
- package/src/types/api/starcoinGetPublicKey.ts +23 -0
- package/src/types/api/starcoinSignMessage.ts +13 -0
- package/src/types/api/starcoinSignTransaction.ts +13 -0
- package/src/types/api/starcoinVerifyMessage.ts +14 -0
- package/src/types/api/stellarGetAddress.ts +23 -0
- package/src/types/api/stellarSignTransaction.ts +154 -0
- package/src/types/api/suiGetAddress.ts +28 -0
- package/src/types/api/suiGetPublicKey.ts +27 -0
- package/src/types/api/suiSignMessage.ts +13 -0
- package/src/types/api/suiSignTransaction.ts +17 -0
- package/src/types/api/testInitializeDeviceDuration.ts +6 -0
- package/src/types/api/tonGetAddress.ts +34 -0
- package/src/types/api/tonSignMessage.ts +42 -0
- package/src/types/api/tonSignProof.ts +25 -0
- package/src/types/api/tronGetAddress.ts +23 -0
- package/src/types/api/tronSignMessage.ts +14 -0
- package/src/types/api/tronSignTransaction.ts +89 -0
- package/src/types/api/uiResponse.ts +3 -0
- package/src/types/api/xrpGetAddress.ts +28 -0
- package/src/types/api/xrpSignTransaction.ts +29 -0
- package/src/types/device.ts +185 -0
- package/src/types/firmware.ts +41 -0
- package/src/types/global.d.ts +3 -0
- package/src/types/index.ts +5 -0
- package/src/types/params.ts +59 -0
- package/src/types/settings.ts +104 -0
- package/src/utils/arrayUtils.ts +7 -0
- package/src/utils/assets.ts +5 -0
- package/src/utils/bridgeUpdate.ts +77 -0
- package/src/utils/capabilitieUtils.ts +12 -0
- package/src/utils/deviceFeaturesUtils.ts +340 -0
- package/src/utils/deviceInfoUtils.ts +166 -0
- package/src/utils/deviceVersionUtils.ts +78 -0
- package/src/utils/findDefectiveBatchDevice.ts +38 -0
- package/src/utils/getMutex.ts +41 -0
- package/src/utils/getSynchronize.ts +25 -0
- package/src/utils/homescreen.ts +343 -0
- package/src/utils/index.ts +42 -0
- package/src/utils/logger.ts +187 -0
- package/src/utils/networkUtils.ts +25 -0
- package/src/utils/patch.ts +14 -0
- package/src/utils/promiseUtils.ts +4 -0
- package/src/utils/release.ts +41 -0
- package/src/utils/semver.test.js +53 -0
- package/src/utils/versionUtils.ts +120 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilecoinSignedTx as HardwareFilecoinSignedTx } from '@ukeyfe/hardware-transport';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
|
+
|
|
4
|
+
export type FilecoinSignedTx = {
|
|
5
|
+
path: string;
|
|
6
|
+
} & HardwareFilecoinSignedTx;
|
|
7
|
+
|
|
8
|
+
export type FilecoinSignTransactionParams = {
|
|
9
|
+
path: string | number[];
|
|
10
|
+
rawTx?: string;
|
|
11
|
+
isTestnet?: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare function filecoinSignTransaction(
|
|
15
|
+
connectId: string,
|
|
16
|
+
deviceId: string,
|
|
17
|
+
params: CommonParams & FilecoinSignTransactionParams
|
|
18
|
+
): Response<FilecoinSignedTx>;
|
|
19
|
+
|
|
20
|
+
export declare function filecoinSignTransaction(
|
|
21
|
+
connectId: string,
|
|
22
|
+
deviceId: string,
|
|
23
|
+
params: CommonParams & { bundle?: FilecoinSignTransactionParams[] }
|
|
24
|
+
): Response<Array<FilecoinSignedTx>>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { PROTO } from '../../constants';
|
|
2
|
+
import type { Params, Response } from '../params';
|
|
3
|
+
|
|
4
|
+
type IUpdateType = 'firmware' | 'ble';
|
|
5
|
+
|
|
6
|
+
export interface FirmwareUpdateBinaryParams {
|
|
7
|
+
binary: ArrayBuffer;
|
|
8
|
+
updateType: IUpdateType;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface FirmwareUpdateParams {
|
|
12
|
+
version?: number[];
|
|
13
|
+
btcOnly?: boolean;
|
|
14
|
+
updateType: IUpdateType;
|
|
15
|
+
forcedUpdateRes?: boolean;
|
|
16
|
+
isUpdateBootloader?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare function firmwareUpdate(
|
|
20
|
+
connectId: string | undefined,
|
|
21
|
+
params: Params<FirmwareUpdateParams> & { rebootOnSuccess?: boolean }
|
|
22
|
+
): Response<PROTO.Success>;
|
|
23
|
+
export declare function firmwareUpdate(
|
|
24
|
+
connectId: string | undefined,
|
|
25
|
+
params: Params<FirmwareUpdateBinaryParams> & { rebootOnSuccess?: boolean }
|
|
26
|
+
): Response<PROTO.Success>;
|
|
27
|
+
|
|
28
|
+
type IPlatform = 'native' | 'desktop' | 'ext' | 'web' | 'web-embed';
|
|
29
|
+
type Platform = { platform: IPlatform };
|
|
30
|
+
|
|
31
|
+
export declare function firmwareUpdateV2(
|
|
32
|
+
connectId: string | undefined,
|
|
33
|
+
params: Params<FirmwareUpdateParams & Platform>
|
|
34
|
+
): Response<PROTO.Success>;
|
|
35
|
+
export declare function firmwareUpdateV2(
|
|
36
|
+
connectId: string | undefined,
|
|
37
|
+
params: Params<FirmwareUpdateBinaryParams & Platform>
|
|
38
|
+
): Response<PROTO.Success>;
|
|
39
|
+
|
|
40
|
+
export interface FirmwareUpdateV3Params {
|
|
41
|
+
bleVersion?: number[];
|
|
42
|
+
bleBinary?: ArrayBuffer;
|
|
43
|
+
|
|
44
|
+
firmwareVersion?: number[];
|
|
45
|
+
firmwareBinary?: ArrayBuffer;
|
|
46
|
+
|
|
47
|
+
bootloaderVersion?: number[];
|
|
48
|
+
bootloaderBinary?: ArrayBuffer;
|
|
49
|
+
|
|
50
|
+
resourceBinary?: ArrayBuffer;
|
|
51
|
+
forcedUpdateRes?: boolean;
|
|
52
|
+
|
|
53
|
+
platform: IPlatform;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export declare function firmwareUpdateV3(
|
|
57
|
+
connectId: string | undefined,
|
|
58
|
+
params: Params<FirmwareUpdateV3Params>
|
|
59
|
+
): Response<{
|
|
60
|
+
bleVersion: string;
|
|
61
|
+
firmwareVersion: string;
|
|
62
|
+
bootloaderVersion: string;
|
|
63
|
+
}>;
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { off, on, removeAllListeners } from './event';
|
|
2
|
+
import { uiResponse } from './uiResponse';
|
|
3
|
+
import { init, updateSettings } from './init';
|
|
4
|
+
|
|
5
|
+
import { testInitializeDeviceDuration } from './testInitializeDeviceDuration';
|
|
6
|
+
|
|
7
|
+
import { getLogs } from './getLogs';
|
|
8
|
+
import { checkBridgeStatus } from './checkBridgeStatus';
|
|
9
|
+
import { checkBridgeRelease } from './checkBridgeRelease';
|
|
10
|
+
import { checkBootloaderRelease } from './checkBootloaderRelease';
|
|
11
|
+
import { checkAllFirmwareRelease } from './checkAllFirmwareRelease';
|
|
12
|
+
|
|
13
|
+
import { searchDevices } from './searchDevices';
|
|
14
|
+
import { getFeatures } from './getFeatures';
|
|
15
|
+
import { getUkeyFeatures } from './getUkeyFeatures';
|
|
16
|
+
import { getPassphraseState } from './getPassphraseState';
|
|
17
|
+
import { checkFirmwareRelease } from './checkFirmwareRelease';
|
|
18
|
+
import { checkBLEFirmwareRelease } from './checkBLEFirmwareRelease';
|
|
19
|
+
import { firmwareUpdate, firmwareUpdateV2, firmwareUpdateV3 } from './firmwareUpdate';
|
|
20
|
+
import { emmcFileWrite } from './emmcFileWrite';
|
|
21
|
+
import { promptWebDeviceAccess } from './promptWebDeviceAccess';
|
|
22
|
+
|
|
23
|
+
import { deviceReset } from './deviceReset';
|
|
24
|
+
import { deviceRecovery } from './deviceRecovery';
|
|
25
|
+
import { deviceVerify } from './deviceVerify';
|
|
26
|
+
import { deviceWipe } from './deviceWipe';
|
|
27
|
+
import { deviceRebootToBootloader } from './deviceRebootToBootloader';
|
|
28
|
+
import { deviceRebootToBoardloader } from './deviceRebootToBoardloader';
|
|
29
|
+
import { deviceBackup } from './deviceBackup';
|
|
30
|
+
import { deviceChangePin } from './deviceChangePin';
|
|
31
|
+
import { deviceSettings } from './deviceSettings';
|
|
32
|
+
import { deviceFlags } from './deviceFlags';
|
|
33
|
+
import { deviceUpdateReboot } from './deviceUpdateReboot';
|
|
34
|
+
import { deviceUploadResource } from './deviceUploadResource';
|
|
35
|
+
import { deviceSupportFeatures } from './deviceSupportFeatures';
|
|
36
|
+
import { deviceFullyUploadResource } from './deviceFullyUploadResource';
|
|
37
|
+
import { deviceUpdateBootloader } from './deviceUpdateBootloader';
|
|
38
|
+
import { deviceLock } from './deviceLock';
|
|
39
|
+
import { deviceUnlock } from './deviceUnlock';
|
|
40
|
+
import { deviceCancel } from './deviceCancel';
|
|
41
|
+
|
|
42
|
+
import { getNextU2FCounter } from './getNextU2FCounter';
|
|
43
|
+
import { setU2FCounter } from './setU2FCounter';
|
|
44
|
+
|
|
45
|
+
import { cipherKeyValue } from './cipherKeyValue';
|
|
46
|
+
|
|
47
|
+
import { allNetworkGetAddress, allNetworkGetAddressByLoop } from './allNetworkGetAddress';
|
|
48
|
+
|
|
49
|
+
import { evmGetAddress } from './evmGetAddress';
|
|
50
|
+
import { evmGetPublicKey } from './evmGetPublicKey';
|
|
51
|
+
import { evmSignMessage } from './evmSignMessage';
|
|
52
|
+
import { evmSignMessageEIP712 } from './evmSignMessageEIP712';
|
|
53
|
+
import { evmSignTransaction } from './evmSignTransaction';
|
|
54
|
+
import { evmSignTypedData } from './evmSignTypedData';
|
|
55
|
+
import { evmVerifyMessage } from './evmVerifyMessage';
|
|
56
|
+
|
|
57
|
+
import { btcGetAddress } from './btcGetAddress';
|
|
58
|
+
import { btcGetPublicKey } from './btcGetPublicKey';
|
|
59
|
+
import { btcSignMessage } from './btcSignMessage';
|
|
60
|
+
import { btcSignPsbt } from './btcSignPsbt';
|
|
61
|
+
import { btcSignTransaction } from './btcSignTransaction';
|
|
62
|
+
import { btcVerifyMessage } from './btcVerifyMessage';
|
|
63
|
+
|
|
64
|
+
import { starcoinGetAddress } from './starcoinGetAddress';
|
|
65
|
+
import { starcoinGetPublicKey } from './starcoinGetPublicKey';
|
|
66
|
+
import { starcoinSignMessage } from './starcoinSignMessage';
|
|
67
|
+
import { starcoinSignTransaction } from './starcoinSignTransaction';
|
|
68
|
+
import { starcoinVerifyMessage } from './starcoinVerifyMessage';
|
|
69
|
+
|
|
70
|
+
import { nemGetAddress } from './nemGetAddress';
|
|
71
|
+
import { nemSignTransaction } from './nemSignTransaction';
|
|
72
|
+
|
|
73
|
+
import { solGetAddress } from './solGetAddress';
|
|
74
|
+
import { solSignTransaction } from './solSignTransaction';
|
|
75
|
+
import { solSignOffchainMessage } from './solSignOffchainMessage';
|
|
76
|
+
import { solSignMessage } from './solSignMessage';
|
|
77
|
+
|
|
78
|
+
import { stellarGetAddress } from './stellarGetAddress';
|
|
79
|
+
import { stellarSignTransaction } from './stellarSignTransaction';
|
|
80
|
+
|
|
81
|
+
import { tronGetAddress } from './tronGetAddress';
|
|
82
|
+
import { tronSignTransaction } from './tronSignTransaction';
|
|
83
|
+
import { tronSignMessage } from './tronSignMessage';
|
|
84
|
+
|
|
85
|
+
import { confluxGetAddress } from './confluxGetAddress';
|
|
86
|
+
import { confluxSignMessage } from './confluxSignMessage';
|
|
87
|
+
import { confluxSignMessageCIP23 } from './confluxSignMessageCIP23';
|
|
88
|
+
import { confluxSignTransaction } from './confluxSignTransaction';
|
|
89
|
+
|
|
90
|
+
import { nearGetAddress } from './nearGetAddress';
|
|
91
|
+
import { nearSignTransaction } from './nearSignTransaction';
|
|
92
|
+
|
|
93
|
+
import { aptosGetAddress } from './aptosGetAddress';
|
|
94
|
+
import { aptosGetPublicKey } from './aptosGetPublicKey';
|
|
95
|
+
import { aptosSignMessage } from './aptosSignMessage';
|
|
96
|
+
import { aptosSignInMessage } from './aptosSignInMessage';
|
|
97
|
+
import { aptosSignTransaction } from './aptosSignTransaction';
|
|
98
|
+
|
|
99
|
+
import { algoGetAddress } from './algoGetAddress';
|
|
100
|
+
import { algoSignTransaction } from './algoSignTransaction';
|
|
101
|
+
|
|
102
|
+
import { cosmosGetAddress } from './cosmosGetAddress';
|
|
103
|
+
import { cosmosGetPublicKey } from './cosmosGetPublicKey';
|
|
104
|
+
import { cosmosSignTransaction } from './cosmosSignTransaction';
|
|
105
|
+
|
|
106
|
+
import { xrpGetAddress } from './xrpGetAddress';
|
|
107
|
+
import { xrpSignTransaction } from './xrpSignTransaction';
|
|
108
|
+
|
|
109
|
+
import { suiGetAddress } from './suiGetAddress';
|
|
110
|
+
import { suiGetPublicKey } from './suiGetPublicKey';
|
|
111
|
+
import { suiSignMessage } from './suiSignMessage';
|
|
112
|
+
import { suiSignTransaction } from './suiSignTransaction';
|
|
113
|
+
|
|
114
|
+
import { cardanoGetAddress } from './cardanoGetAddress';
|
|
115
|
+
import { cardanoGetPublicKey } from './cardanoGetPublicKey';
|
|
116
|
+
import { cardanoSignTransaction } from './cardanoSignTransaction';
|
|
117
|
+
import { cardanoSignMessage } from './cardanoSignMessage';
|
|
118
|
+
|
|
119
|
+
import { filecoinGetAddress } from './filecoinGetAddress';
|
|
120
|
+
import { filecoinSignTransaction } from './filecoinSignTransaction';
|
|
121
|
+
|
|
122
|
+
import { polkadotGetAddress } from './polkadotGetAddress';
|
|
123
|
+
import { polkadotSignTransaction } from './polkadotSignTransaction';
|
|
124
|
+
|
|
125
|
+
import { kaspaGetAddress } from './kaspaGetAddress';
|
|
126
|
+
import { kaspaSignTransaction } from './kaspaSignTransaction';
|
|
127
|
+
|
|
128
|
+
import { nexaGetAddress } from './nexaGetAddress';
|
|
129
|
+
import { nexaSignTransaction } from './nexaSignTransaction';
|
|
130
|
+
|
|
131
|
+
import { nostrGetPublicKey } from './nostrGetPublicKey';
|
|
132
|
+
import { nostrSignEvent } from './nostrSignEvent';
|
|
133
|
+
import { nostrEncryptMessage } from './nostrEncryptMessage';
|
|
134
|
+
import { nostrDecryptMessage } from './nostrDecryptMessage';
|
|
135
|
+
import { nostrSignSchnorr } from './nostrSignSchnorr';
|
|
136
|
+
|
|
137
|
+
import { lnurlAuth } from './lnurlAuth';
|
|
138
|
+
import { nervosGetAddress } from './nervosGetAddress';
|
|
139
|
+
import { nervosSignTransaction } from './nervosSignTransaction';
|
|
140
|
+
|
|
141
|
+
import { dnxGetAddress } from './dnxGetAddress';
|
|
142
|
+
import { dnxSignTransaction } from './dnxSignTransaction';
|
|
143
|
+
|
|
144
|
+
import { tonGetAddress } from './tonGetAddress';
|
|
145
|
+
import { tonSignMessage } from './tonSignMessage';
|
|
146
|
+
import { tonSignProof } from './tonSignProof';
|
|
147
|
+
|
|
148
|
+
import { scdoGetAddress } from './scdoGetAddress';
|
|
149
|
+
import { scdoSignMessage } from './scdoSignMessage';
|
|
150
|
+
import { scdoSignTransaction } from './scdoSignTransaction';
|
|
151
|
+
import { alephiumGetAddress } from './alephiumGetAddress';
|
|
152
|
+
import { alephiumSignMessage } from './alephiumSignMessage';
|
|
153
|
+
import { alephiumSignTransaction } from './alephiumSignTransaction';
|
|
154
|
+
|
|
155
|
+
import { benfenGetAddress } from './benfenGetAddress';
|
|
156
|
+
import { benfenGetPublicKey } from './benfenGetPublicKey';
|
|
157
|
+
import { benfenSignTransaction } from './benfenSignTransaction';
|
|
158
|
+
import { benfenSignMessage } from './benfenSignMessage';
|
|
159
|
+
|
|
160
|
+
import { neoGetAddress } from './neoGetAddress';
|
|
161
|
+
import { neoSignTransaction } from './neoSignTransaction';
|
|
162
|
+
import { ConnectSettings } from '../settings';
|
|
163
|
+
|
|
164
|
+
export * from './export';
|
|
165
|
+
|
|
166
|
+
export type CoreApi = {
|
|
167
|
+
/**
|
|
168
|
+
* Inject function
|
|
169
|
+
*/
|
|
170
|
+
init: typeof init;
|
|
171
|
+
on: typeof on;
|
|
172
|
+
off: typeof off;
|
|
173
|
+
emit: (event: string, ...args: any[]) => void;
|
|
174
|
+
removeAllListeners: typeof removeAllListeners;
|
|
175
|
+
dispose: () => void;
|
|
176
|
+
call: (params: any) => Promise<any>;
|
|
177
|
+
uiResponse: typeof uiResponse;
|
|
178
|
+
cancel: (connectId?: string) => void;
|
|
179
|
+
updateSettings: typeof updateSettings;
|
|
180
|
+
switchTransport: (env: ConnectSettings['env']) => Promise<{ success: boolean }>;
|
|
181
|
+
getLogs: typeof getLogs;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Test function
|
|
185
|
+
*/
|
|
186
|
+
testInitializeDeviceDuration: typeof testInitializeDeviceDuration;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Core function
|
|
190
|
+
*/
|
|
191
|
+
checkAllFirmwareRelease: typeof checkAllFirmwareRelease;
|
|
192
|
+
checkBridgeStatus: typeof checkBridgeStatus;
|
|
193
|
+
checkBridgeRelease: typeof checkBridgeRelease;
|
|
194
|
+
checkBootloaderRelease: typeof checkBootloaderRelease;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Device function
|
|
198
|
+
*/
|
|
199
|
+
searchDevices: typeof searchDevices;
|
|
200
|
+
promptWebDeviceAccess: typeof promptWebDeviceAccess;
|
|
201
|
+
getFeatures: typeof getFeatures;
|
|
202
|
+
getUkeyFeatures: typeof getUkeyFeatures;
|
|
203
|
+
getPassphraseState: typeof getPassphraseState;
|
|
204
|
+
deviceBackup: typeof deviceBackup;
|
|
205
|
+
deviceChangePin: typeof deviceChangePin;
|
|
206
|
+
deviceFlags: typeof deviceFlags;
|
|
207
|
+
deviceRebootToBoardloader: typeof deviceRebootToBoardloader;
|
|
208
|
+
deviceRebootToBootloader: typeof deviceRebootToBootloader;
|
|
209
|
+
deviceRecovery: typeof deviceRecovery;
|
|
210
|
+
deviceReset: typeof deviceReset;
|
|
211
|
+
deviceSettings: typeof deviceSettings;
|
|
212
|
+
deviceUpdateReboot: typeof deviceUpdateReboot;
|
|
213
|
+
deviceUploadResource: typeof deviceUploadResource;
|
|
214
|
+
deviceSupportFeatures: typeof deviceSupportFeatures;
|
|
215
|
+
deviceVerify: typeof deviceVerify;
|
|
216
|
+
deviceWipe: typeof deviceWipe;
|
|
217
|
+
deviceFullyUploadResource: typeof deviceFullyUploadResource;
|
|
218
|
+
deviceUpdateBootloader: typeof deviceUpdateBootloader;
|
|
219
|
+
deviceLock: typeof deviceLock;
|
|
220
|
+
deviceUnlock: typeof deviceUnlock;
|
|
221
|
+
deviceCancel: typeof deviceCancel;
|
|
222
|
+
getNextU2FCounter: typeof getNextU2FCounter;
|
|
223
|
+
setU2FCounter: typeof setU2FCounter;
|
|
224
|
+
checkFirmwareRelease: typeof checkFirmwareRelease;
|
|
225
|
+
checkBLEFirmwareRelease: typeof checkBLEFirmwareRelease;
|
|
226
|
+
firmwareUpdate: typeof firmwareUpdate;
|
|
227
|
+
firmwareUpdateV2: typeof firmwareUpdateV2;
|
|
228
|
+
firmwareUpdateV3: typeof firmwareUpdateV3;
|
|
229
|
+
emmcFileWrite: typeof emmcFileWrite;
|
|
230
|
+
cipherKeyValue: typeof cipherKeyValue;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* All network function
|
|
234
|
+
*/
|
|
235
|
+
allNetworkGetAddress: typeof allNetworkGetAddress;
|
|
236
|
+
allNetworkGetAddressByLoop: typeof allNetworkGetAddressByLoop;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* EVM function
|
|
240
|
+
*/
|
|
241
|
+
evmGetAddress: typeof evmGetAddress;
|
|
242
|
+
evmGetPublicKey: typeof evmGetPublicKey;
|
|
243
|
+
evmSignMessage: typeof evmSignMessage;
|
|
244
|
+
evmSignMessageEIP712: typeof evmSignMessageEIP712;
|
|
245
|
+
evmSignTransaction: typeof evmSignTransaction;
|
|
246
|
+
evmSignTypedData: typeof evmSignTypedData;
|
|
247
|
+
evmVerifyMessage: typeof evmVerifyMessage;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* BTC function
|
|
251
|
+
*/
|
|
252
|
+
btcGetAddress: typeof btcGetAddress;
|
|
253
|
+
btcGetPublicKey: typeof btcGetPublicKey;
|
|
254
|
+
btcSignMessage: typeof btcSignMessage;
|
|
255
|
+
btcSignPsbt: typeof btcSignPsbt;
|
|
256
|
+
btcSignTransaction: typeof btcSignTransaction;
|
|
257
|
+
btcVerifyMessage: typeof btcVerifyMessage;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Starcoin function
|
|
261
|
+
*/
|
|
262
|
+
starcoinGetAddress: typeof starcoinGetAddress;
|
|
263
|
+
starcoinGetPublicKey: typeof starcoinGetPublicKey;
|
|
264
|
+
starcoinSignMessage: typeof starcoinSignMessage;
|
|
265
|
+
starcoinSignTransaction: typeof starcoinSignTransaction;
|
|
266
|
+
starcoinVerifyMessage: typeof starcoinVerifyMessage;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Nem function
|
|
270
|
+
*/
|
|
271
|
+
nemGetAddress: typeof nemGetAddress;
|
|
272
|
+
nemSignTransaction: typeof nemSignTransaction;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Solana function
|
|
276
|
+
*/
|
|
277
|
+
solGetAddress: typeof solGetAddress;
|
|
278
|
+
solSignTransaction: typeof solSignTransaction;
|
|
279
|
+
solSignOffchainMessage: typeof solSignOffchainMessage;
|
|
280
|
+
solSignMessage: typeof solSignMessage;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Stellar function
|
|
284
|
+
*/
|
|
285
|
+
stellarGetAddress: typeof stellarGetAddress;
|
|
286
|
+
stellarSignTransaction: typeof stellarSignTransaction;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Tron function
|
|
290
|
+
*/
|
|
291
|
+
tronGetAddress: typeof tronGetAddress;
|
|
292
|
+
tronSignMessage: typeof tronSignMessage;
|
|
293
|
+
tronSignTransaction: typeof tronSignTransaction;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Conflux function
|
|
297
|
+
*/
|
|
298
|
+
confluxGetAddress: typeof confluxGetAddress;
|
|
299
|
+
confluxSignMessage: typeof confluxSignMessage;
|
|
300
|
+
confluxSignMessageCIP23: typeof confluxSignMessageCIP23;
|
|
301
|
+
confluxSignTransaction: typeof confluxSignTransaction;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Near function
|
|
305
|
+
*/
|
|
306
|
+
nearGetAddress: typeof nearGetAddress;
|
|
307
|
+
nearSignTransaction: typeof nearSignTransaction;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Aptos function
|
|
311
|
+
*/
|
|
312
|
+
aptosGetAddress: typeof aptosGetAddress;
|
|
313
|
+
aptosGetPublicKey: typeof aptosGetPublicKey;
|
|
314
|
+
aptosSignMessage: typeof aptosSignMessage;
|
|
315
|
+
aptosSignInMessage: typeof aptosSignInMessage;
|
|
316
|
+
aptosSignTransaction: typeof aptosSignTransaction;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Algo function
|
|
320
|
+
*/
|
|
321
|
+
algoGetAddress: typeof algoGetAddress;
|
|
322
|
+
algoSignTransaction: typeof algoSignTransaction;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Cosmos function
|
|
326
|
+
*/
|
|
327
|
+
cosmosGetAddress: typeof cosmosGetAddress;
|
|
328
|
+
cosmosGetPublicKey: typeof cosmosGetPublicKey;
|
|
329
|
+
cosmosSignTransaction: typeof cosmosSignTransaction;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* XRP function
|
|
333
|
+
*/
|
|
334
|
+
xrpGetAddress: typeof xrpGetAddress;
|
|
335
|
+
xrpSignTransaction: typeof xrpSignTransaction;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* SUI function
|
|
339
|
+
*/
|
|
340
|
+
suiGetAddress: typeof suiGetAddress;
|
|
341
|
+
suiGetPublicKey: typeof suiGetPublicKey;
|
|
342
|
+
suiSignMessage: typeof suiSignMessage;
|
|
343
|
+
suiSignTransaction: typeof suiSignTransaction;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Cardano function
|
|
347
|
+
*/
|
|
348
|
+
cardanoGetAddress: typeof cardanoGetAddress;
|
|
349
|
+
cardanoGetPublicKey: typeof cardanoGetPublicKey;
|
|
350
|
+
cardanoSignTransaction: typeof cardanoSignTransaction;
|
|
351
|
+
cardanoSignMessage: typeof cardanoSignMessage;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Filecoin function
|
|
355
|
+
*/
|
|
356
|
+
filecoinGetAddress: typeof filecoinGetAddress;
|
|
357
|
+
filecoinSignTransaction: typeof filecoinSignTransaction;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Polkadot function
|
|
361
|
+
*/
|
|
362
|
+
polkadotGetAddress: typeof polkadotGetAddress;
|
|
363
|
+
polkadotSignTransaction: typeof polkadotSignTransaction;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Kaspa function
|
|
367
|
+
*/
|
|
368
|
+
kaspaGetAddress: typeof kaspaGetAddress;
|
|
369
|
+
kaspaSignTransaction: typeof kaspaSignTransaction;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* nexa function
|
|
373
|
+
*/
|
|
374
|
+
nexaGetAddress: typeof nexaGetAddress;
|
|
375
|
+
nexaSignTransaction: typeof nexaSignTransaction;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Nostr function
|
|
379
|
+
*/
|
|
380
|
+
nostrGetPublicKey: typeof nostrGetPublicKey;
|
|
381
|
+
nostrSignEvent: typeof nostrSignEvent;
|
|
382
|
+
nostrEncryptMessage: typeof nostrEncryptMessage;
|
|
383
|
+
nostrDecryptMessage: typeof nostrDecryptMessage;
|
|
384
|
+
nostrSignSchnorr: typeof nostrSignSchnorr;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Lightning Network
|
|
388
|
+
*/
|
|
389
|
+
lnurlAuth: typeof lnurlAuth;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Nervos Network
|
|
393
|
+
*/
|
|
394
|
+
nervosGetAddress: typeof nervosGetAddress;
|
|
395
|
+
nervosSignTransaction: typeof nervosSignTransaction;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Dnx Network
|
|
399
|
+
*/
|
|
400
|
+
dnxGetAddress: typeof dnxGetAddress;
|
|
401
|
+
dnxSignTransaction: typeof dnxSignTransaction;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* TON Network
|
|
405
|
+
*/
|
|
406
|
+
tonGetAddress: typeof tonGetAddress;
|
|
407
|
+
tonSignMessage: typeof tonSignMessage;
|
|
408
|
+
tonSignProof: typeof tonSignProof;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* SCDO Network
|
|
412
|
+
*/
|
|
413
|
+
scdoGetAddress: typeof scdoGetAddress;
|
|
414
|
+
scdoSignMessage: typeof scdoSignMessage;
|
|
415
|
+
scdoSignTransaction: typeof scdoSignTransaction;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Alephium Network
|
|
419
|
+
*/
|
|
420
|
+
alephiumGetAddress: typeof alephiumGetAddress;
|
|
421
|
+
alephiumSignMessage: typeof alephiumSignMessage;
|
|
422
|
+
alephiumSignTransaction: typeof alephiumSignTransaction;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Benfen Network
|
|
426
|
+
*/
|
|
427
|
+
benfenGetAddress: typeof benfenGetAddress;
|
|
428
|
+
benfenGetPublicKey: typeof benfenGetPublicKey;
|
|
429
|
+
benfenSignTransaction: typeof benfenSignTransaction;
|
|
430
|
+
benfenSignMessage: typeof benfenSignMessage;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Neo Network
|
|
434
|
+
*/
|
|
435
|
+
neoGetAddress: typeof neoGetAddress;
|
|
436
|
+
neoSignTransaction: typeof neoSignTransaction;
|
|
437
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LowlevelTransportSharedPlugin } from '@ukeyfe/hardware-transport';
|
|
2
|
+
import { LowLevelCoreApi } from '../../lowLevelInject';
|
|
3
|
+
import type { ConnectSettings } from '../settings';
|
|
4
|
+
|
|
5
|
+
export declare function init(
|
|
6
|
+
settings: Partial<ConnectSettings>,
|
|
7
|
+
lowLevelApi?: LowLevelCoreApi,
|
|
8
|
+
pulgin?: LowlevelTransportSharedPlugin
|
|
9
|
+
): Promise<boolean>;
|
|
10
|
+
|
|
11
|
+
export declare function updateSettings(settings: Partial<ConnectSettings>): Promise<boolean>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { KaspaAddress as HardwareKaspaAddress } from '@ukeyfe/hardware-transport';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
|
+
|
|
4
|
+
export type KaspaAddress = {
|
|
5
|
+
path: string;
|
|
6
|
+
} & HardwareKaspaAddress;
|
|
7
|
+
|
|
8
|
+
export type KaspaGetAddressParams = {
|
|
9
|
+
path: string | number[];
|
|
10
|
+
prefix?: string;
|
|
11
|
+
scheme?: string;
|
|
12
|
+
showOnOneKey?: boolean;
|
|
13
|
+
useTweak?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare function kaspaGetAddress(
|
|
17
|
+
connectId: string,
|
|
18
|
+
deviceId: string,
|
|
19
|
+
params: CommonParams & KaspaGetAddressParams
|
|
20
|
+
): Response<KaspaAddress>;
|
|
21
|
+
|
|
22
|
+
export declare function kaspaGetAddress(
|
|
23
|
+
connectId: string,
|
|
24
|
+
deviceId: string,
|
|
25
|
+
params: CommonParams & { bundle?: KaspaGetAddressParams[] }
|
|
26
|
+
): Response<Array<KaspaAddress>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { SignatureType } from '../../api/kaspa/helpers/SignatureType';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
|
+
|
|
4
|
+
export type KaspaSignature = {
|
|
5
|
+
index: number;
|
|
6
|
+
signature: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type KaspaSignInputParams = {
|
|
10
|
+
path: string | number[];
|
|
11
|
+
prevTxId: string;
|
|
12
|
+
outputIndex: number;
|
|
13
|
+
sequenceNumber: number | string;
|
|
14
|
+
output: {
|
|
15
|
+
satoshis: number | string;
|
|
16
|
+
script: string;
|
|
17
|
+
};
|
|
18
|
+
sigOpCount?: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type KaspaSignOutputParams = {
|
|
22
|
+
satoshis: number | string;
|
|
23
|
+
script: string;
|
|
24
|
+
scriptVersion: number;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type KaspaSignTransactionParams = {
|
|
28
|
+
version: number;
|
|
29
|
+
inputs: KaspaSignInputParams[];
|
|
30
|
+
outputs: KaspaSignOutputParams[];
|
|
31
|
+
lockTime: number | string;
|
|
32
|
+
sigHashType?: SignatureType;
|
|
33
|
+
sigOpCount?: number;
|
|
34
|
+
subNetworkID?: string;
|
|
35
|
+
scheme?: string;
|
|
36
|
+
prefix?: string;
|
|
37
|
+
useTweak?: boolean; // default is true
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export declare function kaspaSignTransaction(
|
|
41
|
+
connectId: string,
|
|
42
|
+
deviceId: string,
|
|
43
|
+
params: CommonParams & KaspaSignTransactionParams
|
|
44
|
+
): Response<KaspaSignature[]>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CommonParams, Response } from '../params';
|
|
2
|
+
|
|
3
|
+
export interface LnurlAuth {
|
|
4
|
+
pub?: string;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use `pub` instead.
|
|
7
|
+
*/
|
|
8
|
+
publickey?: string;
|
|
9
|
+
path?: string;
|
|
10
|
+
signature?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface LnurlAuthParams {
|
|
14
|
+
domain: string;
|
|
15
|
+
k1: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare function lnurlAuth(
|
|
19
|
+
connectId: string,
|
|
20
|
+
deviceId: string,
|
|
21
|
+
params: CommonParams & LnurlAuthParams
|
|
22
|
+
): Response<LnurlAuth>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NearAddress as HardwareNearAddress } from '@ukeyfe/hardware-transport';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
|
+
|
|
4
|
+
export type NearAddress = {
|
|
5
|
+
path: string;
|
|
6
|
+
} & HardwareNearAddress;
|
|
7
|
+
|
|
8
|
+
export type NearGetAddressParams = {
|
|
9
|
+
path: string | number[];
|
|
10
|
+
showOnOneKey?: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export declare function nearGetAddress(
|
|
14
|
+
connectId: string,
|
|
15
|
+
deviceId: string,
|
|
16
|
+
params: CommonParams & NearGetAddressParams
|
|
17
|
+
): Response<NearAddress>;
|
|
18
|
+
|
|
19
|
+
export declare function nearGetAddress(
|
|
20
|
+
connectId: string,
|
|
21
|
+
deviceId: string,
|
|
22
|
+
params: CommonParams & { bundle?: NearGetAddressParams[] }
|
|
23
|
+
): Response<Array<NearAddress>>;
|