1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00
trezor-firmware/protob/storage.proto
2014-01-21 19:20:10 +01:00

26 lines
626 B
Protocol Buffer

/*
Structure of Storage area of TREZOR
Author: Marek Palatinus <slush@satoshilabs.com>
Version: 0.1
*/
import "types.proto";
message Storage {
required uint32 version = 1;
optional HDNodeType node = 2;
optional bytes mnemonic = 3 [(binary) = true];
optional bool passphrase_protection = 4; // whether node_serialized or mnemonic are encrypted (protected by passphrase)
optional uint32 pin_failed_attempts = 5;
optional bytes pin = 6;
optional bytes language = 7;
optional bytes label = 8 [(binary) = true];
}
message Session {
optional bytes passphrase = 1 [(binary) = true];
optional HDNodeType node = 2;
}