@onekeyfe/hd-transport 1.2.0-alpha.1 → 1.2.0-alpha.11
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 +547 -235
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +442 -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 +329 -156
- 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 +760 -1110
- 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 +401 -186
- package/src/types/transport.ts +1 -1
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
"MessageType_GetFeatures": 55,
|
|
101
101
|
"MessageType_SdProtect": 79,
|
|
102
102
|
"MessageType_ChangeWipeCode": 82,
|
|
103
|
-
"MessageType_EndSession": 83,
|
|
104
103
|
"MessageType_DoPreauthorized": 84,
|
|
105
104
|
"MessageType_PreauthorizedRequest": 85,
|
|
106
105
|
"MessageType_CancelAuthorization": 86,
|
|
@@ -196,6 +195,7 @@
|
|
|
196
195
|
"MessageType_EthereumGnosisSafeTxAck": 20118,
|
|
197
196
|
"MessageType_EthereumGnosisSafeTxRequest": 20119,
|
|
198
197
|
"MessageType_EthereumSignTxEIP7702OneKey": 20120,
|
|
198
|
+
"MessageType_EthereumSignTypedDataQR": 20121,
|
|
199
199
|
"MessageType_NEMGetAddress": 67,
|
|
200
200
|
"MessageType_NEMAddress": 68,
|
|
201
201
|
"MessageType_NEMSignTx": 69,
|
|
@@ -419,8 +419,6 @@
|
|
|
419
419
|
"MessageType_TonSignProof": 11905,
|
|
420
420
|
"MessageType_TonSignedProof": 11906,
|
|
421
421
|
"MessageType_TonTxAck": 11907,
|
|
422
|
-
"MessageType_TonSignData": 11908,
|
|
423
|
-
"MessageType_TonSignedData": 11909,
|
|
424
422
|
"MessageType_ScdoGetAddress": 12001,
|
|
425
423
|
"MessageType_ScdoAddress": 12002,
|
|
426
424
|
"MessageType_ScdoSignTx": 12003,
|
|
@@ -450,46 +448,45 @@
|
|
|
450
448
|
"MessageType_NeoAddress": 12302,
|
|
451
449
|
"MessageType_NeoSignTx": 12303,
|
|
452
450
|
"MessageType_NeoSignedTx": 12304,
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
"MessageType_Wallpaper": 10035,
|
|
466
|
-
"MessageType_ResourceRequest": 10020,
|
|
467
|
-
"MessageType_ResourceAck": 10021,
|
|
468
|
-
"MessageType_ResourceUpdate": 10022,
|
|
469
|
-
"MessageType_ListResDir": 10023,
|
|
470
|
-
"MessageType_FileInfoList": 10024,
|
|
471
|
-
"MessageType_OnekeyGetFeatures": 10025,
|
|
472
|
-
"MessageType_OnekeyFeatures": 10026,
|
|
473
|
-
"MessageType_WriteSEPrivateKey": 10027,
|
|
474
|
-
"MessageType_GetPassphraseState": 10028,
|
|
475
|
-
"MessageType_PassphraseState": 10029,
|
|
476
|
-
"MessageType_UnLockDevice": 10030,
|
|
477
|
-
"MessageType_UnLockDeviceResponse": 10031,
|
|
478
|
-
"MessageType_FactoryDeviceInfoSettings": 60000,
|
|
479
|
-
"MessageType_FactoryGetDeviceInfo": 60001,
|
|
480
|
-
"MessageType_FactoryDeviceInfo": 60002,
|
|
481
|
-
"MessageType_GetProtoVersion": 60200,
|
|
482
|
-
"MessageType_ProtoVersion": 60201,
|
|
483
|
-
"MessageType_StartSession": 60205,
|
|
451
|
+
"MessageType_UiviewShowAddressRequest": 30200,
|
|
452
|
+
"MessageType_UiviewShowPublicKeyRequest": 30201,
|
|
453
|
+
"MessageType_UiviewConfirmTxRequest": 30202,
|
|
454
|
+
"MessageType_UiviewConfirmSignMessageRequest": 30203,
|
|
455
|
+
"MessageType_UiviewResponse": 30204,
|
|
456
|
+
"MessageType_DeviceFactoryInfoSet": 60000,
|
|
457
|
+
"MessageType_DeviceFactoryInfoGet": 60001,
|
|
458
|
+
"MessageType_DeviceFactoryInfo": 60002,
|
|
459
|
+
"MessageType_DeviceFactoryPermanentLock": 60003,
|
|
460
|
+
"MessageType_DeviceFactoryTest": 60004,
|
|
461
|
+
"MessageType_ProtocolInfoRequest": 60200,
|
|
462
|
+
"MessageType_ProtocolInfo": 60201,
|
|
484
463
|
"MessageType_Ping": 60206,
|
|
485
464
|
"MessageType_Success": 60207,
|
|
486
465
|
"MessageType_Failure": 60208,
|
|
487
|
-
"
|
|
488
|
-
"
|
|
466
|
+
"MessageType_DeviceReboot": 60400,
|
|
467
|
+
"MessageType_DeviceSettings": 60410,
|
|
468
|
+
"MessageType_DeviceSettingsGet": 60411,
|
|
469
|
+
"MessageType_DeviceSettingsSet": 60412,
|
|
470
|
+
"MessageType_DeviceSettingsPageShow": 60413,
|
|
471
|
+
"MessageType_DeviceCertificate": 60420,
|
|
472
|
+
"MessageType_DeviceCertificateWrite": 60421,
|
|
473
|
+
"MessageType_DeviceCertificateRead": 60422,
|
|
474
|
+
"MessageType_DeviceCertificateSignature": 60423,
|
|
475
|
+
"MessageType_DeviceCertificateSign": 60424,
|
|
476
|
+
"MessageType_SetWallpaper": 60430,
|
|
477
|
+
"MessageType_GetWallpaper": 60431,
|
|
478
|
+
"MessageType_Wallpaper": 60432,
|
|
479
|
+
"MessageType_DeviceInfoGet": 60600,
|
|
489
480
|
"MessageType_DeviceInfo": 60601,
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
481
|
+
"MessageType_DeviceStatusGet": 60602,
|
|
482
|
+
"MessageType_DeviceStatus": 60603,
|
|
483
|
+
"MessageType_DevGetOnboardingStatus": 60604,
|
|
484
|
+
"MessageType_DevOnboardingStatus": 60605,
|
|
485
|
+
"MessageType_DeviceSessionGet": 60606,
|
|
486
|
+
"MessageType_DeviceSession": 60607,
|
|
487
|
+
"MessageType_DeviceSessionAskPin": 60608,
|
|
488
|
+
"MessageType_DeviceSessionPinResult": 60609,
|
|
489
|
+
"MessageType_FilesystemPermissionFix": 60800,
|
|
493
490
|
"MessageType_FilesystemPathInfo": 60801,
|
|
494
491
|
"MessageType_FilesystemPathInfoQuery": 60802,
|
|
495
492
|
"MessageType_FilesystemFile": 60803,
|
|
@@ -501,11 +498,17 @@
|
|
|
501
498
|
"MessageType_FilesystemDirMake": 60809,
|
|
502
499
|
"MessageType_FilesystemDirRemove": 60810,
|
|
503
500
|
"MessageType_FilesystemFormat": 60811,
|
|
504
|
-
"
|
|
505
|
-
"
|
|
506
|
-
"
|
|
507
|
-
"
|
|
508
|
-
}
|
|
501
|
+
"MessageType_DeviceFirmwareUpdateRequest": 61000,
|
|
502
|
+
"MessageType_DeviceFirmwareUpdateStatusGet": 61001,
|
|
503
|
+
"MessageType_DeviceFirmwareUpdateStatus": 61002,
|
|
504
|
+
"MessageType_PortfolioUpdate": 61200
|
|
505
|
+
},
|
|
506
|
+
"reserved": [
|
|
507
|
+
[90, 92],
|
|
508
|
+
[114, 122],
|
|
509
|
+
[300, 304],
|
|
510
|
+
[309, 312]
|
|
511
|
+
]
|
|
509
512
|
},
|
|
510
513
|
"AlephiumGetAddress": {
|
|
511
514
|
"fields": {
|
|
@@ -4094,207 +4097,6 @@
|
|
|
4094
4097
|
}
|
|
4095
4098
|
}
|
|
4096
4099
|
},
|
|
4097
|
-
"DebugLinkInput": {
|
|
4098
|
-
"fields": {
|
|
4099
|
-
"x": {
|
|
4100
|
-
"type": "uint32",
|
|
4101
|
-
"id": 1
|
|
4102
|
-
},
|
|
4103
|
-
"y": {
|
|
4104
|
-
"type": "uint32",
|
|
4105
|
-
"id": 2
|
|
4106
|
-
},
|
|
4107
|
-
"duration_ms": {
|
|
4108
|
-
"type": "uint32",
|
|
4109
|
-
"id": 3
|
|
4110
|
-
},
|
|
4111
|
-
"x_end": {
|
|
4112
|
-
"type": "uint32",
|
|
4113
|
-
"id": 4
|
|
4114
|
-
},
|
|
4115
|
-
"y_end": {
|
|
4116
|
-
"type": "uint32",
|
|
4117
|
-
"id": 5
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4120
|
-
},
|
|
4121
|
-
"DebugLinkLayout": {
|
|
4122
|
-
"fields": {
|
|
4123
|
-
"lines": {
|
|
4124
|
-
"rule": "repeated",
|
|
4125
|
-
"type": "string",
|
|
4126
|
-
"id": 1
|
|
4127
|
-
}
|
|
4128
|
-
}
|
|
4129
|
-
},
|
|
4130
|
-
"DebugLinkReseedRandom": {
|
|
4131
|
-
"fields": {
|
|
4132
|
-
"value": {
|
|
4133
|
-
"type": "uint32",
|
|
4134
|
-
"id": 1
|
|
4135
|
-
}
|
|
4136
|
-
}
|
|
4137
|
-
},
|
|
4138
|
-
"DebugLinkRecordScreen": {
|
|
4139
|
-
"fields": {
|
|
4140
|
-
"target_directory": {
|
|
4141
|
-
"type": "string",
|
|
4142
|
-
"id": 1
|
|
4143
|
-
}
|
|
4144
|
-
}
|
|
4145
|
-
},
|
|
4146
|
-
"DebugLinkGetState": {
|
|
4147
|
-
"fields": {
|
|
4148
|
-
"wait_word_list": {
|
|
4149
|
-
"type": "bool",
|
|
4150
|
-
"id": 1
|
|
4151
|
-
},
|
|
4152
|
-
"wait_word_pos": {
|
|
4153
|
-
"type": "bool",
|
|
4154
|
-
"id": 2
|
|
4155
|
-
},
|
|
4156
|
-
"wait_layout": {
|
|
4157
|
-
"type": "bool",
|
|
4158
|
-
"id": 3
|
|
4159
|
-
}
|
|
4160
|
-
}
|
|
4161
|
-
},
|
|
4162
|
-
"DebugLinkState": {
|
|
4163
|
-
"fields": {
|
|
4164
|
-
"layout": {
|
|
4165
|
-
"type": "bytes",
|
|
4166
|
-
"id": 1
|
|
4167
|
-
},
|
|
4168
|
-
"pin": {
|
|
4169
|
-
"type": "string",
|
|
4170
|
-
"id": 2
|
|
4171
|
-
},
|
|
4172
|
-
"matrix": {
|
|
4173
|
-
"type": "string",
|
|
4174
|
-
"id": 3
|
|
4175
|
-
},
|
|
4176
|
-
"mnemonic_secret": {
|
|
4177
|
-
"type": "bytes",
|
|
4178
|
-
"id": 4
|
|
4179
|
-
},
|
|
4180
|
-
"node": {
|
|
4181
|
-
"type": "HDNodeType",
|
|
4182
|
-
"id": 5
|
|
4183
|
-
},
|
|
4184
|
-
"passphrase_protection": {
|
|
4185
|
-
"type": "bool",
|
|
4186
|
-
"id": 6
|
|
4187
|
-
},
|
|
4188
|
-
"reset_word": {
|
|
4189
|
-
"type": "string",
|
|
4190
|
-
"id": 7
|
|
4191
|
-
},
|
|
4192
|
-
"reset_entropy": {
|
|
4193
|
-
"type": "bytes",
|
|
4194
|
-
"id": 8
|
|
4195
|
-
},
|
|
4196
|
-
"recovery_fake_word": {
|
|
4197
|
-
"type": "string",
|
|
4198
|
-
"id": 9
|
|
4199
|
-
},
|
|
4200
|
-
"recovery_word_pos": {
|
|
4201
|
-
"type": "uint32",
|
|
4202
|
-
"id": 10
|
|
4203
|
-
},
|
|
4204
|
-
"reset_word_pos": {
|
|
4205
|
-
"type": "uint32",
|
|
4206
|
-
"id": 11
|
|
4207
|
-
},
|
|
4208
|
-
"mnemonic_type": {
|
|
4209
|
-
"type": "BackupType",
|
|
4210
|
-
"id": 12
|
|
4211
|
-
},
|
|
4212
|
-
"layout_lines": {
|
|
4213
|
-
"rule": "repeated",
|
|
4214
|
-
"type": "string",
|
|
4215
|
-
"id": 13
|
|
4216
|
-
}
|
|
4217
|
-
}
|
|
4218
|
-
},
|
|
4219
|
-
"DebugLinkStop": {
|
|
4220
|
-
"fields": {}
|
|
4221
|
-
},
|
|
4222
|
-
"DebugLinkLog": {
|
|
4223
|
-
"fields": {
|
|
4224
|
-
"level": {
|
|
4225
|
-
"type": "uint32",
|
|
4226
|
-
"id": 1
|
|
4227
|
-
},
|
|
4228
|
-
"bucket": {
|
|
4229
|
-
"type": "string",
|
|
4230
|
-
"id": 2
|
|
4231
|
-
},
|
|
4232
|
-
"text": {
|
|
4233
|
-
"type": "string",
|
|
4234
|
-
"id": 3
|
|
4235
|
-
}
|
|
4236
|
-
}
|
|
4237
|
-
},
|
|
4238
|
-
"DebugLinkMemoryRead": {
|
|
4239
|
-
"fields": {
|
|
4240
|
-
"address": {
|
|
4241
|
-
"type": "uint32",
|
|
4242
|
-
"id": 1
|
|
4243
|
-
},
|
|
4244
|
-
"length": {
|
|
4245
|
-
"type": "uint32",
|
|
4246
|
-
"id": 2
|
|
4247
|
-
}
|
|
4248
|
-
}
|
|
4249
|
-
},
|
|
4250
|
-
"DebugLinkMemory": {
|
|
4251
|
-
"fields": {
|
|
4252
|
-
"memory": {
|
|
4253
|
-
"type": "bytes",
|
|
4254
|
-
"id": 1
|
|
4255
|
-
}
|
|
4256
|
-
}
|
|
4257
|
-
},
|
|
4258
|
-
"DebugLinkMemoryWrite": {
|
|
4259
|
-
"fields": {
|
|
4260
|
-
"address": {
|
|
4261
|
-
"type": "uint32",
|
|
4262
|
-
"id": 1
|
|
4263
|
-
},
|
|
4264
|
-
"memory": {
|
|
4265
|
-
"type": "bytes",
|
|
4266
|
-
"id": 2
|
|
4267
|
-
},
|
|
4268
|
-
"flash": {
|
|
4269
|
-
"type": "bool",
|
|
4270
|
-
"id": 3
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
},
|
|
4274
|
-
"DebugLinkFlashErase": {
|
|
4275
|
-
"fields": {
|
|
4276
|
-
"sector": {
|
|
4277
|
-
"type": "uint32",
|
|
4278
|
-
"id": 1
|
|
4279
|
-
}
|
|
4280
|
-
}
|
|
4281
|
-
},
|
|
4282
|
-
"DebugLinkEraseSdCard": {
|
|
4283
|
-
"fields": {
|
|
4284
|
-
"format": {
|
|
4285
|
-
"type": "bool",
|
|
4286
|
-
"id": 1
|
|
4287
|
-
}
|
|
4288
|
-
}
|
|
4289
|
-
},
|
|
4290
|
-
"DebugLinkWatchLayout": {
|
|
4291
|
-
"fields": {
|
|
4292
|
-
"watch": {
|
|
4293
|
-
"type": "bool",
|
|
4294
|
-
"id": 1
|
|
4295
|
-
}
|
|
4296
|
-
}
|
|
4297
|
-
},
|
|
4298
4100
|
"EosGetPublicKey": {
|
|
4299
4101
|
"fields": {
|
|
4300
4102
|
"address_n": {
|
|
@@ -5602,6 +5404,37 @@
|
|
|
5602
5404
|
}
|
|
5603
5405
|
}
|
|
5604
5406
|
},
|
|
5407
|
+
"EthereumSignTypedDataQR": {
|
|
5408
|
+
"fields": {
|
|
5409
|
+
"address_n": {
|
|
5410
|
+
"rule": "repeated",
|
|
5411
|
+
"type": "uint32",
|
|
5412
|
+
"id": 1,
|
|
5413
|
+
"options": {
|
|
5414
|
+
"packed": false
|
|
5415
|
+
}
|
|
5416
|
+
},
|
|
5417
|
+
"json_data": {
|
|
5418
|
+
"type": "bytes",
|
|
5419
|
+
"id": 2
|
|
5420
|
+
},
|
|
5421
|
+
"chain_id": {
|
|
5422
|
+
"type": "uint64",
|
|
5423
|
+
"id": 3
|
|
5424
|
+
},
|
|
5425
|
+
"metamask_v4_compat": {
|
|
5426
|
+
"type": "bool",
|
|
5427
|
+
"id": 4,
|
|
5428
|
+
"options": {
|
|
5429
|
+
"default": true
|
|
5430
|
+
}
|
|
5431
|
+
},
|
|
5432
|
+
"request_id": {
|
|
5433
|
+
"type": "bytes",
|
|
5434
|
+
"id": 5
|
|
5435
|
+
}
|
|
5436
|
+
}
|
|
5437
|
+
},
|
|
5605
5438
|
"EthereumGetPublicKeyOneKey": {
|
|
5606
5439
|
"fields": {
|
|
5607
5440
|
"address_n": {
|
|
@@ -6328,7 +6161,7 @@
|
|
|
6328
6161
|
"PromptTemporarily": 2
|
|
6329
6162
|
}
|
|
6330
6163
|
},
|
|
6331
|
-
"
|
|
6164
|
+
"StartSession": {
|
|
6332
6165
|
"fields": {
|
|
6333
6166
|
"session_id": {
|
|
6334
6167
|
"type": "bytes",
|
|
@@ -6344,21 +6177,10 @@
|
|
|
6344
6177
|
"derive_cardano": {
|
|
6345
6178
|
"type": "bool",
|
|
6346
6179
|
"id": 3
|
|
6347
|
-
},
|
|
6348
|
-
"passphrase_state": {
|
|
6349
|
-
"type": "string",
|
|
6350
|
-
"id": 8000
|
|
6351
|
-
},
|
|
6352
|
-
"is_contains_attach": {
|
|
6353
|
-
"type": "bool",
|
|
6354
|
-
"id": 8001
|
|
6355
6180
|
}
|
|
6356
6181
|
}
|
|
6357
6182
|
},
|
|
6358
|
-
"
|
|
6359
|
-
"fields": {}
|
|
6360
|
-
},
|
|
6361
|
-
"OnekeyGetFeatures": {
|
|
6183
|
+
"EndSession": {
|
|
6362
6184
|
"fields": {}
|
|
6363
6185
|
},
|
|
6364
6186
|
"OneKeyDeviceType": {
|
|
@@ -6382,625 +6204,240 @@
|
|
|
6382
6204
|
"APP": 1
|
|
6383
6205
|
}
|
|
6384
6206
|
},
|
|
6385
|
-
"
|
|
6207
|
+
"OnekeyFeatures": {
|
|
6386
6208
|
"fields": {
|
|
6387
|
-
"
|
|
6388
|
-
"type": "
|
|
6209
|
+
"onekey_device_type": {
|
|
6210
|
+
"type": "OneKeyDeviceType",
|
|
6389
6211
|
"id": 1
|
|
6390
6212
|
},
|
|
6391
|
-
"
|
|
6392
|
-
"
|
|
6393
|
-
"type": "uint32",
|
|
6213
|
+
"onekey_romloader_version": {
|
|
6214
|
+
"type": "string",
|
|
6394
6215
|
"id": 2
|
|
6395
6216
|
},
|
|
6396
|
-
"
|
|
6397
|
-
"
|
|
6398
|
-
"type": "uint32",
|
|
6217
|
+
"onekey_bootloader_version": {
|
|
6218
|
+
"type": "string",
|
|
6399
6219
|
"id": 3
|
|
6400
6220
|
},
|
|
6401
|
-
"
|
|
6402
|
-
"
|
|
6403
|
-
"type": "uint32",
|
|
6221
|
+
"onekey_firmware_version": {
|
|
6222
|
+
"type": "string",
|
|
6404
6223
|
"id": 4
|
|
6405
6224
|
},
|
|
6406
|
-
"
|
|
6407
|
-
"type": "
|
|
6225
|
+
"onekey_romloader_hash": {
|
|
6226
|
+
"type": "bytes",
|
|
6408
6227
|
"id": 5
|
|
6409
6228
|
},
|
|
6410
|
-
"
|
|
6411
|
-
"type": "
|
|
6229
|
+
"onekey_bootloader_hash": {
|
|
6230
|
+
"type": "bytes",
|
|
6412
6231
|
"id": 6
|
|
6413
6232
|
},
|
|
6414
|
-
"
|
|
6415
|
-
"type": "
|
|
6233
|
+
"onekey_firmware_hash": {
|
|
6234
|
+
"type": "bytes",
|
|
6416
6235
|
"id": 7
|
|
6417
6236
|
},
|
|
6418
|
-
"
|
|
6419
|
-
"type": "
|
|
6237
|
+
"onekey_romloader_build_id": {
|
|
6238
|
+
"type": "string",
|
|
6420
6239
|
"id": 8
|
|
6421
6240
|
},
|
|
6422
|
-
"
|
|
6241
|
+
"onekey_bootloader_build_id": {
|
|
6423
6242
|
"type": "string",
|
|
6424
6243
|
"id": 9
|
|
6425
6244
|
},
|
|
6426
|
-
"
|
|
6245
|
+
"onekey_firmware_build_id": {
|
|
6427
6246
|
"type": "string",
|
|
6428
6247
|
"id": 10
|
|
6429
6248
|
},
|
|
6430
|
-
"
|
|
6431
|
-
"type": "
|
|
6249
|
+
"onekey_serial_no": {
|
|
6250
|
+
"type": "string",
|
|
6251
|
+
"id": 11
|
|
6252
|
+
},
|
|
6253
|
+
"onekey_coprocessor_bt_name": {
|
|
6254
|
+
"type": "string",
|
|
6432
6255
|
"id": 12
|
|
6433
6256
|
},
|
|
6434
|
-
"
|
|
6435
|
-
"type": "
|
|
6257
|
+
"onekey_coprocessor_version": {
|
|
6258
|
+
"type": "string",
|
|
6436
6259
|
"id": 13
|
|
6437
6260
|
},
|
|
6438
|
-
"
|
|
6439
|
-
"type": "
|
|
6261
|
+
"onekey_coprocessor_build_id": {
|
|
6262
|
+
"type": "string",
|
|
6440
6263
|
"id": 14
|
|
6441
6264
|
},
|
|
6442
|
-
"
|
|
6443
|
-
"type": "
|
|
6265
|
+
"onekey_coprocessor_hash": {
|
|
6266
|
+
"type": "bytes",
|
|
6444
6267
|
"id": 15
|
|
6445
6268
|
},
|
|
6446
|
-
"
|
|
6447
|
-
"type": "
|
|
6269
|
+
"onekey_se_type": {
|
|
6270
|
+
"type": "OneKeySeType",
|
|
6448
6271
|
"id": 16
|
|
6449
6272
|
},
|
|
6450
|
-
"
|
|
6451
|
-
"type": "
|
|
6452
|
-
"id": 17
|
|
6453
|
-
"options": {
|
|
6454
|
-
"deprecated": true
|
|
6455
|
-
}
|
|
6273
|
+
"onekey_se01_state": {
|
|
6274
|
+
"type": "OneKeySEState",
|
|
6275
|
+
"id": 17
|
|
6456
6276
|
},
|
|
6457
|
-
"
|
|
6458
|
-
"type": "
|
|
6277
|
+
"onekey_se02_state": {
|
|
6278
|
+
"type": "OneKeySEState",
|
|
6459
6279
|
"id": 18
|
|
6460
6280
|
},
|
|
6461
|
-
"
|
|
6462
|
-
"type": "
|
|
6281
|
+
"onekey_se03_state": {
|
|
6282
|
+
"type": "OneKeySEState",
|
|
6463
6283
|
"id": 19
|
|
6464
6284
|
},
|
|
6465
|
-
"
|
|
6466
|
-
"type": "
|
|
6285
|
+
"onekey_se04_state": {
|
|
6286
|
+
"type": "OneKeySEState",
|
|
6467
6287
|
"id": 20
|
|
6468
6288
|
},
|
|
6469
|
-
"
|
|
6289
|
+
"onekey_se01_version": {
|
|
6470
6290
|
"type": "string",
|
|
6471
6291
|
"id": 21
|
|
6472
6292
|
},
|
|
6473
|
-
"
|
|
6474
|
-
"type": "
|
|
6293
|
+
"onekey_se02_version": {
|
|
6294
|
+
"type": "string",
|
|
6475
6295
|
"id": 22
|
|
6476
6296
|
},
|
|
6477
|
-
"
|
|
6478
|
-
"type": "
|
|
6297
|
+
"onekey_se03_version": {
|
|
6298
|
+
"type": "string",
|
|
6479
6299
|
"id": 23
|
|
6480
6300
|
},
|
|
6481
|
-
"
|
|
6482
|
-
"type": "
|
|
6301
|
+
"onekey_se04_version": {
|
|
6302
|
+
"type": "string",
|
|
6483
6303
|
"id": 24
|
|
6484
6304
|
},
|
|
6485
|
-
"
|
|
6486
|
-
"type": "
|
|
6305
|
+
"onekey_se01_hash": {
|
|
6306
|
+
"type": "bytes",
|
|
6487
6307
|
"id": 25
|
|
6488
6308
|
},
|
|
6489
|
-
"
|
|
6490
|
-
"type": "bool",
|
|
6491
|
-
"id": 27
|
|
6492
|
-
},
|
|
6493
|
-
"no_backup": {
|
|
6494
|
-
"type": "bool",
|
|
6495
|
-
"id": 28
|
|
6496
|
-
},
|
|
6497
|
-
"recovery_mode": {
|
|
6498
|
-
"type": "bool",
|
|
6499
|
-
"id": 29
|
|
6500
|
-
},
|
|
6501
|
-
"capabilities": {
|
|
6502
|
-
"rule": "repeated",
|
|
6503
|
-
"type": "Capability",
|
|
6504
|
-
"id": 30,
|
|
6505
|
-
"options": {
|
|
6506
|
-
"packed": false
|
|
6507
|
-
}
|
|
6508
|
-
},
|
|
6509
|
-
"backup_type": {
|
|
6510
|
-
"type": "BackupType",
|
|
6511
|
-
"id": 31
|
|
6512
|
-
},
|
|
6513
|
-
"sd_card_present": {
|
|
6514
|
-
"type": "bool",
|
|
6515
|
-
"id": 32
|
|
6516
|
-
},
|
|
6517
|
-
"sd_protection": {
|
|
6518
|
-
"type": "bool",
|
|
6519
|
-
"id": 33
|
|
6520
|
-
},
|
|
6521
|
-
"wipe_code_protection": {
|
|
6522
|
-
"type": "bool",
|
|
6523
|
-
"id": 34
|
|
6524
|
-
},
|
|
6525
|
-
"session_id": {
|
|
6309
|
+
"onekey_se02_hash": {
|
|
6526
6310
|
"type": "bytes",
|
|
6527
|
-
"id":
|
|
6528
|
-
},
|
|
6529
|
-
"passphrase_always_on_device": {
|
|
6530
|
-
"type": "bool",
|
|
6531
|
-
"id": 36
|
|
6532
|
-
},
|
|
6533
|
-
"safety_checks": {
|
|
6534
|
-
"type": "SafetyCheckLevel",
|
|
6535
|
-
"id": 37
|
|
6536
|
-
},
|
|
6537
|
-
"auto_lock_delay_ms": {
|
|
6538
|
-
"type": "uint32",
|
|
6539
|
-
"id": 38
|
|
6540
|
-
},
|
|
6541
|
-
"display_rotation": {
|
|
6542
|
-
"type": "uint32",
|
|
6543
|
-
"id": 39
|
|
6544
|
-
},
|
|
6545
|
-
"experimental_features": {
|
|
6546
|
-
"type": "bool",
|
|
6547
|
-
"id": 40
|
|
6548
|
-
},
|
|
6549
|
-
"offset": {
|
|
6550
|
-
"type": "uint32",
|
|
6551
|
-
"id": 500
|
|
6552
|
-
},
|
|
6553
|
-
"ble_name": {
|
|
6554
|
-
"type": "string",
|
|
6555
|
-
"id": 501
|
|
6556
|
-
},
|
|
6557
|
-
"ble_ver": {
|
|
6558
|
-
"type": "string",
|
|
6559
|
-
"id": 502
|
|
6560
|
-
},
|
|
6561
|
-
"ble_enable": {
|
|
6562
|
-
"type": "bool",
|
|
6563
|
-
"id": 503
|
|
6564
|
-
},
|
|
6565
|
-
"se_enable": {
|
|
6566
|
-
"type": "bool",
|
|
6567
|
-
"id": 504
|
|
6568
|
-
},
|
|
6569
|
-
"se_ver": {
|
|
6570
|
-
"type": "string",
|
|
6571
|
-
"id": 506
|
|
6311
|
+
"id": 26
|
|
6572
6312
|
},
|
|
6573
|
-
"
|
|
6574
|
-
"type": "
|
|
6575
|
-
"id":
|
|
6313
|
+
"onekey_se03_hash": {
|
|
6314
|
+
"type": "bytes",
|
|
6315
|
+
"id": 27
|
|
6576
6316
|
},
|
|
6577
|
-
"
|
|
6578
|
-
"type": "
|
|
6579
|
-
"id":
|
|
6317
|
+
"onekey_se04_hash": {
|
|
6318
|
+
"type": "bytes",
|
|
6319
|
+
"id": 28
|
|
6580
6320
|
},
|
|
6581
|
-
"
|
|
6321
|
+
"onekey_se01_build_id": {
|
|
6582
6322
|
"type": "string",
|
|
6583
|
-
"id":
|
|
6323
|
+
"id": 29
|
|
6584
6324
|
},
|
|
6585
|
-
"
|
|
6325
|
+
"onekey_se02_build_id": {
|
|
6586
6326
|
"type": "string",
|
|
6587
|
-
"id":
|
|
6327
|
+
"id": 30
|
|
6588
6328
|
},
|
|
6589
|
-
"
|
|
6329
|
+
"onekey_se03_build_id": {
|
|
6590
6330
|
"type": "string",
|
|
6591
|
-
"id":
|
|
6331
|
+
"id": 31
|
|
6592
6332
|
},
|
|
6593
|
-
"
|
|
6333
|
+
"onekey_se04_build_id": {
|
|
6594
6334
|
"type": "string",
|
|
6595
|
-
"id":
|
|
6596
|
-
},
|
|
6597
|
-
"initstates": {
|
|
6598
|
-
"type": "uint32",
|
|
6599
|
-
"id": 513
|
|
6600
|
-
},
|
|
6601
|
-
"NFT_voucher": {
|
|
6602
|
-
"type": "bytes",
|
|
6603
|
-
"id": 514
|
|
6335
|
+
"id": 32
|
|
6604
6336
|
},
|
|
6605
|
-
"
|
|
6337
|
+
"onekey_se01_bootloader_version": {
|
|
6606
6338
|
"type": "string",
|
|
6607
|
-
"id":
|
|
6339
|
+
"id": 33
|
|
6608
6340
|
},
|
|
6609
|
-
"
|
|
6341
|
+
"onekey_se02_bootloader_version": {
|
|
6610
6342
|
"type": "string",
|
|
6611
|
-
"id":
|
|
6612
|
-
},
|
|
6613
|
-
"coin_switch": {
|
|
6614
|
-
"type": "uint32",
|
|
6615
|
-
"id": 517
|
|
6616
|
-
},
|
|
6617
|
-
"build_id": {
|
|
6618
|
-
"type": "bytes",
|
|
6619
|
-
"id": 518
|
|
6343
|
+
"id": 34
|
|
6620
6344
|
},
|
|
6621
|
-
"
|
|
6345
|
+
"onekey_se03_bootloader_version": {
|
|
6622
6346
|
"type": "string",
|
|
6623
|
-
"id":
|
|
6624
|
-
},
|
|
6625
|
-
"busy": {
|
|
6626
|
-
"type": "bool",
|
|
6627
|
-
"id": 41
|
|
6628
|
-
},
|
|
6629
|
-
"onekey_device_type": {
|
|
6630
|
-
"type": "OneKeyDeviceType",
|
|
6631
|
-
"id": 600
|
|
6632
|
-
},
|
|
6633
|
-
"onekey_se_type": {
|
|
6634
|
-
"type": "OneKeySeType",
|
|
6635
|
-
"id": 601
|
|
6347
|
+
"id": 35
|
|
6636
6348
|
},
|
|
6637
|
-
"
|
|
6349
|
+
"onekey_se04_bootloader_version": {
|
|
6638
6350
|
"type": "string",
|
|
6639
|
-
"id":
|
|
6351
|
+
"id": 36
|
|
6640
6352
|
},
|
|
6641
|
-
"
|
|
6353
|
+
"onekey_se01_bootloader_hash": {
|
|
6642
6354
|
"type": "bytes",
|
|
6643
|
-
"id":
|
|
6644
|
-
},
|
|
6645
|
-
"onekey_boot_version": {
|
|
6646
|
-
"type": "string",
|
|
6647
|
-
"id": 604
|
|
6355
|
+
"id": 37
|
|
6648
6356
|
},
|
|
6649
|
-
"
|
|
6357
|
+
"onekey_se02_bootloader_hash": {
|
|
6650
6358
|
"type": "bytes",
|
|
6651
|
-
"id":
|
|
6652
|
-
},
|
|
6653
|
-
"onekey_se01_version": {
|
|
6654
|
-
"type": "string",
|
|
6655
|
-
"id": 606
|
|
6359
|
+
"id": 38
|
|
6656
6360
|
},
|
|
6657
|
-
"
|
|
6361
|
+
"onekey_se03_bootloader_hash": {
|
|
6658
6362
|
"type": "bytes",
|
|
6659
|
-
"id":
|
|
6660
|
-
},
|
|
6661
|
-
"onekey_se01_build_id": {
|
|
6662
|
-
"type": "string",
|
|
6663
|
-
"id": 608
|
|
6664
|
-
},
|
|
6665
|
-
"onekey_firmware_version": {
|
|
6666
|
-
"type": "string",
|
|
6667
|
-
"id": 609
|
|
6363
|
+
"id": 39
|
|
6668
6364
|
},
|
|
6669
|
-
"
|
|
6365
|
+
"onekey_se04_bootloader_hash": {
|
|
6670
6366
|
"type": "bytes",
|
|
6671
|
-
"id":
|
|
6672
|
-
},
|
|
6673
|
-
"onekey_firmware_build_id": {
|
|
6674
|
-
"type": "string",
|
|
6675
|
-
"id": 611
|
|
6676
|
-
},
|
|
6677
|
-
"onekey_serial_no": {
|
|
6678
|
-
"type": "string",
|
|
6679
|
-
"id": 612
|
|
6680
|
-
},
|
|
6681
|
-
"onekey_boot_build_id": {
|
|
6682
|
-
"type": "string",
|
|
6683
|
-
"id": 613
|
|
6684
|
-
},
|
|
6685
|
-
"onekey_ble_name": {
|
|
6686
|
-
"type": "string",
|
|
6687
|
-
"id": 614
|
|
6688
|
-
},
|
|
6689
|
-
"onekey_ble_version": {
|
|
6690
|
-
"type": "string",
|
|
6691
|
-
"id": 615
|
|
6367
|
+
"id": 40
|
|
6692
6368
|
},
|
|
6693
|
-
"
|
|
6369
|
+
"onekey_se01_bootloader_build_id": {
|
|
6694
6370
|
"type": "string",
|
|
6695
|
-
"id":
|
|
6696
|
-
},
|
|
6697
|
-
"onekey_ble_hash": {
|
|
6698
|
-
"type": "bytes",
|
|
6699
|
-
"id": 617
|
|
6371
|
+
"id": 41
|
|
6700
6372
|
},
|
|
6701
|
-
"
|
|
6373
|
+
"onekey_se02_bootloader_build_id": {
|
|
6702
6374
|
"type": "string",
|
|
6703
|
-
"id":
|
|
6375
|
+
"id": 42
|
|
6704
6376
|
},
|
|
6705
|
-
"
|
|
6377
|
+
"onekey_se03_bootloader_build_id": {
|
|
6706
6378
|
"type": "string",
|
|
6707
|
-
"id":
|
|
6379
|
+
"id": 43
|
|
6708
6380
|
},
|
|
6709
|
-
"
|
|
6381
|
+
"onekey_se04_bootloader_build_id": {
|
|
6710
6382
|
"type": "string",
|
|
6711
|
-
"id":
|
|
6712
|
-
},
|
|
6713
|
-
"onekey_se01_state": {
|
|
6714
|
-
"type": "OneKeySEState",
|
|
6715
|
-
"id": 621
|
|
6716
|
-
},
|
|
6717
|
-
"onekey_se02_state": {
|
|
6718
|
-
"type": "OneKeySEState",
|
|
6719
|
-
"id": 622
|
|
6720
|
-
},
|
|
6721
|
-
"onekey_se03_state": {
|
|
6722
|
-
"type": "OneKeySEState",
|
|
6723
|
-
"id": 623
|
|
6724
|
-
},
|
|
6725
|
-
"onekey_se04_state": {
|
|
6726
|
-
"type": "OneKeySEState",
|
|
6727
|
-
"id": 624
|
|
6728
|
-
},
|
|
6729
|
-
"attach_to_pin_user": {
|
|
6730
|
-
"type": "bool",
|
|
6731
|
-
"id": 625
|
|
6732
|
-
},
|
|
6733
|
-
"unlocked_attach_pin": {
|
|
6734
|
-
"type": "bool",
|
|
6735
|
-
"id": 626
|
|
6383
|
+
"id": 44
|
|
6736
6384
|
}
|
|
6737
|
-
}
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
"Capability_Cardano": 4,
|
|
6748
|
-
"Capability_Crypto": 5,
|
|
6749
|
-
"Capability_EOS": 6,
|
|
6750
|
-
"Capability_Ethereum": 7,
|
|
6751
|
-
"Capability_Lisk": 8,
|
|
6752
|
-
"Capability_Monero": 9,
|
|
6753
|
-
"Capability_NEM": 10,
|
|
6754
|
-
"Capability_Ripple": 11,
|
|
6755
|
-
"Capability_Stellar": 12,
|
|
6756
|
-
"Capability_Tezos": 13,
|
|
6757
|
-
"Capability_U2F": 14,
|
|
6758
|
-
"Capability_Shamir": 15,
|
|
6759
|
-
"Capability_ShamirGroups": 16,
|
|
6760
|
-
"Capability_PassphraseEntry": 17,
|
|
6761
|
-
"Capability_AttachToPin": 18,
|
|
6762
|
-
"Capability_EthereumTypedData": 1000
|
|
6763
|
-
}
|
|
6385
|
+
}
|
|
6386
|
+
},
|
|
6387
|
+
"LockDevice": {
|
|
6388
|
+
"fields": {}
|
|
6389
|
+
},
|
|
6390
|
+
"SetBusy": {
|
|
6391
|
+
"fields": {
|
|
6392
|
+
"expiry_ms": {
|
|
6393
|
+
"type": "uint32",
|
|
6394
|
+
"id": 1
|
|
6764
6395
|
}
|
|
6765
6396
|
}
|
|
6766
6397
|
},
|
|
6767
|
-
"
|
|
6398
|
+
"ApplySettings": {
|
|
6768
6399
|
"fields": {
|
|
6769
|
-
"
|
|
6770
|
-
"type": "
|
|
6400
|
+
"language": {
|
|
6401
|
+
"type": "string",
|
|
6771
6402
|
"id": 1
|
|
6772
6403
|
},
|
|
6773
|
-
"
|
|
6404
|
+
"label": {
|
|
6774
6405
|
"type": "string",
|
|
6775
6406
|
"id": 2
|
|
6776
6407
|
},
|
|
6777
|
-
"
|
|
6778
|
-
"type": "
|
|
6408
|
+
"use_passphrase": {
|
|
6409
|
+
"type": "bool",
|
|
6779
6410
|
"id": 3
|
|
6780
6411
|
},
|
|
6781
|
-
"
|
|
6782
|
-
"type": "
|
|
6412
|
+
"homescreen": {
|
|
6413
|
+
"type": "bytes",
|
|
6783
6414
|
"id": 4
|
|
6784
6415
|
},
|
|
6785
|
-
"
|
|
6786
|
-
"type": "
|
|
6787
|
-
"id": 5
|
|
6416
|
+
"_passphrase_source": {
|
|
6417
|
+
"type": "uint32",
|
|
6418
|
+
"id": 5,
|
|
6419
|
+
"options": {
|
|
6420
|
+
"deprecated": true
|
|
6421
|
+
}
|
|
6788
6422
|
},
|
|
6789
|
-
"
|
|
6790
|
-
"type": "
|
|
6423
|
+
"auto_lock_delay_ms": {
|
|
6424
|
+
"type": "uint32",
|
|
6791
6425
|
"id": 6
|
|
6792
6426
|
},
|
|
6793
|
-
"
|
|
6794
|
-
"type": "
|
|
6427
|
+
"display_rotation": {
|
|
6428
|
+
"type": "uint32",
|
|
6795
6429
|
"id": 7
|
|
6796
6430
|
},
|
|
6797
|
-
"
|
|
6798
|
-
"type": "
|
|
6431
|
+
"passphrase_always_on_device": {
|
|
6432
|
+
"type": "bool",
|
|
6799
6433
|
"id": 8
|
|
6800
6434
|
},
|
|
6801
|
-
"
|
|
6802
|
-
"type": "
|
|
6435
|
+
"safety_checks": {
|
|
6436
|
+
"type": "SafetyCheckLevel",
|
|
6803
6437
|
"id": 9
|
|
6804
6438
|
},
|
|
6805
|
-
"
|
|
6806
|
-
"type": "
|
|
6807
|
-
"id": 10
|
|
6808
|
-
},
|
|
6809
|
-
"onekey_serial_no": {
|
|
6810
|
-
"type": "string",
|
|
6811
|
-
"id": 11
|
|
6812
|
-
},
|
|
6813
|
-
"onekey_ble_name": {
|
|
6814
|
-
"type": "string",
|
|
6815
|
-
"id": 12
|
|
6816
|
-
},
|
|
6817
|
-
"onekey_ble_version": {
|
|
6818
|
-
"type": "string",
|
|
6819
|
-
"id": 13
|
|
6820
|
-
},
|
|
6821
|
-
"onekey_ble_build_id": {
|
|
6822
|
-
"type": "string",
|
|
6823
|
-
"id": 14
|
|
6824
|
-
},
|
|
6825
|
-
"onekey_ble_hash": {
|
|
6826
|
-
"type": "bytes",
|
|
6827
|
-
"id": 15
|
|
6828
|
-
},
|
|
6829
|
-
"onekey_se_type": {
|
|
6830
|
-
"type": "OneKeySeType",
|
|
6831
|
-
"id": 16
|
|
6832
|
-
},
|
|
6833
|
-
"onekey_se01_state": {
|
|
6834
|
-
"type": "OneKeySEState",
|
|
6835
|
-
"id": 17
|
|
6836
|
-
},
|
|
6837
|
-
"onekey_se02_state": {
|
|
6838
|
-
"type": "OneKeySEState",
|
|
6839
|
-
"id": 18
|
|
6840
|
-
},
|
|
6841
|
-
"onekey_se03_state": {
|
|
6842
|
-
"type": "OneKeySEState",
|
|
6843
|
-
"id": 19
|
|
6844
|
-
},
|
|
6845
|
-
"onekey_se04_state": {
|
|
6846
|
-
"type": "OneKeySEState",
|
|
6847
|
-
"id": 20
|
|
6848
|
-
},
|
|
6849
|
-
"onekey_se01_version": {
|
|
6850
|
-
"type": "string",
|
|
6851
|
-
"id": 21
|
|
6852
|
-
},
|
|
6853
|
-
"onekey_se02_version": {
|
|
6854
|
-
"type": "string",
|
|
6855
|
-
"id": 22
|
|
6856
|
-
},
|
|
6857
|
-
"onekey_se03_version": {
|
|
6858
|
-
"type": "string",
|
|
6859
|
-
"id": 23
|
|
6860
|
-
},
|
|
6861
|
-
"onekey_se04_version": {
|
|
6862
|
-
"type": "string",
|
|
6863
|
-
"id": 24
|
|
6864
|
-
},
|
|
6865
|
-
"onekey_se01_hash": {
|
|
6866
|
-
"type": "bytes",
|
|
6867
|
-
"id": 25
|
|
6868
|
-
},
|
|
6869
|
-
"onekey_se02_hash": {
|
|
6870
|
-
"type": "bytes",
|
|
6871
|
-
"id": 26
|
|
6872
|
-
},
|
|
6873
|
-
"onekey_se03_hash": {
|
|
6874
|
-
"type": "bytes",
|
|
6875
|
-
"id": 27
|
|
6876
|
-
},
|
|
6877
|
-
"onekey_se04_hash": {
|
|
6878
|
-
"type": "bytes",
|
|
6879
|
-
"id": 28
|
|
6880
|
-
},
|
|
6881
|
-
"onekey_se01_build_id": {
|
|
6882
|
-
"type": "string",
|
|
6883
|
-
"id": 29
|
|
6884
|
-
},
|
|
6885
|
-
"onekey_se02_build_id": {
|
|
6886
|
-
"type": "string",
|
|
6887
|
-
"id": 30
|
|
6888
|
-
},
|
|
6889
|
-
"onekey_se03_build_id": {
|
|
6890
|
-
"type": "string",
|
|
6891
|
-
"id": 31
|
|
6892
|
-
},
|
|
6893
|
-
"onekey_se04_build_id": {
|
|
6894
|
-
"type": "string",
|
|
6895
|
-
"id": 32
|
|
6896
|
-
},
|
|
6897
|
-
"onekey_se01_boot_version": {
|
|
6898
|
-
"type": "string",
|
|
6899
|
-
"id": 33
|
|
6900
|
-
},
|
|
6901
|
-
"onekey_se02_boot_version": {
|
|
6902
|
-
"type": "string",
|
|
6903
|
-
"id": 34
|
|
6904
|
-
},
|
|
6905
|
-
"onekey_se03_boot_version": {
|
|
6906
|
-
"type": "string",
|
|
6907
|
-
"id": 35
|
|
6908
|
-
},
|
|
6909
|
-
"onekey_se04_boot_version": {
|
|
6910
|
-
"type": "string",
|
|
6911
|
-
"id": 36
|
|
6912
|
-
},
|
|
6913
|
-
"onekey_se01_boot_hash": {
|
|
6914
|
-
"type": "bytes",
|
|
6915
|
-
"id": 37
|
|
6916
|
-
},
|
|
6917
|
-
"onekey_se02_boot_hash": {
|
|
6918
|
-
"type": "bytes",
|
|
6919
|
-
"id": 38
|
|
6920
|
-
},
|
|
6921
|
-
"onekey_se03_boot_hash": {
|
|
6922
|
-
"type": "bytes",
|
|
6923
|
-
"id": 39
|
|
6924
|
-
},
|
|
6925
|
-
"onekey_se04_boot_hash": {
|
|
6926
|
-
"type": "bytes",
|
|
6927
|
-
"id": 40
|
|
6928
|
-
},
|
|
6929
|
-
"onekey_se01_boot_build_id": {
|
|
6930
|
-
"type": "string",
|
|
6931
|
-
"id": 41
|
|
6932
|
-
},
|
|
6933
|
-
"onekey_se02_boot_build_id": {
|
|
6934
|
-
"type": "string",
|
|
6935
|
-
"id": 42
|
|
6936
|
-
},
|
|
6937
|
-
"onekey_se03_boot_build_id": {
|
|
6938
|
-
"type": "string",
|
|
6939
|
-
"id": 43
|
|
6940
|
-
},
|
|
6941
|
-
"onekey_se04_boot_build_id": {
|
|
6942
|
-
"type": "string",
|
|
6943
|
-
"id": 44
|
|
6944
|
-
}
|
|
6945
|
-
}
|
|
6946
|
-
},
|
|
6947
|
-
"LockDevice": {
|
|
6948
|
-
"fields": {}
|
|
6949
|
-
},
|
|
6950
|
-
"SetBusy": {
|
|
6951
|
-
"fields": {
|
|
6952
|
-
"expiry_ms": {
|
|
6953
|
-
"type": "uint32",
|
|
6954
|
-
"id": 1
|
|
6955
|
-
}
|
|
6956
|
-
}
|
|
6957
|
-
},
|
|
6958
|
-
"EndSession": {
|
|
6959
|
-
"fields": {}
|
|
6960
|
-
},
|
|
6961
|
-
"ApplySettings": {
|
|
6962
|
-
"fields": {
|
|
6963
|
-
"language": {
|
|
6964
|
-
"type": "string",
|
|
6965
|
-
"id": 1
|
|
6966
|
-
},
|
|
6967
|
-
"label": {
|
|
6968
|
-
"type": "string",
|
|
6969
|
-
"id": 2
|
|
6970
|
-
},
|
|
6971
|
-
"use_passphrase": {
|
|
6972
|
-
"type": "bool",
|
|
6973
|
-
"id": 3
|
|
6974
|
-
},
|
|
6975
|
-
"homescreen": {
|
|
6976
|
-
"type": "bytes",
|
|
6977
|
-
"id": 4
|
|
6978
|
-
},
|
|
6979
|
-
"_passphrase_source": {
|
|
6980
|
-
"type": "uint32",
|
|
6981
|
-
"id": 5,
|
|
6982
|
-
"options": {
|
|
6983
|
-
"deprecated": true
|
|
6984
|
-
}
|
|
6985
|
-
},
|
|
6986
|
-
"auto_lock_delay_ms": {
|
|
6987
|
-
"type": "uint32",
|
|
6988
|
-
"id": 6
|
|
6989
|
-
},
|
|
6990
|
-
"display_rotation": {
|
|
6991
|
-
"type": "uint32",
|
|
6992
|
-
"id": 7
|
|
6993
|
-
},
|
|
6994
|
-
"passphrase_always_on_device": {
|
|
6995
|
-
"type": "bool",
|
|
6996
|
-
"id": 8
|
|
6997
|
-
},
|
|
6998
|
-
"safety_checks": {
|
|
6999
|
-
"type": "SafetyCheckLevel",
|
|
7000
|
-
"id": 9
|
|
7001
|
-
},
|
|
7002
|
-
"experimental_features": {
|
|
7003
|
-
"type": "bool",
|
|
6439
|
+
"experimental_features": {
|
|
6440
|
+
"type": "bool",
|
|
7004
6441
|
"id": 10
|
|
7005
6442
|
}
|
|
7006
6443
|
}
|
|
@@ -7609,14 +7046,6 @@
|
|
|
7609
7046
|
"passphrase_state": {
|
|
7610
7047
|
"type": "string",
|
|
7611
7048
|
"id": 1
|
|
7612
|
-
},
|
|
7613
|
-
"_only_main_pin": {
|
|
7614
|
-
"type": "bool",
|
|
7615
|
-
"id": 2
|
|
7616
|
-
},
|
|
7617
|
-
"allow_create_attach_pin": {
|
|
7618
|
-
"type": "bool",
|
|
7619
|
-
"id": 3
|
|
7620
7049
|
}
|
|
7621
7050
|
}
|
|
7622
7051
|
},
|
|
@@ -11723,6 +11152,26 @@
|
|
|
11723
11152
|
}
|
|
11724
11153
|
}
|
|
11725
11154
|
},
|
|
11155
|
+
"ViewRawData": {
|
|
11156
|
+
"fields": {
|
|
11157
|
+
"initial_data": {
|
|
11158
|
+
"rule": "required",
|
|
11159
|
+
"type": "string",
|
|
11160
|
+
"id": 1
|
|
11161
|
+
},
|
|
11162
|
+
"placeholder": {
|
|
11163
|
+
"rule": "required",
|
|
11164
|
+
"type": "uint32",
|
|
11165
|
+
"id": 2
|
|
11166
|
+
}
|
|
11167
|
+
}
|
|
11168
|
+
},
|
|
11169
|
+
"ViewSignLayout": {
|
|
11170
|
+
"values": {
|
|
11171
|
+
"LayoutDefault": 0,
|
|
11172
|
+
"LayoutSafeTxCreate": 1
|
|
11173
|
+
}
|
|
11174
|
+
},
|
|
11726
11175
|
"ViewSignPage": {
|
|
11727
11176
|
"fields": {
|
|
11728
11177
|
"title": {
|
|
@@ -11742,6 +11191,24 @@
|
|
|
11742
11191
|
"tip": {
|
|
11743
11192
|
"type": "ViewTip",
|
|
11744
11193
|
"id": 4
|
|
11194
|
+
},
|
|
11195
|
+
"raw_data": {
|
|
11196
|
+
"type": "ViewRawData",
|
|
11197
|
+
"id": 5
|
|
11198
|
+
},
|
|
11199
|
+
"slide_to_confirm": {
|
|
11200
|
+
"type": "bool",
|
|
11201
|
+
"id": 6,
|
|
11202
|
+
"options": {
|
|
11203
|
+
"default": true
|
|
11204
|
+
}
|
|
11205
|
+
},
|
|
11206
|
+
"layout": {
|
|
11207
|
+
"type": "ViewSignLayout",
|
|
11208
|
+
"id": 7,
|
|
11209
|
+
"options": {
|
|
11210
|
+
"default": "LayoutDefault"
|
|
11211
|
+
}
|
|
11745
11212
|
}
|
|
11746
11213
|
}
|
|
11747
11214
|
},
|
|
@@ -11846,181 +11313,460 @@
|
|
|
11846
11313
|
}
|
|
11847
11314
|
}
|
|
11848
11315
|
},
|
|
11849
|
-
"
|
|
11316
|
+
"ProtocolInfoRequest": {
|
|
11317
|
+
"fields": {}
|
|
11318
|
+
},
|
|
11319
|
+
"ProtocolInfo": {
|
|
11850
11320
|
"fields": {
|
|
11851
|
-
"
|
|
11321
|
+
"version": {
|
|
11322
|
+
"rule": "required",
|
|
11323
|
+
"type": "uint32",
|
|
11324
|
+
"id": 1
|
|
11325
|
+
},
|
|
11326
|
+
"supported_messages": {
|
|
11852
11327
|
"rule": "repeated",
|
|
11853
11328
|
"type": "uint32",
|
|
11854
|
-
"id":
|
|
11329
|
+
"id": 2,
|
|
11855
11330
|
"options": {
|
|
11856
11331
|
"packed": false
|
|
11857
11332
|
}
|
|
11858
11333
|
},
|
|
11859
|
-
"
|
|
11334
|
+
"protobuf_definition": {
|
|
11335
|
+
"type": "string",
|
|
11336
|
+
"id": 3
|
|
11337
|
+
}
|
|
11338
|
+
}
|
|
11339
|
+
},
|
|
11340
|
+
"Ping": {
|
|
11341
|
+
"fields": {
|
|
11342
|
+
"message": {
|
|
11343
|
+
"type": "string",
|
|
11344
|
+
"id": 1,
|
|
11345
|
+
"options": {
|
|
11346
|
+
"default": ""
|
|
11347
|
+
}
|
|
11348
|
+
}
|
|
11349
|
+
}
|
|
11350
|
+
},
|
|
11351
|
+
"Success": {
|
|
11352
|
+
"fields": {
|
|
11353
|
+
"message": {
|
|
11354
|
+
"type": "string",
|
|
11355
|
+
"id": 1,
|
|
11356
|
+
"options": {
|
|
11357
|
+
"default": ""
|
|
11358
|
+
}
|
|
11359
|
+
}
|
|
11360
|
+
}
|
|
11361
|
+
},
|
|
11362
|
+
"Failure": {
|
|
11363
|
+
"fields": {
|
|
11364
|
+
"code": {
|
|
11860
11365
|
"rule": "required",
|
|
11861
|
-
"type": "
|
|
11366
|
+
"type": "FailureType",
|
|
11367
|
+
"id": 1
|
|
11368
|
+
},
|
|
11369
|
+
"subcode": {
|
|
11370
|
+
"type": "uint32",
|
|
11862
11371
|
"id": 2
|
|
11863
11372
|
},
|
|
11864
|
-
"
|
|
11865
|
-
"
|
|
11866
|
-
"type": "bytes",
|
|
11373
|
+
"message": {
|
|
11374
|
+
"type": "string",
|
|
11867
11375
|
"id": 3
|
|
11376
|
+
}
|
|
11377
|
+
},
|
|
11378
|
+
"nested": {
|
|
11379
|
+
"FailureType": {
|
|
11380
|
+
"values": {
|
|
11381
|
+
"Failure_InvalidMessage": 1,
|
|
11382
|
+
"Failure_UndefinedError": 2,
|
|
11383
|
+
"Failure_UsageError": 3,
|
|
11384
|
+
"Failure_DataError": 4,
|
|
11385
|
+
"Failure_ProcessError": 5
|
|
11386
|
+
}
|
|
11387
|
+
}
|
|
11388
|
+
}
|
|
11389
|
+
},
|
|
11390
|
+
"DeviceErrorCode": {
|
|
11391
|
+
"values": {
|
|
11392
|
+
"DeviceError_None": 0,
|
|
11393
|
+
"DeviceError_Busy": 1,
|
|
11394
|
+
"DeviceError_NotInitialized": 2,
|
|
11395
|
+
"DeviceError_ActionCancelled": 3,
|
|
11396
|
+
"DeviceError_PinAlreadyUsed": 4,
|
|
11397
|
+
"DeviceError_PersistFailed": 5,
|
|
11398
|
+
"DeviceError_SeError": 6,
|
|
11399
|
+
"DeviceError_InvalidLanguage": 7,
|
|
11400
|
+
"DeviceError_WallpaperNotUsable": 8,
|
|
11401
|
+
"DeviceError_DeviceLocked": 9
|
|
11402
|
+
}
|
|
11403
|
+
},
|
|
11404
|
+
"DeviceRebootType": {
|
|
11405
|
+
"values": {
|
|
11406
|
+
"Normal": 0,
|
|
11407
|
+
"Romloader": 1,
|
|
11408
|
+
"Bootloader": 2
|
|
11409
|
+
}
|
|
11410
|
+
},
|
|
11411
|
+
"DeviceReboot": {
|
|
11412
|
+
"fields": {
|
|
11413
|
+
"reboot_type": {
|
|
11414
|
+
"rule": "required",
|
|
11415
|
+
"type": "DeviceRebootType",
|
|
11416
|
+
"id": 1
|
|
11417
|
+
}
|
|
11418
|
+
}
|
|
11419
|
+
},
|
|
11420
|
+
"DeviceSettings": {
|
|
11421
|
+
"fields": {
|
|
11422
|
+
"label": {
|
|
11423
|
+
"type": "string",
|
|
11424
|
+
"id": 1
|
|
11425
|
+
},
|
|
11426
|
+
"bt_enable": {
|
|
11427
|
+
"type": "bool",
|
|
11428
|
+
"id": 2
|
|
11868
11429
|
},
|
|
11869
|
-
"
|
|
11430
|
+
"language": {
|
|
11870
11431
|
"type": "string",
|
|
11871
|
-
"id":
|
|
11432
|
+
"id": 3
|
|
11872
11433
|
},
|
|
11873
|
-
"
|
|
11874
|
-
"rule": "required",
|
|
11434
|
+
"wallpaper_path": {
|
|
11875
11435
|
"type": "string",
|
|
11876
|
-
"id":
|
|
11436
|
+
"id": 4
|
|
11877
11437
|
},
|
|
11878
|
-
"
|
|
11879
|
-
"
|
|
11880
|
-
"type": "uint64",
|
|
11438
|
+
"passphrase_enable": {
|
|
11439
|
+
"type": "bool",
|
|
11881
11440
|
"id": 6
|
|
11882
11441
|
},
|
|
11883
|
-
"
|
|
11884
|
-
"type": "
|
|
11442
|
+
"brightness": {
|
|
11443
|
+
"type": "uint32",
|
|
11885
11444
|
"id": 7
|
|
11886
11445
|
},
|
|
11887
|
-
"
|
|
11888
|
-
"type": "
|
|
11889
|
-
"id": 8
|
|
11890
|
-
"options": {
|
|
11891
|
-
"default": "V4R2"
|
|
11892
|
-
}
|
|
11446
|
+
"autolock_delay_ms": {
|
|
11447
|
+
"type": "uint32",
|
|
11448
|
+
"id": 8
|
|
11893
11449
|
},
|
|
11894
|
-
"
|
|
11450
|
+
"autoshutdown_delay_ms": {
|
|
11895
11451
|
"type": "uint32",
|
|
11896
|
-
"id": 9
|
|
11897
|
-
"options": {
|
|
11898
|
-
"default": 698983191
|
|
11899
|
-
}
|
|
11452
|
+
"id": 9
|
|
11900
11453
|
},
|
|
11901
|
-
"
|
|
11902
|
-
"type": "
|
|
11903
|
-
"id": 10
|
|
11904
|
-
"options": {
|
|
11905
|
-
"default": "BASECHAIN"
|
|
11906
|
-
}
|
|
11454
|
+
"animation_enable": {
|
|
11455
|
+
"type": "bool",
|
|
11456
|
+
"id": 10
|
|
11907
11457
|
},
|
|
11908
|
-
"
|
|
11458
|
+
"tap_to_wake": {
|
|
11909
11459
|
"type": "bool",
|
|
11910
|
-
"id": 11
|
|
11911
|
-
"options": {
|
|
11912
|
-
"default": false
|
|
11913
|
-
}
|
|
11460
|
+
"id": 11
|
|
11914
11461
|
},
|
|
11915
|
-
"
|
|
11462
|
+
"haptic_feedback": {
|
|
11916
11463
|
"type": "bool",
|
|
11917
|
-
"id": 12
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11464
|
+
"id": 12
|
|
11465
|
+
},
|
|
11466
|
+
"device_name_display_enabled": {
|
|
11467
|
+
"type": "bool",
|
|
11468
|
+
"id": 13
|
|
11469
|
+
},
|
|
11470
|
+
"airgap_mode": {
|
|
11471
|
+
"type": "bool",
|
|
11472
|
+
"id": 14
|
|
11473
|
+
},
|
|
11474
|
+
"fido_enabled": {
|
|
11475
|
+
"type": "bool",
|
|
11476
|
+
"id": 15
|
|
11477
|
+
},
|
|
11478
|
+
"experimental_features": {
|
|
11479
|
+
"type": "bool",
|
|
11480
|
+
"id": 16
|
|
11481
|
+
},
|
|
11482
|
+
"usb_lock_enable": {
|
|
11483
|
+
"type": "bool",
|
|
11484
|
+
"id": 17
|
|
11485
|
+
},
|
|
11486
|
+
"random_keypad": {
|
|
11487
|
+
"type": "bool",
|
|
11488
|
+
"id": 18
|
|
11921
11489
|
}
|
|
11922
|
-
}
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
|
|
11928
|
-
|
|
11929
|
-
|
|
11490
|
+
}
|
|
11491
|
+
},
|
|
11492
|
+
"DeviceSettingsGet": {
|
|
11493
|
+
"fields": {}
|
|
11494
|
+
},
|
|
11495
|
+
"DeviceSettingsSet": {
|
|
11496
|
+
"fields": {
|
|
11497
|
+
"settings": {
|
|
11498
|
+
"rule": "required",
|
|
11499
|
+
"type": "DeviceSettings",
|
|
11500
|
+
"id": 1
|
|
11930
11501
|
}
|
|
11931
11502
|
}
|
|
11932
11503
|
},
|
|
11933
|
-
"
|
|
11504
|
+
"DeviceSettingsPage": {
|
|
11505
|
+
"values": {
|
|
11506
|
+
"DeviceReset": 0,
|
|
11507
|
+
"DevicePinChange": 1,
|
|
11508
|
+
"DevicePassphrase": 2,
|
|
11509
|
+
"DeviceAirgap": 3
|
|
11510
|
+
}
|
|
11511
|
+
},
|
|
11512
|
+
"DeviceSettingsPageShow": {
|
|
11934
11513
|
"fields": {
|
|
11935
|
-
"
|
|
11514
|
+
"page": {
|
|
11515
|
+
"rule": "required",
|
|
11516
|
+
"type": "DeviceSettingsPage",
|
|
11517
|
+
"id": 1
|
|
11518
|
+
},
|
|
11519
|
+
"field_name": {
|
|
11520
|
+
"type": "string",
|
|
11521
|
+
"id": 2
|
|
11522
|
+
}
|
|
11523
|
+
}
|
|
11524
|
+
},
|
|
11525
|
+
"DeviceCertificate": {
|
|
11526
|
+
"fields": {
|
|
11527
|
+
"cert_and_pubkey": {
|
|
11528
|
+
"rule": "required",
|
|
11936
11529
|
"type": "bytes",
|
|
11937
11530
|
"id": 1
|
|
11938
11531
|
},
|
|
11939
|
-
"
|
|
11532
|
+
"private_key": {
|
|
11940
11533
|
"type": "bytes",
|
|
11941
11534
|
"id": 2
|
|
11942
11535
|
}
|
|
11943
11536
|
}
|
|
11944
11537
|
},
|
|
11945
|
-
"
|
|
11946
|
-
"fields": {
|
|
11538
|
+
"DeviceCertificateWrite": {
|
|
11539
|
+
"fields": {
|
|
11540
|
+
"cert": {
|
|
11541
|
+
"rule": "required",
|
|
11542
|
+
"type": "DeviceCertificate",
|
|
11543
|
+
"id": 1
|
|
11544
|
+
}
|
|
11545
|
+
}
|
|
11546
|
+
},
|
|
11547
|
+
"DeviceCertificateRead": {
|
|
11548
|
+
"fields": {}
|
|
11549
|
+
},
|
|
11550
|
+
"DeviceCertificateSignature": {
|
|
11551
|
+
"fields": {
|
|
11552
|
+
"data": {
|
|
11553
|
+
"rule": "required",
|
|
11554
|
+
"type": "bytes",
|
|
11555
|
+
"id": 1
|
|
11556
|
+
}
|
|
11557
|
+
}
|
|
11558
|
+
},
|
|
11559
|
+
"DeviceCertificateSign": {
|
|
11560
|
+
"fields": {
|
|
11561
|
+
"data": {
|
|
11562
|
+
"rule": "required",
|
|
11563
|
+
"type": "bytes",
|
|
11564
|
+
"id": 1
|
|
11565
|
+
}
|
|
11566
|
+
}
|
|
11567
|
+
},
|
|
11568
|
+
"DeviceFirmwareTargetType": {
|
|
11569
|
+
"values": {
|
|
11570
|
+
"FW_MGMT_TARGET_INVALID": 0,
|
|
11571
|
+
"FW_MGMT_TARGET_CRATE": 1,
|
|
11572
|
+
"FW_MGMT_TARGET_ROMLOADER": 2,
|
|
11573
|
+
"FW_MGMT_TARGET_BOOTLOADER": 3,
|
|
11574
|
+
"FW_MGMT_TARGET_APPLICATION_P1": 4,
|
|
11575
|
+
"FW_MGMT_TARGET_APPLICATION_P2": 5,
|
|
11576
|
+
"FW_MGMT_TARGET_COPROCESSOR": 6,
|
|
11577
|
+
"FW_MGMT_TARGET_SE01": 7,
|
|
11578
|
+
"FW_MGMT_TARGET_SE02": 8,
|
|
11579
|
+
"FW_MGMT_TARGET_SE03": 9,
|
|
11580
|
+
"FW_MGMT_TARGET_SE04": 10
|
|
11581
|
+
}
|
|
11582
|
+
},
|
|
11583
|
+
"DeviceFirmwareUpdateTaskStatus": {
|
|
11584
|
+
"values": {
|
|
11585
|
+
"FW_MGMT_UPDATER_TASK_STATUS_PENDING": 0,
|
|
11586
|
+
"FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS": 1,
|
|
11587
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FINISHED": 2,
|
|
11588
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND": 3,
|
|
11589
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ": 4,
|
|
11590
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE": 5,
|
|
11591
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY": 6,
|
|
11592
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL": 7,
|
|
11593
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT": 8,
|
|
11594
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY": 9,
|
|
11595
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS": 10
|
|
11596
|
+
}
|
|
11597
|
+
},
|
|
11598
|
+
"DeviceFirmwareTarget": {
|
|
11599
|
+
"fields": {
|
|
11600
|
+
"target_id": {
|
|
11601
|
+
"rule": "required",
|
|
11602
|
+
"type": "DeviceFirmwareTargetType",
|
|
11603
|
+
"id": 1
|
|
11604
|
+
},
|
|
11605
|
+
"path": {
|
|
11606
|
+
"rule": "required",
|
|
11607
|
+
"type": "string",
|
|
11608
|
+
"id": 2
|
|
11609
|
+
}
|
|
11610
|
+
}
|
|
11611
|
+
},
|
|
11612
|
+
"DeviceFirmwareUpdateRequest": {
|
|
11613
|
+
"fields": {
|
|
11614
|
+
"targets": {
|
|
11615
|
+
"rule": "repeated",
|
|
11616
|
+
"type": "DeviceFirmwareTarget",
|
|
11617
|
+
"id": 1
|
|
11618
|
+
}
|
|
11619
|
+
}
|
|
11620
|
+
},
|
|
11621
|
+
"DeviceFirmwareUpdateRecord": {
|
|
11622
|
+
"fields": {
|
|
11623
|
+
"target_id": {
|
|
11624
|
+
"rule": "required",
|
|
11625
|
+
"type": "DeviceFirmwareTargetType",
|
|
11626
|
+
"id": 1
|
|
11627
|
+
},
|
|
11628
|
+
"status": {
|
|
11629
|
+
"type": "DeviceFirmwareUpdateTaskStatus",
|
|
11630
|
+
"id": 10
|
|
11631
|
+
},
|
|
11632
|
+
"payload_version": {
|
|
11633
|
+
"type": "uint32",
|
|
11634
|
+
"id": 20
|
|
11635
|
+
},
|
|
11636
|
+
"path": {
|
|
11637
|
+
"type": "string",
|
|
11638
|
+
"id": 30
|
|
11639
|
+
}
|
|
11640
|
+
}
|
|
11641
|
+
},
|
|
11642
|
+
"DeviceFirmwareUpdateRecordFields": {
|
|
11643
|
+
"fields": {
|
|
11644
|
+
"status": {
|
|
11645
|
+
"type": "bool",
|
|
11646
|
+
"id": 10
|
|
11647
|
+
},
|
|
11648
|
+
"payload_version": {
|
|
11649
|
+
"type": "bool",
|
|
11650
|
+
"id": 20
|
|
11651
|
+
},
|
|
11652
|
+
"path": {
|
|
11653
|
+
"type": "bool",
|
|
11654
|
+
"id": 30
|
|
11655
|
+
}
|
|
11656
|
+
}
|
|
11657
|
+
},
|
|
11658
|
+
"DeviceFirmwareUpdateStatusGet": {
|
|
11659
|
+
"fields": {
|
|
11660
|
+
"fields": {
|
|
11661
|
+
"type": "DeviceFirmwareUpdateRecordFields",
|
|
11662
|
+
"id": 1
|
|
11663
|
+
}
|
|
11664
|
+
}
|
|
11665
|
+
},
|
|
11666
|
+
"DeviceFirmwareUpdateStatus": {
|
|
11667
|
+
"fields": {
|
|
11668
|
+
"records": {
|
|
11669
|
+
"rule": "repeated",
|
|
11670
|
+
"type": "DeviceFirmwareUpdateRecord",
|
|
11671
|
+
"id": 1
|
|
11672
|
+
}
|
|
11673
|
+
}
|
|
11674
|
+
},
|
|
11675
|
+
"DeviceFactoryAck": {
|
|
11676
|
+
"values": {
|
|
11677
|
+
"FACTORY_ACK_SUCCESS": 0,
|
|
11678
|
+
"FACTORY_ACK_FAIL": 1
|
|
11679
|
+
}
|
|
11947
11680
|
},
|
|
11948
|
-
"
|
|
11681
|
+
"DeviceFactoryInfoManufactureTime": {
|
|
11949
11682
|
"fields": {
|
|
11950
|
-
"
|
|
11683
|
+
"year": {
|
|
11951
11684
|
"rule": "required",
|
|
11952
11685
|
"type": "uint32",
|
|
11953
11686
|
"id": 1
|
|
11687
|
+
},
|
|
11688
|
+
"month": {
|
|
11689
|
+
"rule": "required",
|
|
11690
|
+
"type": "uint32",
|
|
11691
|
+
"id": 2
|
|
11692
|
+
},
|
|
11693
|
+
"day": {
|
|
11694
|
+
"rule": "required",
|
|
11695
|
+
"type": "uint32",
|
|
11696
|
+
"id": 3
|
|
11697
|
+
},
|
|
11698
|
+
"hour": {
|
|
11699
|
+
"rule": "required",
|
|
11700
|
+
"type": "uint32",
|
|
11701
|
+
"id": 4
|
|
11702
|
+
},
|
|
11703
|
+
"minute": {
|
|
11704
|
+
"rule": "required",
|
|
11705
|
+
"type": "uint32",
|
|
11706
|
+
"id": 5
|
|
11707
|
+
},
|
|
11708
|
+
"second": {
|
|
11709
|
+
"rule": "required",
|
|
11710
|
+
"type": "uint32",
|
|
11711
|
+
"id": 6
|
|
11954
11712
|
}
|
|
11955
11713
|
}
|
|
11956
11714
|
},
|
|
11957
|
-
"
|
|
11715
|
+
"DeviceFactoryInfo": {
|
|
11958
11716
|
"fields": {
|
|
11959
|
-
"
|
|
11717
|
+
"version": {
|
|
11718
|
+
"type": "uint32",
|
|
11719
|
+
"id": 1
|
|
11720
|
+
},
|
|
11721
|
+
"serial_number": {
|
|
11960
11722
|
"type": "string",
|
|
11961
|
-
"id":
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11723
|
+
"id": 2
|
|
11724
|
+
},
|
|
11725
|
+
"burn_in_completed": {
|
|
11726
|
+
"type": "bool",
|
|
11727
|
+
"id": 3
|
|
11728
|
+
},
|
|
11729
|
+
"factory_test_completed": {
|
|
11730
|
+
"type": "bool",
|
|
11731
|
+
"id": 4
|
|
11732
|
+
},
|
|
11733
|
+
"manufacture_time": {
|
|
11734
|
+
"type": "DeviceFactoryInfoManufactureTime",
|
|
11735
|
+
"id": 5
|
|
11965
11736
|
}
|
|
11966
11737
|
}
|
|
11967
11738
|
},
|
|
11968
|
-
"
|
|
11739
|
+
"DeviceFactoryInfoSet": {
|
|
11969
11740
|
"fields": {
|
|
11970
|
-
"
|
|
11971
|
-
"
|
|
11972
|
-
"
|
|
11973
|
-
"
|
|
11974
|
-
"default": ""
|
|
11975
|
-
}
|
|
11741
|
+
"info": {
|
|
11742
|
+
"rule": "required",
|
|
11743
|
+
"type": "DeviceFactoryInfo",
|
|
11744
|
+
"id": 1
|
|
11976
11745
|
}
|
|
11977
11746
|
}
|
|
11978
11747
|
},
|
|
11979
|
-
"
|
|
11748
|
+
"DeviceFactoryInfoGet": {
|
|
11749
|
+
"fields": {}
|
|
11750
|
+
},
|
|
11751
|
+
"DeviceFactoryPermanentLock": {
|
|
11980
11752
|
"fields": {
|
|
11981
|
-
"
|
|
11982
|
-
"
|
|
11753
|
+
"check_a": {
|
|
11754
|
+
"rule": "required",
|
|
11755
|
+
"type": "bytes",
|
|
11983
11756
|
"id": 1
|
|
11984
11757
|
},
|
|
11985
|
-
"
|
|
11986
|
-
"
|
|
11758
|
+
"check_b": {
|
|
11759
|
+
"rule": "required",
|
|
11760
|
+
"type": "bytes",
|
|
11987
11761
|
"id": 2
|
|
11988
11762
|
}
|
|
11989
|
-
},
|
|
11990
|
-
"nested": {
|
|
11991
|
-
"FailureType": {
|
|
11992
|
-
"values": {
|
|
11993
|
-
"Failure_UnexpectedMessage": 1,
|
|
11994
|
-
"Failure_ButtonExpected": 2,
|
|
11995
|
-
"Failure_DataError": 3,
|
|
11996
|
-
"Failure_ActionCancelled": 4,
|
|
11997
|
-
"Failure_PinExpected": 5,
|
|
11998
|
-
"Failure_PinCancelled": 6,
|
|
11999
|
-
"Failure_PinInvalid": 7,
|
|
12000
|
-
"Failure_InvalidSignature": 8,
|
|
12001
|
-
"Failure_ProcessError": 9,
|
|
12002
|
-
"Failure_NotEnoughFunds": 10,
|
|
12003
|
-
"Failure_NotInitialized": 11,
|
|
12004
|
-
"Failure_PinMismatch": 12,
|
|
12005
|
-
"Failure_WipeCodeMismatch": 13,
|
|
12006
|
-
"Failure_InvalidSession": 14,
|
|
12007
|
-
"Failure_FirmwareError": 99
|
|
12008
|
-
}
|
|
12009
|
-
}
|
|
12010
|
-
}
|
|
12011
|
-
},
|
|
12012
|
-
"DevRebootType": {
|
|
12013
|
-
"values": {
|
|
12014
|
-
"Normal": 0,
|
|
12015
|
-
"Boardloader": 1,
|
|
12016
|
-
"Bootloader": 2
|
|
12017
11763
|
}
|
|
12018
11764
|
},
|
|
12019
|
-
"
|
|
11765
|
+
"DeviceFactoryTest": {
|
|
12020
11766
|
"fields": {
|
|
12021
|
-
"
|
|
11767
|
+
"burn_in_test": {
|
|
12022
11768
|
"rule": "required",
|
|
12023
|
-
"type": "
|
|
11769
|
+
"type": "bool",
|
|
12024
11770
|
"id": 1
|
|
12025
11771
|
}
|
|
12026
11772
|
}
|
|
@@ -12032,23 +11778,25 @@
|
|
|
12032
11778
|
"MINI": 2,
|
|
12033
11779
|
"TOUCH": 3,
|
|
12034
11780
|
"PRO": 5,
|
|
12035
|
-
"CLASSIC1S_PURE": 6
|
|
11781
|
+
"CLASSIC1S_PURE": 6,
|
|
11782
|
+
"PRO2": 7,
|
|
11783
|
+
"NEO": 8
|
|
12036
11784
|
}
|
|
12037
11785
|
},
|
|
12038
|
-
"
|
|
11786
|
+
"DeviceSeType": {
|
|
12039
11787
|
"values": {
|
|
12040
11788
|
"THD89": 0,
|
|
12041
11789
|
"SE608A": 1
|
|
12042
11790
|
}
|
|
12043
11791
|
},
|
|
12044
|
-
"
|
|
11792
|
+
"DeviceSEState": {
|
|
12045
11793
|
"values": {
|
|
12046
11794
|
"BOOT": 0,
|
|
12047
11795
|
"APP_FACTORY": 51,
|
|
12048
11796
|
"APP": 85
|
|
12049
11797
|
}
|
|
12050
11798
|
},
|
|
12051
|
-
"
|
|
11799
|
+
"DeviceFirmwareImageInfo": {
|
|
12052
11800
|
"fields": {
|
|
12053
11801
|
"version": {
|
|
12054
11802
|
"type": "string",
|
|
@@ -12064,19 +11812,15 @@
|
|
|
12064
11812
|
}
|
|
12065
11813
|
}
|
|
12066
11814
|
},
|
|
12067
|
-
"
|
|
11815
|
+
"DeviceHardwareInfo": {
|
|
12068
11816
|
"fields": {
|
|
12069
|
-
"
|
|
11817
|
+
"Device_type": {
|
|
12070
11818
|
"type": "DeviceType",
|
|
12071
11819
|
"id": 10
|
|
12072
11820
|
},
|
|
12073
11821
|
"serial_no": {
|
|
12074
11822
|
"type": "string",
|
|
12075
|
-
"id":
|
|
12076
|
-
},
|
|
12077
|
-
"device_id": {
|
|
12078
|
-
"type": "string",
|
|
12079
|
-
"id": 12
|
|
11823
|
+
"id": 20
|
|
12080
11824
|
},
|
|
12081
11825
|
"hardware_version": {
|
|
12082
11826
|
"type": "string",
|
|
@@ -12084,67 +11828,71 @@
|
|
|
12084
11828
|
},
|
|
12085
11829
|
"hardware_version_raw_adc": {
|
|
12086
11830
|
"type": "uint32",
|
|
12087
|
-
"id":
|
|
11831
|
+
"id": 110
|
|
12088
11832
|
}
|
|
12089
11833
|
}
|
|
12090
11834
|
},
|
|
12091
|
-
"
|
|
11835
|
+
"DeviceMainMcuInfo": {
|
|
12092
11836
|
"fields": {
|
|
12093
|
-
"
|
|
12094
|
-
"type": "
|
|
11837
|
+
"romloader": {
|
|
11838
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12095
11839
|
"id": 10
|
|
12096
11840
|
},
|
|
12097
|
-
"
|
|
12098
|
-
"type": "
|
|
11841
|
+
"bootloader": {
|
|
11842
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12099
11843
|
"id": 20
|
|
12100
11844
|
},
|
|
12101
|
-
"
|
|
12102
|
-
"type": "
|
|
11845
|
+
"application": {
|
|
11846
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12103
11847
|
"id": 30
|
|
11848
|
+
},
|
|
11849
|
+
"application_data": {
|
|
11850
|
+
"type": "DeviceFirmwareImageInfo",
|
|
11851
|
+
"id": 40
|
|
12104
11852
|
}
|
|
12105
11853
|
}
|
|
12106
11854
|
},
|
|
12107
|
-
"
|
|
11855
|
+
"DeviceCoprocessorInfo": {
|
|
12108
11856
|
"fields": {
|
|
12109
|
-
"
|
|
12110
|
-
"type": "
|
|
11857
|
+
"bootloader": {
|
|
11858
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12111
11859
|
"id": 20
|
|
12112
11860
|
},
|
|
12113
|
-
"
|
|
12114
|
-
"type": "
|
|
11861
|
+
"application": {
|
|
11862
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12115
11863
|
"id": 30
|
|
12116
11864
|
},
|
|
12117
|
-
"
|
|
11865
|
+
"bt_adv_name": {
|
|
12118
11866
|
"type": "string",
|
|
12119
11867
|
"id": 100
|
|
12120
11868
|
},
|
|
12121
|
-
"
|
|
11869
|
+
"bt_mac": {
|
|
12122
11870
|
"type": "bytes",
|
|
12123
11871
|
"id": 110
|
|
12124
11872
|
}
|
|
12125
11873
|
}
|
|
12126
11874
|
},
|
|
12127
|
-
"
|
|
11875
|
+
"DeviceSEInfo": {
|
|
12128
11876
|
"fields": {
|
|
12129
|
-
"
|
|
12130
|
-
"type": "
|
|
11877
|
+
"bootloader": {
|
|
11878
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12131
11879
|
"id": 20
|
|
12132
11880
|
},
|
|
12133
|
-
"
|
|
12134
|
-
"type": "
|
|
11881
|
+
"application": {
|
|
11882
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12135
11883
|
"id": 30
|
|
12136
11884
|
},
|
|
12137
11885
|
"type": {
|
|
12138
|
-
"type": "
|
|
11886
|
+
"type": "DeviceSeType",
|
|
12139
11887
|
"id": 100
|
|
12140
11888
|
},
|
|
12141
11889
|
"state": {
|
|
12142
|
-
"type": "
|
|
11890
|
+
"type": "DeviceSEState",
|
|
12143
11891
|
"id": 110
|
|
12144
11892
|
}
|
|
12145
11893
|
}
|
|
12146
11894
|
},
|
|
12147
|
-
"
|
|
11895
|
+
"DeviceInfoTargets": {
|
|
12148
11896
|
"fields": {
|
|
12149
11897
|
"hw": {
|
|
12150
11898
|
"type": "bool",
|
|
@@ -12154,7 +11902,7 @@
|
|
|
12154
11902
|
"type": "bool",
|
|
12155
11903
|
"id": 200
|
|
12156
11904
|
},
|
|
12157
|
-
"
|
|
11905
|
+
"coprocessor": {
|
|
12158
11906
|
"type": "bool",
|
|
12159
11907
|
"id": 300
|
|
12160
11908
|
},
|
|
@@ -12180,7 +11928,7 @@
|
|
|
12180
11928
|
}
|
|
12181
11929
|
}
|
|
12182
11930
|
},
|
|
12183
|
-
"
|
|
11931
|
+
"DeviceInfoTypes": {
|
|
12184
11932
|
"fields": {
|
|
12185
11933
|
"version": {
|
|
12186
11934
|
"type": "bool",
|
|
@@ -12200,42 +11948,14 @@
|
|
|
12200
11948
|
}
|
|
12201
11949
|
}
|
|
12202
11950
|
},
|
|
12203
|
-
"
|
|
12204
|
-
"fields": {
|
|
12205
|
-
"language": {
|
|
12206
|
-
"type": "string",
|
|
12207
|
-
"id": 100
|
|
12208
|
-
},
|
|
12209
|
-
"bt_enable": {
|
|
12210
|
-
"type": "bool",
|
|
12211
|
-
"id": 101
|
|
12212
|
-
},
|
|
12213
|
-
"init_states": {
|
|
12214
|
-
"type": "bool",
|
|
12215
|
-
"id": 102
|
|
12216
|
-
},
|
|
12217
|
-
"backup_required": {
|
|
12218
|
-
"type": "bool",
|
|
12219
|
-
"id": 200
|
|
12220
|
-
},
|
|
12221
|
-
"passphrase_protection": {
|
|
12222
|
-
"type": "bool",
|
|
12223
|
-
"id": 201
|
|
12224
|
-
},
|
|
12225
|
-
"label": {
|
|
12226
|
-
"type": "string",
|
|
12227
|
-
"id": 300
|
|
12228
|
-
}
|
|
12229
|
-
}
|
|
12230
|
-
},
|
|
12231
|
-
"DevGetDeviceInfo": {
|
|
11951
|
+
"DeviceInfoGet": {
|
|
12232
11952
|
"fields": {
|
|
12233
11953
|
"targets": {
|
|
12234
|
-
"type": "
|
|
11954
|
+
"type": "DeviceInfoTargets",
|
|
12235
11955
|
"id": 1
|
|
12236
11956
|
},
|
|
12237
11957
|
"types": {
|
|
12238
|
-
"type": "
|
|
11958
|
+
"type": "DeviceInfoTypes",
|
|
12239
11959
|
"id": 2
|
|
12240
11960
|
}
|
|
12241
11961
|
}
|
|
@@ -12248,166 +11968,151 @@
|
|
|
12248
11968
|
"id": 1
|
|
12249
11969
|
},
|
|
12250
11970
|
"hw": {
|
|
12251
|
-
"type": "
|
|
11971
|
+
"type": "DeviceHardwareInfo",
|
|
12252
11972
|
"id": 100
|
|
12253
11973
|
},
|
|
12254
11974
|
"fw": {
|
|
12255
|
-
"type": "
|
|
11975
|
+
"type": "DeviceMainMcuInfo",
|
|
12256
11976
|
"id": 200
|
|
12257
11977
|
},
|
|
12258
|
-
"
|
|
12259
|
-
"type": "
|
|
11978
|
+
"coprocessor": {
|
|
11979
|
+
"type": "DeviceCoprocessorInfo",
|
|
12260
11980
|
"id": 300
|
|
12261
11981
|
},
|
|
12262
11982
|
"se1": {
|
|
12263
|
-
"type": "
|
|
11983
|
+
"type": "DeviceSEInfo",
|
|
12264
11984
|
"id": 400
|
|
12265
11985
|
},
|
|
12266
11986
|
"se2": {
|
|
12267
|
-
"type": "
|
|
11987
|
+
"type": "DeviceSEInfo",
|
|
12268
11988
|
"id": 410
|
|
12269
11989
|
},
|
|
12270
11990
|
"se3": {
|
|
12271
|
-
"type": "
|
|
11991
|
+
"type": "DeviceSEInfo",
|
|
12272
11992
|
"id": 420
|
|
12273
11993
|
},
|
|
12274
11994
|
"se4": {
|
|
12275
|
-
"type": "
|
|
11995
|
+
"type": "DeviceSEInfo",
|
|
12276
11996
|
"id": 430
|
|
12277
11997
|
},
|
|
12278
11998
|
"status": {
|
|
12279
|
-
"type": "
|
|
11999
|
+
"type": "DeviceStatus",
|
|
12280
12000
|
"id": 10000
|
|
12281
12001
|
}
|
|
12282
12002
|
}
|
|
12283
12003
|
},
|
|
12284
|
-
"
|
|
12285
|
-
"values": {
|
|
12286
|
-
"TARGET_MAIN_APP": 0,
|
|
12287
|
-
"TARGET_MAIN_BOOT": 1,
|
|
12288
|
-
"TARGET_BT": 2,
|
|
12289
|
-
"TARGET_SE1": 3,
|
|
12290
|
-
"TARGET_SE2": 4,
|
|
12291
|
-
"TARGET_SE3": 5,
|
|
12292
|
-
"TARGET_SE4": 6,
|
|
12293
|
-
"TARGET_RESOURCE": 10
|
|
12294
|
-
}
|
|
12295
|
-
},
|
|
12296
|
-
"DevFirmwareTarget": {
|
|
12297
|
-
"fields": {
|
|
12298
|
-
"target_id": {
|
|
12299
|
-
"rule": "required",
|
|
12300
|
-
"type": "DevFirmwareTargetType",
|
|
12301
|
-
"id": 1
|
|
12302
|
-
},
|
|
12303
|
-
"path": {
|
|
12304
|
-
"rule": "required",
|
|
12305
|
-
"type": "string",
|
|
12306
|
-
"id": 2
|
|
12307
|
-
}
|
|
12308
|
-
}
|
|
12309
|
-
},
|
|
12310
|
-
"DevFirmwareUpdate": {
|
|
12004
|
+
"DeviceSessionGet": {
|
|
12311
12005
|
"fields": {
|
|
12312
|
-
"
|
|
12313
|
-
"
|
|
12314
|
-
"type": "DevFirmwareTarget",
|
|
12006
|
+
"session_id": {
|
|
12007
|
+
"type": "bytes",
|
|
12315
12008
|
"id": 1
|
|
12316
12009
|
}
|
|
12317
12010
|
}
|
|
12318
12011
|
},
|
|
12319
|
-
"
|
|
12012
|
+
"DeviceSession": {
|
|
12320
12013
|
"fields": {
|
|
12321
|
-
"
|
|
12322
|
-
"
|
|
12323
|
-
"type": "DevFirmwareTargetType",
|
|
12014
|
+
"session_id": {
|
|
12015
|
+
"type": "bytes",
|
|
12324
12016
|
"id": 1
|
|
12325
12017
|
},
|
|
12326
|
-
"
|
|
12327
|
-
"rule": "required",
|
|
12328
|
-
"type": "uint32",
|
|
12329
|
-
"id": 2
|
|
12330
|
-
},
|
|
12331
|
-
"stage": {
|
|
12018
|
+
"btc_test_address": {
|
|
12332
12019
|
"type": "string",
|
|
12333
|
-
"id": 3
|
|
12334
|
-
}
|
|
12335
|
-
}
|
|
12336
|
-
},
|
|
12337
|
-
"DevFirmwareUpdateStatusEntry": {
|
|
12338
|
-
"fields": {
|
|
12339
|
-
"target_id": {
|
|
12340
|
-
"rule": "required",
|
|
12341
|
-
"type": "DevFirmwareTargetType",
|
|
12342
|
-
"id": 1
|
|
12343
|
-
},
|
|
12344
|
-
"status": {
|
|
12345
|
-
"rule": "required",
|
|
12346
|
-
"type": "uint32",
|
|
12347
12020
|
"id": 2
|
|
12348
12021
|
}
|
|
12349
12022
|
}
|
|
12350
12023
|
},
|
|
12351
|
-
"
|
|
12024
|
+
"DeviceSessionAskPin": {
|
|
12352
12025
|
"fields": {}
|
|
12353
12026
|
},
|
|
12354
|
-
"
|
|
12027
|
+
"DeviceSessionPinResult": {
|
|
12355
12028
|
"fields": {
|
|
12356
|
-
"
|
|
12357
|
-
"
|
|
12358
|
-
"type": "DevFirmwareUpdateStatusEntry",
|
|
12029
|
+
"unlocked": {
|
|
12030
|
+
"type": "bool",
|
|
12359
12031
|
"id": 1
|
|
12032
|
+
},
|
|
12033
|
+
"unlocked_attach_pin": {
|
|
12034
|
+
"type": "bool",
|
|
12035
|
+
"id": 2
|
|
12036
|
+
},
|
|
12037
|
+
"passphrase_protection": {
|
|
12038
|
+
"type": "bool",
|
|
12039
|
+
"id": 3
|
|
12360
12040
|
}
|
|
12361
12041
|
}
|
|
12362
12042
|
},
|
|
12363
|
-
"
|
|
12043
|
+
"DeviceStatus": {
|
|
12364
12044
|
"fields": {
|
|
12365
|
-
"
|
|
12045
|
+
"device_id": {
|
|
12366
12046
|
"type": "string",
|
|
12367
12047
|
"id": 1
|
|
12368
12048
|
},
|
|
12369
|
-
"
|
|
12370
|
-
"type": "
|
|
12049
|
+
"unlocked": {
|
|
12050
|
+
"type": "bool",
|
|
12371
12051
|
"id": 2
|
|
12372
12052
|
},
|
|
12373
|
-
"
|
|
12374
|
-
"type": "
|
|
12053
|
+
"init_states": {
|
|
12054
|
+
"type": "bool",
|
|
12375
12055
|
"id": 3
|
|
12056
|
+
},
|
|
12057
|
+
"backup_required": {
|
|
12058
|
+
"type": "bool",
|
|
12059
|
+
"id": 4
|
|
12060
|
+
},
|
|
12061
|
+
"passphrase_enabled": {
|
|
12062
|
+
"type": "bool",
|
|
12063
|
+
"id": 10
|
|
12064
|
+
},
|
|
12065
|
+
"attach_to_pin_enabled": {
|
|
12066
|
+
"type": "bool",
|
|
12067
|
+
"id": 11
|
|
12068
|
+
},
|
|
12069
|
+
"unlocked_by_attach_to_pin": {
|
|
12070
|
+
"type": "bool",
|
|
12071
|
+
"id": 12
|
|
12376
12072
|
}
|
|
12377
12073
|
}
|
|
12378
12074
|
},
|
|
12379
|
-
"
|
|
12075
|
+
"DeviceStatusGet": {
|
|
12380
12076
|
"fields": {}
|
|
12381
12077
|
},
|
|
12382
|
-
"
|
|
12078
|
+
"DevOnboardingStage": {
|
|
12079
|
+
"values": {
|
|
12080
|
+
"DEV_ONBOARDING_STAGE_UNKNOWN": 0,
|
|
12081
|
+
"DEV_ONBOARDING_STAGE_SAFETY_CHECK": 1,
|
|
12082
|
+
"DEV_ONBOARDING_STAGE_PERSONALIZATION": 2,
|
|
12083
|
+
"DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD": 3,
|
|
12084
|
+
"DEV_ONBOARDING_STAGE_NEW_DEVICE": 4,
|
|
12085
|
+
"DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD": 5,
|
|
12086
|
+
"DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC": 6,
|
|
12087
|
+
"DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD": 7,
|
|
12088
|
+
"DEV_ONBOARDING_STAGE_WALLET_READY": 8,
|
|
12089
|
+
"DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT": 9,
|
|
12090
|
+
"DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD": 10,
|
|
12091
|
+
"DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP": 11,
|
|
12092
|
+
"DEV_ONBOARDING_STAGE_DONE": 12
|
|
12093
|
+
}
|
|
12094
|
+
},
|
|
12095
|
+
"DevGetOnboardingStatus": {
|
|
12096
|
+
"fields": {}
|
|
12097
|
+
},
|
|
12098
|
+
"DevOnboardingStatus": {
|
|
12383
12099
|
"fields": {
|
|
12384
|
-
"
|
|
12385
|
-
"
|
|
12100
|
+
"stage": {
|
|
12101
|
+
"rule": "required",
|
|
12102
|
+
"type": "DevOnboardingStage",
|
|
12386
12103
|
"id": 1
|
|
12387
12104
|
},
|
|
12388
|
-
"
|
|
12389
|
-
"type": "
|
|
12105
|
+
"status_code": {
|
|
12106
|
+
"type": "uint32",
|
|
12390
12107
|
"id": 2
|
|
12391
12108
|
},
|
|
12392
|
-
"
|
|
12393
|
-
"type": "
|
|
12109
|
+
"detail_code": {
|
|
12110
|
+
"type": "uint32",
|
|
12394
12111
|
"id": 3
|
|
12395
|
-
},
|
|
12396
|
-
"nft_voucher": {
|
|
12397
|
-
"type": "bytes",
|
|
12398
|
-
"id": 4
|
|
12399
|
-
},
|
|
12400
|
-
"cpu_info": {
|
|
12401
|
-
"type": "string",
|
|
12402
|
-
"id": 5
|
|
12403
|
-
},
|
|
12404
|
-
"pre_firmware": {
|
|
12405
|
-
"type": "string",
|
|
12406
|
-
"id": 6
|
|
12407
12112
|
}
|
|
12408
12113
|
}
|
|
12409
12114
|
},
|
|
12410
|
-
"
|
|
12115
|
+
"FilesystemPermissionFix": {
|
|
12411
12116
|
"fields": {}
|
|
12412
12117
|
},
|
|
12413
12118
|
"FilesystemPathInfo": {
|
|
@@ -12620,77 +12325,22 @@
|
|
|
12620
12325
|
}
|
|
12621
12326
|
},
|
|
12622
12327
|
"FilesystemFormat": {
|
|
12623
|
-
"fields": {}
|
|
12624
|
-
},
|
|
12625
|
-
"OnboardingStep": {
|
|
12626
|
-
"values": {
|
|
12627
|
-
"ONBOARDING_STEP_UNKNOWN": 0,
|
|
12628
|
-
"ONBOARDING_STEP_DEVICE_VERIFICATION": 1,
|
|
12629
|
-
"ONBOARDING_STEP_PERSONALIZATION": 2,
|
|
12630
|
-
"ONBOARDING_STEP_SETUP": 3,
|
|
12631
|
-
"ONBOARDING_STEP_FIRMWARE": 4
|
|
12632
|
-
}
|
|
12633
|
-
},
|
|
12634
|
-
"GetOnboardingStatus": {
|
|
12635
|
-
"fields": {}
|
|
12636
|
-
},
|
|
12637
|
-
"OnboardingStatus": {
|
|
12638
12328
|
"fields": {
|
|
12639
|
-
"
|
|
12329
|
+
"data": {
|
|
12640
12330
|
"rule": "required",
|
|
12641
|
-
"type": "
|
|
12331
|
+
"type": "bool",
|
|
12642
12332
|
"id": 1
|
|
12643
12333
|
},
|
|
12644
|
-
"
|
|
12645
|
-
"
|
|
12334
|
+
"user": {
|
|
12335
|
+
"rule": "required",
|
|
12336
|
+
"type": "bool",
|
|
12646
12337
|
"id": 2
|
|
12647
|
-
},
|
|
12648
|
-
"detail_code": {
|
|
12649
|
-
"type": "uint32",
|
|
12650
|
-
"id": 3
|
|
12651
|
-
},
|
|
12652
|
-
"detail_str": {
|
|
12653
|
-
"type": "string",
|
|
12654
|
-
"id": 4
|
|
12655
|
-
}
|
|
12656
|
-
},
|
|
12657
|
-
"nested": {
|
|
12658
|
-
"Setup": {
|
|
12659
|
-
"fields": {
|
|
12660
|
-
"new_device": {
|
|
12661
|
-
"type": "NewDevice",
|
|
12662
|
-
"id": 1
|
|
12663
|
-
},
|
|
12664
|
-
"restore": {
|
|
12665
|
-
"type": "Restore",
|
|
12666
|
-
"id": 2
|
|
12667
|
-
}
|
|
12668
|
-
},
|
|
12669
|
-
"nested": {
|
|
12670
|
-
"NewDevice": {
|
|
12671
|
-
"fields": {
|
|
12672
|
-
"seedcard_backup": {
|
|
12673
|
-
"type": "bool",
|
|
12674
|
-
"id": 1
|
|
12675
|
-
}
|
|
12676
|
-
}
|
|
12677
|
-
},
|
|
12678
|
-
"Restore": {
|
|
12679
|
-
"fields": {
|
|
12680
|
-
"mnemonic": {
|
|
12681
|
-
"type": "bool",
|
|
12682
|
-
"id": 1
|
|
12683
|
-
},
|
|
12684
|
-
"seedcard": {
|
|
12685
|
-
"type": "bool",
|
|
12686
|
-
"id": 2
|
|
12687
|
-
}
|
|
12688
|
-
}
|
|
12689
|
-
}
|
|
12690
|
-
}
|
|
12691
12338
|
}
|
|
12692
12339
|
}
|
|
12693
12340
|
},
|
|
12341
|
+
"PortfolioUpdate": {
|
|
12342
|
+
"fields": {}
|
|
12343
|
+
},
|
|
12694
12344
|
"google": {
|
|
12695
12345
|
"nested": {
|
|
12696
12346
|
"protobuf": {
|