|
|
|
@ -416,8 +416,8 @@ pub struct Features {
|
|
|
|
|
pub unfinished_backup: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.no_backup)
|
|
|
|
|
pub no_backup: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.recovery_mode)
|
|
|
|
|
pub recovery_mode: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.recovery_status)
|
|
|
|
|
pub recovery_status: ::std::option::Option<::protobuf::EnumOrUnknown<features::RecoveryStatus>>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.capabilities)
|
|
|
|
|
pub capabilities: ::std::vec::Vec<::protobuf::EnumOrUnknown<features::Capability>>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.Features.backup_type)
|
|
|
|
@ -1108,23 +1108,26 @@ impl Features {
|
|
|
|
|
self.no_backup = ::std::option::Option::Some(v);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional bool recovery_mode = 29;
|
|
|
|
|
// optional .hw.trezor.messages.management.Features.RecoveryStatus recovery_status = 29;
|
|
|
|
|
|
|
|
|
|
pub fn recovery_mode(&self) -> bool {
|
|
|
|
|
self.recovery_mode.unwrap_or(false)
|
|
|
|
|
pub fn recovery_status(&self) -> features::RecoveryStatus {
|
|
|
|
|
match self.recovery_status {
|
|
|
|
|
Some(e) => e.enum_value_or(features::RecoveryStatus::NoRecovery),
|
|
|
|
|
None => features::RecoveryStatus::NoRecovery,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn clear_recovery_mode(&mut self) {
|
|
|
|
|
self.recovery_mode = ::std::option::Option::None;
|
|
|
|
|
pub fn clear_recovery_status(&mut self) {
|
|
|
|
|
self.recovery_status = ::std::option::Option::None;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn has_recovery_mode(&self) -> bool {
|
|
|
|
|
self.recovery_mode.is_some()
|
|
|
|
|
pub fn has_recovery_status(&self) -> bool {
|
|
|
|
|
self.recovery_status.is_some()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
|
|
pub fn set_recovery_mode(&mut self, v: bool) {
|
|
|
|
|
self.recovery_mode = ::std::option::Option::Some(v);
|
|
|
|
|
pub fn set_recovery_status(&mut self, v: features::RecoveryStatus) {
|
|
|
|
|
self.recovery_status = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional .hw.trezor.messages.management.BackupType backup_type = 31;
|
|
|
|
@ -1703,9 +1706,9 @@ impl Features {
|
|
|
|
|
|m: &mut Features| { &mut m.no_backup },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"recovery_mode",
|
|
|
|
|
|m: &Features| { &m.recovery_mode },
|
|
|
|
|
|m: &mut Features| { &mut m.recovery_mode },
|
|
|
|
|
"recovery_status",
|
|
|
|
|
|m: &Features| { &m.recovery_status },
|
|
|
|
|
|m: &mut Features| { &mut m.recovery_status },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
|
|
|
|
|
"capabilities",
|
|
|
|
@ -1923,7 +1926,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
self.no_backup = ::std::option::Option::Some(is.read_bool()?);
|
|
|
|
|
},
|
|
|
|
|
232 => {
|
|
|
|
|
self.recovery_mode = ::std::option::Option::Some(is.read_bool()?);
|
|
|
|
|
self.recovery_status = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
},
|
|
|
|
|
240 => {
|
|
|
|
|
self.capabilities.push(is.read_enum_or_unknown()?);
|
|
|
|
@ -2084,8 +2087,8 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
if let Some(v) = self.no_backup {
|
|
|
|
|
my_size += 2 + 1;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.recovery_mode {
|
|
|
|
|
my_size += 2 + 1;
|
|
|
|
|
if let Some(v) = self.recovery_status {
|
|
|
|
|
my_size += ::protobuf::rt::int32_size(29, v.value());
|
|
|
|
|
}
|
|
|
|
|
for value in &self.capabilities {
|
|
|
|
|
my_size += ::protobuf::rt::int32_size(30, value.value());
|
|
|
|
@ -2237,8 +2240,8 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
if let Some(v) = self.no_backup {
|
|
|
|
|
os.write_bool(28, v)?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.recovery_mode {
|
|
|
|
|
os.write_bool(29, v)?;
|
|
|
|
|
if let Some(v) = self.recovery_status {
|
|
|
|
|
os.write_enum(29, ::protobuf::EnumOrUnknown::value(&v))?;
|
|
|
|
|
}
|
|
|
|
|
for v in &self.capabilities {
|
|
|
|
|
os.write_enum(30, ::protobuf::EnumOrUnknown::value(v))?;
|
|
|
|
@ -2349,7 +2352,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
self.fw_vendor = ::std::option::Option::None;
|
|
|
|
|
self.unfinished_backup = ::std::option::Option::None;
|
|
|
|
|
self.no_backup = ::std::option::Option::None;
|
|
|
|
|
self.recovery_mode = ::std::option::Option::None;
|
|
|
|
|
self.recovery_status = ::std::option::Option::None;
|
|
|
|
|
self.capabilities.clear();
|
|
|
|
|
self.backup_type = ::std::option::Option::None;
|
|
|
|
|
self.sd_card_present = ::std::option::Option::None;
|
|
|
|
@ -2403,7 +2406,7 @@ impl ::protobuf::Message for Features {
|
|
|
|
|
fw_vendor: ::std::option::Option::None,
|
|
|
|
|
unfinished_backup: ::std::option::Option::None,
|
|
|
|
|
no_backup: ::std::option::Option::None,
|
|
|
|
|
recovery_mode: ::std::option::Option::None,
|
|
|
|
|
recovery_status: ::std::option::Option::None,
|
|
|
|
|
capabilities: ::std::vec::Vec::new(),
|
|
|
|
|
backup_type: ::std::option::Option::None,
|
|
|
|
|
sd_card_present: ::std::option::Option::None,
|
|
|
|
@ -2451,6 +2454,78 @@ impl ::protobuf::reflect::ProtobufValue for Features {
|
|
|
|
|
|
|
|
|
|
/// Nested message and enums of message `Features`
|
|
|
|
|
pub mod features {
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.Features.RecoveryStatus)
|
|
|
|
|
pub enum RecoveryStatus {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.NoRecovery)
|
|
|
|
|
NoRecovery = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.InNormalRecovery)
|
|
|
|
|
InNormalRecovery = 1,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.InDryRunRecovery)
|
|
|
|
|
InDryRunRecovery = 2,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.RecoveryStatus.InUnlockRepeatedBackupRecovery)
|
|
|
|
|
InUnlockRepeatedBackupRecovery = 3,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::Enum for RecoveryStatus {
|
|
|
|
|
const NAME: &'static str = "RecoveryStatus";
|
|
|
|
|
|
|
|
|
|
fn value(&self) -> i32 {
|
|
|
|
|
*self as i32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<RecoveryStatus> {
|
|
|
|
|
match value {
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryStatus::NoRecovery),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryStatus::InNormalRecovery),
|
|
|
|
|
2 => ::std::option::Option::Some(RecoveryStatus::InDryRunRecovery),
|
|
|
|
|
3 => ::std::option::Option::Some(RecoveryStatus::InUnlockRepeatedBackupRecovery),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<RecoveryStatus> {
|
|
|
|
|
match str {
|
|
|
|
|
"NoRecovery" => ::std::option::Option::Some(RecoveryStatus::NoRecovery),
|
|
|
|
|
"InNormalRecovery" => ::std::option::Option::Some(RecoveryStatus::InNormalRecovery),
|
|
|
|
|
"InDryRunRecovery" => ::std::option::Option::Some(RecoveryStatus::InDryRunRecovery),
|
|
|
|
|
"InUnlockRepeatedBackupRecovery" => ::std::option::Option::Some(RecoveryStatus::InUnlockRepeatedBackupRecovery),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const VALUES: &'static [RecoveryStatus] = &[
|
|
|
|
|
RecoveryStatus::NoRecovery,
|
|
|
|
|
RecoveryStatus::InNormalRecovery,
|
|
|
|
|
RecoveryStatus::InDryRunRecovery,
|
|
|
|
|
RecoveryStatus::InUnlockRepeatedBackupRecovery,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::EnumFull for RecoveryStatus {
|
|
|
|
|
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
|
|
|
|
|
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
|
|
|
|
|
descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Features.RecoveryStatus").unwrap()).clone()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
|
|
|
|
|
let index = *self as usize;
|
|
|
|
|
Self::enum_descriptor().value_by_index(index)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::std::default::Default for RecoveryStatus {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
RecoveryStatus::NoRecovery
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl RecoveryStatus {
|
|
|
|
|
pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<RecoveryStatus>("Features.RecoveryStatus")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.Features.Capability)
|
|
|
|
|
pub enum Capability {
|
|
|
|
@ -7682,8 +7757,8 @@ pub struct RecoveryDevice {
|
|
|
|
|
pub type_: ::std::option::Option<::protobuf::EnumOrUnknown<recovery_device::RecoveryDeviceType>>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.u2f_counter)
|
|
|
|
|
pub u2f_counter: ::std::option::Option<u32>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.dry_run)
|
|
|
|
|
pub dry_run: ::std::option::Option<bool>,
|
|
|
|
|
// @@protoc_insertion_point(field:hw.trezor.messages.management.RecoveryDevice.kind)
|
|
|
|
|
pub kind: ::std::option::Option<::protobuf::EnumOrUnknown<recovery_device::RecoveryKind>>,
|
|
|
|
|
// special fields
|
|
|
|
|
// @@protoc_insertion_point(special_field:hw.trezor.messages.management.RecoveryDevice.special_fields)
|
|
|
|
|
pub special_fields: ::protobuf::SpecialFields,
|
|
|
|
@ -7889,23 +7964,26 @@ impl RecoveryDevice {
|
|
|
|
|
self.u2f_counter = ::std::option::Option::Some(v);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// optional bool dry_run = 10;
|
|
|
|
|
// optional .hw.trezor.messages.management.RecoveryDevice.RecoveryKind kind = 10;
|
|
|
|
|
|
|
|
|
|
pub fn dry_run(&self) -> bool {
|
|
|
|
|
self.dry_run.unwrap_or(false)
|
|
|
|
|
pub fn kind(&self) -> recovery_device::RecoveryKind {
|
|
|
|
|
match self.kind {
|
|
|
|
|
Some(e) => e.enum_value_or(recovery_device::RecoveryKind::NormalRecovery),
|
|
|
|
|
None => recovery_device::RecoveryKind::NormalRecovery,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn clear_dry_run(&mut self) {
|
|
|
|
|
self.dry_run = ::std::option::Option::None;
|
|
|
|
|
pub fn clear_kind(&mut self) {
|
|
|
|
|
self.kind = ::std::option::Option::None;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn has_dry_run(&self) -> bool {
|
|
|
|
|
self.dry_run.is_some()
|
|
|
|
|
pub fn has_kind(&self) -> bool {
|
|
|
|
|
self.kind.is_some()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
|
|
pub fn set_dry_run(&mut self, v: bool) {
|
|
|
|
|
self.dry_run = ::std::option::Option::Some(v);
|
|
|
|
|
pub fn set_kind(&mut self, v: recovery_device::RecoveryKind) {
|
|
|
|
|
self.kind = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
|
|
@ -7952,9 +8030,9 @@ impl RecoveryDevice {
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.u2f_counter },
|
|
|
|
|
));
|
|
|
|
|
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
|
|
|
|
|
"dry_run",
|
|
|
|
|
|m: &RecoveryDevice| { &m.dry_run },
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.dry_run },
|
|
|
|
|
"kind",
|
|
|
|
|
|m: &RecoveryDevice| { &m.kind },
|
|
|
|
|
|m: &mut RecoveryDevice| { &mut m.kind },
|
|
|
|
|
));
|
|
|
|
|
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<RecoveryDevice>(
|
|
|
|
|
"RecoveryDevice",
|
|
|
|
@ -7999,7 +8077,7 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
self.u2f_counter = ::std::option::Option::Some(is.read_uint32()?);
|
|
|
|
|
},
|
|
|
|
|
80 => {
|
|
|
|
|
self.dry_run = ::std::option::Option::Some(is.read_bool()?);
|
|
|
|
|
self.kind = ::std::option::Option::Some(is.read_enum_or_unknown()?);
|
|
|
|
|
},
|
|
|
|
|
tag => {
|
|
|
|
|
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
|
|
@ -8037,8 +8115,8 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
if let Some(v) = self.u2f_counter {
|
|
|
|
|
my_size += ::protobuf::rt::uint32_size(9, v);
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.dry_run {
|
|
|
|
|
my_size += 1 + 1;
|
|
|
|
|
if let Some(v) = self.kind {
|
|
|
|
|
my_size += ::protobuf::rt::int32_size(10, v.value());
|
|
|
|
|
}
|
|
|
|
|
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
|
|
|
self.special_fields.cached_size().set(my_size as u32);
|
|
|
|
@ -8070,8 +8148,8 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
if let Some(v) = self.u2f_counter {
|
|
|
|
|
os.write_uint32(9, v)?;
|
|
|
|
|
}
|
|
|
|
|
if let Some(v) = self.dry_run {
|
|
|
|
|
os.write_bool(10, v)?;
|
|
|
|
|
if let Some(v) = self.kind {
|
|
|
|
|
os.write_enum(10, ::protobuf::EnumOrUnknown::value(&v))?;
|
|
|
|
|
}
|
|
|
|
|
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
|
|
|
::std::result::Result::Ok(())
|
|
|
|
@ -8098,7 +8176,7 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
self.enforce_wordlist = ::std::option::Option::None;
|
|
|
|
|
self.type_ = ::std::option::Option::None;
|
|
|
|
|
self.u2f_counter = ::std::option::Option::None;
|
|
|
|
|
self.dry_run = ::std::option::Option::None;
|
|
|
|
|
self.kind = ::std::option::Option::None;
|
|
|
|
|
self.special_fields.clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -8112,7 +8190,7 @@ impl ::protobuf::Message for RecoveryDevice {
|
|
|
|
|
enforce_wordlist: ::std::option::Option::None,
|
|
|
|
|
type_: ::std::option::Option::None,
|
|
|
|
|
u2f_counter: ::std::option::Option::None,
|
|
|
|
|
dry_run: ::std::option::Option::None,
|
|
|
|
|
kind: ::std::option::Option::None,
|
|
|
|
|
special_fields: ::protobuf::SpecialFields::new(),
|
|
|
|
|
};
|
|
|
|
|
&instance
|
|
|
|
@ -8199,6 +8277,73 @@ pub mod recovery_device {
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<RecoveryDeviceType>("RecoveryDevice.RecoveryDeviceType")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
|
|
|
// @@protoc_insertion_point(enum:hw.trezor.messages.management.RecoveryDevice.RecoveryKind)
|
|
|
|
|
pub enum RecoveryKind {
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryKind.NormalRecovery)
|
|
|
|
|
NormalRecovery = 0,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryKind.DryRun)
|
|
|
|
|
DryRun = 1,
|
|
|
|
|
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.RecoveryDevice.RecoveryKind.UnlockRepeatedBackup)
|
|
|
|
|
UnlockRepeatedBackup = 2,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::Enum for RecoveryKind {
|
|
|
|
|
const NAME: &'static str = "RecoveryKind";
|
|
|
|
|
|
|
|
|
|
fn value(&self) -> i32 {
|
|
|
|
|
*self as i32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_i32(value: i32) -> ::std::option::Option<RecoveryKind> {
|
|
|
|
|
match value {
|
|
|
|
|
0 => ::std::option::Option::Some(RecoveryKind::NormalRecovery),
|
|
|
|
|
1 => ::std::option::Option::Some(RecoveryKind::DryRun),
|
|
|
|
|
2 => ::std::option::Option::Some(RecoveryKind::UnlockRepeatedBackup),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn from_str(str: &str) -> ::std::option::Option<RecoveryKind> {
|
|
|
|
|
match str {
|
|
|
|
|
"NormalRecovery" => ::std::option::Option::Some(RecoveryKind::NormalRecovery),
|
|
|
|
|
"DryRun" => ::std::option::Option::Some(RecoveryKind::DryRun),
|
|
|
|
|
"UnlockRepeatedBackup" => ::std::option::Option::Some(RecoveryKind::UnlockRepeatedBackup),
|
|
|
|
|
_ => ::std::option::Option::None
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const VALUES: &'static [RecoveryKind] = &[
|
|
|
|
|
RecoveryKind::NormalRecovery,
|
|
|
|
|
RecoveryKind::DryRun,
|
|
|
|
|
RecoveryKind::UnlockRepeatedBackup,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::protobuf::EnumFull for RecoveryKind {
|
|
|
|
|
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
|
|
|
|
|
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
|
|
|
|
|
descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("RecoveryDevice.RecoveryKind").unwrap()).clone()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
|
|
|
|
|
let index = *self as usize;
|
|
|
|
|
Self::enum_descriptor().value_by_index(index)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ::std::default::Default for RecoveryKind {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
RecoveryKind::NormalRecovery
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl RecoveryKind {
|
|
|
|
|
pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
|
|
|
|
|
::protobuf::reflect::GeneratedEnumDescriptorData::new::<RecoveryKind>("RecoveryDevice.RecoveryKind")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(message:hw.trezor.messages.management.WordRequest)
|
|
|
|
@ -10597,7 +10742,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\"\xfa\x13\n\x08Featur\
|
|
|
|
|
\x20\x01(\x08R\rderiveCardano\"\r\n\x0bGetFeatures\"\xa8\x15\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\
|
|
|
|
@ -10619,22 +10764,23 @@ static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
|
\x07fwMinor\x12\x19\n\x08fw_patch\x18\x18\x20\x01(\rR\x07fwPatch\x12\x1b\
|
|
|
|
|
\n\tfw_vendor\x18\x19\x20\x01(\tR\x08fwVendor\x12+\n\x11unfinished_backu\
|
|
|
|
|
p\x18\x1b\x20\x01(\x08R\x10unfinishedBackup\x12\x1b\n\tno_backup\x18\x1c\
|
|
|
|
|
\x20\x01(\x08R\x08noBackup\x12#\n\rrecovery_mode\x18\x1d\x20\x01(\x08R\
|
|
|
|
|
\x0crecoveryMode\x12V\n\x0ccapabilities\x18\x1e\x20\x03(\x0e22.hw.trezor\
|
|
|
|
|
.messages.management.Features.CapabilityR\x0ccapabilities\x12J\n\x0bback\
|
|
|
|
|
up_type\x18\x1f\x20\x01(\x0e2).hw.trezor.messages.management.BackupTypeR\
|
|
|
|
|
\nbackupType\x12&\n\x0fsd_card_present\x18\x20\x20\x01(\x08R\rsdCardPres\
|
|
|
|
|
ent\x12#\n\rsd_protection\x18!\x20\x01(\x08R\x0csdProtection\x120\n\x14w\
|
|
|
|
|
ipe_code_protection\x18\"\x20\x01(\x08R\x12wipeCodeProtection\x12\x1d\n\
|
|
|
|
|
\nsession_id\x18#\x20\x01(\x0cR\tsessionId\x12=\n\x1bpassphrase_always_o\
|
|
|
|
|
n_device\x18$\x20\x01(\x08R\x18passphraseAlwaysOnDevice\x12T\n\rsafety_c\
|
|
|
|
|
hecks\x18%\x20\x01(\x0e2/.hw.trezor.messages.management.SafetyCheckLevel\
|
|
|
|
|
R\x0csafetyChecks\x12+\n\x12auto_lock_delay_ms\x18&\x20\x01(\rR\x0fautoL\
|
|
|
|
|
ockDelayMs\x12)\n\x10display_rotation\x18'\x20\x01(\rR\x0fdisplayRotatio\
|
|
|
|
|
n\x123\n\x15experimental_features\x18(\x20\x01(\x08R\x14experimentalFeat\
|
|
|
|
|
ures\x12\x12\n\x04busy\x18)\x20\x01(\x08R\x04busy\x12\\\n\x11homescreen_\
|
|
|
|
|
format\x18*\x20\x01(\x0e2/.hw.trezor.messages.management.HomescreenForma\
|
|
|
|
|
tR\x10homescreenFormat\x129\n\x19hide_passphrase_from_host\x18+\x20\x01(\
|
|
|
|
|
\x20\x01(\x08R\x08noBackup\x12_\n\x0frecovery_status\x18\x1d\x20\x01(\
|
|
|
|
|
\x0e26.hw.trezor.messages.management.Features.RecoveryStatusR\x0erecover\
|
|
|
|
|
yStatus\x12V\n\x0ccapabilities\x18\x1e\x20\x03(\x0e22.hw.trezor.messages\
|
|
|
|
|
.management.Features.CapabilityR\x0ccapabilities\x12J\n\x0bbackup_type\
|
|
|
|
|
\x18\x1f\x20\x01(\x0e2).hw.trezor.messages.management.BackupTypeR\nbacku\
|
|
|
|
|
pType\x12&\n\x0fsd_card_present\x18\x20\x20\x01(\x08R\rsdCardPresent\x12\
|
|
|
|
|
#\n\rsd_protection\x18!\x20\x01(\x08R\x0csdProtection\x120\n\x14wipe_cod\
|
|
|
|
|
e_protection\x18\"\x20\x01(\x08R\x12wipeCodeProtection\x12\x1d\n\nsessio\
|
|
|
|
|
n_id\x18#\x20\x01(\x0cR\tsessionId\x12=\n\x1bpassphrase_always_on_device\
|
|
|
|
|
\x18$\x20\x01(\x08R\x18passphraseAlwaysOnDevice\x12T\n\rsafety_checks\
|
|
|
|
|
\x18%\x20\x01(\x0e2/.hw.trezor.messages.management.SafetyCheckLevelR\x0c\
|
|
|
|
|
safetyChecks\x12+\n\x12auto_lock_delay_ms\x18&\x20\x01(\rR\x0fautoLockDe\
|
|
|
|
|
layMs\x12)\n\x10display_rotation\x18'\x20\x01(\rR\x0fdisplayRotation\x12\
|
|
|
|
|
3\n\x15experimental_features\x18(\x20\x01(\x08R\x14experimentalFeatures\
|
|
|
|
|
\x12\x12\n\x04busy\x18)\x20\x01(\x08R\x04busy\x12\\\n\x11homescreen_form\
|
|
|
|
|
at\x18*\x20\x01(\x0e2/.hw.trezor.messages.management.HomescreenFormatR\
|
|
|
|
|
\x10homescreenFormat\x129\n\x19hide_passphrase_from_host\x18+\x20\x01(\
|
|
|
|
|
\x08R\x16hidePassphraseFromHost\x12%\n\x0einternal_model\x18,\x20\x01(\t\
|
|
|
|
|
R\rinternalModel\x12\x1d\n\nunit_color\x18-\x20\x01(\rR\tunitColor\x12!\
|
|
|
|
|
\n\x0cunit_btconly\x18.\x20\x01(\x08R\x0bunitBtconly\x12)\n\x10homescree\
|
|
|
|
@ -10642,115 +10788,119 @@ static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
|
\x180\x20\x01(\rR\x10homescreenHeight\x12+\n\x11bootloader_locked\x181\
|
|
|
|
|
\x20\x01(\x08R\x10bootloaderLocked\x12>\n\x18language_version_matches\
|
|
|
|
|
\x182\x20\x01(\x08:\x04trueR\x16languageVersionMatches\x12%\n\x0eunit_pa\
|
|
|
|
|
ckaging\x183\x20\x01(\rR\runitPackaging\"\x84\x04\n\nCapability\x12\x1c\
|
|
|
|
|
\n\x12Capability_Bitcoin\x10\x01\x1a\x04\x80\xa6\x1d\x01\x12\x1b\n\x17Ca\
|
|
|
|
|
pability_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\x1a\x04\x80\xa6\x1d\x01\x12\x12\n\x0eCapability_EOS\x10\x06\x12\
|
|
|
|
|
\x17\n\x13Capability_Ethereum\x10\x07\x12\x17\n\x0fCapability_Lisk\x10\
|
|
|
|
|
\x08\x1a\x02\x08\x01\x12\x15\n\x11Capability_Monero\x10\t\x12\x12\n\x0eC\
|
|
|
|
|
apability_NEM\x10\n\x12\x15\n\x11Capability_Ripple\x10\x0b\x12\x16\n\x12\
|
|
|
|
|
Capability_Stellar\x10\x0c\x12\x14\n\x10Capability_Tezos\x10\r\x12\x12\n\
|
|
|
|
|
\x0eCapability_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\x12\x15\n\x11Capability_Solana\x10\x12\x12!\n\x17Capabi\
|
|
|
|
|
lity_Translations\x10\x13\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\"\x9b\x04\n\rApplySettings\
|
|
|
|
|
\x12\x1e\n\x08language\x18\x01\x20\x01(\tR\x08languageB\x02\x18\x01\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\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_device\x18\
|
|
|
|
|
\x08\x20\x01(\x08R\x18passphraseAlwaysOnDevice\x12T\n\rsafety_checks\x18\
|
|
|
|
|
\t\x20\x01(\x0e2/.hw.trezor.messages.management.SafetyCheckLevelR\x0csaf\
|
|
|
|
|
etyChecks\x123\n\x15experimental_features\x18\n\x20\x01(\x08R\x14experim\
|
|
|
|
|
entalFeatures\x129\n\x19hide_passphrase_from_host\x18\x0b\x20\x01(\x08R\
|
|
|
|
|
\x16hidePassphraseFromHost\"T\n\x0eChangeLanguage\x12\x1f\n\x0bdata_leng\
|
|
|
|
|
th\x18\x01\x20\x02(\rR\ndataLength\x12!\n\x0cshow_display\x18\x02\x20\
|
|
|
|
|
\x01(\x08R\x0bshowDisplay\"Z\n\x16TranslationDataRequest\x12\x1f\n\x0bda\
|
|
|
|
|
ta_length\x18\x01\x20\x02(\rR\ndataLength\x12\x1f\n\x0bdata_offset\x18\
|
|
|
|
|
\x02\x20\x02(\rR\ndataOffset\"3\n\x12TranslationDataAck\x12\x1d\n\ndata_\
|
|
|
|
|
chunk\x18\x01\x20\x02(\x0cR\tdataChunk\"\"\n\nApplyFlags\x12\x14\n\x05fl\
|
|
|
|
|
ags\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\"\xad\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\x1e\n\x08language\x18\x05\x20\x01(\tR\x08la\
|
|
|
|
|
nguageB\x02\x18\x01\x12\x14\n\x05label\x18\x06\x20\x01(\tR\x05label\x12#\
|
|
|
|
|
\n\rskip_checksum\x18\x07\x20\x01(\x08R\x0cskipChecksum\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_backup\x18\n\x20\x01(\x08R\
|
|
|
|
|
\x08noBackup\"\x99\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\x14passphraseProtection\x12%\n\x0epin_protection\x18\x04\x20\x01(\
|
|
|
|
|
\x08R\rpinProtection\x12\x1e\n\x08language\x18\x05\x20\x01(\tR\x08langua\
|
|
|
|
|
geB\x02\x18\x01\x12\x14\n\x05label\x18\x06\x20\x01(\tR\x05label\x12\x1f\
|
|
|
|
|
\n\x0bu2f_counter\x18\x07\x20\x01(\rR\nu2fCounter\x12\x1f\n\x0bskip_back\
|
|
|
|
|
up\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.m\
|
|
|
|
|
essages.management.BackupType:\x05Bip39R\nbackupType\"\xe5\x01\n\x0cBack\
|
|
|
|
|
upDevice\x12'\n\x0fgroup_threshold\x18\x01\x20\x01(\rR\x0egroupThreshold\
|
|
|
|
|
\x12O\n\x06groups\x18\x02\x20\x03(\x0b27.hw.trezor.messages.management.B\
|
|
|
|
|
ackupDevice.Slip39GroupR\x06groups\x1a[\n\x0bSlip39Group\x12)\n\x10membe\
|
|
|
|
|
r_threshold\x18\x01\x20\x02(\rR\x0fmemberThreshold\x12!\n\x0cmember_coun\
|
|
|
|
|
t\x18\x02\x20\x02(\rR\x0bmemberCount\"\x10\n\x0eEntropyRequest\"&\n\nEnt\
|
|
|
|
|
ropyAck\x12\x18\n\x07entropy\x18\x01\x20\x02(\x0cR\x07entropy\"\xd8\x03\
|
|
|
|
|
\n\x0eRecoveryDevice\x12\x1d\n\nword_count\x18\x01\x20\x01(\rR\twordCoun\
|
|
|
|
|
t\x123\n\x15passphrase_protection\x18\x02\x20\x01(\x08R\x14passphrasePro\
|
|
|
|
|
tection\x12%\n\x0epin_protection\x18\x03\x20\x01(\x08R\rpinProtection\
|
|
|
|
|
\x12\x1e\n\x08language\x18\x04\x20\x01(\tR\x08languageB\x02\x18\x01\x12\
|
|
|
|
|
\x14\n\x05label\x18\x05\x20\x01(\tR\x05label\x12)\n\x10enforce_wordlist\
|
|
|
|
|
\x18\x06\x20\x01(\x08R\x0fenforceWordlist\x12T\n\x04type\x18\x08\x20\x01\
|
|
|
|
|
(\x0e2@.hw.trezor.messages.management.RecoveryDevice.RecoveryDeviceTypeR\
|
|
|
|
|
\x04type\x12\x1f\n\x0bu2f_counter\x18\t\x20\x01(\rR\nu2fCounter\x12\x17\
|
|
|
|
|
\n\x07dry_run\x18\n\x20\x01(\x08R\x06dryRun\"Z\n\x12RecoveryDeviceType\
|
|
|
|
|
\x12%\n!RecoveryDeviceType_ScrambledWords\x10\0\x12\x1d\n\x19RecoveryDev\
|
|
|
|
|
iceType_Matrix\x10\x01\"\xc5\x01\n\x0bWordRequest\x12N\n\x04type\x18\x01\
|
|
|
|
|
\x20\x02(\x0e2:.hw.trezor.messages.management.WordRequest.WordRequestTyp\
|
|
|
|
|
eR\x04type\"f\n\x0fWordRequestType\x12\x19\n\x15WordRequestType_Plain\
|
|
|
|
|
\x10\0\x12\x1b\n\x17WordRequestType_Matrix9\x10\x01\x12\x1b\n\x17WordReq\
|
|
|
|
|
uestType_Matrix6\x10\x02\"\x1d\n\x07WordAck\x12\x12\n\x04word\x18\x01\
|
|
|
|
|
\x20\x02(\tR\x04word\"0\n\rSetU2FCounter\x12\x1f\n\x0bu2f_counter\x18\
|
|
|
|
|
\x01\x20\x02(\rR\nu2fCounter\"\x13\n\x11GetNextU2FCounter\"1\n\x0eNextU2\
|
|
|
|
|
FCounter\x12\x1f\n\x0bu2f_counter\x18\x01\x20\x02(\rR\nu2fCounter\"\x11\
|
|
|
|
|
\n\x0fDoPreauthorized\"\x16\n\x14PreauthorizedRequest\"\x15\n\x13CancelA\
|
|
|
|
|
uthorization\"\x9a\x02\n\x12RebootToBootloader\x12o\n\x0cboot_command\
|
|
|
|
|
\x18\x01\x20\x01(\x0e2=.hw.trezor.messages.management.RebootToBootloader\
|
|
|
|
|
.BootCommand:\rSTOP_AND_WAITR\x0bbootCommand\x12'\n\x0ffirmware_header\
|
|
|
|
|
\x18\x02\x20\x01(\x0cR\x0efirmwareHeader\x123\n\x14language_data_length\
|
|
|
|
|
\x18\x03\x20\x01(\r:\x010R\x12languageDataLength\"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\
|
|
|
|
|
ckaging\x183\x20\x01(\rR\runitPackaging\"p\n\x0eRecoveryStatus\x12\x0e\n\
|
|
|
|
|
\nNoRecovery\x10\0\x12\x14\n\x10InNormalRecovery\x10\x01\x12\x14\n\x10In\
|
|
|
|
|
DryRunRecovery\x10\x02\x12\"\n\x1eInUnlockRepeatedBackupRecovery\x10\x03\
|
|
|
|
|
\"\x84\x04\n\nCapability\x12\x1c\n\x12Capability_Bitcoin\x10\x01\x1a\x04\
|
|
|
|
|
\x80\xa6\x1d\x01\x12\x1b\n\x17Capability_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\x1a\x04\x80\xa6\x1d\x01\x12\x12\
|
|
|
|
|
\n\x0eCapability_EOS\x10\x06\x12\x17\n\x13Capability_Ethereum\x10\x07\
|
|
|
|
|
\x12\x17\n\x0fCapability_Lisk\x10\x08\x1a\x02\x08\x01\x12\x15\n\x11Capab\
|
|
|
|
|
ility_Monero\x10\t\x12\x12\n\x0eCapability_NEM\x10\n\x12\x15\n\x11Capabi\
|
|
|
|
|
lity_Ripple\x10\x0b\x12\x16\n\x12Capability_Stellar\x10\x0c\x12\x14\n\
|
|
|
|
|
\x10Capability_Tezos\x10\r\x12\x12\n\x0eCapability_U2F\x10\x0e\x12\x1b\n\
|
|
|
|
|
\x11Capability_Shamir\x10\x0f\x1a\x04\x80\xa6\x1d\x01\x12!\n\x17Capabili\
|
|
|
|
|
ty_ShamirGroups\x10\x10\x1a\x04\x80\xa6\x1d\x01\x12$\n\x1aCapability_Pas\
|
|
|
|
|
sphraseEntry\x10\x11\x1a\x04\x80\xa6\x1d\x01\x12\x15\n\x11Capability_Sol\
|
|
|
|
|
ana\x10\x12\x12!\n\x17Capability_Translations\x10\x13\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\"\
|
|
|
|
|
\x9b\x04\n\rApplySettings\x12\x1e\n\x08language\x18\x01\x20\x01(\tR\x08l\
|
|
|
|
|
anguageB\x02\x18\x01\x12\x14\n\x05label\x18\x02\x20\x01(\tR\x05label\x12\
|
|
|
|
|
%\n\x0euse_passphrase\x18\x03\x20\x01(\x08R\rusePassphrase\x12\x1e\n\nho\
|
|
|
|
|
mescreen\x18\x04\x20\x01(\x0cR\nhomescreen\x120\n\x12_passphrase_source\
|
|
|
|
|
\x18\x05\x20\x01(\rR\x10PassphraseSourceB\x02\x18\x01\x12+\n\x12auto_loc\
|
|
|
|
|
k_delay_ms\x18\x06\x20\x01(\rR\x0fautoLockDelayMs\x12)\n\x10display_rota\
|
|
|
|
|
tion\x18\x07\x20\x01(\rR\x0fdisplayRotation\x12=\n\x1bpassphrase_always_\
|
|
|
|
|
on_device\x18\x08\x20\x01(\x08R\x18passphraseAlwaysOnDevice\x12T\n\rsafe\
|
|
|
|
|
ty_checks\x18\t\x20\x01(\x0e2/.hw.trezor.messages.management.SafetyCheck\
|
|
|
|
|
LevelR\x0csafetyChecks\x123\n\x15experimental_features\x18\n\x20\x01(\
|
|
|
|
|
\x08R\x14experimentalFeatures\x129\n\x19hide_passphrase_from_host\x18\
|
|
|
|
|
\x0b\x20\x01(\x08R\x16hidePassphraseFromHost\"T\n\x0eChangeLanguage\x12\
|
|
|
|
|
\x1f\n\x0bdata_length\x18\x01\x20\x02(\rR\ndataLength\x12!\n\x0cshow_dis\
|
|
|
|
|
play\x18\x02\x20\x01(\x08R\x0bshowDisplay\"Z\n\x16TranslationDataRequest\
|
|
|
|
|
\x12\x1f\n\x0bdata_length\x18\x01\x20\x02(\rR\ndataLength\x12\x1f\n\x0bd\
|
|
|
|
|
ata_offset\x18\x02\x20\x02(\rR\ndataOffset\"3\n\x12TranslationDataAck\
|
|
|
|
|
\x12\x1d\n\ndata_chunk\x18\x01\x20\x02(\x0cR\tdataChunk\"\"\n\nApplyFlag\
|
|
|
|
|
s\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\tSdProt\
|
|
|
|
|
ect\x12]\n\toperation\x18\x01\x20\x02(\x0e2?.hw.trezor.messages.manageme\
|
|
|
|
|
nt.SdProtect.SdProtectOperationTypeR\toperation\">\n\x16SdProtectOperati\
|
|
|
|
|
onType\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\x10but\
|
|
|
|
|
tonProtection\"\x08\n\x06Cancel\"\x20\n\nGetEntropy\x12\x12\n\x04size\
|
|
|
|
|
\x18\x01\x20\x02(\rR\x04size\"#\n\x07Entropy\x12\x18\n\x07entropy\x18\
|
|
|
|
|
\x01\x20\x02(\x0cR\x07entropy\"/\n\x0fGetFirmwareHash\x12\x1c\n\tchallen\
|
|
|
|
|
ge\x18\x01\x20\x01(\x0cR\tchallenge\"\"\n\x0cFirmwareHash\x12\x12\n\x04h\
|
|
|
|
|
ash\x18\x01\x20\x02(\x0cR\x04hash\"2\n\x12AuthenticateDevice\x12\x1c\n\t\
|
|
|
|
|
challenge\x18\x01\x20\x02(\x0cR\tchallenge\"U\n\x11AuthenticityProof\x12\
|
|
|
|
|
\"\n\x0ccertificates\x18\x01\x20\x03(\x0cR\x0ccertificates\x12\x1c\n\tsi\
|
|
|
|
|
gnature\x18\x02\x20\x02(\x0cR\tsignature\"\x0c\n\nWipeDevice\"\xad\x02\n\
|
|
|
|
|
\nLoadDevice\x12\x1c\n\tmnemonics\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\x1e\n\x08language\x18\x05\
|
|
|
|
|
\x20\x01(\tR\x08languageB\x02\x18\x01\x12\x14\n\x05label\x18\x06\x20\x01\
|
|
|
|
|
(\tR\x05label\x12#\n\rskip_checksum\x18\x07\x20\x01(\x08R\x0cskipChecksu\
|
|
|
|
|
m\x12\x1f\n\x0bu2f_counter\x18\x08\x20\x01(\rR\nu2fCounter\x12!\n\x0cnee\
|
|
|
|
|
ds_backup\x18\t\x20\x01(\x08R\x0bneedsBackup\x12\x1b\n\tno_backup\x18\n\
|
|
|
|
|
\x20\x01(\x08R\x08noBackup\"\x99\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\x14passphraseProtection\x12%\n\x0epin_protection\x18\
|
|
|
|
|
\x04\x20\x01(\x08R\rpinProtection\x12\x1e\n\x08language\x18\x05\x20\x01(\
|
|
|
|
|
\tR\x08languageB\x02\x18\x01\x12\x14\n\x05label\x18\x06\x20\x01(\tR\x05l\
|
|
|
|
|
abel\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\"\
|
|
|
|
|
\xe5\x01\n\x0cBackupDevice\x12'\n\x0fgroup_threshold\x18\x01\x20\x01(\rR\
|
|
|
|
|
\x0egroupThreshold\x12O\n\x06groups\x18\x02\x20\x03(\x0b27.hw.trezor.mes\
|
|
|
|
|
sages.management.BackupDevice.Slip39GroupR\x06groups\x1a[\n\x0bSlip39Gro\
|
|
|
|
|
up\x12)\n\x10member_threshold\x18\x01\x20\x02(\rR\x0fmemberThreshold\x12\
|
|
|
|
|
!\n\x0cmember_count\x18\x02\x20\x02(\rR\x0bmemberCount\"\x10\n\x0eEntrop\
|
|
|
|
|
yRequest\"&\n\nEntropyAck\x12\x18\n\x07entropy\x18\x01\x20\x02(\x0cR\x07\
|
|
|
|
|
entropy\"\xe9\x04\n\x0eRecoveryDevice\x12\x1d\n\nword_count\x18\x01\x20\
|
|
|
|
|
\x01(\rR\twordCount\x123\n\x15passphrase_protection\x18\x02\x20\x01(\x08\
|
|
|
|
|
R\x14passphraseProtection\x12%\n\x0epin_protection\x18\x03\x20\x01(\x08R\
|
|
|
|
|
\rpinProtection\x12\x1e\n\x08language\x18\x04\x20\x01(\tR\x08languageB\
|
|
|
|
|
\x02\x18\x01\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^\n\x04kind\x18\n\x20\x01(\x0e2:.hw.trezor.messages.managemen\
|
|
|
|
|
t.RecoveryDevice.RecoveryKind:\x0eNormalRecoveryR\x04kind\"Z\n\x12Recove\
|
|
|
|
|
ryDeviceType\x12%\n!RecoveryDeviceType_ScrambledWords\x10\0\x12\x1d\n\
|
|
|
|
|
\x19RecoveryDeviceType_Matrix\x10\x01\"H\n\x0cRecoveryKind\x12\x12\n\x0e\
|
|
|
|
|
NormalRecovery\x10\0\x12\n\n\x06DryRun\x10\x01\x12\x18\n\x14UnlockRepeat\
|
|
|
|
|
edBackup\x10\x02\"\xc5\x01\n\x0bWordRequest\x12N\n\x04type\x18\x01\x20\
|
|
|
|
|
\x02(\x0e2:.hw.trezor.messages.management.WordRequest.WordRequestTypeR\
|
|
|
|
|
\x04type\"f\n\x0fWordRequestType\x12\x19\n\x15WordRequestType_Plain\x10\
|
|
|
|
|
\0\x12\x1b\n\x17WordRequestType_Matrix9\x10\x01\x12\x1b\n\x17WordRequest\
|
|
|
|
|
Type_Matrix6\x10\x02\"\x1d\n\x07WordAck\x12\x12\n\x04word\x18\x01\x20\
|
|
|
|
|
\x02(\tR\x04word\"0\n\rSetU2FCounter\x12\x1f\n\x0bu2f_counter\x18\x01\
|
|
|
|
|
\x20\x02(\rR\nu2fCounter\"\x13\n\x11GetNextU2FCounter\"1\n\x0eNextU2FCou\
|
|
|
|
|
nter\x12\x1f\n\x0bu2f_counter\x18\x01\x20\x02(\rR\nu2fCounter\"\x11\n\
|
|
|
|
|
\x0fDoPreauthorized\"\x16\n\x14PreauthorizedRequest\"\x15\n\x13CancelAut\
|
|
|
|
|
horization\"\x9a\x02\n\x12RebootToBootloader\x12o\n\x0cboot_command\x18\
|
|
|
|
|
\x01\x20\x01(\x0e2=.hw.trezor.messages.management.RebootToBootloader.Boo\
|
|
|
|
|
tCommand:\rSTOP_AND_WAITR\x0bbootCommand\x12'\n\x0ffirmware_header\x18\
|
|
|
|
|
\x02\x20\x01(\x0cR\x0efirmwareHeader\x123\n\x14language_data_length\x18\
|
|
|
|
|
\x03\x20\x01(\r:\x010R\x12languageDataLength\"5\n\x0bBootCommand\x12\x11\
|
|
|
|
|
\n\rSTOP_AND_WAIT\x10\0\x12\x13\n\x0fINSTALL_UPGRADE\x10\x01\"\x10\n\x08\
|
|
|
|
|
GetNonce:\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\x10UnlockBoo\
|
|
|
|
|
tloader*>\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\x0cPromptAlways\x10\x01\x12\x15\n\x11\
|
|
|
|
|
PromptTemporarily\x10\x02*0\n\x10HomescreenFormat\x12\x08\n\x04Toif\x10\
|
|
|
|
|
\x01\x12\x08\n\x04Jpeg\x10\x02\x12\x08\n\x04ToiG\x10\x03BB\n#com.satoshi\
|
|
|
|
|
labs.trezor.lib.protobufB\x17TrezorMessageManagement\x80\xa6\x1d\x01\
|
|
|
|
|
";
|
|
|
|
|
|
|
|
|
|
/// `FileDescriptorProto` object which was a source for this generated file
|
|
|
|
@ -10815,13 +10965,15 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
|
|
|
messages.push(ShowDeviceTutorial::generated_message_descriptor_data());
|
|
|
|
|
messages.push(UnlockBootloader::generated_message_descriptor_data());
|
|
|
|
|
messages.push(backup_device::Slip39Group::generated_message_descriptor_data());
|
|
|
|
|
let mut enums = ::std::vec::Vec::with_capacity(8);
|
|
|
|
|
let mut enums = ::std::vec::Vec::with_capacity(10);
|
|
|
|
|
enums.push(BackupType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(SafetyCheckLevel::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(HomescreenFormat::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(features::RecoveryStatus::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(features::Capability::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(sd_protect::SdProtectOperationType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(recovery_device::RecoveryDeviceType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(recovery_device::RecoveryKind::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(word_request::WordRequestType::generated_enum_descriptor_data());
|
|
|
|
|
enums.push(reboot_to_bootloader::BootCommand::generated_enum_descriptor_data());
|
|
|
|
|
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
|
|
|