@onekeyfe/hd-transport 1.2.10-alpha.3 → 1.2.11-alpha.1
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__/solana-offchain-message-v1.test.js +33 -0
- package/__tests__/transport-log.test.js +10 -0
- package/dist/index.d.ts +46 -36
- package/dist/index.js +13 -13
- package/dist/types/messages.d.ts +31 -25
- package/dist/types/messages.d.ts.map +1 -1
- package/messages-protocol-v2.json +93 -78
- package/package.json +2 -2
- package/src/types/messages.ts +41 -31
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const { parseConfigure, createMessageFromName } = require('../src/serialization/protobuf/messages');
|
|
2
|
+
const { encode } = require('../src/serialization/protobuf/encode');
|
|
3
|
+
const schema = require('../../core/src/data/messages/messages.json');
|
|
4
|
+
|
|
5
|
+
describe('Solana off-chain message Protocol V1 wire contract', () => {
|
|
6
|
+
const root = parseConfigure(schema);
|
|
7
|
+
|
|
8
|
+
test('encodes required signers as field 6', () => {
|
|
9
|
+
const { Message } = createMessageFromName(root, 'SolanaSignOffChainMessage');
|
|
10
|
+
const requiredSigners = ['11'.repeat(32), '22'.repeat(32)];
|
|
11
|
+
const encoded = Buffer.from(
|
|
12
|
+
encode(Message, {
|
|
13
|
+
address_n: [0x8000002c, 0x800001f5, 0x80000000, 0x80000000],
|
|
14
|
+
message: '01020304',
|
|
15
|
+
message_version: 'MESSAGE_VERSION_1',
|
|
16
|
+
required_signers: requiredSigners,
|
|
17
|
+
}).toBuffer()
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
// Check the wire tag independently of the SDK schema: field 6, wire type 2.
|
|
21
|
+
const expectedSignersPayload = Buffer.concat(
|
|
22
|
+
requiredSigners.map(signer =>
|
|
23
|
+
Buffer.concat([Buffer.from([0x32, 0x20]), Buffer.from(signer, 'hex')])
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
expect(encoded.subarray(-expectedSignersPayload.length)).toEqual(expectedSignersPayload);
|
|
27
|
+
|
|
28
|
+
const decoded = Message.decode(new Uint8Array(encoded));
|
|
29
|
+
expect(decoded.required_signers.map(signer => Buffer.from(signer).toString('hex'))).toEqual(
|
|
30
|
+
requiredSigners
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -117,6 +117,16 @@ describe('transport log sanitization', () => {
|
|
|
117
117
|
expect(payload.ufvk).toBe('synthetic-viewing-key-marker');
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
+
test('redacts the exported Zcash viewing key response', () => {
|
|
121
|
+
const payload = { ufvk: 'synthetic-viewing-key-marker' };
|
|
122
|
+
expect(getSafeTransportLogPayload(payload, 'ZcashFullViewingKey')).toEqual({
|
|
123
|
+
ufvk: '[REDACTED]',
|
|
124
|
+
});
|
|
125
|
+
expect(
|
|
126
|
+
JSON.stringify(createTransportCallLog('ZcashFullViewingKey', 'V2', payload))
|
|
127
|
+
).not.toContain('synthetic-');
|
|
128
|
+
});
|
|
129
|
+
|
|
120
130
|
test('redacts Monero view keys in protocol and API field names', () => {
|
|
121
131
|
expect(
|
|
122
132
|
getSafeTransportLogPayload(
|
package/dist/index.d.ts
CHANGED
|
@@ -3946,6 +3946,33 @@ type UiAnimationRequest = {
|
|
|
3946
3946
|
command: UiAnimationCommand;
|
|
3947
3947
|
type?: UiAnimationType;
|
|
3948
3948
|
};
|
|
3949
|
+
declare enum ZcashAddressType {
|
|
3950
|
+
UNIFIED_ORCHARD_P2PKH = 0,
|
|
3951
|
+
TRANSPARENT_P2PKH = 1,
|
|
3952
|
+
UNIFIED_ORCHARD = 2
|
|
3953
|
+
}
|
|
3954
|
+
declare enum ZcashAddressScope {
|
|
3955
|
+
EXTERNAL = 0,
|
|
3956
|
+
INTERNAL = 1
|
|
3957
|
+
}
|
|
3958
|
+
type ZcashGetAddress = {
|
|
3959
|
+
address_n: number[];
|
|
3960
|
+
show_display?: boolean;
|
|
3961
|
+
include_seed_fingerprint?: boolean;
|
|
3962
|
+
diversifier_index?: number;
|
|
3963
|
+
address_type?: ZcashAddressType;
|
|
3964
|
+
scope?: ZcashAddressScope;
|
|
3965
|
+
};
|
|
3966
|
+
type ZcashAddress = {
|
|
3967
|
+
address: string;
|
|
3968
|
+
seed_fingerprint?: string;
|
|
3969
|
+
};
|
|
3970
|
+
type ZcashGetFullViewingKey = {
|
|
3971
|
+
address_n: number[];
|
|
3972
|
+
};
|
|
3973
|
+
type ZcashFullViewingKey = {
|
|
3974
|
+
ufvk: string;
|
|
3975
|
+
};
|
|
3949
3976
|
type ZcashSignPczt = {
|
|
3950
3977
|
pczt_length: number;
|
|
3951
3978
|
pczt_initial_chunk: string;
|
|
@@ -4482,29 +4509,6 @@ type ViewVerifyPage = {
|
|
|
4482
4509
|
chain_id?: number;
|
|
4483
4510
|
content?: ViewContentPreview;
|
|
4484
4511
|
};
|
|
4485
|
-
declare enum ZcashAddressType {
|
|
4486
|
-
UNIFIED_ORCHARD_P2PKH = 0,
|
|
4487
|
-
TRANSPARENT_P2PKH = 1,
|
|
4488
|
-
UNIFIED_ORCHARD = 2
|
|
4489
|
-
}
|
|
4490
|
-
declare enum ZcashAddressScope {
|
|
4491
|
-
EXTERNAL = 0,
|
|
4492
|
-
INTERNAL = 1
|
|
4493
|
-
}
|
|
4494
|
-
type ZcashGetAddress = {
|
|
4495
|
-
address_n: number[];
|
|
4496
|
-
show_display?: boolean;
|
|
4497
|
-
include_seed_fingerprint?: boolean;
|
|
4498
|
-
include_ufvk?: boolean;
|
|
4499
|
-
diversifier_index?: number;
|
|
4500
|
-
address_type?: ZcashAddressType;
|
|
4501
|
-
scope?: ZcashAddressScope;
|
|
4502
|
-
};
|
|
4503
|
-
type ZcashAddress = {
|
|
4504
|
-
address: string;
|
|
4505
|
-
ufvk?: string;
|
|
4506
|
-
seed_fingerprint?: string;
|
|
4507
|
-
};
|
|
4508
4512
|
declare enum ProtocolV2FailureType {
|
|
4509
4513
|
Failure_InvalidMessage = 1,
|
|
4510
4514
|
Failure_UndefinedError = 2,
|
|
@@ -5116,6 +5120,10 @@ type MessageType = {
|
|
|
5116
5120
|
UnlockPath: UnlockPath;
|
|
5117
5121
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
5118
5122
|
UiAnimationRequest: UiAnimationRequest;
|
|
5123
|
+
ZcashGetAddress: ZcashGetAddress;
|
|
5124
|
+
ZcashAddress: ZcashAddress;
|
|
5125
|
+
ZcashGetFullViewingKey: ZcashGetFullViewingKey;
|
|
5126
|
+
ZcashFullViewingKey: ZcashFullViewingKey;
|
|
5119
5127
|
ZcashSignPczt: ZcashSignPczt;
|
|
5120
5128
|
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
5121
5129
|
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
@@ -5197,8 +5205,6 @@ type MessageType = {
|
|
|
5197
5205
|
ViewSignPage: ViewSignPage;
|
|
5198
5206
|
ViewWarningPage: ViewWarningPage;
|
|
5199
5207
|
ViewVerifyPage: ViewVerifyPage;
|
|
5200
|
-
ZcashGetAddress: ZcashGetAddress;
|
|
5201
|
-
ZcashAddress: ZcashAddress;
|
|
5202
5208
|
};
|
|
5203
5209
|
type MessageKey = keyof MessageType;
|
|
5204
5210
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5947,6 +5953,14 @@ declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
|
5947
5953
|
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5948
5954
|
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5949
5955
|
type messages_UiAnimationRequest = UiAnimationRequest;
|
|
5956
|
+
type messages_ZcashAddressType = ZcashAddressType;
|
|
5957
|
+
declare const messages_ZcashAddressType: typeof ZcashAddressType;
|
|
5958
|
+
type messages_ZcashAddressScope = ZcashAddressScope;
|
|
5959
|
+
declare const messages_ZcashAddressScope: typeof ZcashAddressScope;
|
|
5960
|
+
type messages_ZcashGetAddress = ZcashGetAddress;
|
|
5961
|
+
type messages_ZcashAddress = ZcashAddress;
|
|
5962
|
+
type messages_ZcashGetFullViewingKey = ZcashGetFullViewingKey;
|
|
5963
|
+
type messages_ZcashFullViewingKey = ZcashFullViewingKey;
|
|
5950
5964
|
type messages_ZcashSignPczt = ZcashSignPczt;
|
|
5951
5965
|
type messages_ZcashPcztChunkRequest = ZcashPcztChunkRequest;
|
|
5952
5966
|
type messages_ZcashPcztChunkAck = ZcashPcztChunkAck;
|
|
@@ -6071,12 +6085,6 @@ declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
|
6071
6085
|
type messages_ViewSignPage = ViewSignPage;
|
|
6072
6086
|
type messages_ViewWarningPage = ViewWarningPage;
|
|
6073
6087
|
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
6074
|
-
type messages_ZcashAddressType = ZcashAddressType;
|
|
6075
|
-
declare const messages_ZcashAddressType: typeof ZcashAddressType;
|
|
6076
|
-
type messages_ZcashAddressScope = ZcashAddressScope;
|
|
6077
|
-
declare const messages_ZcashAddressScope: typeof ZcashAddressScope;
|
|
6078
|
-
type messages_ZcashGetAddress = ZcashGetAddress;
|
|
6079
|
-
type messages_ZcashAddress = ZcashAddress;
|
|
6080
6088
|
type messages_ProtocolV2FailureType = ProtocolV2FailureType;
|
|
6081
6089
|
declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
|
|
6082
6090
|
type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
|
|
@@ -6756,6 +6764,12 @@ declare namespace messages {
|
|
|
6756
6764
|
messages_UiAnimationType as UiAnimationType,
|
|
6757
6765
|
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6758
6766
|
messages_UiAnimationRequest as UiAnimationRequest,
|
|
6767
|
+
messages_ZcashAddressType as ZcashAddressType,
|
|
6768
|
+
messages_ZcashAddressScope as ZcashAddressScope,
|
|
6769
|
+
messages_ZcashGetAddress as ZcashGetAddress,
|
|
6770
|
+
messages_ZcashAddress as ZcashAddress,
|
|
6771
|
+
messages_ZcashGetFullViewingKey as ZcashGetFullViewingKey,
|
|
6772
|
+
messages_ZcashFullViewingKey as ZcashFullViewingKey,
|
|
6759
6773
|
messages_ZcashSignPczt as ZcashSignPczt,
|
|
6760
6774
|
messages_ZcashPcztChunkRequest as ZcashPcztChunkRequest,
|
|
6761
6775
|
messages_ZcashPcztChunkAck as ZcashPcztChunkAck,
|
|
@@ -6859,10 +6873,6 @@ declare namespace messages {
|
|
|
6859
6873
|
messages_ViewSignPage as ViewSignPage,
|
|
6860
6874
|
messages_ViewWarningPage as ViewWarningPage,
|
|
6861
6875
|
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6862
|
-
messages_ZcashAddressType as ZcashAddressType,
|
|
6863
|
-
messages_ZcashAddressScope as ZcashAddressScope,
|
|
6864
|
-
messages_ZcashGetAddress as ZcashGetAddress,
|
|
6865
|
-
messages_ZcashAddress as ZcashAddress,
|
|
6866
6876
|
messages_ProtocolV2FailureType as ProtocolV2FailureType,
|
|
6867
6877
|
messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
|
|
6868
6878
|
messages_ProtocolV2Capability as ProtocolV2Capability,
|
|
@@ -7220,4 +7230,4 @@ declare const _default: {
|
|
|
7220
7230
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
7221
7231
|
};
|
|
7222
7232
|
|
|
7223
|
-
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_FILE_WRITE_PIPELINE_WINDOW, 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, ProtocolV2FileWritePipeline, 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 };
|
|
7233
|
+
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_FILE_WRITE_PIPELINE_WINDOW, 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, ProtocolV2FileWritePipeline, 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, ZcashFullViewingKey, ZcashGetAddress, ZcashGetFullViewingKey, 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 };
|
package/dist/index.js
CHANGED
|
@@ -2278,6 +2278,17 @@ exports.UiAnimationCommand = void 0;
|
|
|
2278
2278
|
UiAnimationCommand[UiAnimationCommand["Stop"] = 2] = "Stop";
|
|
2279
2279
|
UiAnimationCommand[UiAnimationCommand["Refresh"] = 3] = "Refresh";
|
|
2280
2280
|
})(exports.UiAnimationCommand || (exports.UiAnimationCommand = {}));
|
|
2281
|
+
exports.ZcashAddressType = void 0;
|
|
2282
|
+
(function (ZcashAddressType) {
|
|
2283
|
+
ZcashAddressType[ZcashAddressType["UNIFIED_ORCHARD_P2PKH"] = 0] = "UNIFIED_ORCHARD_P2PKH";
|
|
2284
|
+
ZcashAddressType[ZcashAddressType["TRANSPARENT_P2PKH"] = 1] = "TRANSPARENT_P2PKH";
|
|
2285
|
+
ZcashAddressType[ZcashAddressType["UNIFIED_ORCHARD"] = 2] = "UNIFIED_ORCHARD";
|
|
2286
|
+
})(exports.ZcashAddressType || (exports.ZcashAddressType = {}));
|
|
2287
|
+
exports.ZcashAddressScope = void 0;
|
|
2288
|
+
(function (ZcashAddressScope) {
|
|
2289
|
+
ZcashAddressScope[ZcashAddressScope["EXTERNAL"] = 0] = "EXTERNAL";
|
|
2290
|
+
ZcashAddressScope[ZcashAddressScope["INTERNAL"] = 1] = "INTERNAL";
|
|
2291
|
+
})(exports.ZcashAddressScope || (exports.ZcashAddressScope = {}));
|
|
2281
2292
|
exports.DeviceErrorCode = void 0;
|
|
2282
2293
|
(function (DeviceErrorCode) {
|
|
2283
2294
|
DeviceErrorCode[DeviceErrorCode["DeviceError_None"] = 0] = "DeviceError_None";
|
|
@@ -2451,17 +2462,6 @@ exports.ViewSignLayout = void 0;
|
|
|
2451
2462
|
ViewSignLayout[ViewSignLayout["LayoutFlat"] = 4] = "LayoutFlat";
|
|
2452
2463
|
ViewSignLayout[ViewSignLayout["LayoutEthApprove"] = 5] = "LayoutEthApprove";
|
|
2453
2464
|
})(exports.ViewSignLayout || (exports.ViewSignLayout = {}));
|
|
2454
|
-
exports.ZcashAddressType = void 0;
|
|
2455
|
-
(function (ZcashAddressType) {
|
|
2456
|
-
ZcashAddressType[ZcashAddressType["UNIFIED_ORCHARD_P2PKH"] = 0] = "UNIFIED_ORCHARD_P2PKH";
|
|
2457
|
-
ZcashAddressType[ZcashAddressType["TRANSPARENT_P2PKH"] = 1] = "TRANSPARENT_P2PKH";
|
|
2458
|
-
ZcashAddressType[ZcashAddressType["UNIFIED_ORCHARD"] = 2] = "UNIFIED_ORCHARD";
|
|
2459
|
-
})(exports.ZcashAddressType || (exports.ZcashAddressType = {}));
|
|
2460
|
-
exports.ZcashAddressScope = void 0;
|
|
2461
|
-
(function (ZcashAddressScope) {
|
|
2462
|
-
ZcashAddressScope[ZcashAddressScope["EXTERNAL"] = 0] = "EXTERNAL";
|
|
2463
|
-
ZcashAddressScope[ZcashAddressScope["INTERNAL"] = 1] = "INTERNAL";
|
|
2464
|
-
})(exports.ZcashAddressScope || (exports.ZcashAddressScope = {}));
|
|
2465
2465
|
exports.ProtocolV2FailureType = void 0;
|
|
2466
2466
|
(function (ProtocolV2FailureType) {
|
|
2467
2467
|
ProtocolV2FailureType[ProtocolV2FailureType["Failure_InvalidMessage"] = 1] = "Failure_InvalidMessage";
|
|
@@ -2562,6 +2562,8 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
2562
2562
|
get MoneroNetworkType () { return exports.MoneroNetworkType; },
|
|
2563
2563
|
get UiAnimationType () { return exports.UiAnimationType; },
|
|
2564
2564
|
get UiAnimationCommand () { return exports.UiAnimationCommand; },
|
|
2565
|
+
get ZcashAddressType () { return exports.ZcashAddressType; },
|
|
2566
|
+
get ZcashAddressScope () { return exports.ZcashAddressScope; },
|
|
2565
2567
|
get DeviceErrorCode () { return exports.DeviceErrorCode; },
|
|
2566
2568
|
get DeviceRebootType () { return exports.DeviceRebootType; },
|
|
2567
2569
|
get DeviceSettingsPage () { return exports.DeviceSettingsPage; },
|
|
@@ -2583,8 +2585,6 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
2583
2585
|
get OnboardingSetupMethod () { return exports.OnboardingSetupMethod; },
|
|
2584
2586
|
get ViewTipType () { return exports.ViewTipType; },
|
|
2585
2587
|
get ViewSignLayout () { return exports.ViewSignLayout; },
|
|
2586
|
-
get ZcashAddressType () { return exports.ZcashAddressType; },
|
|
2587
|
-
get ZcashAddressScope () { return exports.ZcashAddressScope; },
|
|
2588
2588
|
get ProtocolV2FailureType () { return exports.ProtocolV2FailureType; },
|
|
2589
2589
|
get Enum_ProtocolV2Capability () { return exports.Enum_ProtocolV2Capability; }
|
|
2590
2590
|
});
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -3508,6 +3508,33 @@ export type UiAnimationRequest = {
|
|
|
3508
3508
|
command: UiAnimationCommand;
|
|
3509
3509
|
type?: UiAnimationType;
|
|
3510
3510
|
};
|
|
3511
|
+
export declare enum ZcashAddressType {
|
|
3512
|
+
UNIFIED_ORCHARD_P2PKH = 0,
|
|
3513
|
+
TRANSPARENT_P2PKH = 1,
|
|
3514
|
+
UNIFIED_ORCHARD = 2
|
|
3515
|
+
}
|
|
3516
|
+
export declare enum ZcashAddressScope {
|
|
3517
|
+
EXTERNAL = 0,
|
|
3518
|
+
INTERNAL = 1
|
|
3519
|
+
}
|
|
3520
|
+
export type ZcashGetAddress = {
|
|
3521
|
+
address_n: number[];
|
|
3522
|
+
show_display?: boolean;
|
|
3523
|
+
include_seed_fingerprint?: boolean;
|
|
3524
|
+
diversifier_index?: number;
|
|
3525
|
+
address_type?: ZcashAddressType;
|
|
3526
|
+
scope?: ZcashAddressScope;
|
|
3527
|
+
};
|
|
3528
|
+
export type ZcashAddress = {
|
|
3529
|
+
address: string;
|
|
3530
|
+
seed_fingerprint?: string;
|
|
3531
|
+
};
|
|
3532
|
+
export type ZcashGetFullViewingKey = {
|
|
3533
|
+
address_n: number[];
|
|
3534
|
+
};
|
|
3535
|
+
export type ZcashFullViewingKey = {
|
|
3536
|
+
ufvk: string;
|
|
3537
|
+
};
|
|
3511
3538
|
export type ZcashSignPczt = {
|
|
3512
3539
|
pczt_length: number;
|
|
3513
3540
|
pczt_initial_chunk: string;
|
|
@@ -4044,29 +4071,6 @@ export type ViewVerifyPage = {
|
|
|
4044
4071
|
chain_id?: number;
|
|
4045
4072
|
content?: ViewContentPreview;
|
|
4046
4073
|
};
|
|
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
4074
|
export declare enum ProtocolV2FailureType {
|
|
4071
4075
|
Failure_InvalidMessage = 1,
|
|
4072
4076
|
Failure_UndefinedError = 2,
|
|
@@ -4678,6 +4682,10 @@ export type MessageType = {
|
|
|
4678
4682
|
UnlockPath: UnlockPath;
|
|
4679
4683
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4680
4684
|
UiAnimationRequest: UiAnimationRequest;
|
|
4685
|
+
ZcashGetAddress: ZcashGetAddress;
|
|
4686
|
+
ZcashAddress: ZcashAddress;
|
|
4687
|
+
ZcashGetFullViewingKey: ZcashGetFullViewingKey;
|
|
4688
|
+
ZcashFullViewingKey: ZcashFullViewingKey;
|
|
4681
4689
|
ZcashSignPczt: ZcashSignPczt;
|
|
4682
4690
|
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
4683
4691
|
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
@@ -4759,8 +4767,6 @@ export type MessageType = {
|
|
|
4759
4767
|
ViewSignPage: ViewSignPage;
|
|
4760
4768
|
ViewWarningPage: ViewWarningPage;
|
|
4761
4769
|
ViewVerifyPage: ViewVerifyPage;
|
|
4762
|
-
ZcashGetAddress: ZcashGetAddress;
|
|
4763
|
-
ZcashAddress: ZcashAddress;
|
|
4764
4770
|
};
|
|
4765
4771
|
export type MessageKey = keyof MessageType;
|
|
4766
4772
|
export type MessageResponse<T extends MessageKey> = {
|