2023-02-10 13:47:30 +00:00
|
|
|
syntax = "proto2";
|
|
|
|
package hw.trezor.messages.ble;
|
|
|
|
|
|
|
|
// Sugar for easier handling in Java
|
|
|
|
option java_package = "com.satoshilabs.trezor.lib.protobuf";
|
|
|
|
option java_outer_classname = "TrezorMessageBLE";
|
|
|
|
|
|
|
|
option (include_in_bitcoin_only) = true;
|
|
|
|
|
|
|
|
import "messages.proto";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Request: initializes upload of a new ble firmware im
|
|
|
|
* @start
|
|
|
|
* @next UploadBLEFirmwareNextChunk
|
|
|
|
* @next Failure
|
|
|
|
*/
|
|
|
|
message UploadBLEFirmwareInit {
|
|
|
|
required bytes init_data = 1;
|
|
|
|
required uint32 binsize = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Response: Requests next chunk of a new ble firmware im
|
|
|
|
* @next UploadBLEFirmwareChunk
|
|
|
|
*/
|
|
|
|
message UploadBLEFirmwareNextChunk {
|
|
|
|
required uint32 offset = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Request: sends next chunk of a new ble firmware im
|
|
|
|
* @next UploadBLEFirmwareNextChunk
|
|
|
|
* @next Success
|
|
|
|
* @next Failure
|
|
|
|
*/
|
|
|
|
message UploadBLEFirmwareChunk {
|
|
|
|
required bytes data = 1;
|
|
|
|
}
|
2023-02-27 15:39:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Request: initiates new pairing request
|
|
|
|
* @start
|
|
|
|
* @next AuthKey
|
|
|
|
* @next Failure
|
|
|
|
*/
|
|
|
|
message PairingRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Request: confirms pairing request with auth key entered on the device
|
|
|
|
* @end
|
|
|
|
*/
|
|
|
|
message AuthKey {
|
|
|
|
required bytes key = 1;
|
|
|
|
}
|