added Storage.subscribed, Features.subscribed and ApplySettings.subscribed

pull/41/head
Pavol Rusnak 7 years ago
parent 224bdde39f
commit 2eb9c7e352
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -40,6 +40,7 @@ enum MessageType {
MessageType_ApplySettings = 25 [(wire_in) = true];
MessageType_ButtonRequest = 26 [(wire_out) = true];
MessageType_ButtonAck = 27 [(wire_in) = true, (wire_tiny) = true];
MessageType_ApplyFlags = 28 [(wire_in) = true];
MessageType_GetAddress = 29 [(wire_in) = true];
MessageType_Address = 30 [(wire_out) = true];
MessageType_SelfTest = 32 [(wire_in) = true, (wire_bootloader) = true];
@ -129,6 +130,7 @@ message Features {
optional bool passphrase_cached = 17; // is passphrase already cached in session?
optional bool firmware_present = 18; // is valid firmware loaded?
optional bool needs_backup = 19; // does storage need backup? (equals to Storage.needs_backup)
optional uint32 flags = 20; // device flags (equals to Storage.flags)
}
/**
@ -152,6 +154,15 @@ message ApplySettings {
optional bytes homescreen = 4;
}
/**
* Request: set flags of the device
* @next Success
* @next Failure
*/
message ApplyFlags {
optional uint32 flags = 1; // bitmask, can only set bits, not unset
}
/**
* Request: Starts workflow for setting/changing/removing the PIN
* @next ButtonRequest

@ -24,4 +24,5 @@ message Storage {
optional bytes homescreen = 10; // image used as homescreen (logo + label is used when not set)
optional uint32 u2f_counter = 11; // sequence number for u2f authentications
optional bool needs_backup = 12; // seed is not backed up yet
optional uint32 flags = 13; // device flags
}

Loading…
Cancel
Save