@onekeyfe/hd-transport 1.2.8-alpha.1 → 1.2.8-alpha.100
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__/babylon-context-hash.test.js +44 -0
- package/__tests__/protocol-v2.test.js +3 -3
- package/__tests__/transport-log.test.js +50 -0
- package/dist/index.d.ts +96 -1
- package/dist/index.js +28 -1
- package/dist/types/messages.d.ts +66 -0
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/utils/transportLog.d.ts.map +1 -1
- package/messages-protocol-v2.json +138 -1
- package/package.json +2 -2
- package/scripts/protobuf-build.sh +30 -0
- package/scripts/protobuf-types.js +1 -0
- package/src/types/messages.ts +87 -0
- package/src/utils/transportLog.ts +7 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const { parseConfigure, createMessageFromName } = require('../src/serialization/protobuf/messages');
|
|
2
|
+
const { encode } = require('../src/serialization/protobuf/encode');
|
|
3
|
+
const { decode } = require('../src/serialization/protobuf/decode');
|
|
4
|
+
const schema = require('../../core/src/data/messages/messages.json');
|
|
5
|
+
|
|
6
|
+
describe('Babylon Protocol V1 wire contract', () => {
|
|
7
|
+
const root = parseConfigure(schema);
|
|
8
|
+
|
|
9
|
+
test.each([
|
|
10
|
+
['BITCOIN_MAINNET', 0],
|
|
11
|
+
['BITCOIN_TESTNET', 1],
|
|
12
|
+
['BITCOIN_SIGNET', 2],
|
|
13
|
+
['BITCOIN_REGTEST', 3],
|
|
14
|
+
])('encodes %s as wire value %i', (network, networkId) => {
|
|
15
|
+
const { Message, messageTypeId } = createMessageFromName(root, 'BabylonDeriveContextHash');
|
|
16
|
+
const encoded = encode(Message, {
|
|
17
|
+
address_n: [2147483732, 2147483648, 2147483648, 0, 0],
|
|
18
|
+
script_type: 'SPENDWITNESS',
|
|
19
|
+
app_name: '746573742d617070',
|
|
20
|
+
context: 'deadbeef',
|
|
21
|
+
network,
|
|
22
|
+
});
|
|
23
|
+
const decoded = Message.decode(new Uint8Array(encoded.toBuffer()));
|
|
24
|
+
expect(messageTypeId).toBe(10054);
|
|
25
|
+
expect(decoded.network).toBe(networkId);
|
|
26
|
+
expect(Buffer.from(decoded.app_name).toString('ascii')).toBe('test-app');
|
|
27
|
+
expect(Buffer.from(decoded.context).toString('hex')).toBe('deadbeef');
|
|
28
|
+
expect(Message.fieldsArray.map(field => [field.name, field.id])).toEqual([
|
|
29
|
+
['address_n', 1],
|
|
30
|
+
['script_type', 2],
|
|
31
|
+
['app_name', 3],
|
|
32
|
+
['context', 4],
|
|
33
|
+
['network', 5],
|
|
34
|
+
]);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('decodes the 32-byte response', () => {
|
|
38
|
+
const { Message, messageTypeId } = createMessageFromName(root, 'BabylonDerivedContextHash');
|
|
39
|
+
const response = { secret: '00'.repeat(32) };
|
|
40
|
+
expect(messageTypeId).toBe(10055);
|
|
41
|
+
expect(Message.fields.secret.id).toBe(1);
|
|
42
|
+
expect(decode(Message, encode(Message, response))).toEqual(response);
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -1175,16 +1175,16 @@ describe('Protocol V2 framing and session', () => {
|
|
|
1175
1175
|
|
|
1176
1176
|
test('probeProtocolV2 rethrows caller-selected fatal errors without treating them as a miss', async () => {
|
|
1177
1177
|
const onProbeFailed = jest.fn();
|
|
1178
|
-
const
|
|
1178
|
+
const fatalError = Object.assign(new Error('Bluetooth connection failed'), { errorCode: 715 });
|
|
1179
1179
|
|
|
1180
1180
|
await expect(
|
|
1181
1181
|
probeProtocolV2({
|
|
1182
|
-
call: () => Promise.reject(
|
|
1182
|
+
call: () => Promise.reject(fatalError),
|
|
1183
1183
|
timeoutMs: 1,
|
|
1184
1184
|
onProbeFailed,
|
|
1185
1185
|
shouldRethrow: error => error?.errorCode === 715,
|
|
1186
1186
|
})
|
|
1187
|
-
).rejects.toBe(
|
|
1187
|
+
).rejects.toBe(fatalError);
|
|
1188
1188
|
expect(onProbeFailed).not.toHaveBeenCalled();
|
|
1189
1189
|
});
|
|
1190
1190
|
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
const { createTransportCallLog, getSafeTransportLogPayload } = require('../src/utils/transportLog');
|
|
2
2
|
|
|
3
3
|
describe('transport log sanitization', () => {
|
|
4
|
+
test('redacts Babylon derived secrets from response logs', () => {
|
|
5
|
+
expect(
|
|
6
|
+
getSafeTransportLogPayload({ secret: '00'.repeat(32) }, 'BabylonDerivedContextHash')
|
|
7
|
+
).toEqual({ secret: '[REDACTED]' });
|
|
8
|
+
});
|
|
9
|
+
|
|
4
10
|
test('logs non-sensitive request fields and redacts passphrases recursively', () => {
|
|
5
11
|
expect(
|
|
6
12
|
createTransportCallLog('DeviceSessionAskPassphrase', 'V2', {
|
|
@@ -76,4 +82,48 @@ describe('transport log sanitization', () => {
|
|
|
76
82
|
data: '[BINARY:128]',
|
|
77
83
|
});
|
|
78
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
|
+
});
|
|
79
129
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -3830,6 +3830,23 @@ declare enum CommandFlags {
|
|
|
3830
3830
|
Default = 0,
|
|
3831
3831
|
Factory_Only = 1
|
|
3832
3832
|
}
|
|
3833
|
+
declare enum Enum_CanonicalBitcoinNetwork {
|
|
3834
|
+
BITCOIN_MAINNET = 0,
|
|
3835
|
+
BITCOIN_TESTNET = 1,
|
|
3836
|
+
BITCOIN_SIGNET = 2,
|
|
3837
|
+
BITCOIN_REGTEST = 3
|
|
3838
|
+
}
|
|
3839
|
+
type CanonicalBitcoinNetwork = keyof typeof Enum_CanonicalBitcoinNetwork;
|
|
3840
|
+
type BabylonDeriveContextHash = {
|
|
3841
|
+
address_n: number[];
|
|
3842
|
+
script_type: InputScriptType;
|
|
3843
|
+
app_name: string;
|
|
3844
|
+
context: string;
|
|
3845
|
+
network: CanonicalBitcoinNetwork;
|
|
3846
|
+
};
|
|
3847
|
+
type BabylonDerivedContextHash = {
|
|
3848
|
+
secret: string;
|
|
3849
|
+
};
|
|
3833
3850
|
type TextMemo = {
|
|
3834
3851
|
text: string;
|
|
3835
3852
|
};
|
|
@@ -3905,6 +3922,23 @@ type UiAnimationRequest = {
|
|
|
3905
3922
|
command: UiAnimationCommand;
|
|
3906
3923
|
type?: UiAnimationType;
|
|
3907
3924
|
};
|
|
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
|
+
};
|
|
3908
3942
|
type experimental_message = {};
|
|
3909
3943
|
type experimental_field = {};
|
|
3910
3944
|
type ProtocolInfoRequest = {
|
|
@@ -4424,6 +4458,29 @@ type ViewVerifyPage = {
|
|
|
4424
4458
|
chain_id?: number;
|
|
4425
4459
|
content?: ViewContentPreview;
|
|
4426
4460
|
};
|
|
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
|
+
};
|
|
4427
4484
|
declare enum ProtocolV2FailureType {
|
|
4428
4485
|
Failure_InvalidMessage = 1,
|
|
4429
4486
|
Failure_UndefinedError = 2,
|
|
@@ -5018,6 +5075,8 @@ type MessageType = {
|
|
|
5018
5075
|
TronSignMessage: TronSignMessage;
|
|
5019
5076
|
TronMessageSignature: TronMessageSignature;
|
|
5020
5077
|
facotry: facotry;
|
|
5078
|
+
BabylonDeriveContextHash: BabylonDeriveContextHash;
|
|
5079
|
+
BabylonDerivedContextHash: BabylonDerivedContextHash;
|
|
5021
5080
|
TextMemo: TextMemo;
|
|
5022
5081
|
RefundMemo: RefundMemo;
|
|
5023
5082
|
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
@@ -5033,6 +5092,11 @@ type MessageType = {
|
|
|
5033
5092
|
UnlockPath: UnlockPath;
|
|
5034
5093
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
5035
5094
|
UiAnimationRequest: UiAnimationRequest;
|
|
5095
|
+
ZcashSignPczt: ZcashSignPczt;
|
|
5096
|
+
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
5097
|
+
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
5098
|
+
ZcashSignedPczt: ZcashSignedPczt;
|
|
5099
|
+
ZcashSignedPcztChunkRequest: ZcashSignedPcztChunkRequest;
|
|
5036
5100
|
experimental_message: experimental_message;
|
|
5037
5101
|
experimental_field: experimental_field;
|
|
5038
5102
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
@@ -5109,6 +5173,8 @@ type MessageType = {
|
|
|
5109
5173
|
ViewSignPage: ViewSignPage;
|
|
5110
5174
|
ViewWarningPage: ViewWarningPage;
|
|
5111
5175
|
ViewVerifyPage: ViewVerifyPage;
|
|
5176
|
+
ZcashGetAddress: ZcashGetAddress;
|
|
5177
|
+
ZcashAddress: ZcashAddress;
|
|
5112
5178
|
};
|
|
5113
5179
|
type MessageKey = keyof MessageType;
|
|
5114
5180
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5831,6 +5897,11 @@ type messages_TronMessageSignature = TronMessageSignature;
|
|
|
5831
5897
|
type messages_facotry = facotry;
|
|
5832
5898
|
type messages_CommandFlags = CommandFlags;
|
|
5833
5899
|
declare const messages_CommandFlags: typeof CommandFlags;
|
|
5900
|
+
type messages_Enum_CanonicalBitcoinNetwork = Enum_CanonicalBitcoinNetwork;
|
|
5901
|
+
declare const messages_Enum_CanonicalBitcoinNetwork: typeof Enum_CanonicalBitcoinNetwork;
|
|
5902
|
+
type messages_CanonicalBitcoinNetwork = CanonicalBitcoinNetwork;
|
|
5903
|
+
type messages_BabylonDeriveContextHash = BabylonDeriveContextHash;
|
|
5904
|
+
type messages_BabylonDerivedContextHash = BabylonDerivedContextHash;
|
|
5834
5905
|
type messages_TextMemo = TextMemo;
|
|
5835
5906
|
type messages_RefundMemo = RefundMemo;
|
|
5836
5907
|
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
@@ -5852,6 +5923,11 @@ declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
|
5852
5923
|
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5853
5924
|
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5854
5925
|
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;
|
|
5855
5931
|
type messages_experimental_message = experimental_message;
|
|
5856
5932
|
type messages_experimental_field = experimental_field;
|
|
5857
5933
|
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
@@ -5971,6 +6047,12 @@ declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
|
5971
6047
|
type messages_ViewSignPage = ViewSignPage;
|
|
5972
6048
|
type messages_ViewWarningPage = ViewWarningPage;
|
|
5973
6049
|
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;
|
|
5974
6056
|
type messages_ProtocolV2FailureType = ProtocolV2FailureType;
|
|
5975
6057
|
declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
|
|
5976
6058
|
type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
|
|
@@ -6628,6 +6710,10 @@ declare namespace messages {
|
|
|
6628
6710
|
messages_TronMessageSignature as TronMessageSignature,
|
|
6629
6711
|
messages_facotry as facotry,
|
|
6630
6712
|
messages_CommandFlags as CommandFlags,
|
|
6713
|
+
messages_Enum_CanonicalBitcoinNetwork as Enum_CanonicalBitcoinNetwork,
|
|
6714
|
+
messages_CanonicalBitcoinNetwork as CanonicalBitcoinNetwork,
|
|
6715
|
+
messages_BabylonDeriveContextHash as BabylonDeriveContextHash,
|
|
6716
|
+
messages_BabylonDerivedContextHash as BabylonDerivedContextHash,
|
|
6631
6717
|
messages_TextMemo as TextMemo,
|
|
6632
6718
|
messages_RefundMemo as RefundMemo,
|
|
6633
6719
|
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
@@ -6646,6 +6732,11 @@ declare namespace messages {
|
|
|
6646
6732
|
messages_UiAnimationType as UiAnimationType,
|
|
6647
6733
|
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6648
6734
|
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,
|
|
6649
6740
|
messages_experimental_message as experimental_message,
|
|
6650
6741
|
messages_experimental_field as experimental_field,
|
|
6651
6742
|
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
@@ -6744,6 +6835,10 @@ declare namespace messages {
|
|
|
6744
6835
|
messages_ViewSignPage as ViewSignPage,
|
|
6745
6836
|
messages_ViewWarningPage as ViewWarningPage,
|
|
6746
6837
|
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6838
|
+
messages_ZcashAddressType as ZcashAddressType,
|
|
6839
|
+
messages_ZcashAddressScope as ZcashAddressScope,
|
|
6840
|
+
messages_ZcashGetAddress as ZcashGetAddress,
|
|
6841
|
+
messages_ZcashAddress as ZcashAddress,
|
|
6747
6842
|
messages_ProtocolV2FailureType as ProtocolV2FailureType,
|
|
6748
6843
|
messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
|
|
6749
6844
|
messages_ProtocolV2Capability as ProtocolV2Capability,
|
|
@@ -7075,4 +7170,4 @@ declare const _default: {
|
|
|
7075
7170
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
7076
7171
|
};
|
|
7077
7172
|
|
|
7078
|
-
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, 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, 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_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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -2105,6 +2105,13 @@ exports.CommandFlags = void 0;
|
|
|
2105
2105
|
CommandFlags[CommandFlags["Default"] = 0] = "Default";
|
|
2106
2106
|
CommandFlags[CommandFlags["Factory_Only"] = 1] = "Factory_Only";
|
|
2107
2107
|
})(exports.CommandFlags || (exports.CommandFlags = {}));
|
|
2108
|
+
exports.Enum_CanonicalBitcoinNetwork = void 0;
|
|
2109
|
+
(function (Enum_CanonicalBitcoinNetwork) {
|
|
2110
|
+
Enum_CanonicalBitcoinNetwork[Enum_CanonicalBitcoinNetwork["BITCOIN_MAINNET"] = 0] = "BITCOIN_MAINNET";
|
|
2111
|
+
Enum_CanonicalBitcoinNetwork[Enum_CanonicalBitcoinNetwork["BITCOIN_TESTNET"] = 1] = "BITCOIN_TESTNET";
|
|
2112
|
+
Enum_CanonicalBitcoinNetwork[Enum_CanonicalBitcoinNetwork["BITCOIN_SIGNET"] = 2] = "BITCOIN_SIGNET";
|
|
2113
|
+
Enum_CanonicalBitcoinNetwork[Enum_CanonicalBitcoinNetwork["BITCOIN_REGTEST"] = 3] = "BITCOIN_REGTEST";
|
|
2114
|
+
})(exports.Enum_CanonicalBitcoinNetwork || (exports.Enum_CanonicalBitcoinNetwork = {}));
|
|
2108
2115
|
exports.MoneroNetworkType = void 0;
|
|
2109
2116
|
(function (MoneroNetworkType) {
|
|
2110
2117
|
MoneroNetworkType[MoneroNetworkType["MAINNET"] = 0] = "MAINNET";
|
|
@@ -2297,6 +2304,17 @@ exports.ViewSignLayout = void 0;
|
|
|
2297
2304
|
ViewSignLayout[ViewSignLayout["LayoutFlat"] = 4] = "LayoutFlat";
|
|
2298
2305
|
ViewSignLayout[ViewSignLayout["LayoutEthApprove"] = 5] = "LayoutEthApprove";
|
|
2299
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 = {}));
|
|
2300
2318
|
exports.ProtocolV2FailureType = void 0;
|
|
2301
2319
|
(function (ProtocolV2FailureType) {
|
|
2302
2320
|
ProtocolV2FailureType[ProtocolV2FailureType["Failure_InvalidMessage"] = 1] = "Failure_InvalidMessage";
|
|
@@ -2393,6 +2411,7 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
2393
2411
|
get TronResourceCode () { return exports.TronResourceCode; },
|
|
2394
2412
|
get TronMessageType () { return exports.TronMessageType; },
|
|
2395
2413
|
get CommandFlags () { return exports.CommandFlags; },
|
|
2414
|
+
get Enum_CanonicalBitcoinNetwork () { return exports.Enum_CanonicalBitcoinNetwork; },
|
|
2396
2415
|
get MoneroNetworkType () { return exports.MoneroNetworkType; },
|
|
2397
2416
|
get UiAnimationType () { return exports.UiAnimationType; },
|
|
2398
2417
|
get UiAnimationCommand () { return exports.UiAnimationCommand; },
|
|
@@ -2417,6 +2436,8 @@ var messages = /*#__PURE__*/Object.freeze({
|
|
|
2417
2436
|
get OnboardingSetupMethod () { return exports.OnboardingSetupMethod; },
|
|
2418
2437
|
get ViewTipType () { return exports.ViewTipType; },
|
|
2419
2438
|
get ViewSignLayout () { return exports.ViewSignLayout; },
|
|
2439
|
+
get ZcashAddressType () { return exports.ZcashAddressType; },
|
|
2440
|
+
get ZcashAddressScope () { return exports.ZcashAddressScope; },
|
|
2420
2441
|
get ProtocolV2FailureType () { return exports.ProtocolV2FailureType; },
|
|
2421
2442
|
get Enum_ProtocolV2Capability () { return exports.Enum_ProtocolV2Capability; }
|
|
2422
2443
|
});
|
|
@@ -2427,6 +2448,7 @@ const SENSITIVE_LOG_KEYS = new Set([
|
|
|
2427
2448
|
'address',
|
|
2428
2449
|
'apikey',
|
|
2429
2450
|
'connectid',
|
|
2451
|
+
'datachunk',
|
|
2430
2452
|
'devicestate',
|
|
2431
2453
|
'deviceid',
|
|
2432
2454
|
'entropy',
|
|
@@ -2435,15 +2457,20 @@ const SENSITIVE_LOG_KEYS = new Set([
|
|
|
2435
2457
|
'passphrase',
|
|
2436
2458
|
'passphrasestate',
|
|
2437
2459
|
'password',
|
|
2460
|
+
'pczt',
|
|
2438
2461
|
'pin',
|
|
2439
2462
|
'privatekey',
|
|
2440
2463
|
'publickey',
|
|
2441
2464
|
'seed',
|
|
2465
|
+
'secret',
|
|
2466
|
+
'seedfingerprint',
|
|
2442
2467
|
'serialnumber',
|
|
2443
2468
|
'session',
|
|
2444
2469
|
'sessionid',
|
|
2445
2470
|
'signature',
|
|
2471
|
+
'signedpczt',
|
|
2446
2472
|
'token',
|
|
2473
|
+
'ufvk',
|
|
2447
2474
|
'uuid',
|
|
2448
2475
|
'walletsessionid',
|
|
2449
2476
|
'xprv',
|
|
@@ -2458,7 +2485,7 @@ const isSensitiveLogKey = (key) => {
|
|
|
2458
2485
|
normalizedKey.endsWith('publickey') ||
|
|
2459
2486
|
normalizedKey.endsWith('signature'));
|
|
2460
2487
|
};
|
|
2461
|
-
const isSigningMessage = (messageName) => Boolean(messageName && /(?:sign|txack|transaction)/i.test(messageName));
|
|
2488
|
+
const isSigningMessage = (messageName) => Boolean(messageName && /(?:sign|txack|transaction|pczt)/i.test(messageName));
|
|
2462
2489
|
const redactLogValue = (value, seen) => {
|
|
2463
2490
|
if (ArrayBuffer.isView(value)) {
|
|
2464
2491
|
return `[BINARY:${value.byteLength}]`;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -3416,6 +3416,23 @@ export declare enum CommandFlags {
|
|
|
3416
3416
|
Default = 0,
|
|
3417
3417
|
Factory_Only = 1
|
|
3418
3418
|
}
|
|
3419
|
+
export declare enum Enum_CanonicalBitcoinNetwork {
|
|
3420
|
+
BITCOIN_MAINNET = 0,
|
|
3421
|
+
BITCOIN_TESTNET = 1,
|
|
3422
|
+
BITCOIN_SIGNET = 2,
|
|
3423
|
+
BITCOIN_REGTEST = 3
|
|
3424
|
+
}
|
|
3425
|
+
export type CanonicalBitcoinNetwork = keyof typeof Enum_CanonicalBitcoinNetwork;
|
|
3426
|
+
export type BabylonDeriveContextHash = {
|
|
3427
|
+
address_n: number[];
|
|
3428
|
+
script_type: InputScriptType;
|
|
3429
|
+
app_name: string;
|
|
3430
|
+
context: string;
|
|
3431
|
+
network: CanonicalBitcoinNetwork;
|
|
3432
|
+
};
|
|
3433
|
+
export type BabylonDerivedContextHash = {
|
|
3434
|
+
secret: string;
|
|
3435
|
+
};
|
|
3419
3436
|
export type TextMemo = {
|
|
3420
3437
|
text: string;
|
|
3421
3438
|
};
|
|
@@ -3491,6 +3508,23 @@ export type UiAnimationRequest = {
|
|
|
3491
3508
|
command: UiAnimationCommand;
|
|
3492
3509
|
type?: UiAnimationType;
|
|
3493
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
|
+
};
|
|
3494
3528
|
export type experimental_message = {};
|
|
3495
3529
|
export type experimental_field = {};
|
|
3496
3530
|
export type ProtocolInfoRequest = {
|
|
@@ -4010,6 +4044,29 @@ export type ViewVerifyPage = {
|
|
|
4010
4044
|
chain_id?: number;
|
|
4011
4045
|
content?: ViewContentPreview;
|
|
4012
4046
|
};
|
|
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
|
+
};
|
|
4013
4070
|
export declare enum ProtocolV2FailureType {
|
|
4014
4071
|
Failure_InvalidMessage = 1,
|
|
4015
4072
|
Failure_UndefinedError = 2,
|
|
@@ -4604,6 +4661,8 @@ export type MessageType = {
|
|
|
4604
4661
|
TronSignMessage: TronSignMessage;
|
|
4605
4662
|
TronMessageSignature: TronMessageSignature;
|
|
4606
4663
|
facotry: facotry;
|
|
4664
|
+
BabylonDeriveContextHash: BabylonDeriveContextHash;
|
|
4665
|
+
BabylonDerivedContextHash: BabylonDerivedContextHash;
|
|
4607
4666
|
TextMemo: TextMemo;
|
|
4608
4667
|
RefundMemo: RefundMemo;
|
|
4609
4668
|
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
@@ -4619,6 +4678,11 @@ export type MessageType = {
|
|
|
4619
4678
|
UnlockPath: UnlockPath;
|
|
4620
4679
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4621
4680
|
UiAnimationRequest: UiAnimationRequest;
|
|
4681
|
+
ZcashSignPczt: ZcashSignPczt;
|
|
4682
|
+
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
4683
|
+
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
4684
|
+
ZcashSignedPczt: ZcashSignedPczt;
|
|
4685
|
+
ZcashSignedPcztChunkRequest: ZcashSignedPcztChunkRequest;
|
|
4622
4686
|
experimental_message: experimental_message;
|
|
4623
4687
|
experimental_field: experimental_field;
|
|
4624
4688
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
@@ -4695,6 +4759,8 @@ export type MessageType = {
|
|
|
4695
4759
|
ViewSignPage: ViewSignPage;
|
|
4696
4760
|
ViewWarningPage: ViewWarningPage;
|
|
4697
4761
|
ViewVerifyPage: ViewVerifyPage;
|
|
4762
|
+
ZcashGetAddress: ZcashGetAddress;
|
|
4763
|
+
ZcashAddress: ZcashAddress;
|
|
4698
4764
|
};
|
|
4699
4765
|
export type MessageKey = keyof MessageType;
|
|
4700
4766
|
export type MessageResponse<T extends MessageKey> = {
|