From 50861eb019b883c1741075bd911416263d23f3c0 Mon Sep 17 00:00:00 2001 From: gabrielkerekes Date: Wed, 18 Oct 2023 11:28:04 +0200 Subject: [PATCH] feat(solana): basic Solana setup --- common/protob/messages-management.proto | 1 + core/SConscript.firmware | 5 + core/SConscript.unix | 5 + core/src/apps/base.py | 1 + core/src/trezor/enums/Capability.py | 1 + core/src/trezor/enums/__init__.py | 1 + python/src/trezorlib/messages.py | 1 + rust/trezor-client/Cargo.toml | 1 + .../protos/generated/messages_management.rs | 178 +++++++++--------- 9 files changed, 108 insertions(+), 86 deletions(-) diff --git a/common/protob/messages-management.proto b/common/protob/messages-management.proto index 522d96510a..2394f2efc7 100644 --- a/common/protob/messages-management.proto +++ b/common/protob/messages-management.proto @@ -110,6 +110,7 @@ message Features { Capability_Shamir = 15 [(bitcoin_only) = true]; Capability_ShamirGroups = 16 [(bitcoin_only) = true]; Capability_PassphraseEntry = 17 [(bitcoin_only) = true]; // the device is capable of passphrase entry directly on the device + Capability_Solana = 18; } optional BackupType backup_type = 31; // type of device backup (BIP-39 / SLIP-39 basic / SLIP-39 advanced) optional bool sd_card_present = 32; // is SD card present diff --git a/core/SConscript.firmware b/core/SConscript.firmware index d68eee38c8..168d47865d 100644 --- a/core/SConscript.firmware +++ b/core/SConscript.firmware @@ -585,6 +585,7 @@ if FROZEN: SOURCE_PY_DIR + 'trezor/enums/Monero*.py', SOURCE_PY_DIR + 'trezor/enums/NEM*.py', SOURCE_PY_DIR + 'trezor/enums/Ripple*.py', + SOURCE_PY_DIR + 'trezor/enums/Solana*.py', SOURCE_PY_DIR + 'trezor/enums/Stellar*.py', SOURCE_PY_DIR + 'trezor/enums/Tezos*.py', SOURCE_PY_DIR + 'trezor/enums/Zcash*.py', @@ -645,6 +646,10 @@ if FROZEN: SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/ripple/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/Ripple*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/solana/*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/solana/*/*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/Solana*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/stellar/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/stellar/*/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/Stellar*.py')) diff --git a/core/SConscript.unix b/core/SConscript.unix index 7cc5e1fc12..a1dda73a97 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -661,6 +661,7 @@ if FROZEN: SOURCE_PY_DIR + 'trezor/enums/Monero*.py', SOURCE_PY_DIR + 'trezor/enums/NEM*.py', SOURCE_PY_DIR + 'trezor/enums/Ripple*.py', + SOURCE_PY_DIR + 'trezor/enums/Solana*.py', SOURCE_PY_DIR + 'trezor/enums/Stellar*.py', SOURCE_PY_DIR + 'trezor/enums/Tezos*.py', SOURCE_PY_DIR + 'trezor/enums/Zcash*.py', @@ -723,6 +724,10 @@ if FROZEN: SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/ripple/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/Ripple*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/solana/*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/solana/*/*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/Solana*.py')) + SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/stellar/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/stellar/*/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/Stellar*.py')) diff --git a/core/src/apps/base.py b/core/src/apps/base.py index e0b77c3e57..3a84c95cd4 100644 --- a/core/src/apps/base.py +++ b/core/src/apps/base.py @@ -101,6 +101,7 @@ def get_features() -> Features: Capability.Shamir, Capability.ShamirGroups, Capability.PassphraseEntry, + Capability.Solana, ] # We do not support some currencies on T2B1 diff --git a/core/src/trezor/enums/Capability.py b/core/src/trezor/enums/Capability.py index 176fed7786..9ebc7dc053 100644 --- a/core/src/trezor/enums/Capability.py +++ b/core/src/trezor/enums/Capability.py @@ -21,3 +21,4 @@ if not utils.BITCOIN_ONLY: Stellar = 12 Tezos = 13 U2F = 14 + Solana = 18 diff --git a/core/src/trezor/enums/__init__.py b/core/src/trezor/enums/__init__.py index bf062cc92a..346f8b9129 100644 --- a/core/src/trezor/enums/__init__.py +++ b/core/src/trezor/enums/__init__.py @@ -435,6 +435,7 @@ if TYPE_CHECKING: Shamir = 15 ShamirGroups = 16 PassphraseEntry = 17 + Solana = 18 class SdProtectOperationType(IntEnum): DISABLE = 0 diff --git a/python/src/trezorlib/messages.py b/python/src/trezorlib/messages.py index 9727bc4917..49b68442d7 100644 --- a/python/src/trezorlib/messages.py +++ b/python/src/trezorlib/messages.py @@ -466,6 +466,7 @@ class Capability(IntEnum): Shamir = 15 ShamirGroups = 16 PassphraseEntry = 17 + Solana = 18 class SdProtectOperationType(IntEnum): diff --git a/rust/trezor-client/Cargo.toml b/rust/trezor-client/Cargo.toml index 544983832a..e172ba5118 100644 --- a/rust/trezor-client/Cargo.toml +++ b/rust/trezor-client/Cargo.toml @@ -65,6 +65,7 @@ eos = [] monero = [] nem = [] ripple = [] +solana = [] stellar = [] tezos = [] webauthn = [] diff --git a/rust/trezor-client/src/protos/generated/messages_management.rs b/rust/trezor-client/src/protos/generated/messages_management.rs index 10bc8933a4..8ec3917c1c 100644 --- a/rust/trezor-client/src/protos/generated/messages_management.rs +++ b/rust/trezor-client/src/protos/generated/messages_management.rs @@ -2414,6 +2414,8 @@ pub mod features { Capability_ShamirGroups = 16, // @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.Capability.Capability_PassphraseEntry) Capability_PassphraseEntry = 17, + // @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.Capability.Capability_Solana) + Capability_Solana = 18, } impl ::protobuf::Enum for Capability { @@ -2442,6 +2444,7 @@ pub mod features { 15 => ::std::option::Option::Some(Capability::Capability_Shamir), 16 => ::std::option::Option::Some(Capability::Capability_ShamirGroups), 17 => ::std::option::Option::Some(Capability::Capability_PassphraseEntry), + 18 => ::std::option::Option::Some(Capability::Capability_Solana), _ => ::std::option::Option::None } } @@ -2465,6 +2468,7 @@ pub mod features { "Capability_Shamir" => ::std::option::Option::Some(Capability::Capability_Shamir), "Capability_ShamirGroups" => ::std::option::Option::Some(Capability::Capability_ShamirGroups), "Capability_PassphraseEntry" => ::std::option::Option::Some(Capability::Capability_PassphraseEntry), + "Capability_Solana" => ::std::option::Option::Some(Capability::Capability_Solana), _ => ::std::option::Option::None } } @@ -2487,6 +2491,7 @@ pub mod features { Capability::Capability_Shamir, Capability::Capability_ShamirGroups, Capability::Capability_PassphraseEntry, + Capability::Capability_Solana, ]; } @@ -2515,6 +2520,7 @@ pub mod features { Capability::Capability_Shamir => 14, Capability::Capability_ShamirGroups => 15, Capability::Capability_PassphraseEntry => 16, + Capability::Capability_Solana => 17, }; Self::enum_descriptor().value_by_index(index) } @@ -9699,7 +9705,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x0emessages.proto\"\x80\x01\n\nInitialize\x12\x1d\n\nsession_id\x18\x01\ \x20\x01(\x0cR\tsessionId\x12,\n\x10_skip_passphrase\x18\x02\x20\x01(\ \x08R\x0eSkipPassphraseB\x02\x18\x01\x12%\n\x0ederive_cardano\x18\x03\ - \x20\x01(\x08R\rderiveCardano\"\r\n\x0bGetFeatures\"\xd9\x12\n\x08Featur\ + \x20\x01(\x08R\rderiveCardano\"\r\n\x0bGetFeatures\"\xf0\x12\n\x08Featur\ es\x12\x16\n\x06vendor\x18\x01\x20\x01(\tR\x06vendor\x12#\n\rmajor_versi\ on\x18\x02\x20\x02(\rR\x0cmajorVersion\x12#\n\rminor_version\x18\x03\x20\ \x02(\rR\x0cminorVersion\x12#\n\rpatch_version\x18\x04\x20\x02(\rR\x0cpa\ @@ -9742,7 +9748,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\x0cunit_btconly\x18.\x20\x01(\x08R\x0bunitBtconly\x12)\n\x10homescree\ n_width\x18/\x20\x01(\rR\x0fhomescreenWidth\x12+\n\x11homescreen_height\ \x180\x20\x01(\rR\x10homescreenHeight\x12+\n\x11bootloader_locked\x181\ - \x20\x01(\x08R\x10bootloaderLocked\"\xca\x03\n\nCapability\x12\x1c\n\x12\ + \x20\x01(\x08R\x10bootloaderLocked\"\xe1\x03\n\nCapability\x12\x1c\n\x12\ Capability_Bitcoin\x10\x01\x1a\x04\x80\xa6\x1d\x01\x12\x1b\n\x17Capabili\ ty_Bitcoin_like\x10\x02\x12\x16\n\x12Capability_Binance\x10\x03\x12\x16\ \n\x12Capability_Cardano\x10\x04\x12\x1b\n\x11Capability_Crypto\x10\x05\ @@ -9754,90 +9760,90 @@ static file_descriptor_proto_data: &'static [u8] = b"\ bility_U2F\x10\x0e\x12\x1b\n\x11Capability_Shamir\x10\x0f\x1a\x04\x80\ \xa6\x1d\x01\x12!\n\x17Capability_ShamirGroups\x10\x10\x1a\x04\x80\xa6\ \x1d\x01\x12$\n\x1aCapability_PassphraseEntry\x10\x11\x1a\x04\x80\xa6\ - \x1d\x01\x1a\x04\xc8\xf3\x18\x01\"\x0c\n\nLockDevice\"&\n\x07SetBusy\x12\ - \x1b\n\texpiry_ms\x18\x01\x20\x01(\rR\x08expiryMs\"\x0c\n\nEndSession\"\ - \x97\x04\n\rApplySettings\x12\x1a\n\x08language\x18\x01\x20\x01(\tR\x08l\ - anguage\x12\x14\n\x05label\x18\x02\x20\x01(\tR\x05label\x12%\n\x0euse_pa\ - ssphrase\x18\x03\x20\x01(\x08R\rusePassphrase\x12\x1e\n\nhomescreen\x18\ - \x04\x20\x01(\x0cR\nhomescreen\x120\n\x12_passphrase_source\x18\x05\x20\ - \x01(\rR\x10PassphraseSourceB\x02\x18\x01\x12+\n\x12auto_lock_delay_ms\ - \x18\x06\x20\x01(\rR\x0fautoLockDelayMs\x12)\n\x10display_rotation\x18\ - \x07\x20\x01(\rR\x0fdisplayRotation\x12=\n\x1bpassphrase_always_on_devic\ - e\x18\x08\x20\x01(\x08R\x18passphraseAlwaysOnDevice\x12T\n\rsafety_check\ - s\x18\t\x20\x01(\x0e2/.hw.trezor.messages.management.SafetyCheckLevelR\ - \x0csafetyChecks\x123\n\x15experimental_features\x18\n\x20\x01(\x08R\x14\ - experimentalFeatures\x129\n\x19hide_passphrase_from_host\x18\x0b\x20\x01\ - (\x08R\x16hidePassphraseFromHost\"\"\n\nApplyFlags\x12\x14\n\x05flags\ - \x18\x01\x20\x02(\rR\x05flags\"#\n\tChangePin\x12\x16\n\x06remove\x18\ - \x01\x20\x01(\x08R\x06remove\"(\n\x0eChangeWipeCode\x12\x16\n\x06remove\ - \x18\x01\x20\x01(\x08R\x06remove\"\xaa\x01\n\tSdProtect\x12]\n\toperatio\ - n\x18\x01\x20\x02(\x0e2?.hw.trezor.messages.management.SdProtect.SdProte\ - ctOperationTypeR\toperation\">\n\x16SdProtectOperationType\x12\x0b\n\x07\ - DISABLE\x10\0\x12\n\n\x06ENABLE\x10\x01\x12\x0b\n\x07REFRESH\x10\x02\"O\ - \n\x04Ping\x12\x1a\n\x07message\x18\x01\x20\x01(\t:\0R\x07message\x12+\n\ - \x11button_protection\x18\x02\x20\x01(\x08R\x10buttonProtection\"\x08\n\ - \x06Cancel\"\x20\n\nGetEntropy\x12\x12\n\x04size\x18\x01\x20\x02(\rR\x04\ - size\"#\n\x07Entropy\x12\x18\n\x07entropy\x18\x01\x20\x02(\x0cR\x07entro\ - py\"/\n\x0fGetFirmwareHash\x12\x1c\n\tchallenge\x18\x01\x20\x01(\x0cR\tc\ - hallenge\"\"\n\x0cFirmwareHash\x12\x12\n\x04hash\x18\x01\x20\x02(\x0cR\ - \x04hash\"2\n\x12AuthenticateDevice\x12\x1c\n\tchallenge\x18\x01\x20\x02\ - (\x0cR\tchallenge\"U\n\x11AuthenticityProof\x12\"\n\x0ccertificates\x18\ - \x01\x20\x03(\x0cR\x0ccertificates\x12\x1c\n\tsignature\x18\x02\x20\x02(\ - \x0cR\tsignature\"\x0c\n\nWipeDevice\"\xb0\x02\n\nLoadDevice\x12\x1c\n\t\ - mnemonics\x18\x01\x20\x03(\tR\tmnemonics\x12\x10\n\x03pin\x18\x03\x20\ - \x01(\tR\x03pin\x123\n\x15passphrase_protection\x18\x04\x20\x01(\x08R\ - \x14passphraseProtection\x12!\n\x08language\x18\x05\x20\x01(\t:\x05en-US\ - R\x08language\x12\x14\n\x05label\x18\x06\x20\x01(\tR\x05label\x12#\n\rsk\ - ip_checksum\x18\x07\x20\x01(\x08R\x0cskipChecksum\x12\x1f\n\x0bu2f_count\ - er\x18\x08\x20\x01(\rR\nu2fCounter\x12!\n\x0cneeds_backup\x18\t\x20\x01(\ - \x08R\x0bneedsBackup\x12\x1b\n\tno_backup\x18\n\x20\x01(\x08R\x08noBacku\ - p\"\x9c\x03\n\x0bResetDevice\x12%\n\x0edisplay_random\x18\x01\x20\x01(\ - \x08R\rdisplayRandom\x12\x1f\n\x08strength\x18\x02\x20\x01(\r:\x03256R\ - \x08strength\x123\n\x15passphrase_protection\x18\x03\x20\x01(\x08R\x14pa\ - ssphraseProtection\x12%\n\x0epin_protection\x18\x04\x20\x01(\x08R\rpinPr\ - otection\x12!\n\x08language\x18\x05\x20\x01(\t:\x05en-USR\x08language\ - \x12\x14\n\x05label\x18\x06\x20\x01(\tR\x05label\x12\x1f\n\x0bu2f_counte\ - r\x18\x07\x20\x01(\rR\nu2fCounter\x12\x1f\n\x0bskip_backup\x18\x08\x20\ - \x01(\x08R\nskipBackup\x12\x1b\n\tno_backup\x18\t\x20\x01(\x08R\x08noBac\ - kup\x12Q\n\x0bbackup_type\x18\n\x20\x01(\x0e2).hw.trezor.messages.manage\ - ment.BackupType:\x05Bip39R\nbackupType\"\x0e\n\x0cBackupDevice\"\x10\n\ - \x0eEntropyRequest\"&\n\nEntropyAck\x12\x18\n\x07entropy\x18\x01\x20\x02\ - (\x0cR\x07entropy\"\xd4\x03\n\x0eRecoveryDevice\x12\x1d\n\nword_count\ - \x18\x01\x20\x01(\rR\twordCount\x123\n\x15passphrase_protection\x18\x02\ - \x20\x01(\x08R\x14passphraseProtection\x12%\n\x0epin_protection\x18\x03\ - \x20\x01(\x08R\rpinProtection\x12\x1a\n\x08language\x18\x04\x20\x01(\tR\ - \x08language\x12\x14\n\x05label\x18\x05\x20\x01(\tR\x05label\x12)\n\x10e\ - nforce_wordlist\x18\x06\x20\x01(\x08R\x0fenforceWordlist\x12T\n\x04type\ - \x18\x08\x20\x01(\x0e2@.hw.trezor.messages.management.RecoveryDevice.Rec\ - overyDeviceTypeR\x04type\x12\x1f\n\x0bu2f_counter\x18\t\x20\x01(\rR\nu2f\ - Counter\x12\x17\n\x07dry_run\x18\n\x20\x01(\x08R\x06dryRun\"Z\n\x12Recov\ - eryDeviceType\x12%\n!RecoveryDeviceType_ScrambledWords\x10\0\x12\x1d\n\ - \x19RecoveryDeviceType_Matrix\x10\x01\"\xc5\x01\n\x0bWordRequest\x12N\n\ - \x04type\x18\x01\x20\x02(\x0e2:.hw.trezor.messages.management.WordReques\ - t.WordRequestTypeR\x04type\"f\n\x0fWordRequestType\x12\x19\n\x15WordRequ\ - estType_Plain\x10\0\x12\x1b\n\x17WordRequestType_Matrix9\x10\x01\x12\x1b\ - \n\x17WordRequestType_Matrix6\x10\x02\"\x1d\n\x07WordAck\x12\x12\n\x04wo\ - rd\x18\x01\x20\x02(\tR\x04word\"0\n\rSetU2FCounter\x12\x1f\n\x0bu2f_coun\ - ter\x18\x01\x20\x02(\rR\nu2fCounter\"\x13\n\x11GetNextU2FCounter\"1\n\ - \x0eNextU2FCounter\x12\x1f\n\x0bu2f_counter\x18\x01\x20\x02(\rR\nu2fCoun\ - ter\"\x11\n\x0fDoPreauthorized\"\x16\n\x14PreauthorizedRequest\"\x15\n\ - \x13CancelAuthorization\"\xe5\x01\n\x12RebootToBootloader\x12o\n\x0cboot\ - _command\x18\x01\x20\x01(\x0e2=.hw.trezor.messages.management.RebootToBo\ - otloader.BootCommand:\rSTOP_AND_WAITR\x0bbootCommand\x12'\n\x0ffirmware_\ - header\x18\x02\x20\x01(\x0cR\x0efirmwareHeader\"5\n\x0bBootCommand\x12\ - \x11\n\rSTOP_AND_WAIT\x10\0\x12\x13\n\x0fINSTALL_UPGRADE\x10\x01\"\x10\n\ - \x08GetNonce:\x04\x88\xb2\x19\x01\"#\n\x05Nonce\x12\x14\n\x05nonce\x18\ - \x01\x20\x02(\x0cR\x05nonce:\x04\x88\xb2\x19\x01\";\n\nUnlockPath\x12\ - \x1b\n\taddress_n\x18\x01\x20\x03(\rR\x08addressN\x12\x10\n\x03mac\x18\ - \x02\x20\x01(\x0cR\x03mac\"'\n\x13UnlockedPathRequest\x12\x10\n\x03mac\ - \x18\x01\x20\x01(\x0cR\x03mac\"\x14\n\x12ShowDeviceTutorial\"\x12\n\x10U\ - nlockBootloader*>\n\nBackupType\x12\t\n\x05Bip39\x10\0\x12\x10\n\x0cSlip\ - 39_Basic\x10\x01\x12\x13\n\x0fSlip39_Advanced\x10\x02*G\n\x10SafetyCheck\ - Level\x12\n\n\x06Strict\x10\0\x12\x10\n\x0cPromptAlways\x10\x01\x12\x15\ - \n\x11PromptTemporarily\x10\x02*0\n\x10HomescreenFormat\x12\x08\n\x04Toi\ - f\x10\x01\x12\x08\n\x04Jpeg\x10\x02\x12\x08\n\x04ToiG\x10\x03BB\n#com.sa\ - toshilabs.trezor.lib.protobufB\x17TrezorMessageManagement\x80\xa6\x1d\ - \x01\ + \x1d\x01\x12\x15\n\x11Capability_Solana\x10\x12\x1a\x04\xc8\xf3\x18\x01\ + \"\x0c\n\nLockDevice\"&\n\x07SetBusy\x12\x1b\n\texpiry_ms\x18\x01\x20\ + \x01(\rR\x08expiryMs\"\x0c\n\nEndSession\"\x97\x04\n\rApplySettings\x12\ + \x1a\n\x08language\x18\x01\x20\x01(\tR\x08language\x12\x14\n\x05label\ + \x18\x02\x20\x01(\tR\x05label\x12%\n\x0euse_passphrase\x18\x03\x20\x01(\ + \x08R\rusePassphrase\x12\x1e\n\nhomescreen\x18\x04\x20\x01(\x0cR\nhomesc\ + reen\x120\n\x12_passphrase_source\x18\x05\x20\x01(\rR\x10PassphraseSourc\ + eB\x02\x18\x01\x12+\n\x12auto_lock_delay_ms\x18\x06\x20\x01(\rR\x0fautoL\ + ockDelayMs\x12)\n\x10display_rotation\x18\x07\x20\x01(\rR\x0fdisplayRota\ + tion\x12=\n\x1bpassphrase_always_on_device\x18\x08\x20\x01(\x08R\x18pass\ + phraseAlwaysOnDevice\x12T\n\rsafety_checks\x18\t\x20\x01(\x0e2/.hw.trezo\ + r.messages.management.SafetyCheckLevelR\x0csafetyChecks\x123\n\x15experi\ + mental_features\x18\n\x20\x01(\x08R\x14experimentalFeatures\x129\n\x19hi\ + de_passphrase_from_host\x18\x0b\x20\x01(\x08R\x16hidePassphraseFromHost\ + \"\"\n\nApplyFlags\x12\x14\n\x05flags\x18\x01\x20\x02(\rR\x05flags\"#\n\ + \tChangePin\x12\x16\n\x06remove\x18\x01\x20\x01(\x08R\x06remove\"(\n\x0e\ + ChangeWipeCode\x12\x16\n\x06remove\x18\x01\x20\x01(\x08R\x06remove\"\xaa\ + \x01\n\tSdProtect\x12]\n\toperation\x18\x01\x20\x02(\x0e2?.hw.trezor.mes\ + sages.management.SdProtect.SdProtectOperationTypeR\toperation\">\n\x16Sd\ + ProtectOperationType\x12\x0b\n\x07DISABLE\x10\0\x12\n\n\x06ENABLE\x10\ + \x01\x12\x0b\n\x07REFRESH\x10\x02\"O\n\x04Ping\x12\x1a\n\x07message\x18\ + \x01\x20\x01(\t:\0R\x07message\x12+\n\x11button_protection\x18\x02\x20\ + \x01(\x08R\x10buttonProtection\"\x08\n\x06Cancel\"\x20\n\nGetEntropy\x12\ + \x12\n\x04size\x18\x01\x20\x02(\rR\x04size\"#\n\x07Entropy\x12\x18\n\x07\ + entropy\x18\x01\x20\x02(\x0cR\x07entropy\"/\n\x0fGetFirmwareHash\x12\x1c\ + \n\tchallenge\x18\x01\x20\x01(\x0cR\tchallenge\"\"\n\x0cFirmwareHash\x12\ + \x12\n\x04hash\x18\x01\x20\x02(\x0cR\x04hash\"2\n\x12AuthenticateDevice\ + \x12\x1c\n\tchallenge\x18\x01\x20\x02(\x0cR\tchallenge\"U\n\x11Authentic\ + ityProof\x12\"\n\x0ccertificates\x18\x01\x20\x03(\x0cR\x0ccertificates\ + \x12\x1c\n\tsignature\x18\x02\x20\x02(\x0cR\tsignature\"\x0c\n\nWipeDevi\ + ce\"\xb0\x02\n\nLoadDevice\x12\x1c\n\tmnemonics\x18\x01\x20\x03(\tR\tmne\ + monics\x12\x10\n\x03pin\x18\x03\x20\x01(\tR\x03pin\x123\n\x15passphrase_\ + protection\x18\x04\x20\x01(\x08R\x14passphraseProtection\x12!\n\x08langu\ + age\x18\x05\x20\x01(\t:\x05en-USR\x08language\x12\x14\n\x05label\x18\x06\ + \x20\x01(\tR\x05label\x12#\n\rskip_checksum\x18\x07\x20\x01(\x08R\x0cski\ + pChecksum\x12\x1f\n\x0bu2f_counter\x18\x08\x20\x01(\rR\nu2fCounter\x12!\ + \n\x0cneeds_backup\x18\t\x20\x01(\x08R\x0bneedsBackup\x12\x1b\n\tno_back\ + up\x18\n\x20\x01(\x08R\x08noBackup\"\x9c\x03\n\x0bResetDevice\x12%\n\x0e\ + display_random\x18\x01\x20\x01(\x08R\rdisplayRandom\x12\x1f\n\x08strengt\ + h\x18\x02\x20\x01(\r:\x03256R\x08strength\x123\n\x15passphrase_protectio\ + n\x18\x03\x20\x01(\x08R\x14passphraseProtection\x12%\n\x0epin_protection\ + \x18\x04\x20\x01(\x08R\rpinProtection\x12!\n\x08language\x18\x05\x20\x01\ + (\t:\x05en-USR\x08language\x12\x14\n\x05label\x18\x06\x20\x01(\tR\x05lab\ + el\x12\x1f\n\x0bu2f_counter\x18\x07\x20\x01(\rR\nu2fCounter\x12\x1f\n\ + \x0bskip_backup\x18\x08\x20\x01(\x08R\nskipBackup\x12\x1b\n\tno_backup\ + \x18\t\x20\x01(\x08R\x08noBackup\x12Q\n\x0bbackup_type\x18\n\x20\x01(\ + \x0e2).hw.trezor.messages.management.BackupType:\x05Bip39R\nbackupType\"\ + \x0e\n\x0cBackupDevice\"\x10\n\x0eEntropyRequest\"&\n\nEntropyAck\x12\ + \x18\n\x07entropy\x18\x01\x20\x02(\x0cR\x07entropy\"\xd4\x03\n\x0eRecove\ + ryDevice\x12\x1d\n\nword_count\x18\x01\x20\x01(\rR\twordCount\x123\n\x15\ + passphrase_protection\x18\x02\x20\x01(\x08R\x14passphraseProtection\x12%\ + \n\x0epin_protection\x18\x03\x20\x01(\x08R\rpinProtection\x12\x1a\n\x08l\ + anguage\x18\x04\x20\x01(\tR\x08language\x12\x14\n\x05label\x18\x05\x20\ + \x01(\tR\x05label\x12)\n\x10enforce_wordlist\x18\x06\x20\x01(\x08R\x0fen\ + forceWordlist\x12T\n\x04type\x18\x08\x20\x01(\x0e2@.hw.trezor.messages.m\ + anagement.RecoveryDevice.RecoveryDeviceTypeR\x04type\x12\x1f\n\x0bu2f_co\ + unter\x18\t\x20\x01(\rR\nu2fCounter\x12\x17\n\x07dry_run\x18\n\x20\x01(\ + \x08R\x06dryRun\"Z\n\x12RecoveryDeviceType\x12%\n!RecoveryDeviceType_Scr\ + ambledWords\x10\0\x12\x1d\n\x19RecoveryDeviceType_Matrix\x10\x01\"\xc5\ + \x01\n\x0bWordRequest\x12N\n\x04type\x18\x01\x20\x02(\x0e2:.hw.trezor.me\ + ssages.management.WordRequest.WordRequestTypeR\x04type\"f\n\x0fWordReque\ + stType\x12\x19\n\x15WordRequestType_Plain\x10\0\x12\x1b\n\x17WordRequest\ + Type_Matrix9\x10\x01\x12\x1b\n\x17WordRequestType_Matrix6\x10\x02\"\x1d\ + \n\x07WordAck\x12\x12\n\x04word\x18\x01\x20\x02(\tR\x04word\"0\n\rSetU2F\ + Counter\x12\x1f\n\x0bu2f_counter\x18\x01\x20\x02(\rR\nu2fCounter\"\x13\n\ + \x11GetNextU2FCounter\"1\n\x0eNextU2FCounter\x12\x1f\n\x0bu2f_counter\ + \x18\x01\x20\x02(\rR\nu2fCounter\"\x11\n\x0fDoPreauthorized\"\x16\n\x14P\ + reauthorizedRequest\"\x15\n\x13CancelAuthorization\"\xe5\x01\n\x12Reboot\ + ToBootloader\x12o\n\x0cboot_command\x18\x01\x20\x01(\x0e2=.hw.trezor.mes\ + sages.management.RebootToBootloader.BootCommand:\rSTOP_AND_WAITR\x0bboot\ + Command\x12'\n\x0ffirmware_header\x18\x02\x20\x01(\x0cR\x0efirmwareHeade\ + r\"5\n\x0bBootCommand\x12\x11\n\rSTOP_AND_WAIT\x10\0\x12\x13\n\x0fINSTAL\ + L_UPGRADE\x10\x01\"\x10\n\x08GetNonce:\x04\x88\xb2\x19\x01\"#\n\x05Nonce\ + \x12\x14\n\x05nonce\x18\x01\x20\x02(\x0cR\x05nonce:\x04\x88\xb2\x19\x01\ + \";\n\nUnlockPath\x12\x1b\n\taddress_n\x18\x01\x20\x03(\rR\x08addressN\ + \x12\x10\n\x03mac\x18\x02\x20\x01(\x0cR\x03mac\"'\n\x13UnlockedPathReque\ + st\x12\x10\n\x03mac\x18\x01\x20\x01(\x0cR\x03mac\"\x14\n\x12ShowDeviceTu\ + torial\"\x12\n\x10UnlockBootloader*>\n\nBackupType\x12\t\n\x05Bip39\x10\ + \0\x12\x10\n\x0cSlip39_Basic\x10\x01\x12\x13\n\x0fSlip39_Advanced\x10\ + \x02*G\n\x10SafetyCheckLevel\x12\n\n\x06Strict\x10\0\x12\x10\n\x0cPrompt\ + Always\x10\x01\x12\x15\n\x11PromptTemporarily\x10\x02*0\n\x10HomescreenF\ + ormat\x12\x08\n\x04Toif\x10\x01\x12\x08\n\x04Jpeg\x10\x02\x12\x08\n\x04T\ + oiG\x10\x03BB\n#com.satoshilabs.trezor.lib.protobufB\x17TrezorMessageMan\ + agement\x80\xa6\x1d\x01\ "; /// `FileDescriptorProto` object which was a source for this generated file