1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

use passphrase_protection fields

This commit is contained in:
Pavol Rusnak 2013-11-28 01:05:50 +01:00
parent f6180f7711
commit 2c621ca20f
2 changed files with 2 additions and 1 deletions

View File

@ -196,6 +196,7 @@ message LoadDevice {
optional bytes mnemonic = 1; // Seed encoded as a mnemonic (12 english words) optional bytes mnemonic = 1; // Seed encoded as a mnemonic (12 english words)
optional HDNodeType node = 2; optional HDNodeType node = 2;
optional bytes pin = 3; // Set PIN protection for important actions optional bytes pin = 3; // Set PIN protection for important actions
optional bool passphrase_protection = 4;
} }
// Request device to do full-reset, to generate new seed // Request device to do full-reset, to generate new seed

View File

@ -12,7 +12,7 @@ message Storage {
required uint32 version = 1; required uint32 version = 1;
optional bytes node_serialized = 2 [(binary) = true]; optional bytes node_serialized = 2 [(binary) = true];
optional bytes mnemonic = 3 [(binary) = true]; optional bytes mnemonic = 3 [(binary) = true];
optional bool encrypted = 4; // whether node_serialized or mnemonic are encrypted (protected by passphrase) optional bool passphrase_protection = 4; // whether node_serialized or mnemonic are encrypted (protected by passphrase)
optional uint32 pin_failed_attempts = 5; optional uint32 pin_failed_attempts = 5;
optional bytes pin = 6; optional bytes pin = 6;
optional bytes language = 7; optional bytes language = 7;