@onekeyfe/hd-transport 1.2.0-alpha.1 → 1.2.0-alpha.10
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/README.md +1 -1
- package/__tests__/messages.test.js +76 -0
- package/__tests__/protocol-v2-link-manager.test.js +326 -0
- package/__tests__/protocol-v2-usb-transport-base.test.js +296 -0
- package/__tests__/protocol-v2.test.js +249 -81
- package/dist/constants.d.ts +4 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +501 -234
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +420 -72
- package/dist/protocols/index.d.ts +2 -0
- package/dist/protocols/index.d.ts.map +1 -1
- package/dist/protocols/v2/constants.d.ts +1 -0
- package/dist/protocols/v2/constants.d.ts.map +1 -1
- package/dist/protocols/v2/decode.d.ts +1 -0
- package/dist/protocols/v2/decode.d.ts.map +1 -1
- package/dist/protocols/v2/link-manager.d.ts +35 -0
- package/dist/protocols/v2/link-manager.d.ts.map +1 -0
- package/dist/protocols/v2/sequence-cursor.d.ts +5 -0
- package/dist/protocols/v2/sequence-cursor.d.ts.map +1 -0
- package/dist/protocols/v2/session.d.ts +16 -4
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/protocols/v2/usb-transport-base.d.ts +31 -0
- package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -0
- package/dist/serialization/protobuf/messages.d.ts.map +1 -1
- package/dist/types/messages.d.ts +291 -155
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +1 -1
- package/dist/types/transport.d.ts.map +1 -1
- package/messages-protocol-v2.json +599 -1033
- package/package.json +2 -2
- package/scripts/protobuf-build.sh +60 -142
- package/src/constants.ts +8 -2
- package/src/index.ts +8 -0
- package/src/protocols/index.ts +4 -1
- package/src/protocols/v2/constants.ts +1 -0
- package/src/protocols/v2/decode.ts +36 -17
- package/src/protocols/v2/link-manager.ts +160 -0
- package/src/protocols/v2/sequence-cursor.ts +10 -0
- package/src/protocols/v2/session.ts +80 -45
- package/src/protocols/v2/usb-transport-base.ts +194 -0
- package/src/serialization/protobuf/messages.ts +6 -1
- package/src/types/messages.ts +359 -185
- package/src/types/transport.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const PROTO_HEAD_CRC_SIZE = 8;
|
|
|
60
60
|
declare const CRC8_INIT = 48;
|
|
61
61
|
declare const PACKET_SIZE = 4096;
|
|
62
62
|
declare const PROTO_DATA_TYPE_PACKET = 0;
|
|
63
|
+
declare const PROTO_DATA_TYPE_ACK = 1;
|
|
63
64
|
|
|
64
65
|
declare const CRC8_TABLE: Uint8Array;
|
|
65
66
|
declare function crc8(data: Uint8Array, len: number): number;
|
|
@@ -86,6 +87,7 @@ interface ProtoV2Frame {
|
|
|
86
87
|
pbPayload: Uint8Array;
|
|
87
88
|
seq: number;
|
|
88
89
|
}
|
|
90
|
+
declare function isAckFrame(data: Uint8Array): boolean;
|
|
89
91
|
declare function decodeFrame(data: Uint8Array, debugOptions?: ProtocolV2FrameDebugOptions): ProtoV2Frame;
|
|
90
92
|
|
|
91
93
|
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
@@ -106,6 +108,7 @@ declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
|
|
|
106
108
|
declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
|
|
107
109
|
declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
|
|
108
110
|
declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
|
|
111
|
+
declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
|
|
109
112
|
declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
|
|
110
113
|
declare const protocolV2Codec_crc8: typeof crc8;
|
|
111
114
|
type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
|
|
@@ -115,6 +118,7 @@ declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
|
|
|
115
118
|
declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
|
|
116
119
|
declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
|
|
117
120
|
type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
|
|
121
|
+
declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
|
|
118
122
|
declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
|
|
119
123
|
declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
|
|
120
124
|
type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
|
|
@@ -127,6 +131,7 @@ declare namespace protocolV2Codec {
|
|
|
127
131
|
protocolV2Codec_CRC8_INIT as CRC8_INIT,
|
|
128
132
|
protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
|
|
129
133
|
protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
|
|
134
|
+
protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
|
|
130
135
|
protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
|
|
131
136
|
protocolV2Codec_crc8 as crc8,
|
|
132
137
|
protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
|
|
@@ -136,6 +141,7 @@ declare namespace protocolV2Codec {
|
|
|
136
141
|
protocolV2Codec_encodeFrame as encodeFrame,
|
|
137
142
|
protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
|
|
138
143
|
protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
|
|
144
|
+
protocolV2Codec_isAckFrame as isAckFrame,
|
|
139
145
|
protocolV2Codec_decodeFrame as decodeFrame,
|
|
140
146
|
protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
|
|
141
147
|
protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
|
|
@@ -167,6 +173,7 @@ declare const ProtocolV1: {
|
|
|
167
173
|
decodeMessage: typeof decodeMessage;
|
|
168
174
|
};
|
|
169
175
|
declare const ProtocolV2: {
|
|
176
|
+
isAckFrame: typeof isAckFrame;
|
|
170
177
|
encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
|
|
171
178
|
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array, options?: Pick<ProtocolV2FrameOptions, 'logger' | 'logPrefix' | 'context'>): {
|
|
172
179
|
message: {
|
|
@@ -247,7 +254,7 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
|
|
|
247
254
|
type LowlevelTransportSharedPlugin = {
|
|
248
255
|
enumerate: () => Promise<LowLevelDevice[]>;
|
|
249
256
|
send: (uuid: string, data: string) => Promise<void>;
|
|
250
|
-
receive: () => Promise<string>;
|
|
257
|
+
receive: (uuid?: string) => Promise<string>;
|
|
251
258
|
connect: (uuid: string) => Promise<void>;
|
|
252
259
|
disconnect: (uuid: string) => Promise<void>;
|
|
253
260
|
init: () => Promise<void>;
|
|
@@ -1137,11 +1144,15 @@ declare enum FailureType {
|
|
|
1137
1144
|
Failure_PinMismatch = 12,
|
|
1138
1145
|
Failure_WipeCodeMismatch = 13,
|
|
1139
1146
|
Failure_InvalidSession = 14,
|
|
1140
|
-
Failure_FirmwareError = 99
|
|
1147
|
+
Failure_FirmwareError = 99,
|
|
1148
|
+
Failure_InvalidMessage = 1,
|
|
1149
|
+
Failure_UndefinedError = 2,
|
|
1150
|
+
Failure_UsageError = 3
|
|
1141
1151
|
}
|
|
1142
1152
|
type Failure = {
|
|
1143
1153
|
code?: FailureType;
|
|
1144
1154
|
message?: string;
|
|
1155
|
+
subcode?: number;
|
|
1145
1156
|
};
|
|
1146
1157
|
declare enum Enum_ButtonRequestType {
|
|
1147
1158
|
ButtonRequest_Other = 1,
|
|
@@ -2124,6 +2135,28 @@ type OnekeyFeatures = {
|
|
|
2124
2135
|
onekey_se02_boot_build_id?: string;
|
|
2125
2136
|
onekey_se03_boot_build_id?: string;
|
|
2126
2137
|
onekey_se04_boot_build_id?: string;
|
|
2138
|
+
onekey_romloader_version?: string;
|
|
2139
|
+
onekey_bootloader_version?: string;
|
|
2140
|
+
onekey_romloader_hash?: string;
|
|
2141
|
+
onekey_bootloader_hash?: string;
|
|
2142
|
+
onekey_romloader_build_id?: string;
|
|
2143
|
+
onekey_bootloader_build_id?: string;
|
|
2144
|
+
onekey_coprocessor_bt_name?: string;
|
|
2145
|
+
onekey_coprocessor_version?: string;
|
|
2146
|
+
onekey_coprocessor_build_id?: string;
|
|
2147
|
+
onekey_coprocessor_hash?: string;
|
|
2148
|
+
onekey_se01_bootloader_version?: string;
|
|
2149
|
+
onekey_se02_bootloader_version?: string;
|
|
2150
|
+
onekey_se03_bootloader_version?: string;
|
|
2151
|
+
onekey_se04_bootloader_version?: string;
|
|
2152
|
+
onekey_se01_bootloader_hash?: string;
|
|
2153
|
+
onekey_se02_bootloader_hash?: string;
|
|
2154
|
+
onekey_se03_bootloader_hash?: string;
|
|
2155
|
+
onekey_se04_bootloader_hash?: string;
|
|
2156
|
+
onekey_se01_bootloader_build_id?: string;
|
|
2157
|
+
onekey_se02_bootloader_build_id?: string;
|
|
2158
|
+
onekey_se03_bootloader_build_id?: string;
|
|
2159
|
+
onekey_se04_bootloader_build_id?: string;
|
|
2127
2160
|
};
|
|
2128
2161
|
type LockDevice = {};
|
|
2129
2162
|
type EndSession = {};
|
|
@@ -3580,12 +3613,12 @@ type TxAckPaymentRequest = {
|
|
|
3580
3613
|
amount?: UintType;
|
|
3581
3614
|
signature: string;
|
|
3582
3615
|
};
|
|
3583
|
-
type
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3616
|
+
type EthereumSignTypedDataQR = {
|
|
3617
|
+
address_n: number[];
|
|
3618
|
+
json_data?: string;
|
|
3619
|
+
chain_id?: number;
|
|
3620
|
+
metamask_v4_compat?: boolean;
|
|
3621
|
+
request_id?: string;
|
|
3589
3622
|
};
|
|
3590
3623
|
type InternalMyAddressRequest = {
|
|
3591
3624
|
coin_type: number;
|
|
@@ -3593,6 +3626,11 @@ type InternalMyAddressRequest = {
|
|
|
3593
3626
|
account_index: number;
|
|
3594
3627
|
derive_type: number;
|
|
3595
3628
|
};
|
|
3629
|
+
type StartSession = {
|
|
3630
|
+
session_id?: string;
|
|
3631
|
+
_skip_passphrase?: boolean;
|
|
3632
|
+
derive_cardano?: boolean;
|
|
3633
|
+
};
|
|
3596
3634
|
type SetBusy = {
|
|
3597
3635
|
expiry_ms?: number;
|
|
3598
3636
|
};
|
|
@@ -3658,28 +3696,144 @@ type ViewTip = {
|
|
|
3658
3696
|
type: ViewTipType;
|
|
3659
3697
|
text: string;
|
|
3660
3698
|
};
|
|
3699
|
+
type ViewRawData = {
|
|
3700
|
+
initial_data: string;
|
|
3701
|
+
placeholder: number;
|
|
3702
|
+
};
|
|
3703
|
+
declare enum ViewSignLayout {
|
|
3704
|
+
LayoutDefault = 0,
|
|
3705
|
+
LayoutSafeTxCreate = 1
|
|
3706
|
+
}
|
|
3661
3707
|
type ViewSignPage = {
|
|
3662
3708
|
title: string;
|
|
3663
3709
|
amount?: UintType;
|
|
3664
3710
|
general: ViewDetail[];
|
|
3665
3711
|
tip?: ViewTip;
|
|
3712
|
+
raw_data?: ViewRawData;
|
|
3713
|
+
slide_to_confirm?: boolean;
|
|
3714
|
+
layout?: ViewSignLayout;
|
|
3666
3715
|
};
|
|
3667
3716
|
type ViewVerifyPage = {
|
|
3668
3717
|
title: string;
|
|
3669
3718
|
address: string;
|
|
3670
3719
|
path: string;
|
|
3671
3720
|
};
|
|
3672
|
-
type
|
|
3673
|
-
type
|
|
3674
|
-
|
|
3721
|
+
type ProtocolInfoRequest = {};
|
|
3722
|
+
type ProtocolInfo = {
|
|
3723
|
+
version: number;
|
|
3724
|
+
supported_messages: number[];
|
|
3725
|
+
protobuf_definition?: string;
|
|
3675
3726
|
};
|
|
3676
|
-
declare enum
|
|
3727
|
+
declare enum DeviceRebootType {
|
|
3677
3728
|
Normal = 0,
|
|
3678
|
-
|
|
3729
|
+
Romloader = 1,
|
|
3679
3730
|
Bootloader = 2
|
|
3680
3731
|
}
|
|
3681
|
-
type
|
|
3682
|
-
reboot_type:
|
|
3732
|
+
type DeviceReboot = {
|
|
3733
|
+
reboot_type: DeviceRebootType;
|
|
3734
|
+
};
|
|
3735
|
+
type DeviceSettings = {
|
|
3736
|
+
label?: string;
|
|
3737
|
+
bt_enable?: boolean;
|
|
3738
|
+
language?: string;
|
|
3739
|
+
};
|
|
3740
|
+
type DeviceSettingsGet = {};
|
|
3741
|
+
type DeviceSettingsSet = {
|
|
3742
|
+
settings: DeviceSettings;
|
|
3743
|
+
};
|
|
3744
|
+
type DeviceCertificate = {
|
|
3745
|
+
cert_and_pubkey: string;
|
|
3746
|
+
private_key?: string;
|
|
3747
|
+
};
|
|
3748
|
+
type DeviceCertificateWrite = {
|
|
3749
|
+
cert: DeviceCertificate;
|
|
3750
|
+
};
|
|
3751
|
+
type DeviceCertificateRead = {};
|
|
3752
|
+
type DeviceCertificateSignature = {
|
|
3753
|
+
data: string;
|
|
3754
|
+
};
|
|
3755
|
+
type DeviceCertificateSign = {
|
|
3756
|
+
data: string;
|
|
3757
|
+
};
|
|
3758
|
+
declare enum DeviceFirmwareTargetType {
|
|
3759
|
+
FW_MGMT_TARGET_INVALID = 0,
|
|
3760
|
+
FW_MGMT_TARGET_CRATE = 1,
|
|
3761
|
+
FW_MGMT_TARGET_ROMLOADER = 2,
|
|
3762
|
+
FW_MGMT_TARGET_BOOTLOADER = 3,
|
|
3763
|
+
FW_MGMT_TARGET_APPLICATION_P1 = 4,
|
|
3764
|
+
FW_MGMT_TARGET_APPLICATION_P2 = 5,
|
|
3765
|
+
FW_MGMT_TARGET_COPROCESSOR = 6,
|
|
3766
|
+
FW_MGMT_TARGET_SE01 = 7,
|
|
3767
|
+
FW_MGMT_TARGET_SE02 = 8,
|
|
3768
|
+
FW_MGMT_TARGET_SE03 = 9,
|
|
3769
|
+
FW_MGMT_TARGET_SE04 = 10
|
|
3770
|
+
}
|
|
3771
|
+
declare enum DeviceFirmwareUpdateTaskStatus {
|
|
3772
|
+
FW_MGMT_UPDATER_TASK_STATUS_PENDING = 0,
|
|
3773
|
+
FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS = 1,
|
|
3774
|
+
FW_MGMT_UPDATER_TASK_STATUS_FINISHED = 2,
|
|
3775
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND = 3,
|
|
3776
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ = 4,
|
|
3777
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE = 5,
|
|
3778
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY = 6,
|
|
3779
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL = 7,
|
|
3780
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT = 8,
|
|
3781
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
|
|
3782
|
+
FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10
|
|
3783
|
+
}
|
|
3784
|
+
type DeviceFirmwareTarget = {
|
|
3785
|
+
target_id: DeviceFirmwareTargetType;
|
|
3786
|
+
path: string;
|
|
3787
|
+
};
|
|
3788
|
+
type DeviceFirmwareUpdateRequest = {
|
|
3789
|
+
targets: DeviceFirmwareTarget[];
|
|
3790
|
+
};
|
|
3791
|
+
type DeviceFirmwareUpdateRecord = {
|
|
3792
|
+
target_id: DeviceFirmwareTargetType;
|
|
3793
|
+
status?: DeviceFirmwareUpdateTaskStatus;
|
|
3794
|
+
payload_version?: number;
|
|
3795
|
+
path?: string;
|
|
3796
|
+
};
|
|
3797
|
+
type DeviceFirmwareUpdateRecordFields = {
|
|
3798
|
+
status?: boolean;
|
|
3799
|
+
payload_version?: boolean;
|
|
3800
|
+
path?: boolean;
|
|
3801
|
+
};
|
|
3802
|
+
type DeviceFirmwareUpdateStatusGet = {
|
|
3803
|
+
fields?: DeviceFirmwareUpdateRecordFields;
|
|
3804
|
+
};
|
|
3805
|
+
type DeviceFirmwareUpdateStatus = {
|
|
3806
|
+
records: DeviceFirmwareUpdateRecord[];
|
|
3807
|
+
};
|
|
3808
|
+
declare enum DeviceFactoryAck {
|
|
3809
|
+
FACTORY_ACK_SUCCESS = 0,
|
|
3810
|
+
FACTORY_ACK_FAIL = 1
|
|
3811
|
+
}
|
|
3812
|
+
type DeviceFactoryInfoManufactureTime = {
|
|
3813
|
+
year: number;
|
|
3814
|
+
month: number;
|
|
3815
|
+
day: number;
|
|
3816
|
+
hour: number;
|
|
3817
|
+
minute: number;
|
|
3818
|
+
second: number;
|
|
3819
|
+
};
|
|
3820
|
+
type DeviceFactoryInfo = {
|
|
3821
|
+
version?: number;
|
|
3822
|
+
serial_number?: string;
|
|
3823
|
+
burn_in_completed?: boolean;
|
|
3824
|
+
factory_test_completed?: boolean;
|
|
3825
|
+
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3826
|
+
};
|
|
3827
|
+
type DeviceFactoryInfoSet = {
|
|
3828
|
+
info: DeviceFactoryInfo;
|
|
3829
|
+
};
|
|
3830
|
+
type DeviceFactoryInfoGet = {};
|
|
3831
|
+
type DeviceFactoryPermanentLock = {
|
|
3832
|
+
check_a: string;
|
|
3833
|
+
check_b: string;
|
|
3834
|
+
};
|
|
3835
|
+
type DeviceFactoryTest = {
|
|
3836
|
+
burn_in_test: boolean;
|
|
3683
3837
|
};
|
|
3684
3838
|
declare enum DeviceType {
|
|
3685
3839
|
CLASSIC1 = 0,
|
|
@@ -3687,130 +3841,124 @@ declare enum DeviceType {
|
|
|
3687
3841
|
MINI = 2,
|
|
3688
3842
|
TOUCH = 3,
|
|
3689
3843
|
PRO = 5,
|
|
3690
|
-
CLASSIC1S_PURE = 6
|
|
3844
|
+
CLASSIC1S_PURE = 6,
|
|
3845
|
+
PRO2 = 7,
|
|
3846
|
+
NEO = 8
|
|
3691
3847
|
}
|
|
3692
|
-
declare enum
|
|
3848
|
+
declare enum DeviceSeType {
|
|
3693
3849
|
THD89 = 0,
|
|
3694
3850
|
SE608A = 1
|
|
3695
3851
|
}
|
|
3696
|
-
declare enum
|
|
3852
|
+
declare enum DeviceSEState {
|
|
3697
3853
|
BOOT = 0,
|
|
3698
3854
|
APP_FACTORY = 51,
|
|
3699
3855
|
APP = 85
|
|
3700
3856
|
}
|
|
3701
|
-
type
|
|
3857
|
+
type DeviceFirmwareImageInfo = {
|
|
3702
3858
|
version?: string;
|
|
3703
3859
|
build_id?: string;
|
|
3704
3860
|
hash?: string;
|
|
3705
3861
|
};
|
|
3706
|
-
type
|
|
3707
|
-
|
|
3862
|
+
type DeviceHardwareInfo = {
|
|
3863
|
+
Device_type?: DeviceType;
|
|
3708
3864
|
serial_no?: string;
|
|
3709
|
-
device_id?: string;
|
|
3710
3865
|
hardware_version?: string;
|
|
3711
3866
|
hardware_version_raw_adc?: number;
|
|
3712
3867
|
};
|
|
3713
|
-
type
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3868
|
+
type DeviceMainMcuInfo = {
|
|
3869
|
+
romloader?: DeviceFirmwareImageInfo;
|
|
3870
|
+
bootloader?: DeviceFirmwareImageInfo;
|
|
3871
|
+
application?: DeviceFirmwareImageInfo;
|
|
3872
|
+
application_data?: DeviceFirmwareImageInfo;
|
|
3873
|
+
};
|
|
3874
|
+
type DeviceCoprocessorInfo = {
|
|
3875
|
+
bootloader?: DeviceFirmwareImageInfo;
|
|
3876
|
+
application?: DeviceFirmwareImageInfo;
|
|
3877
|
+
bt_adv_name?: string;
|
|
3878
|
+
bt_mac?: string;
|
|
3879
|
+
};
|
|
3880
|
+
type DeviceSEInfo = {
|
|
3881
|
+
bootloader?: DeviceFirmwareImageInfo;
|
|
3882
|
+
application?: DeviceFirmwareImageInfo;
|
|
3883
|
+
type?: DeviceSeType;
|
|
3884
|
+
state?: DeviceSEState;
|
|
3885
|
+
};
|
|
3886
|
+
type DeviceInfoTargets = {
|
|
3731
3887
|
hw?: boolean;
|
|
3732
3888
|
fw?: boolean;
|
|
3733
|
-
|
|
3889
|
+
coprocessor?: boolean;
|
|
3734
3890
|
se1?: boolean;
|
|
3735
3891
|
se2?: boolean;
|
|
3736
3892
|
se3?: boolean;
|
|
3737
3893
|
se4?: boolean;
|
|
3738
3894
|
status?: boolean;
|
|
3739
3895
|
};
|
|
3740
|
-
type
|
|
3896
|
+
type DeviceInfoTypes = {
|
|
3741
3897
|
version?: boolean;
|
|
3742
3898
|
build_id?: boolean;
|
|
3743
3899
|
hash?: boolean;
|
|
3744
3900
|
specific?: boolean;
|
|
3745
3901
|
};
|
|
3746
|
-
type
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
init_states?: boolean;
|
|
3750
|
-
backup_required?: boolean;
|
|
3751
|
-
passphrase_protection?: boolean;
|
|
3752
|
-
label?: string;
|
|
3753
|
-
};
|
|
3754
|
-
type DevGetDeviceInfo = {
|
|
3755
|
-
targets?: DevInfoTargets;
|
|
3756
|
-
types?: DevInfoTypes;
|
|
3902
|
+
type DeviceInfoGet = {
|
|
3903
|
+
targets?: DeviceInfoTargets;
|
|
3904
|
+
types?: DeviceInfoTypes;
|
|
3757
3905
|
};
|
|
3758
3906
|
type ProtocolV2DeviceInfo = {
|
|
3759
3907
|
protocol_version: number;
|
|
3760
|
-
hw?:
|
|
3761
|
-
fw?:
|
|
3762
|
-
|
|
3763
|
-
se1?:
|
|
3764
|
-
se2?:
|
|
3765
|
-
se3?:
|
|
3766
|
-
se4?:
|
|
3767
|
-
status?:
|
|
3768
|
-
};
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
TARGET_MAIN_BOOT = 1,
|
|
3772
|
-
TARGET_BT = 2,
|
|
3773
|
-
TARGET_SE1 = 3,
|
|
3774
|
-
TARGET_SE2 = 4,
|
|
3775
|
-
TARGET_SE3 = 5,
|
|
3776
|
-
TARGET_SE4 = 6,
|
|
3777
|
-
TARGET_RESOURCE = 10
|
|
3778
|
-
}
|
|
3779
|
-
type DevFirmwareTarget = {
|
|
3780
|
-
target_id: DevFirmwareTargetType;
|
|
3781
|
-
path: string;
|
|
3782
|
-
};
|
|
3783
|
-
type DevFirmwareUpdate = {
|
|
3784
|
-
targets: DevFirmwareTarget[];
|
|
3785
|
-
};
|
|
3786
|
-
type DevFirmwareInstallProgress = {
|
|
3787
|
-
target_id: DevFirmwareTargetType;
|
|
3788
|
-
progress: number;
|
|
3789
|
-
stage?: string;
|
|
3790
|
-
};
|
|
3791
|
-
type DevFirmwareUpdateStatusEntry = {
|
|
3792
|
-
target_id: DevFirmwareTargetType;
|
|
3793
|
-
status: number;
|
|
3908
|
+
hw?: DeviceHardwareInfo;
|
|
3909
|
+
fw?: DeviceMainMcuInfo;
|
|
3910
|
+
coprocessor?: DeviceCoprocessorInfo;
|
|
3911
|
+
se1?: DeviceSEInfo;
|
|
3912
|
+
se2?: DeviceSEInfo;
|
|
3913
|
+
se3?: DeviceSEInfo;
|
|
3914
|
+
se4?: DeviceSEInfo;
|
|
3915
|
+
status?: DeviceStatus;
|
|
3916
|
+
};
|
|
3917
|
+
type DeviceSessionGet = {
|
|
3918
|
+
session_id?: string;
|
|
3794
3919
|
};
|
|
3795
|
-
type
|
|
3796
|
-
|
|
3797
|
-
|
|
3920
|
+
type DeviceSession = {
|
|
3921
|
+
session_id?: string;
|
|
3922
|
+
btc_test_address?: string;
|
|
3798
3923
|
};
|
|
3799
|
-
type
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3924
|
+
type DeviceSessionAskPin = {};
|
|
3925
|
+
type DeviceSessionPinResult = {
|
|
3926
|
+
unlocked?: boolean;
|
|
3927
|
+
unlocked_attach_pin?: boolean;
|
|
3928
|
+
passphrase_protection?: boolean;
|
|
3803
3929
|
};
|
|
3804
|
-
type
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3930
|
+
type DeviceStatus = {
|
|
3931
|
+
device_id?: string;
|
|
3932
|
+
unlocked?: boolean;
|
|
3933
|
+
init_states?: boolean;
|
|
3934
|
+
backup_required?: boolean;
|
|
3935
|
+
passphrase_enabled?: boolean;
|
|
3936
|
+
attach_to_pin_enabled?: boolean;
|
|
3937
|
+
unlocked_by_attach_to_pin?: boolean;
|
|
3938
|
+
};
|
|
3939
|
+
type DeviceStatusGet = {};
|
|
3940
|
+
declare enum DevOnboardingStage {
|
|
3941
|
+
DEV_ONBOARDING_STAGE_UNKNOWN = 0,
|
|
3942
|
+
DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
|
|
3943
|
+
DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
|
|
3944
|
+
DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
|
|
3945
|
+
DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
|
|
3946
|
+
DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
|
|
3947
|
+
DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
|
|
3948
|
+
DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
|
|
3949
|
+
DEV_ONBOARDING_STAGE_WALLET_READY = 8,
|
|
3950
|
+
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
|
|
3951
|
+
DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
|
|
3952
|
+
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
|
|
3953
|
+
DEV_ONBOARDING_STAGE_DONE = 12
|
|
3954
|
+
}
|
|
3955
|
+
type DevGetOnboardingStatus = {};
|
|
3956
|
+
type DevOnboardingStatus = {
|
|
3957
|
+
stage: DevOnboardingStage;
|
|
3958
|
+
status_code?: number;
|
|
3959
|
+
detail_code?: number;
|
|
3812
3960
|
};
|
|
3813
|
-
type
|
|
3961
|
+
type FilesystemPermissionFix = {};
|
|
3814
3962
|
type FilesystemPathInfo = {
|
|
3815
3963
|
exist: boolean;
|
|
3816
3964
|
size: number;
|
|
@@ -3866,32 +4014,11 @@ type FilesystemDirMake = {
|
|
|
3866
4014
|
type FilesystemDirRemove = {
|
|
3867
4015
|
path: string;
|
|
3868
4016
|
};
|
|
3869
|
-
type FilesystemFormat = {
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
ONBOARDING_STEP_DEVICE_VERIFICATION = 1,
|
|
3873
|
-
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
3874
|
-
ONBOARDING_STEP_SETUP = 3,
|
|
3875
|
-
ONBOARDING_STEP_FIRMWARE = 4
|
|
3876
|
-
}
|
|
3877
|
-
type GetOnboardingStatus = {};
|
|
3878
|
-
type NewDevice = {
|
|
3879
|
-
seedcard_backup?: boolean;
|
|
3880
|
-
};
|
|
3881
|
-
type Restore = {
|
|
3882
|
-
mnemonic?: boolean;
|
|
3883
|
-
seedcard?: boolean;
|
|
3884
|
-
};
|
|
3885
|
-
type Setup = {
|
|
3886
|
-
new_device?: NewDevice;
|
|
3887
|
-
restore?: Restore;
|
|
3888
|
-
};
|
|
3889
|
-
type OnboardingStatus = {
|
|
3890
|
-
step: OnboardingStep;
|
|
3891
|
-
setup?: Setup;
|
|
3892
|
-
detail_code?: number;
|
|
3893
|
-
detail_str?: string;
|
|
4017
|
+
type FilesystemFormat = {
|
|
4018
|
+
data: boolean;
|
|
4019
|
+
user: boolean;
|
|
3894
4020
|
};
|
|
4021
|
+
type PortfolioUpdate = {};
|
|
3895
4022
|
type MessageType = {
|
|
3896
4023
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
3897
4024
|
AlephiumAddress: AlephiumAddress;
|
|
@@ -4455,8 +4582,9 @@ type MessageType = {
|
|
|
4455
4582
|
CoinPurchaseMemo: CoinPurchaseMemo;
|
|
4456
4583
|
PaymentRequestMemo: PaymentRequestMemo;
|
|
4457
4584
|
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4458
|
-
|
|
4585
|
+
EthereumSignTypedDataQR: EthereumSignTypedDataQR;
|
|
4459
4586
|
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4587
|
+
StartSession: StartSession;
|
|
4460
4588
|
SetBusy: SetBusy;
|
|
4461
4589
|
GetFirmwareHash: GetFirmwareHash;
|
|
4462
4590
|
FirmwareHash: FirmwareHash;
|
|
@@ -4471,30 +4599,49 @@ type MessageType = {
|
|
|
4471
4599
|
ViewAmount: ViewAmount;
|
|
4472
4600
|
ViewDetail: ViewDetail;
|
|
4473
4601
|
ViewTip: ViewTip;
|
|
4602
|
+
ViewRawData: ViewRawData;
|
|
4474
4603
|
ViewSignPage: ViewSignPage;
|
|
4475
4604
|
ViewVerifyPage: ViewVerifyPage;
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4605
|
+
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
4606
|
+
ProtocolInfo: ProtocolInfo;
|
|
4607
|
+
DeviceReboot: DeviceReboot;
|
|
4608
|
+
DeviceSettings: DeviceSettings;
|
|
4609
|
+
DeviceSettingsGet: DeviceSettingsGet;
|
|
4610
|
+
DeviceSettingsSet: DeviceSettingsSet;
|
|
4611
|
+
DeviceCertificate: DeviceCertificate;
|
|
4612
|
+
DeviceCertificateWrite: DeviceCertificateWrite;
|
|
4613
|
+
DeviceCertificateRead: DeviceCertificateRead;
|
|
4614
|
+
DeviceCertificateSignature: DeviceCertificateSignature;
|
|
4615
|
+
DeviceCertificateSign: DeviceCertificateSign;
|
|
4616
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4617
|
+
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4618
|
+
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4619
|
+
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4620
|
+
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4621
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4622
|
+
DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
|
|
4623
|
+
DeviceFactoryInfo: DeviceFactoryInfo;
|
|
4624
|
+
DeviceFactoryInfoSet: DeviceFactoryInfoSet;
|
|
4625
|
+
DeviceFactoryInfoGet: DeviceFactoryInfoGet;
|
|
4626
|
+
DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
|
|
4627
|
+
DeviceFactoryTest: DeviceFactoryTest;
|
|
4628
|
+
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
4629
|
+
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
4630
|
+
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
4631
|
+
DeviceCoprocessorInfo: DeviceCoprocessorInfo;
|
|
4632
|
+
DeviceSEInfo: DeviceSEInfo;
|
|
4633
|
+
DeviceInfoTargets: DeviceInfoTargets;
|
|
4634
|
+
DeviceInfoTypes: DeviceInfoTypes;
|
|
4635
|
+
DeviceInfoGet: DeviceInfoGet;
|
|
4636
|
+
DeviceSessionGet: DeviceSessionGet;
|
|
4637
|
+
DeviceSession: DeviceSession;
|
|
4638
|
+
DeviceSessionAskPin: DeviceSessionAskPin;
|
|
4639
|
+
DeviceSessionPinResult: DeviceSessionPinResult;
|
|
4640
|
+
DeviceStatus: DeviceStatus;
|
|
4641
|
+
DeviceStatusGet: DeviceStatusGet;
|
|
4642
|
+
DevGetOnboardingStatus: DevGetOnboardingStatus;
|
|
4643
|
+
DevOnboardingStatus: DevOnboardingStatus;
|
|
4644
|
+
FilesystemPermissionFix: FilesystemPermissionFix;
|
|
4498
4645
|
FilesystemPathInfo: FilesystemPathInfo;
|
|
4499
4646
|
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
4500
4647
|
FilesystemFile: FilesystemFile;
|
|
@@ -4506,11 +4653,7 @@ type MessageType = {
|
|
|
4506
4653
|
FilesystemDirMake: FilesystemDirMake;
|
|
4507
4654
|
FilesystemDirRemove: FilesystemDirRemove;
|
|
4508
4655
|
FilesystemFormat: FilesystemFormat;
|
|
4509
|
-
|
|
4510
|
-
NewDevice: NewDevice;
|
|
4511
|
-
Restore: Restore;
|
|
4512
|
-
Setup: Setup;
|
|
4513
|
-
OnboardingStatus: OnboardingStatus;
|
|
4656
|
+
PortfolioUpdate: PortfolioUpdate;
|
|
4514
4657
|
};
|
|
4515
4658
|
type MessageKey = keyof MessageType;
|
|
4516
4659
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5222,8 +5365,9 @@ type messages_RefundMemo = RefundMemo;
|
|
|
5222
5365
|
type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
5223
5366
|
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5224
5367
|
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5225
|
-
type
|
|
5368
|
+
type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
|
|
5226
5369
|
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5370
|
+
type messages_StartSession = StartSession;
|
|
5227
5371
|
type messages_SetBusy = SetBusy;
|
|
5228
5372
|
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5229
5373
|
type messages_FirmwareHash = FirmwareHash;
|
|
@@ -5244,41 +5388,68 @@ type messages_ViewDetail = ViewDetail;
|
|
|
5244
5388
|
type messages_ViewTipType = ViewTipType;
|
|
5245
5389
|
declare const messages_ViewTipType: typeof ViewTipType;
|
|
5246
5390
|
type messages_ViewTip = ViewTip;
|
|
5391
|
+
type messages_ViewRawData = ViewRawData;
|
|
5392
|
+
type messages_ViewSignLayout = ViewSignLayout;
|
|
5393
|
+
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5247
5394
|
type messages_ViewSignPage = ViewSignPage;
|
|
5248
5395
|
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5249
|
-
type
|
|
5250
|
-
type
|
|
5251
|
-
type
|
|
5252
|
-
declare const
|
|
5253
|
-
type
|
|
5396
|
+
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
5397
|
+
type messages_ProtocolInfo = ProtocolInfo;
|
|
5398
|
+
type messages_DeviceRebootType = DeviceRebootType;
|
|
5399
|
+
declare const messages_DeviceRebootType: typeof DeviceRebootType;
|
|
5400
|
+
type messages_DeviceReboot = DeviceReboot;
|
|
5401
|
+
type messages_DeviceSettings = DeviceSettings;
|
|
5402
|
+
type messages_DeviceSettingsGet = DeviceSettingsGet;
|
|
5403
|
+
type messages_DeviceSettingsSet = DeviceSettingsSet;
|
|
5404
|
+
type messages_DeviceCertificate = DeviceCertificate;
|
|
5405
|
+
type messages_DeviceCertificateWrite = DeviceCertificateWrite;
|
|
5406
|
+
type messages_DeviceCertificateRead = DeviceCertificateRead;
|
|
5407
|
+
type messages_DeviceCertificateSignature = DeviceCertificateSignature;
|
|
5408
|
+
type messages_DeviceCertificateSign = DeviceCertificateSign;
|
|
5409
|
+
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5410
|
+
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5411
|
+
type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
|
|
5412
|
+
declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
|
|
5413
|
+
type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
|
|
5414
|
+
type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
|
|
5415
|
+
type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
|
|
5416
|
+
type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
|
|
5417
|
+
type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
|
|
5418
|
+
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5419
|
+
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5420
|
+
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5421
|
+
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5422
|
+
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5423
|
+
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5424
|
+
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5425
|
+
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5426
|
+
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5254
5427
|
type messages_DeviceType = DeviceType;
|
|
5255
5428
|
declare const messages_DeviceType: typeof DeviceType;
|
|
5256
|
-
type
|
|
5257
|
-
declare const
|
|
5258
|
-
type
|
|
5259
|
-
declare const
|
|
5260
|
-
type
|
|
5261
|
-
type
|
|
5262
|
-
type
|
|
5263
|
-
type
|
|
5264
|
-
type
|
|
5265
|
-
type
|
|
5266
|
-
type
|
|
5267
|
-
type
|
|
5268
|
-
type messages_DevGetDeviceInfo = DevGetDeviceInfo;
|
|
5429
|
+
type messages_DeviceSeType = DeviceSeType;
|
|
5430
|
+
declare const messages_DeviceSeType: typeof DeviceSeType;
|
|
5431
|
+
type messages_DeviceSEState = DeviceSEState;
|
|
5432
|
+
declare const messages_DeviceSEState: typeof DeviceSEState;
|
|
5433
|
+
type messages_DeviceFirmwareImageInfo = DeviceFirmwareImageInfo;
|
|
5434
|
+
type messages_DeviceHardwareInfo = DeviceHardwareInfo;
|
|
5435
|
+
type messages_DeviceMainMcuInfo = DeviceMainMcuInfo;
|
|
5436
|
+
type messages_DeviceCoprocessorInfo = DeviceCoprocessorInfo;
|
|
5437
|
+
type messages_DeviceSEInfo = DeviceSEInfo;
|
|
5438
|
+
type messages_DeviceInfoTargets = DeviceInfoTargets;
|
|
5439
|
+
type messages_DeviceInfoTypes = DeviceInfoTypes;
|
|
5440
|
+
type messages_DeviceInfoGet = DeviceInfoGet;
|
|
5269
5441
|
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5270
|
-
type
|
|
5271
|
-
|
|
5272
|
-
type
|
|
5273
|
-
type
|
|
5274
|
-
type
|
|
5275
|
-
type
|
|
5276
|
-
type
|
|
5277
|
-
|
|
5278
|
-
type
|
|
5279
|
-
type
|
|
5280
|
-
type
|
|
5281
|
-
type messages_FilesystemFixPermission = FilesystemFixPermission;
|
|
5442
|
+
type messages_DeviceSessionGet = DeviceSessionGet;
|
|
5443
|
+
type messages_DeviceSession = DeviceSession;
|
|
5444
|
+
type messages_DeviceSessionAskPin = DeviceSessionAskPin;
|
|
5445
|
+
type messages_DeviceSessionPinResult = DeviceSessionPinResult;
|
|
5446
|
+
type messages_DeviceStatus = DeviceStatus;
|
|
5447
|
+
type messages_DeviceStatusGet = DeviceStatusGet;
|
|
5448
|
+
type messages_DevOnboardingStage = DevOnboardingStage;
|
|
5449
|
+
declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
|
|
5450
|
+
type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
|
|
5451
|
+
type messages_DevOnboardingStatus = DevOnboardingStatus;
|
|
5452
|
+
type messages_FilesystemPermissionFix = FilesystemPermissionFix;
|
|
5282
5453
|
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5283
5454
|
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
5284
5455
|
type messages_FilesystemFile = FilesystemFile;
|
|
@@ -5290,13 +5461,7 @@ type messages_FilesystemDirList = FilesystemDirList;
|
|
|
5290
5461
|
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5291
5462
|
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5292
5463
|
type messages_FilesystemFormat = FilesystemFormat;
|
|
5293
|
-
type
|
|
5294
|
-
declare const messages_OnboardingStep: typeof OnboardingStep;
|
|
5295
|
-
type messages_GetOnboardingStatus = GetOnboardingStatus;
|
|
5296
|
-
type messages_NewDevice = NewDevice;
|
|
5297
|
-
type messages_Restore = Restore;
|
|
5298
|
-
type messages_Setup = Setup;
|
|
5299
|
-
type messages_OnboardingStatus = OnboardingStatus;
|
|
5464
|
+
type messages_PortfolioUpdate = PortfolioUpdate;
|
|
5300
5465
|
type messages_MessageType = MessageType;
|
|
5301
5466
|
type messages_MessageKey = MessageKey;
|
|
5302
5467
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
@@ -5941,8 +6106,9 @@ declare namespace messages {
|
|
|
5941
6106
|
messages_CoinPurchaseMemo as CoinPurchaseMemo,
|
|
5942
6107
|
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
5943
6108
|
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
5944
|
-
|
|
6109
|
+
messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
|
|
5945
6110
|
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6111
|
+
messages_StartSession as StartSession,
|
|
5946
6112
|
messages_SetBusy as SetBusy,
|
|
5947
6113
|
messages_GetFirmwareHash as GetFirmwareHash,
|
|
5948
6114
|
messages_FirmwareHash as FirmwareHash,
|
|
@@ -5960,36 +6126,59 @@ declare namespace messages {
|
|
|
5960
6126
|
messages_ViewDetail as ViewDetail,
|
|
5961
6127
|
messages_ViewTipType as ViewTipType,
|
|
5962
6128
|
messages_ViewTip as ViewTip,
|
|
6129
|
+
messages_ViewRawData as ViewRawData,
|
|
6130
|
+
messages_ViewSignLayout as ViewSignLayout,
|
|
5963
6131
|
messages_ViewSignPage as ViewSignPage,
|
|
5964
6132
|
messages_ViewVerifyPage as ViewVerifyPage,
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
6133
|
+
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
6134
|
+
messages_ProtocolInfo as ProtocolInfo,
|
|
6135
|
+
messages_DeviceRebootType as DeviceRebootType,
|
|
6136
|
+
messages_DeviceReboot as DeviceReboot,
|
|
6137
|
+
messages_DeviceSettings as DeviceSettings,
|
|
6138
|
+
messages_DeviceSettingsGet as DeviceSettingsGet,
|
|
6139
|
+
messages_DeviceSettingsSet as DeviceSettingsSet,
|
|
6140
|
+
messages_DeviceCertificate as DeviceCertificate,
|
|
6141
|
+
messages_DeviceCertificateWrite as DeviceCertificateWrite,
|
|
6142
|
+
messages_DeviceCertificateRead as DeviceCertificateRead,
|
|
6143
|
+
messages_DeviceCertificateSignature as DeviceCertificateSignature,
|
|
6144
|
+
messages_DeviceCertificateSign as DeviceCertificateSign,
|
|
6145
|
+
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
6146
|
+
messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
|
|
6147
|
+
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
6148
|
+
messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
|
|
6149
|
+
messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
|
|
6150
|
+
messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
|
|
6151
|
+
messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
|
|
6152
|
+
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
6153
|
+
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6154
|
+
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6155
|
+
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6156
|
+
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6157
|
+
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6158
|
+
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6159
|
+
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
5969
6160
|
messages_DeviceType as DeviceType,
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
messages_DevGetDeviceInfo as DevGetDeviceInfo,
|
|
6161
|
+
messages_DeviceSeType as DeviceSeType,
|
|
6162
|
+
messages_DeviceSEState as DeviceSEState,
|
|
6163
|
+
messages_DeviceFirmwareImageInfo as DeviceFirmwareImageInfo,
|
|
6164
|
+
messages_DeviceHardwareInfo as DeviceHardwareInfo,
|
|
6165
|
+
messages_DeviceMainMcuInfo as DeviceMainMcuInfo,
|
|
6166
|
+
messages_DeviceCoprocessorInfo as DeviceCoprocessorInfo,
|
|
6167
|
+
messages_DeviceSEInfo as DeviceSEInfo,
|
|
6168
|
+
messages_DeviceInfoTargets as DeviceInfoTargets,
|
|
6169
|
+
messages_DeviceInfoTypes as DeviceInfoTypes,
|
|
6170
|
+
messages_DeviceInfoGet as DeviceInfoGet,
|
|
5981
6171
|
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
messages_FilesystemFixPermission as FilesystemFixPermission,
|
|
6172
|
+
messages_DeviceSessionGet as DeviceSessionGet,
|
|
6173
|
+
messages_DeviceSession as DeviceSession,
|
|
6174
|
+
messages_DeviceSessionAskPin as DeviceSessionAskPin,
|
|
6175
|
+
messages_DeviceSessionPinResult as DeviceSessionPinResult,
|
|
6176
|
+
messages_DeviceStatus as DeviceStatus,
|
|
6177
|
+
messages_DeviceStatusGet as DeviceStatusGet,
|
|
6178
|
+
messages_DevOnboardingStage as DevOnboardingStage,
|
|
6179
|
+
messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
|
|
6180
|
+
messages_DevOnboardingStatus as DevOnboardingStatus,
|
|
6181
|
+
messages_FilesystemPermissionFix as FilesystemPermissionFix,
|
|
5993
6182
|
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
5994
6183
|
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
5995
6184
|
messages_FilesystemFile as FilesystemFile,
|
|
@@ -6001,12 +6190,7 @@ declare namespace messages {
|
|
|
6001
6190
|
messages_FilesystemDirMake as FilesystemDirMake,
|
|
6002
6191
|
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
6003
6192
|
messages_FilesystemFormat as FilesystemFormat,
|
|
6004
|
-
|
|
6005
|
-
messages_GetOnboardingStatus as GetOnboardingStatus,
|
|
6006
|
-
messages_NewDevice as NewDevice,
|
|
6007
|
-
messages_Restore as Restore,
|
|
6008
|
-
messages_Setup as Setup,
|
|
6009
|
-
messages_OnboardingStatus as OnboardingStatus,
|
|
6193
|
+
messages_PortfolioUpdate as PortfolioUpdate,
|
|
6010
6194
|
messages_MessageType as MessageType,
|
|
6011
6195
|
messages_MessageKey as MessageKey,
|
|
6012
6196
|
messages_MessageResponse as MessageResponse,
|
|
@@ -6015,10 +6199,21 @@ declare namespace messages {
|
|
|
6015
6199
|
};
|
|
6016
6200
|
}
|
|
6017
6201
|
|
|
6202
|
+
declare class ProtocolV2SequenceCursor {
|
|
6203
|
+
private current;
|
|
6204
|
+
next(): number;
|
|
6205
|
+
}
|
|
6206
|
+
|
|
6018
6207
|
type ProtocolV2Schemas = {
|
|
6019
6208
|
protocolV1: Root;
|
|
6020
6209
|
protocolV2: Root;
|
|
6021
6210
|
};
|
|
6211
|
+
type ProtocolV2CallContext = {
|
|
6212
|
+
messageName: string;
|
|
6213
|
+
timeoutMs?: number;
|
|
6214
|
+
highVolume: boolean;
|
|
6215
|
+
generation: number;
|
|
6216
|
+
};
|
|
6022
6217
|
type ProtocolLogger = {
|
|
6023
6218
|
debug?: (...args: any[]) => void;
|
|
6024
6219
|
error?: (...args: any[]) => void;
|
|
@@ -6027,11 +6222,15 @@ type ProtocolV2SessionOptions = {
|
|
|
6027
6222
|
schemas: ProtocolV2Schemas;
|
|
6028
6223
|
router: number;
|
|
6029
6224
|
packetSrc?: number;
|
|
6030
|
-
|
|
6031
|
-
|
|
6225
|
+
maxFrameBytes?: number;
|
|
6226
|
+
prepareCall?: (context: ProtocolV2CallContext) => Promise<void> | void;
|
|
6227
|
+
writeFrame: (frame: Uint8Array, context: ProtocolV2CallContext) => Promise<void>;
|
|
6228
|
+
readFrame: (context: ProtocolV2CallContext) => Promise<Uint8Array>;
|
|
6032
6229
|
logger?: ProtocolLogger;
|
|
6033
6230
|
logPrefix?: string;
|
|
6034
6231
|
createTimeoutError?: (name: string, timeoutMs: number) => Error;
|
|
6232
|
+
sequenceCursor?: ProtocolV2SequenceCursor;
|
|
6233
|
+
generation?: number;
|
|
6035
6234
|
};
|
|
6036
6235
|
type ProtocolV2CallOptions = {
|
|
6037
6236
|
timeoutMs?: number;
|
|
@@ -6044,11 +6243,11 @@ declare function hexToBytes(hex: string): Uint8Array;
|
|
|
6044
6243
|
declare function bytesToHex(bytes: Uint8Array): string;
|
|
6045
6244
|
declare function getErrorMessage(error: unknown): string;
|
|
6046
6245
|
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
|
|
6047
|
-
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS =
|
|
6246
|
+
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
|
|
6048
6247
|
declare class ProtocolV2Session {
|
|
6049
6248
|
private readonly options;
|
|
6249
|
+
private readonly sequenceCursor;
|
|
6050
6250
|
private pendingCall;
|
|
6051
|
-
private protoSeq;
|
|
6052
6251
|
constructor(options: ProtocolV2SessionOptions);
|
|
6053
6252
|
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6054
6253
|
private executeCall;
|
|
@@ -6062,6 +6261,68 @@ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeP
|
|
|
6062
6261
|
onProbeFailed?: (error: unknown) => Promise<void> | void;
|
|
6063
6262
|
}): Promise<boolean>;
|
|
6064
6263
|
|
|
6264
|
+
type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
|
|
6265
|
+
interface ProtocolV2LinkAdapter {
|
|
6266
|
+
router: number;
|
|
6267
|
+
maxFrameBytes?: number;
|
|
6268
|
+
generation: number;
|
|
6269
|
+
prepareCall(context: ProtocolV2CallContext): Promise<void> | void;
|
|
6270
|
+
writeFrame(frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
|
|
6271
|
+
readFrame(context: ProtocolV2CallContext): Promise<Uint8Array>;
|
|
6272
|
+
reset(reason: string): Promise<void> | void;
|
|
6273
|
+
logger?: ProtocolV2SessionOptions['logger'];
|
|
6274
|
+
logPrefix?: string;
|
|
6275
|
+
createTimeoutError?: ProtocolV2SessionOptions['createTimeoutError'];
|
|
6276
|
+
}
|
|
6277
|
+
type ProtocolV2LinkManagerOptions<Key> = {
|
|
6278
|
+
getSchemas: () => ProtocolV2Schemas;
|
|
6279
|
+
classifyError: (error: unknown) => ProtocolV2LinkErrorClassification;
|
|
6280
|
+
onLinkInvalidated?: (key: Key, reason: string) => Promise<void> | void;
|
|
6281
|
+
};
|
|
6282
|
+
declare class ProtocolV2LinkManager<Key> {
|
|
6283
|
+
private readonly links;
|
|
6284
|
+
private readonly sequences;
|
|
6285
|
+
private readonly callQueues;
|
|
6286
|
+
private readonly options;
|
|
6287
|
+
constructor(options: ProtocolV2LinkManagerOptions<Key>);
|
|
6288
|
+
call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
6289
|
+
invalidateLink(key: Key, reason: string): Promise<void>;
|
|
6290
|
+
invalidateAllLinks(reason: string): Promise<void>;
|
|
6291
|
+
dispose(reason: string): Promise<void>;
|
|
6292
|
+
private getOrCreateLink;
|
|
6293
|
+
private executeCall;
|
|
6294
|
+
private clearSettledCallQueue;
|
|
6295
|
+
}
|
|
6296
|
+
|
|
6297
|
+
type ProtocolV2UsbTransportBaseOptions = {
|
|
6298
|
+
router: number;
|
|
6299
|
+
maxFrameBytes: number;
|
|
6300
|
+
logPrefix: string;
|
|
6301
|
+
};
|
|
6302
|
+
declare abstract class ProtocolV2UsbTransportBase<Key> {
|
|
6303
|
+
private readonly protocolV2UsbLinks;
|
|
6304
|
+
private readonly protocolV2UsbAssemblers;
|
|
6305
|
+
private readonly protocolV2UsbGenerations;
|
|
6306
|
+
private readonly protocolV2UsbCancellations;
|
|
6307
|
+
private readonly protocolV2UsbOptions;
|
|
6308
|
+
protected constructor(options: ProtocolV2UsbTransportBaseOptions);
|
|
6309
|
+
protected abstract getProtocolV2UsbSchemas(): ProtocolV2Schemas;
|
|
6310
|
+
protected abstract getProtocolV2UsbLogger(): ProtocolV2SessionOptions['logger'];
|
|
6311
|
+
protected abstract writeProtocolV2UsbPacket(key: Key, frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
|
|
6312
|
+
protected abstract readProtocolV2UsbPacket(key: Key, context: ProtocolV2CallContext): Promise<Uint8Array>;
|
|
6313
|
+
protected abstract resetProtocolV2UsbNativeLink(key: Key, reason: string): Promise<void>;
|
|
6314
|
+
protected abstract createProtocolV2UsbTimeoutError(name: string, timeoutMs: number): Error;
|
|
6315
|
+
protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
|
|
6316
|
+
protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
|
|
6317
|
+
protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
6318
|
+
protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
|
|
6319
|
+
protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
|
|
6320
|
+
protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
|
|
6321
|
+
private createProtocolV2UsbAdapter;
|
|
6322
|
+
private getProtocolV2UsbAssembler;
|
|
6323
|
+
private createProtocolV2UsbCancellation;
|
|
6324
|
+
}
|
|
6325
|
+
|
|
6065
6326
|
declare function info(res: any): {
|
|
6066
6327
|
version: string;
|
|
6067
6328
|
configured: boolean;
|
|
@@ -6095,9 +6356,11 @@ declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
|
6095
6356
|
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
6096
6357
|
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
6097
6358
|
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
|
|
6098
|
-
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE =
|
|
6359
|
+
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
6099
6360
|
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6100
|
-
declare const
|
|
6361
|
+
declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
|
|
6362
|
+
declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
6363
|
+
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
|
|
6101
6364
|
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
6102
6365
|
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
6103
6366
|
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
@@ -6119,6 +6382,7 @@ declare const _default: {
|
|
|
6119
6382
|
decodeMessage: typeof decodeMessage;
|
|
6120
6383
|
};
|
|
6121
6384
|
ProtocolV2: {
|
|
6385
|
+
isAckFrame: typeof isAckFrame;
|
|
6122
6386
|
encodeFrame(schemas: {
|
|
6123
6387
|
protocolV1: protobuf.Root;
|
|
6124
6388
|
protocolV2: protobuf.Root;
|
|
@@ -6153,7 +6417,10 @@ declare const _default: {
|
|
|
6153
6417
|
};
|
|
6154
6418
|
PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
|
|
6155
6419
|
ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
6420
|
+
ProtocolV2LinkManager: typeof ProtocolV2LinkManager;
|
|
6421
|
+
ProtocolV2SequenceCursor: typeof ProtocolV2SequenceCursor;
|
|
6156
6422
|
ProtocolV2Session: typeof ProtocolV2Session;
|
|
6423
|
+
ProtocolV2UsbTransportBase: typeof ProtocolV2UsbTransportBase;
|
|
6157
6424
|
bytesToHex: typeof bytesToHex;
|
|
6158
6425
|
concatUint8Arrays: typeof concatUint8Arrays;
|
|
6159
6426
|
createMessageFromName: (messages: protobuf.Root, name: string) => {
|
|
@@ -6174,4 +6441,4 @@ declare const _default: {
|
|
|
6174
6441
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
6175
6442
|
};
|
|
6176
6443
|
|
|
6177
|
-
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, DebugLinkInput, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevBluetoothInfo, DevFirmwareImageInfo, DevFirmwareInstallProgress, DevFirmwareTarget, DevFirmwareTargetType, DevFirmwareUpdate, DevFirmwareUpdateStatus, DevFirmwareUpdateStatusEntry, DevGetDeviceInfo, DevGetFirmwareUpdateStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevReboot, DevRebootType, DevSEInfo, DevSEState, DevSeType, DevStatus, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, 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_OutputScriptType, Enum_PinMatrixRequestType, 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, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, FactoryDeviceInfo, FactoryDeviceInfoSettings, FactoryGetDeviceInfo, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFixPermission, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOnboardingStatus, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetProtoVersion, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, 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, NewDevice, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingStatus, 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_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, 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, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtoVersion, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2Schemas, ProtocolV2Session, ProtocolV2SessionOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, Restore, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, Setup, 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, 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, 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, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
|
|
6444
|
+
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, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionGet, DeviceSessionPinResult, DeviceSettings, DeviceSettingsGet, 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_OutputScriptType, Enum_PinMatrixRequestType, 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, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, 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, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, 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_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, 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, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, 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, SetWallpaper, 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, StartSession, 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, 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, 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, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
|