@@ -130,122 +130,6 @@ pub struct SetPasswordRequest {
130
130
#[ prost( bytes="vec" , tag="1" ) ]
131
131
pub entropy : :: prost:: alloc:: vec:: Vec < u8 > ,
132
132
}
133
- /// Should be sent every X seconds (TBD) unless the firmware already is busy with a command.
134
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
135
- pub struct BitBoxBaseHeartbeatRequest {
136
- #[ prost( enumeration="bit_box_base_heartbeat_request::StateCode" , tag="1" ) ]
137
- pub state_code : i32 ,
138
- #[ prost( enumeration="bit_box_base_heartbeat_request::DescriptionCode" , tag="2" ) ]
139
- pub description_code : i32 ,
140
- }
141
- /// Nested message and enum types in `BitBoxBaseHeartbeatRequest`.
142
- pub mod bit_box_base_heartbeat_request {
143
- #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
144
- #[ repr( i32 ) ]
145
- pub enum StateCode {
146
- Idle = 0 ,
147
- Working = 1 ,
148
- Warning = 2 ,
149
- Error = 3 ,
150
- }
151
- #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
152
- #[ repr( i32 ) ]
153
- pub enum DescriptionCode {
154
- Empty = 0 ,
155
- InitialBlockSync = 1 ,
156
- DownloadUpdate = 2 ,
157
- OutOfDiskSpace = 3 ,
158
- RedisError = 4 ,
159
- Reboot = 5 ,
160
- Shutdown = 6 ,
161
- UpdateFailed = 7 ,
162
- NoNetworkConnection = 8 ,
163
- }
164
- }
165
- /// This will display the first 20 characters of the base32 encoded version of
166
- /// the provided msg
167
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
168
- pub struct BitBoxBaseConfirmPairingRequest {
169
- #[ prost( bytes="vec" , tag="1" ) ]
170
- pub msg : :: prost:: alloc:: vec:: Vec < u8 > ,
171
- }
172
- /// Optional fields can be represented by a "oneof" with only one field in it.
173
- /// All fields are technically optional. But in reality the default value for the type will be set.
174
- /// It is therefore impossible to distinguish between the default value and if the value wasn't set.
175
- /// So any fields that have a default value which also is a valid value can use this method to send
176
- /// an empty value.
177
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
178
- pub struct BitBoxBaseSetConfigRequest {
179
- #[ prost( enumeration="bit_box_base_set_config_request::StatusLedMode" , tag="1" ) ]
180
- pub status_led_mode : i32 ,
181
- #[ prost( enumeration="bit_box_base_set_config_request::StatusScreenMode" , tag="2" ) ]
182
- pub status_screen_mode : i32 ,
183
- /// Empty string means unsetting the hostname
184
- #[ prost( string, tag="4" ) ]
185
- pub hostname : :: prost:: alloc:: string:: String ,
186
- /// 0.0.0.0 which is the default value of ip is also a valid IP, use the oneof-trick to determine
187
- /// if IP wasn't set in the message.
188
- #[ prost( oneof="bit_box_base_set_config_request::IpOption" , tags="3" ) ]
189
- pub ip_option : :: core:: option:: Option < bit_box_base_set_config_request:: IpOption > ,
190
- }
191
- /// Nested message and enum types in `BitBoxBaseSetConfigRequest`.
192
- pub mod bit_box_base_set_config_request {
193
- #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
194
- #[ repr( i32 ) ]
195
- pub enum StatusLedMode {
196
- /// display on led when status is IDLE, WORKING, WARNING and ERROR
197
- LedAlways = 0 ,
198
- /// display on led when status is WORKING, WARNING and ERROR
199
- LedOnWorking = 1 ,
200
- /// display on led when status is WARNING and ERROR
201
- LedOnWarning = 2 ,
202
- /// display on led when status is ERROR
203
- LedOnError = 3 ,
204
- }
205
- #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
206
- #[ repr( i32 ) ]
207
- pub enum StatusScreenMode {
208
- /// display on screen when status is IDLE, WORKING, WARNING and ERROR
209
- ScreenAlways = 0 ,
210
- /// display on screen when status is WORKING, WARNING and ERROR
211
- ScreenOnWorking = 1 ,
212
- /// display on screen when status is WARNING and ERROR
213
- ScreenOnWarning = 2 ,
214
- /// display on screen when status is ERROR
215
- ScreenOnError = 3 ,
216
- }
217
- /// 0.0.0.0 which is the default value of ip is also a valid IP, use the oneof-trick to determine
218
- /// if IP wasn't set in the message.
219
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
220
- pub enum IpOption {
221
- #[ prost( bytes, tag="3" ) ]
222
- Ip ( :: prost:: alloc:: vec:: Vec < u8 > ) ,
223
- }
224
- }
225
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
226
- pub struct BitBoxBaseDisplayStatusRequest {
227
- #[ prost( uint32, tag="1" ) ]
228
- pub duration : u32 ,
229
- }
230
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
231
- pub struct BitBoxBaseRequest {
232
- #[ prost( oneof="bit_box_base_request::Request" , tags="1, 2, 3, 4" ) ]
233
- pub request : :: core:: option:: Option < bit_box_base_request:: Request > ,
234
- }
235
- /// Nested message and enum types in `BitBoxBaseRequest`.
236
- pub mod bit_box_base_request {
237
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
238
- pub enum Request {
239
- #[ prost( message, tag="1" ) ]
240
- Heartbeat ( super :: BitBoxBaseHeartbeatRequest ) ,
241
- #[ prost( message, tag="2" ) ]
242
- SetConfig ( super :: BitBoxBaseSetConfigRequest ) ,
243
- #[ prost( message, tag="3" ) ]
244
- ConfirmPairing ( super :: BitBoxBaseConfirmPairingRequest ) ,
245
- #[ prost( message, tag="4" ) ]
246
- DisplayStatus ( super :: BitBoxBaseDisplayStatusRequest ) ,
247
- }
248
- }
249
133
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
250
134
pub struct AntiKleptoHostNonceCommitment {
251
135
#[ prost( bytes="vec" , tag="1" ) ]
@@ -781,7 +665,7 @@ pub struct Success {
781
665
}
782
666
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
783
667
pub struct Request {
784
- #[ prost( oneof="request::Request" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26" ) ]
668
+ #[ prost( oneof="request::Request" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26" ) ]
785
669
pub request : :: core:: option:: Option < request:: Request > ,
786
670
}
787
671
/// Nested message and enum types in `Request`.
@@ -831,8 +715,7 @@ pub mod request {
831
715
Reset ( super :: ResetRequest ) ,
832
716
#[ prost( message, tag="22" ) ]
833
717
RestoreFromMnemonic ( super :: RestoreFromMnemonicRequest ) ,
834
- #[ prost( message, tag="23" ) ]
835
- Bitboxbase ( super :: BitBoxBaseRequest ) ,
718
+ /// removed: BitBoxBaseRequest bitboxbase = 23;
836
719
#[ prost( message, tag="24" ) ]
837
720
Fingerprint ( super :: RootFingerprintRequest ) ,
838
721
#[ prost( message, tag="25" ) ]
0 commit comments