2014-03-25 18:20:36 +00:00
|
|
|
/**
|
|
|
|
* Storage area of TREZOR
|
|
|
|
*/
|
2013-11-22 16:27:47 +00:00
|
|
|
|
2014-04-07 16:01:11 +00:00
|
|
|
// Sugar for easier handling in Java
|
2017-07-04 12:02:22 +00:00
|
|
|
option java_package = "com.satoshilabs.trezor.lib.protobuf";
|
2014-02-02 10:28:43 +00:00
|
|
|
option java_outer_classname = "TrezorStorage";
|
|
|
|
|
2013-11-26 14:48:17 +00:00
|
|
|
import "types.proto";
|
2013-11-22 16:27:47 +00:00
|
|
|
|
2014-03-25 18:20:36 +00:00
|
|
|
/**
|
|
|
|
* Internal persistent storage of device
|
|
|
|
*/
|
2013-11-22 16:27:47 +00:00
|
|
|
message Storage {
|
2014-03-25 18:20:36 +00:00
|
|
|
required uint32 version = 1; // version of storage
|
|
|
|
optional HDNodeType node = 2; // BIP-32 node (mnemonic cannot be used if this is present)
|
|
|
|
optional string mnemonic = 3; // BIP-39 mnemonic (node cannot be used if this is present)
|
|
|
|
optional bool passphrase_protection = 4; // whether to require passphrase to decrypt node or stretch mnemonic
|
|
|
|
optional uint32 pin_failed_attempts = 5; // number of failed PIN attempts
|
|
|
|
optional string pin = 6; // current PIN
|
|
|
|
optional string language = 7; // current language
|
|
|
|
optional string label = 8; // device label
|
2014-07-02 15:54:48 +00:00
|
|
|
optional bool imported = 9; // was storage imported from an external source?
|
2015-02-04 19:17:10 +00:00
|
|
|
optional bytes homescreen = 10; // image used as homescreen (logo + label is used when not set)
|
2015-11-02 23:04:48 +00:00
|
|
|
optional uint32 u2f_counter = 11; // sequence number for u2f authentications
|
2017-06-23 17:06:24 +00:00
|
|
|
optional bool needs_backup = 12; // seed is not backed up yet
|
2014-03-01 10:17:06 +00:00
|
|
|
}
|