| 
 | 1 | +// Copyright 2025 Shift Crypto AG  | 
 | 2 | +//  | 
 | 3 | +// Licensed under the Apache License, Version 2.0 (the "License");  | 
 | 4 | +// you may not use this file except in compliance with the License.  | 
 | 5 | +// You may obtain a copy of the License at  | 
 | 6 | +//  | 
 | 7 | +//      http://www.apache.org/licenses/LICENSE-2.0  | 
 | 8 | +//  | 
 | 9 | +// Unless required by applicable law or agreed to in writing, software  | 
 | 10 | +// distributed under the License is distributed on an "AS IS" BASIS,  | 
 | 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  | 
 | 12 | +// See the License for the specific language governing permissions and  | 
 | 13 | +// limitations under the License.  | 
 | 14 | + | 
 | 15 | +syntax = "proto3";  | 
 | 16 | +package shiftcrypto.bitbox02;  | 
 | 17 | + | 
 | 18 | +message BluetoothToggleEnabledRequest {  | 
 | 19 | +}  | 
 | 20 | + | 
 | 21 | +message BluetoothUpgradeInitRequest {  | 
 | 22 | +  uint32 firmware_length = 1;  | 
 | 23 | +}  | 
 | 24 | + | 
 | 25 | +message BluetoothChunkRequest {  | 
 | 26 | +  bytes data = 1;  | 
 | 27 | +}  | 
 | 28 | + | 
 | 29 | +message BluetoothSuccess {  | 
 | 30 | +}  | 
 | 31 | + | 
 | 32 | +message BluetoothRequestChunkResponse {  | 
 | 33 | +  uint32 offset = 1;  | 
 | 34 | +  uint32 length = 2;  | 
 | 35 | +}  | 
 | 36 | + | 
 | 37 | +message BluetoothRequest {  | 
 | 38 | +  oneof request {  | 
 | 39 | +    BluetoothUpgradeInitRequest upgrade_init = 1;  | 
 | 40 | +    BluetoothChunkRequest chunk = 2;  | 
 | 41 | +    BluetoothToggleEnabledRequest toggle_enabled = 3;  | 
 | 42 | +  }  | 
 | 43 | +}  | 
 | 44 | + | 
 | 45 | +message BluetoothResponse {  | 
 | 46 | +  oneof response {  | 
 | 47 | +    BluetoothSuccess success = 1;  | 
 | 48 | +    BluetoothRequestChunkResponse request_chunk = 2;  | 
 | 49 | +  }  | 
 | 50 | +}  | 
0 commit comments