@onekeyfe/hd-transport 1.2.8-alpha.111 → 1.2.8-alpha.112
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/__tests__/transport-log.test.js +0 -44
- package/dist/index.d.ts +7 -68
- package/dist/index.js +1 -19
- package/dist/types/messages.d.ts +0 -47
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +1 -0
- package/dist/types/transport.d.ts.map +1 -1
- package/dist/utils/transportLog.d.ts.map +1 -1
- package/messages-protocol-v2.json +1 -138
- package/package.json +2 -2
- package/src/types/messages.ts +0 -63
- package/src/types/transport.ts +6 -0
- package/src/utils/transportLog.ts +1 -6
|
@@ -82,48 +82,4 @@ describe('transport log sanitization', () => {
|
|
|
82
82
|
data: '[BINARY:128]',
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
test('redacts Zcash viewing keys and fingerprints in protocol and API field names', () => {
|
|
87
|
-
const payload = {
|
|
88
|
-
address: 'synthetic-address-marker',
|
|
89
|
-
ufvk: 'synthetic-viewing-key-marker',
|
|
90
|
-
seed_fingerprint: 'synthetic-fingerprint-marker',
|
|
91
|
-
nested: [{ seedFingerprint: 'synthetic-fingerprint-marker' }],
|
|
92
|
-
};
|
|
93
|
-
expect(getSafeTransportLogPayload(payload, 'ZcashAddress')).toEqual({
|
|
94
|
-
address: '[REDACTED]',
|
|
95
|
-
ufvk: '[REDACTED]',
|
|
96
|
-
seed_fingerprint: '[REDACTED]',
|
|
97
|
-
nested: [{ seedFingerprint: '[REDACTED]' }],
|
|
98
|
-
});
|
|
99
|
-
expect(payload.ufvk).toBe('synthetic-viewing-key-marker');
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
test.each([
|
|
103
|
-
'ZcashSignPczt',
|
|
104
|
-
'ZcashPcztChunkRequest',
|
|
105
|
-
'ZcashPcztChunkAck',
|
|
106
|
-
'ZcashSignedPczt',
|
|
107
|
-
'ZcashSignedPcztChunkRequest',
|
|
108
|
-
])('redacts the complete %s request and response', name => {
|
|
109
|
-
const payload = { data_chunk: 'synthetic-pczt-marker', chunk_length: 64 };
|
|
110
|
-
expect(createTransportCallLog(name, 'V2', payload).request).toBe('[REDACTED]');
|
|
111
|
-
expect(getSafeTransportLogPayload(payload, name)).toBe('[REDACTED]');
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
test('redacts named PCZT fields even without protocol message context', () => {
|
|
115
|
-
expect(
|
|
116
|
-
getSafeTransportLogPayload({
|
|
117
|
-
pczt: 'synthetic-pczt-marker',
|
|
118
|
-
signedPczt: 'synthetic-signed-pczt-marker',
|
|
119
|
-
data_chunk: 'synthetic-chunk-marker',
|
|
120
|
-
nested: { dataChunk: 'synthetic-chunk-marker' },
|
|
121
|
-
})
|
|
122
|
-
).toEqual({
|
|
123
|
-
pczt: '[REDACTED]',
|
|
124
|
-
signedPczt: '[REDACTED]',
|
|
125
|
-
data_chunk: '[REDACTED]',
|
|
126
|
-
nested: { dataChunk: '[REDACTED]' },
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
85
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -323,6 +323,12 @@ type OneKeyDeviceInfoWithSession = OneKeyUsbDeviceInfo & {
|
|
|
323
323
|
type OneKeyMobileDeviceInfo = {
|
|
324
324
|
id: string;
|
|
325
325
|
name: string | null;
|
|
326
|
+
/**
|
|
327
|
+
* Color letter of the serial number ('A'-'Z') from the Pro2 / Neo BLE advertisement,
|
|
328
|
+
* possibly seen in an earlier scan. Set by the React Native and Electron BLE
|
|
329
|
+
* transports; absent when unknown.
|
|
330
|
+
*/
|
|
331
|
+
bleColorCode?: string;
|
|
326
332
|
};
|
|
327
333
|
type OneKeyDeviceInfoBase = {
|
|
328
334
|
commType: OneKeyDeviceCommType;
|
|
@@ -3922,23 +3928,6 @@ type UiAnimationRequest = {
|
|
|
3922
3928
|
command: UiAnimationCommand;
|
|
3923
3929
|
type?: UiAnimationType;
|
|
3924
3930
|
};
|
|
3925
|
-
type ZcashSignPczt = {
|
|
3926
|
-
pczt_length: number;
|
|
3927
|
-
pczt_initial_chunk: string;
|
|
3928
|
-
};
|
|
3929
|
-
type ZcashPcztChunkRequest = {
|
|
3930
|
-
chunk_length: number;
|
|
3931
|
-
};
|
|
3932
|
-
type ZcashPcztChunkAck = {
|
|
3933
|
-
data_chunk: string;
|
|
3934
|
-
};
|
|
3935
|
-
type ZcashSignedPczt = {
|
|
3936
|
-
pczt_length: number;
|
|
3937
|
-
pczt_initial_chunk: string;
|
|
3938
|
-
};
|
|
3939
|
-
type ZcashSignedPcztChunkRequest = {
|
|
3940
|
-
chunk_length: number;
|
|
3941
|
-
};
|
|
3942
3931
|
type experimental_message = {};
|
|
3943
3932
|
type experimental_field = {};
|
|
3944
3933
|
type ProtocolInfoRequest = {
|
|
@@ -4458,29 +4447,6 @@ type ViewVerifyPage = {
|
|
|
4458
4447
|
chain_id?: number;
|
|
4459
4448
|
content?: ViewContentPreview;
|
|
4460
4449
|
};
|
|
4461
|
-
declare enum ZcashAddressType {
|
|
4462
|
-
UNIFIED_ORCHARD_P2PKH = 0,
|
|
4463
|
-
TRANSPARENT_P2PKH = 1,
|
|
4464
|
-
UNIFIED_ORCHARD = 2
|
|
4465
|
-
}
|
|
4466
|
-
declare enum ZcashAddressScope {
|
|
4467
|
-
EXTERNAL = 0,
|
|
4468
|
-
INTERNAL = 1
|
|
4469
|
-
}
|
|
4470
|
-
type ZcashGetAddress = {
|
|
4471
|
-
address_n: number[];
|
|
4472
|
-
show_display?: boolean;
|
|
4473
|
-
include_seed_fingerprint?: boolean;
|
|
4474
|
-
include_ufvk?: boolean;
|
|
4475
|
-
diversifier_index?: number;
|
|
4476
|
-
address_type?: ZcashAddressType;
|
|
4477
|
-
scope?: ZcashAddressScope;
|
|
4478
|
-
};
|
|
4479
|
-
type ZcashAddress = {
|
|
4480
|
-
address: string;
|
|
4481
|
-
ufvk?: string;
|
|
4482
|
-
seed_fingerprint?: string;
|
|
4483
|
-
};
|
|
4484
4450
|
declare enum ProtocolV2FailureType {
|
|
4485
4451
|
Failure_InvalidMessage = 1,
|
|
4486
4452
|
Failure_UndefinedError = 2,
|
|
@@ -5092,11 +5058,6 @@ type MessageType = {
|
|
|
5092
5058
|
UnlockPath: UnlockPath;
|
|
5093
5059
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
5094
5060
|
UiAnimationRequest: UiAnimationRequest;
|
|
5095
|
-
ZcashSignPczt: ZcashSignPczt;
|
|
5096
|
-
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
5097
|
-
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
5098
|
-
ZcashSignedPczt: ZcashSignedPczt;
|
|
5099
|
-
ZcashSignedPcztChunkRequest: ZcashSignedPcztChunkRequest;
|
|
5100
5061
|
experimental_message: experimental_message;
|
|
5101
5062
|
experimental_field: experimental_field;
|
|
5102
5063
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
@@ -5173,8 +5134,6 @@ type MessageType = {
|
|
|
5173
5134
|
ViewSignPage: ViewSignPage;
|
|
5174
5135
|
ViewWarningPage: ViewWarningPage;
|
|
5175
5136
|
ViewVerifyPage: ViewVerifyPage;
|
|
5176
|
-
ZcashGetAddress: ZcashGetAddress;
|
|
5177
|
-
ZcashAddress: ZcashAddress;
|
|
5178
5137
|
};
|
|
5179
5138
|
type MessageKey = keyof MessageType;
|
|
5180
5139
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5923,11 +5882,6 @@ declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
|
5923
5882
|
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5924
5883
|
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5925
5884
|
type messages_UiAnimationRequest = UiAnimationRequest;
|
|
5926
|
-
type messages_ZcashSignPczt = ZcashSignPczt;
|
|
5927
|
-
type messages_ZcashPcztChunkRequest = ZcashPcztChunkRequest;
|
|
5928
|
-
type messages_ZcashPcztChunkAck = ZcashPcztChunkAck;
|
|
5929
|
-
type messages_ZcashSignedPczt = ZcashSignedPczt;
|
|
5930
|
-
type messages_ZcashSignedPcztChunkRequest = ZcashSignedPcztChunkRequest;
|
|
5931
5885
|
type messages_experimental_message = experimental_message;
|
|
5932
5886
|
type messages_experimental_field = experimental_field;
|
|
5933
5887
|
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
@@ -6047,12 +6001,6 @@ declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
|
6047
6001
|
type messages_ViewSignPage = ViewSignPage;
|
|
6048
6002
|
type messages_ViewWarningPage = ViewWarningPage;
|
|
6049
6003
|
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
6050
|
-
type messages_ZcashAddressType = ZcashAddressType;
|
|
6051
|
-
declare const messages_ZcashAddressType: typeof ZcashAddressType;
|
|
6052
|
-
type messages_ZcashAddressScope = ZcashAddressScope;
|
|
6053
|
-
declare const messages_ZcashAddressScope: typeof ZcashAddressScope;
|
|
6054
|
-
type messages_ZcashGetAddress = ZcashGetAddress;
|
|
6055
|
-
type messages_ZcashAddress = ZcashAddress;
|
|
6056
6004
|
type messages_ProtocolV2FailureType = ProtocolV2FailureType;
|
|
6057
6005
|
declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
|
|
6058
6006
|
type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
|
|
@@ -6732,11 +6680,6 @@ declare namespace messages {
|
|
|
6732
6680
|
messages_UiAnimationType as UiAnimationType,
|
|
6733
6681
|
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6734
6682
|
messages_UiAnimationRequest as UiAnimationRequest,
|
|
6735
|
-
messages_ZcashSignPczt as ZcashSignPczt,
|
|
6736
|
-
messages_ZcashPcztChunkRequest as ZcashPcztChunkRequest,
|
|
6737
|
-
messages_ZcashPcztChunkAck as ZcashPcztChunkAck,
|
|
6738
|
-
messages_ZcashSignedPczt as ZcashSignedPczt,
|
|
6739
|
-
messages_ZcashSignedPcztChunkRequest as ZcashSignedPcztChunkRequest,
|
|
6740
6683
|
messages_experimental_message as experimental_message,
|
|
6741
6684
|
messages_experimental_field as experimental_field,
|
|
6742
6685
|
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
@@ -6835,10 +6778,6 @@ declare namespace messages {
|
|
|
6835
6778
|
messages_ViewSignPage as ViewSignPage,
|
|
6836
6779
|
messages_ViewWarningPage as ViewWarningPage,
|
|
6837
6780
|
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6838
|
-
messages_ZcashAddressType as ZcashAddressType,
|
|
6839
|
-
messages_ZcashAddressScope as ZcashAddressScope,
|
|
6840
|
-
messages_ZcashGetAddress as ZcashGetAddress,
|
|
6841
|
-
messages_ZcashAddress as ZcashAddress,
|
|
6842
6781
|
messages_ProtocolV2FailureType as ProtocolV2FailureType,
|
|
6843
6782
|
messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
|
|
6844
6783
|
messages_ProtocolV2Capability as ProtocolV2Capability,
|
|
@@ -7170,4 +7109,4 @@ declare const _default: {
|
|
|
7170
7109
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
7171
7110
|
};
|
|
7172
7111
|
|
|
7173
|
-
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BabylonDeriveContextHash, BabylonDerivedContextHash, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, CanonicalBitcoinNetwork, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceAnimationAction, DeviceAnimationControl, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFindMyTokenState, DeviceFindMyTokenStateGet, DeviceFindMyTokenUpdate, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdatePhase, DeviceFirmwareUpdatePhaseInfo, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStage, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSessionSeedDomain, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_CanonicalBitcoinNetwork, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NftUpdate, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingPhase, OnboardingSetupKind, OnboardingSetupMethod, OnboardingSetupStatus, OnboardingStatus, OnboardingStatusGet, OnboardingStep, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2BleFrameWriterOptions, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkDisabledError, ProtocolV2LinkError, ProtocolV2LinkErrorClassification, ProtocolV2LinkErrorCode, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TRANSPORT_EVENT, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TransportDeviceDisconnectEvent, TransportWriteMetrics, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UiAnimationCommand, UiAnimationRequest, UiAnimationType, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewActionCard, ViewAmount, ViewContentEntry, ViewContentPage, ViewContentPreview, ViewCustomField, ViewDetail, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, ViewWarningPage, Vote, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZcashAddress, ZcashAddressScope, ZcashAddressType, ZcashGetAddress, ZcashPcztChunkAck, ZcashPcztChunkRequest, ZcashSignPczt, ZcashSignedPczt, ZcashSignedPcztChunkRequest, ZoomRequest, bytesToHex, concatUint8Arrays, createProtocolV2LinkDisabledError, createTransportCallLog, _default as default, detectProtocolV2LinkDisabledError, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkDisabledError, isProtocolV2LinkDisabledFailure, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
|
|
7112
|
+
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BabylonDeriveContextHash, BabylonDerivedContextHash, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, CanonicalBitcoinNetwork, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceAnimationAction, DeviceAnimationControl, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFindMyTokenState, DeviceFindMyTokenStateGet, DeviceFindMyTokenUpdate, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdatePhase, DeviceFirmwareUpdatePhaseInfo, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStage, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSessionSeedDomain, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_CanonicalBitcoinNetwork, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NftUpdate, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingPhase, OnboardingSetupKind, OnboardingSetupMethod, OnboardingSetupStatus, OnboardingStatus, OnboardingStatusGet, OnboardingStep, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2BleFrameWriterOptions, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkDisabledError, ProtocolV2LinkError, ProtocolV2LinkErrorClassification, ProtocolV2LinkErrorCode, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TRANSPORT_EVENT, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TransportDeviceDisconnectEvent, TransportWriteMetrics, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UiAnimationCommand, UiAnimationRequest, UiAnimationType, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewActionCard, ViewAmount, ViewContentEntry, ViewContentPage, ViewContentPreview, ViewCustomField, ViewDetail, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, ViewWarningPage, Vote, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, createProtocolV2LinkDisabledError, createTransportCallLog, _default as default, detectProtocolV2LinkDisabledError, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkDisabledError, isProtocolV2LinkDisabledFailure, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
|
package/dist/index.js
CHANGED
|
@@ -2304,17 +2304,6 @@ exports.ViewSignLayout = void 0;
|
|
|
2304
2304
|
ViewSignLayout[ViewSignLayout["LayoutFlat"] = 4] = "LayoutFlat";
|
|
2305
2305
|
ViewSignLayout[ViewSignLayout["LayoutEthApprove"] = 5] = "LayoutEthApprove";
|
|
2306
2306
|
})(exports.ViewSignLayout || (exports.ViewSignLayout = {}));
|
|
2307
|
-
exports.ZcashAddressType = void 0;
|
|
2308
|
-
(function (ZcashAddressType) {
|
|
2309
|
-
ZcashAddressType[ZcashAddressType["UNIFIED_ORCHARD_P2PKH"] = 0] = "UNIFIED_ORCHARD_P2PKH";
|
|
2310
|
-
ZcashAddressType[ZcashAddressType["TRANSPARENT_P2PKH"] = 1] = "TRANSPARENT_P2PKH";
|
|
2311
|
-
ZcashAddressType[ZcashAddressType["UNIFIED_ORCHARD"] = 2] = "UNIFIED_ORCHARD";
|
|
2312
|
-
})(exports.ZcashAddressType || (exports.ZcashAddressType = {}));
|
|
2313
|
-
exports.ZcashAddressScope = void 0;
|
|
2314
|
-
(function (ZcashAddressScope) {
|
|
2315
|
-
ZcashAddressScope[ZcashAddressScope["EXTERNAL"] = 0] = "EXTERNAL";
|
|
2316
|
-
ZcashAddressScope[ZcashAddressScope["INTERNAL"] = 1] = "INTERNAL";
|
|
2317
|
-
})(exports.ZcashAddressScope || (exports.ZcashAddressScope = {}));
|
|
2318
2307
|
exports.ProtocolV2FailureType = void 0;
|
|
2319
2308
|
(function (ProtocolV2FailureType) {
|
|
2320
2309
|
ProtocolV2FailureType[ProtocolV2FailureType["Failure_InvalidMessage"] = 1] = "Failure_InvalidMessage";
|
|
@@ -2436,8 +2425,6 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
2436
2425
|
get OnboardingSetupMethod () { return exports.OnboardingSetupMethod; },
|
|
2437
2426
|
get ViewTipType () { return exports.ViewTipType; },
|
|
2438
2427
|
get ViewSignLayout () { return exports.ViewSignLayout; },
|
|
2439
|
-
get ZcashAddressType () { return exports.ZcashAddressType; },
|
|
2440
|
-
get ZcashAddressScope () { return exports.ZcashAddressScope; },
|
|
2441
2428
|
get ProtocolV2FailureType () { return exports.ProtocolV2FailureType; },
|
|
2442
2429
|
get Enum_ProtocolV2Capability () { return exports.Enum_ProtocolV2Capability; }
|
|
2443
2430
|
});
|
|
@@ -2448,7 +2435,6 @@ const SENSITIVE_LOG_KEYS = new Set([
|
|
|
2448
2435
|
'address',
|
|
2449
2436
|
'apikey',
|
|
2450
2437
|
'connectid',
|
|
2451
|
-
'datachunk',
|
|
2452
2438
|
'devicestate',
|
|
2453
2439
|
'deviceid',
|
|
2454
2440
|
'entropy',
|
|
@@ -2457,20 +2443,16 @@ const SENSITIVE_LOG_KEYS = new Set([
|
|
|
2457
2443
|
'passphrase',
|
|
2458
2444
|
'passphrasestate',
|
|
2459
2445
|
'password',
|
|
2460
|
-
'pczt',
|
|
2461
2446
|
'pin',
|
|
2462
2447
|
'privatekey',
|
|
2463
2448
|
'publickey',
|
|
2464
2449
|
'seed',
|
|
2465
2450
|
'secret',
|
|
2466
|
-
'seedfingerprint',
|
|
2467
2451
|
'serialnumber',
|
|
2468
2452
|
'session',
|
|
2469
2453
|
'sessionid',
|
|
2470
2454
|
'signature',
|
|
2471
|
-
'signedpczt',
|
|
2472
2455
|
'token',
|
|
2473
|
-
'ufvk',
|
|
2474
2456
|
'uuid',
|
|
2475
2457
|
'walletsessionid',
|
|
2476
2458
|
'xprv',
|
|
@@ -2485,7 +2467,7 @@ const isSensitiveLogKey = (key) => {
|
|
|
2485
2467
|
normalizedKey.endsWith('publickey') ||
|
|
2486
2468
|
normalizedKey.endsWith('signature'));
|
|
2487
2469
|
};
|
|
2488
|
-
const isSigningMessage = (messageName) => Boolean(messageName && /(?:sign|txack|transaction
|
|
2470
|
+
const isSigningMessage = (messageName) => Boolean(messageName && /(?:sign|txack|transaction)/i.test(messageName));
|
|
2489
2471
|
const redactLogValue = (value, seen) => {
|
|
2490
2472
|
if (ArrayBuffer.isView(value)) {
|
|
2491
2473
|
return `[BINARY:${value.byteLength}]`;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -3508,23 +3508,6 @@ export type UiAnimationRequest = {
|
|
|
3508
3508
|
command: UiAnimationCommand;
|
|
3509
3509
|
type?: UiAnimationType;
|
|
3510
3510
|
};
|
|
3511
|
-
export type ZcashSignPczt = {
|
|
3512
|
-
pczt_length: number;
|
|
3513
|
-
pczt_initial_chunk: string;
|
|
3514
|
-
};
|
|
3515
|
-
export type ZcashPcztChunkRequest = {
|
|
3516
|
-
chunk_length: number;
|
|
3517
|
-
};
|
|
3518
|
-
export type ZcashPcztChunkAck = {
|
|
3519
|
-
data_chunk: string;
|
|
3520
|
-
};
|
|
3521
|
-
export type ZcashSignedPczt = {
|
|
3522
|
-
pczt_length: number;
|
|
3523
|
-
pczt_initial_chunk: string;
|
|
3524
|
-
};
|
|
3525
|
-
export type ZcashSignedPcztChunkRequest = {
|
|
3526
|
-
chunk_length: number;
|
|
3527
|
-
};
|
|
3528
3511
|
export type experimental_message = {};
|
|
3529
3512
|
export type experimental_field = {};
|
|
3530
3513
|
export type ProtocolInfoRequest = {
|
|
@@ -4044,29 +4027,6 @@ export type ViewVerifyPage = {
|
|
|
4044
4027
|
chain_id?: number;
|
|
4045
4028
|
content?: ViewContentPreview;
|
|
4046
4029
|
};
|
|
4047
|
-
export declare enum ZcashAddressType {
|
|
4048
|
-
UNIFIED_ORCHARD_P2PKH = 0,
|
|
4049
|
-
TRANSPARENT_P2PKH = 1,
|
|
4050
|
-
UNIFIED_ORCHARD = 2
|
|
4051
|
-
}
|
|
4052
|
-
export declare enum ZcashAddressScope {
|
|
4053
|
-
EXTERNAL = 0,
|
|
4054
|
-
INTERNAL = 1
|
|
4055
|
-
}
|
|
4056
|
-
export type ZcashGetAddress = {
|
|
4057
|
-
address_n: number[];
|
|
4058
|
-
show_display?: boolean;
|
|
4059
|
-
include_seed_fingerprint?: boolean;
|
|
4060
|
-
include_ufvk?: boolean;
|
|
4061
|
-
diversifier_index?: number;
|
|
4062
|
-
address_type?: ZcashAddressType;
|
|
4063
|
-
scope?: ZcashAddressScope;
|
|
4064
|
-
};
|
|
4065
|
-
export type ZcashAddress = {
|
|
4066
|
-
address: string;
|
|
4067
|
-
ufvk?: string;
|
|
4068
|
-
seed_fingerprint?: string;
|
|
4069
|
-
};
|
|
4070
4030
|
export declare enum ProtocolV2FailureType {
|
|
4071
4031
|
Failure_InvalidMessage = 1,
|
|
4072
4032
|
Failure_UndefinedError = 2,
|
|
@@ -4678,11 +4638,6 @@ export type MessageType = {
|
|
|
4678
4638
|
UnlockPath: UnlockPath;
|
|
4679
4639
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4680
4640
|
UiAnimationRequest: UiAnimationRequest;
|
|
4681
|
-
ZcashSignPczt: ZcashSignPczt;
|
|
4682
|
-
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
4683
|
-
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
4684
|
-
ZcashSignedPczt: ZcashSignedPczt;
|
|
4685
|
-
ZcashSignedPcztChunkRequest: ZcashSignedPcztChunkRequest;
|
|
4686
4641
|
experimental_message: experimental_message;
|
|
4687
4642
|
experimental_field: experimental_field;
|
|
4688
4643
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
@@ -4759,8 +4714,6 @@ export type MessageType = {
|
|
|
4759
4714
|
ViewSignPage: ViewSignPage;
|
|
4760
4715
|
ViewWarningPage: ViewWarningPage;
|
|
4761
4716
|
ViewVerifyPage: ViewVerifyPage;
|
|
4762
|
-
ZcashGetAddress: ZcashGetAddress;
|
|
4763
|
-
ZcashAddress: ZcashAddress;
|
|
4764
4717
|
};
|
|
4765
4718
|
export type MessageKey = keyof MessageType;
|
|
4766
4719
|
export type MessageResponse<T extends MessageKey> = {
|