@onekeyfe/hd-transport 1.2.8-alpha.9 → 1.2.9
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-file-write-pipeline.test.js +478 -0
- package/__tests__/transport-log.test.js +176 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +157 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +253 -72
- package/dist/protocols/v2/session.d.ts +7 -1
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/types/messages.d.ts +72 -0
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +6 -0
- package/dist/types/transport.d.ts.map +1 -1
- package/dist/utils/transportLog.d.ts.map +1 -1
- package/messages-protocol-v2.json +152 -0
- package/package.json +2 -2
- package/scripts/protobuf-build.sh +30 -0
- package/scripts/protobuf-types.js +1 -0
- package/src/constants.ts +10 -1
- package/src/index.ts +1 -0
- package/src/protocols/v2/session.ts +326 -96
- package/src/types/messages.ts +97 -0
- package/src/types/transport.ts +25 -0
- package/src/utils/transportLog.ts +17 -2
|
@@ -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', {
|
|
@@ -65,6 +71,24 @@ describe('transport log sanitization', () => {
|
|
|
65
71
|
).toBe('[REDACTED]');
|
|
66
72
|
});
|
|
67
73
|
|
|
74
|
+
test.each(['V1', 'V2'])('redacts BTC message signing protocol logs for %s', protocol => {
|
|
75
|
+
const request = { message: 'synthetic-message-marker', coin_name: 'Bitcoin' };
|
|
76
|
+
const response = {
|
|
77
|
+
signature: 'synthetic-signature-marker',
|
|
78
|
+
address: 'synthetic-address-marker',
|
|
79
|
+
};
|
|
80
|
+
const originals = JSON.stringify([request, response]);
|
|
81
|
+
|
|
82
|
+
expect(createTransportCallLog('SignMessage', protocol, request)).toEqual({
|
|
83
|
+
name: 'SignMessage',
|
|
84
|
+
protocol,
|
|
85
|
+
request: '[REDACTED]',
|
|
86
|
+
});
|
|
87
|
+
expect(getSafeTransportLogPayload(request, 'SignMessage')).toBe('[REDACTED]');
|
|
88
|
+
expect(getSafeTransportLogPayload(response, 'MessageSignature')).toBe('[REDACTED]');
|
|
89
|
+
expect(JSON.stringify([request, response])).toBe(originals);
|
|
90
|
+
});
|
|
91
|
+
|
|
68
92
|
test('replaces binary content with its byte length', () => {
|
|
69
93
|
expect(
|
|
70
94
|
getSafeTransportLogPayload({
|
|
@@ -76,4 +100,156 @@ describe('transport log sanitization', () => {
|
|
|
76
100
|
data: '[BINARY:128]',
|
|
77
101
|
});
|
|
78
102
|
});
|
|
103
|
+
|
|
104
|
+
test('redacts Zcash viewing keys and fingerprints in protocol and API field names', () => {
|
|
105
|
+
const payload = {
|
|
106
|
+
address: 'synthetic-address-marker',
|
|
107
|
+
ufvk: 'synthetic-viewing-key-marker',
|
|
108
|
+
seed_fingerprint: 'synthetic-fingerprint-marker',
|
|
109
|
+
nested: [{ seedFingerprint: 'synthetic-fingerprint-marker' }],
|
|
110
|
+
};
|
|
111
|
+
expect(getSafeTransportLogPayload(payload, 'ZcashAddress')).toEqual({
|
|
112
|
+
address: '[REDACTED]',
|
|
113
|
+
ufvk: '[REDACTED]',
|
|
114
|
+
seed_fingerprint: '[REDACTED]',
|
|
115
|
+
nested: [{ seedFingerprint: '[REDACTED]' }],
|
|
116
|
+
});
|
|
117
|
+
expect(payload.ufvk).toBe('synthetic-viewing-key-marker');
|
|
118
|
+
});
|
|
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
|
+
|
|
130
|
+
test('redacts Monero view keys in protocol and API field names', () => {
|
|
131
|
+
expect(
|
|
132
|
+
getSafeTransportLogPayload(
|
|
133
|
+
{
|
|
134
|
+
address: 'synthetic-address-marker',
|
|
135
|
+
watch_key: 'synthetic-view-key-marker',
|
|
136
|
+
nested: { watchKey: 'synthetic-view-key-marker' },
|
|
137
|
+
},
|
|
138
|
+
'MoneroWatchKey'
|
|
139
|
+
)
|
|
140
|
+
).toEqual({
|
|
141
|
+
address: '[REDACTED]',
|
|
142
|
+
watch_key: '[REDACTED]',
|
|
143
|
+
nested: { watchKey: '[REDACTED]' },
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
test.each([
|
|
148
|
+
[
|
|
149
|
+
'MoneroKeyImageExportInitRequest',
|
|
150
|
+
{ num: 1, hash: 'synthetic-hash-marker', subs: [{ account: 0, minor_indices: [2] }] },
|
|
151
|
+
],
|
|
152
|
+
[
|
|
153
|
+
'MoneroKeyImageSyncStepRequest',
|
|
154
|
+
{
|
|
155
|
+
tdis: [
|
|
156
|
+
{
|
|
157
|
+
out_key: 'synthetic-out-key-marker',
|
|
158
|
+
tx_pub_key: 'synthetic-tx-key-marker',
|
|
159
|
+
internal_output_index: 1,
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
'MoneroKeyImageSyncStepAck',
|
|
166
|
+
{ kis: [{ iv: 'synthetic-iv-marker', blob: 'synthetic-key-image-marker' }] },
|
|
167
|
+
],
|
|
168
|
+
['MoneroKeyImageSyncFinalAck', { enc_key: 'synthetic-enc-key-marker' }],
|
|
169
|
+
['MoneroGetTxKeyAck', { salt: 'synthetic-salt-marker', tx_keys: 'synthetic-tx-keys-marker' }],
|
|
170
|
+
[
|
|
171
|
+
'MoneroLiveRefreshStepAck',
|
|
172
|
+
{ salt: 'synthetic-salt-marker', key_image: 'synthetic-ki-marker' },
|
|
173
|
+
],
|
|
174
|
+
])('redacts the complete Monero key image message %s', (name, payload) => {
|
|
175
|
+
expect(createTransportCallLog(name, 'V1', payload).request).toBe('[REDACTED]');
|
|
176
|
+
expect(getSafeTransportLogPayload(payload, name)).toBe('[REDACTED]');
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
test('redacts Monero key image fields even without protocol message context', () => {
|
|
180
|
+
expect(
|
|
181
|
+
getSafeTransportLogPayload({
|
|
182
|
+
encKey: 'synthetic-enc-key-marker',
|
|
183
|
+
transfers: [
|
|
184
|
+
{
|
|
185
|
+
outKey: 'synthetic-out-key-marker',
|
|
186
|
+
txPubKey: 'synthetic-tx-key-marker',
|
|
187
|
+
additional_tx_pub_keys: ['synthetic-additional-key-marker'],
|
|
188
|
+
internalOutputIndex: 1,
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
})
|
|
192
|
+
).toEqual({
|
|
193
|
+
encKey: '[REDACTED]',
|
|
194
|
+
transfers: [
|
|
195
|
+
{
|
|
196
|
+
outKey: '[REDACTED]',
|
|
197
|
+
txPubKey: '[REDACTED]',
|
|
198
|
+
additional_tx_pub_keys: '[REDACTED]',
|
|
199
|
+
internalOutputIndex: 1,
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
test.each([
|
|
206
|
+
'MoneroTransactionInitRequest',
|
|
207
|
+
'MoneroTransactionInitAck',
|
|
208
|
+
'MoneroTransactionSetInputRequest',
|
|
209
|
+
'MoneroTransactionSetInputAck',
|
|
210
|
+
'MoneroTransactionInputViniRequest',
|
|
211
|
+
'MoneroTransactionInputViniAck',
|
|
212
|
+
'MoneroTransactionAllInputsSetRequest',
|
|
213
|
+
'MoneroTransactionAllInputsSetAck',
|
|
214
|
+
'MoneroTransactionSetOutputRequest',
|
|
215
|
+
'MoneroTransactionSetOutputAck',
|
|
216
|
+
'MoneroTransactionAllOutSetRequest',
|
|
217
|
+
'MoneroTransactionAllOutSetAck',
|
|
218
|
+
'MoneroTransactionSignInputRequest',
|
|
219
|
+
'MoneroTransactionSignInputAck',
|
|
220
|
+
'MoneroTransactionFinalRequest',
|
|
221
|
+
'MoneroTransactionFinalAck',
|
|
222
|
+
])('redacts the complete Monero signing message %s', name => {
|
|
223
|
+
const payload = { src_entr: { mask: 'synthetic-mask-marker' }, opening_key: 'synthetic-key' };
|
|
224
|
+
expect(createTransportCallLog(name, 'V1', payload).request).toBe('[REDACTED]');
|
|
225
|
+
expect(getSafeTransportLogPayload(payload, name)).toBe('[REDACTED]');
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
test.each([
|
|
229
|
+
'ZcashSignPczt',
|
|
230
|
+
'ZcashPcztChunkRequest',
|
|
231
|
+
'ZcashPcztChunkAck',
|
|
232
|
+
'ZcashSignedPczt',
|
|
233
|
+
'ZcashSignedPcztChunkRequest',
|
|
234
|
+
])('redacts the complete %s request and response', name => {
|
|
235
|
+
const payload = { data_chunk: 'synthetic-pczt-marker', chunk_length: 64 };
|
|
236
|
+
expect(createTransportCallLog(name, 'V2', payload).request).toBe('[REDACTED]');
|
|
237
|
+
expect(getSafeTransportLogPayload(payload, name)).toBe('[REDACTED]');
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
test('redacts named PCZT fields even without protocol message context', () => {
|
|
241
|
+
expect(
|
|
242
|
+
getSafeTransportLogPayload({
|
|
243
|
+
pczt: 'synthetic-pczt-marker',
|
|
244
|
+
signedPczt: 'synthetic-signed-pczt-marker',
|
|
245
|
+
data_chunk: 'synthetic-chunk-marker',
|
|
246
|
+
nested: { dataChunk: 'synthetic-chunk-marker' },
|
|
247
|
+
})
|
|
248
|
+
).toEqual({
|
|
249
|
+
pczt: '[REDACTED]',
|
|
250
|
+
signedPczt: '[REDACTED]',
|
|
251
|
+
data_chunk: '[REDACTED]',
|
|
252
|
+
nested: { dataChunk: '[REDACTED]' },
|
|
253
|
+
});
|
|
254
|
+
});
|
|
79
255
|
});
|
package/dist/constants.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
|
10
10
|
export declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
|
|
11
11
|
export declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
|
|
12
12
|
export declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
13
|
+
export declare const PROTOCOL_V2_FILE_WRITE_PIPELINE_WINDOW = 2;
|
|
13
14
|
export declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
|
|
14
15
|
export declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
15
16
|
export declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,KAAO,CAAC;AAG1C,eAAO,MAAM,uBAAuB,KAAO,CAAC;AAG5C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAGjD,eAAO,MAAM,2BAA2B,QAAqC,CAAC;AAG9E,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AAGrD,eAAO,MAAM,gCAAgC,QAA0C,CAAC;AAKxF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAGhD,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAGvD,eAAO,MAAM,+BAA+B,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,KAAO,CAAC;AAG1C,eAAO,MAAM,uBAAuB,KAAO,CAAC;AAG5C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAGjD,eAAO,MAAM,2BAA2B,QAAqC,CAAC;AAG9E,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AAGrD,eAAO,MAAM,gCAAgC,QAA0C,CAAC;AAKxF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAGhD,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAGvD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAOpD,eAAO,MAAM,wCAAwC,OAAO,CAAC;AAG7D,eAAO,MAAM,oCAAoC,MAAM,CAAC;AAGxD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAQpD,eAAO,MAAM,sCAAsC,IAAI,CAAC;AAGxD,eAAO,MAAM,2BAA2B,OAAqC,CAAC;AAM9E,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAQhD,eAAO,MAAM,uCAAuC,QAAgB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -323,6 +323,12 @@ type OneKeyDeviceInfoWithSession = OneKeyUsbDeviceInfo & {
|
|
|
323
323
|
type OneKeyMobileDeviceInfo = {
|
|
324
324
|
id: string;
|
|
325
325
|
name: string | null;
|
|
326
|
+
/**
|
|
327
|
+
* Color letter of the serial number ('A'-'Z') from the Pro2 / Neo BLE advertisement,
|
|
328
|
+
* possibly seen in an earlier scan. Set by the React Native and Electron BLE
|
|
329
|
+
* transports; absent when unknown.
|
|
330
|
+
*/
|
|
331
|
+
bleColorCode?: string;
|
|
326
332
|
};
|
|
327
333
|
type OneKeyDeviceInfoBase = {
|
|
328
334
|
commType: OneKeyDeviceCommType;
|
|
@@ -353,6 +359,18 @@ type TransportWriteMetrics = {
|
|
|
353
359
|
elapsedMs: number;
|
|
354
360
|
frameBytes: number;
|
|
355
361
|
};
|
|
362
|
+
/**
|
|
363
|
+
* Supplies the remaining chunks of one file for an ordered FilesystemFileWrite pipeline.
|
|
364
|
+
* The call's request data is the first chunk; `next` returns the following chunk in offset
|
|
365
|
+
* order, or undefined to stop. The call then resolves with the last confirmation (or the
|
|
366
|
+
* device Failure), so the caller must check `processed_byte` for completeness. Callbacks
|
|
367
|
+
* should not throw: an error escapes with chunks still in flight and invalidates the link.
|
|
368
|
+
*/
|
|
369
|
+
type ProtocolV2FileWritePipeline = {
|
|
370
|
+
next: () => Promise<Record<string, unknown> | undefined>;
|
|
371
|
+
/** Called for each chunk after the device confirms it, in offset order. */
|
|
372
|
+
onResponse: (response: MessageFromOneKey) => void;
|
|
373
|
+
};
|
|
356
374
|
type TransportCallOptions = {
|
|
357
375
|
timeoutMs?: number;
|
|
358
376
|
expectedTypes?: string[];
|
|
@@ -366,6 +384,12 @@ type TransportCallOptions = {
|
|
|
366
384
|
onResponseAfterWrite?: (response: MessageFromOneKey) => void;
|
|
367
385
|
/** Prefer acknowledged BLE characteristic writes for this call when supported. */
|
|
368
386
|
writeWithResponse?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* Protocol V2 only: keep up to PROTOCOL_V2_FILE_WRITE_PIPELINE_WINDOW ordered
|
|
389
|
+
* FilesystemFileWrite frames of one file in flight within this call. `timeoutMs`
|
|
390
|
+
* bounds each frame write and each response instead of the whole file.
|
|
391
|
+
*/
|
|
392
|
+
fileWritePipeline?: ProtocolV2FileWritePipeline;
|
|
369
393
|
};
|
|
370
394
|
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
371
395
|
type Transport = {
|
|
@@ -3830,6 +3854,23 @@ declare enum CommandFlags {
|
|
|
3830
3854
|
Default = 0,
|
|
3831
3855
|
Factory_Only = 1
|
|
3832
3856
|
}
|
|
3857
|
+
declare enum Enum_CanonicalBitcoinNetwork {
|
|
3858
|
+
BITCOIN_MAINNET = 0,
|
|
3859
|
+
BITCOIN_TESTNET = 1,
|
|
3860
|
+
BITCOIN_SIGNET = 2,
|
|
3861
|
+
BITCOIN_REGTEST = 3
|
|
3862
|
+
}
|
|
3863
|
+
type CanonicalBitcoinNetwork = keyof typeof Enum_CanonicalBitcoinNetwork;
|
|
3864
|
+
type BabylonDeriveContextHash = {
|
|
3865
|
+
address_n: number[];
|
|
3866
|
+
script_type: InputScriptType;
|
|
3867
|
+
app_name: string;
|
|
3868
|
+
context: string;
|
|
3869
|
+
network: CanonicalBitcoinNetwork;
|
|
3870
|
+
};
|
|
3871
|
+
type BabylonDerivedContextHash = {
|
|
3872
|
+
secret: string;
|
|
3873
|
+
};
|
|
3833
3874
|
type TextMemo = {
|
|
3834
3875
|
text: string;
|
|
3835
3876
|
};
|
|
@@ -3905,6 +3946,50 @@ type UiAnimationRequest = {
|
|
|
3905
3946
|
command: UiAnimationCommand;
|
|
3906
3947
|
type?: UiAnimationType;
|
|
3907
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
|
+
};
|
|
3976
|
+
type ZcashSignPczt = {
|
|
3977
|
+
pczt_length: number;
|
|
3978
|
+
pczt_initial_chunk: string;
|
|
3979
|
+
};
|
|
3980
|
+
type ZcashPcztChunkRequest = {
|
|
3981
|
+
chunk_length: number;
|
|
3982
|
+
};
|
|
3983
|
+
type ZcashPcztChunkAck = {
|
|
3984
|
+
data_chunk: string;
|
|
3985
|
+
};
|
|
3986
|
+
type ZcashSignedPczt = {
|
|
3987
|
+
pczt_length: number;
|
|
3988
|
+
pczt_initial_chunk: string;
|
|
3989
|
+
};
|
|
3990
|
+
type ZcashSignedPcztChunkRequest = {
|
|
3991
|
+
chunk_length: number;
|
|
3992
|
+
};
|
|
3908
3993
|
type experimental_message = {};
|
|
3909
3994
|
type experimental_field = {};
|
|
3910
3995
|
type ProtocolInfoRequest = {
|
|
@@ -5018,6 +5103,8 @@ type MessageType = {
|
|
|
5018
5103
|
TronSignMessage: TronSignMessage;
|
|
5019
5104
|
TronMessageSignature: TronMessageSignature;
|
|
5020
5105
|
facotry: facotry;
|
|
5106
|
+
BabylonDeriveContextHash: BabylonDeriveContextHash;
|
|
5107
|
+
BabylonDerivedContextHash: BabylonDerivedContextHash;
|
|
5021
5108
|
TextMemo: TextMemo;
|
|
5022
5109
|
RefundMemo: RefundMemo;
|
|
5023
5110
|
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
@@ -5033,6 +5120,15 @@ type MessageType = {
|
|
|
5033
5120
|
UnlockPath: UnlockPath;
|
|
5034
5121
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
5035
5122
|
UiAnimationRequest: UiAnimationRequest;
|
|
5123
|
+
ZcashGetAddress: ZcashGetAddress;
|
|
5124
|
+
ZcashAddress: ZcashAddress;
|
|
5125
|
+
ZcashGetFullViewingKey: ZcashGetFullViewingKey;
|
|
5126
|
+
ZcashFullViewingKey: ZcashFullViewingKey;
|
|
5127
|
+
ZcashSignPczt: ZcashSignPczt;
|
|
5128
|
+
ZcashPcztChunkRequest: ZcashPcztChunkRequest;
|
|
5129
|
+
ZcashPcztChunkAck: ZcashPcztChunkAck;
|
|
5130
|
+
ZcashSignedPczt: ZcashSignedPczt;
|
|
5131
|
+
ZcashSignedPcztChunkRequest: ZcashSignedPcztChunkRequest;
|
|
5036
5132
|
experimental_message: experimental_message;
|
|
5037
5133
|
experimental_field: experimental_field;
|
|
5038
5134
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
@@ -5831,6 +5927,11 @@ type messages_TronMessageSignature = TronMessageSignature;
|
|
|
5831
5927
|
type messages_facotry = facotry;
|
|
5832
5928
|
type messages_CommandFlags = CommandFlags;
|
|
5833
5929
|
declare const messages_CommandFlags: typeof CommandFlags;
|
|
5930
|
+
type messages_Enum_CanonicalBitcoinNetwork = Enum_CanonicalBitcoinNetwork;
|
|
5931
|
+
declare const messages_Enum_CanonicalBitcoinNetwork: typeof Enum_CanonicalBitcoinNetwork;
|
|
5932
|
+
type messages_CanonicalBitcoinNetwork = CanonicalBitcoinNetwork;
|
|
5933
|
+
type messages_BabylonDeriveContextHash = BabylonDeriveContextHash;
|
|
5934
|
+
type messages_BabylonDerivedContextHash = BabylonDerivedContextHash;
|
|
5834
5935
|
type messages_TextMemo = TextMemo;
|
|
5835
5936
|
type messages_RefundMemo = RefundMemo;
|
|
5836
5937
|
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
@@ -5852,6 +5953,19 @@ declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
|
5852
5953
|
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5853
5954
|
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5854
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;
|
|
5964
|
+
type messages_ZcashSignPczt = ZcashSignPczt;
|
|
5965
|
+
type messages_ZcashPcztChunkRequest = ZcashPcztChunkRequest;
|
|
5966
|
+
type messages_ZcashPcztChunkAck = ZcashPcztChunkAck;
|
|
5967
|
+
type messages_ZcashSignedPczt = ZcashSignedPczt;
|
|
5968
|
+
type messages_ZcashSignedPcztChunkRequest = ZcashSignedPcztChunkRequest;
|
|
5855
5969
|
type messages_experimental_message = experimental_message;
|
|
5856
5970
|
type messages_experimental_field = experimental_field;
|
|
5857
5971
|
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
@@ -6628,6 +6742,10 @@ declare namespace messages {
|
|
|
6628
6742
|
messages_TronMessageSignature as TronMessageSignature,
|
|
6629
6743
|
messages_facotry as facotry,
|
|
6630
6744
|
messages_CommandFlags as CommandFlags,
|
|
6745
|
+
messages_Enum_CanonicalBitcoinNetwork as Enum_CanonicalBitcoinNetwork,
|
|
6746
|
+
messages_CanonicalBitcoinNetwork as CanonicalBitcoinNetwork,
|
|
6747
|
+
messages_BabylonDeriveContextHash as BabylonDeriveContextHash,
|
|
6748
|
+
messages_BabylonDerivedContextHash as BabylonDerivedContextHash,
|
|
6631
6749
|
messages_TextMemo as TextMemo,
|
|
6632
6750
|
messages_RefundMemo as RefundMemo,
|
|
6633
6751
|
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
@@ -6646,6 +6764,17 @@ declare namespace messages {
|
|
|
6646
6764
|
messages_UiAnimationType as UiAnimationType,
|
|
6647
6765
|
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6648
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,
|
|
6773
|
+
messages_ZcashSignPczt as ZcashSignPczt,
|
|
6774
|
+
messages_ZcashPcztChunkRequest as ZcashPcztChunkRequest,
|
|
6775
|
+
messages_ZcashPcztChunkAck as ZcashPcztChunkAck,
|
|
6776
|
+
messages_ZcashSignedPczt as ZcashSignedPczt,
|
|
6777
|
+
messages_ZcashSignedPcztChunkRequest as ZcashSignedPcztChunkRequest,
|
|
6649
6778
|
messages_experimental_message as experimental_message,
|
|
6650
6779
|
messages_experimental_field as experimental_field,
|
|
6651
6780
|
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
@@ -6799,6 +6928,7 @@ type ProtocolV2CallOptions = {
|
|
|
6799
6928
|
returnAfterWrite?: boolean;
|
|
6800
6929
|
onResponseAfterWrite?: (response: MessageFromOneKey) => void;
|
|
6801
6930
|
writeWithResponse?: boolean;
|
|
6931
|
+
fileWritePipeline?: ProtocolV2FileWritePipeline;
|
|
6802
6932
|
};
|
|
6803
6933
|
|
|
6804
6934
|
declare function hexToBytes(hex: string): Uint8Array;
|
|
@@ -6822,7 +6952,24 @@ declare class ProtocolV2Session {
|
|
|
6822
6952
|
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6823
6953
|
sendFlowControl(name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
|
|
6824
6954
|
private serializeWrite;
|
|
6955
|
+
private reportWriteCompleted;
|
|
6956
|
+
private createCallTimeoutError;
|
|
6825
6957
|
private executeCall;
|
|
6958
|
+
private encodeRequestFrame;
|
|
6959
|
+
/**
|
|
6960
|
+
* Validates one received frame for this session. Returns undefined for an ACK of one of
|
|
6961
|
+
* `ackSequences`, otherwise the decoded response.
|
|
6962
|
+
*/
|
|
6963
|
+
private parseResponseFrame;
|
|
6964
|
+
/**
|
|
6965
|
+
* Writes one file as ordered FilesystemFileWrite chunks while keeping up to
|
|
6966
|
+
* PROTOCOL_V2_FILE_WRITE_PIPELINE_WINDOW chunks in flight. Firmware still processes and
|
|
6967
|
+
* answers every chunk in order, so responses are matched to chunks by position. Upstream
|
|
6968
|
+
* bootloaders append at their own cursor without checking the request offset, so the echoed
|
|
6969
|
+
* offset is what exposes a lost chunk. A device Failure, or `next` returning undefined, stops
|
|
6970
|
+
* sending; the remaining in-flight responses are drained so the link stays usable.
|
|
6971
|
+
*/
|
|
6972
|
+
private executeFileWritePipeline;
|
|
6826
6973
|
}
|
|
6827
6974
|
declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, shouldRethrow, }: {
|
|
6828
6975
|
call: (name: string, data: Record<string, unknown>, options?: ProtocolV2CallOptions) => Promise<MessageFromOneKey>;
|
|
@@ -6957,14 +7104,22 @@ declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
|
6957
7104
|
/** Generic FilesystemFileWrite chunk size over BLE, including support for long filesystem paths. */
|
|
6958
7105
|
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6959
7106
|
/**
|
|
6960
|
-
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
|
|
7107
|
+
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths when writes are serial.
|
|
6961
7108
|
* The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
|
|
7109
|
+
* Pipelined writes use PROTOCOL_V2_BLE_FILE_CHUNK_SIZE so two frames fit the UART FIFO.
|
|
6962
7110
|
*/
|
|
6963
7111
|
declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
|
|
6964
7112
|
/** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
|
|
6965
7113
|
declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
|
|
6966
7114
|
/** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
|
|
6967
7115
|
declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
7116
|
+
/**
|
|
7117
|
+
* FilesystemFileWrite frames kept in flight by a file write pipeline. The main MCU copies a
|
|
7118
|
+
* complete frame out of its UART FIFO before handling it, but a frame waiting to be parsed and
|
|
7119
|
+
* the next one being received can both be resident: two full frames must fit (4096-byte FIFO).
|
|
7120
|
+
* With 1800-byte chunks two frames take about 3.75 KB.
|
|
7121
|
+
*/
|
|
7122
|
+
declare const PROTOCOL_V2_FILE_WRITE_PIPELINE_WINDOW = 2;
|
|
6968
7123
|
/** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
|
|
6969
7124
|
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
|
|
6970
7125
|
/**
|
|
@@ -7075,4 +7230,4 @@ declare const _default: {
|
|
|
7075
7230
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
7076
7231
|
};
|
|
7077
7232
|
|
|
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 };
|
|
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.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAKL,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,eAAe,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,EACjB,UAAU,EAEV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAKlD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,6BAA6B,EAC7B,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,8BAA8B,GAC/B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACpD,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AAErC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAsBE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAKL,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,eAAe,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,EACjB,UAAU,EAEV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAKlD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,6BAA6B,EAC7B,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,8BAA8B,GAC/B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACpD,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AAErC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAsBE"}
|