2013-11-22 16:27:47 +00:00
|
|
|
/*
|
|
|
|
Structure of Storage area of TREZOR
|
|
|
|
|
|
|
|
Author: Marek Palatinus <slush@satoshilabs.com>
|
|
|
|
|
|
|
|
Version: 0.1
|
|
|
|
*/
|
|
|
|
|
2013-11-26 14:48:17 +00:00
|
|
|
import "types.proto";
|
2013-11-22 16:27:47 +00:00
|
|
|
|
|
|
|
message Storage {
|
|
|
|
required uint32 version = 1;
|
2013-11-26 15:10:55 +00:00
|
|
|
optional bytes node_serialized = 2 [(binary) = true];
|
|
|
|
optional bytes mnemonic = 3 [(binary) = true];
|
2013-11-28 00:05:50 +00:00
|
|
|
optional bool passphrase_protection = 4; // whether node_serialized or mnemonic are encrypted (protected by passphrase)
|
2013-11-26 15:10:55 +00:00
|
|
|
optional uint32 pin_failed_attempts = 5;
|
|
|
|
optional bytes pin = 6;
|
|
|
|
optional bytes language = 7;
|
|
|
|
optional bytes label = 8 [(binary) = true];
|
2013-11-22 16:27:47 +00:00
|
|
|
}
|
2013-11-26 14:48:17 +00:00
|
|
|
|
|
|
|
message Session {
|
|
|
|
optional bytes passphrase = 1 [(binary) = true];
|
2013-11-26 15:10:55 +00:00
|
|
|
optional CoinType coin = 2;
|
|
|
|
optional HDNodeType node = 3;
|
2013-11-26 14:48:17 +00:00
|
|
|
}
|