1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 16:18:22 +00:00
This commit is contained in:
Tomas Susanka 2019-07-22 11:41:59 +02:00
parent 71dbbf9e97
commit 1480f754f4
6 changed files with 18 additions and 7 deletions

View File

@ -23,7 +23,7 @@ class ResetDevice(p.MessageType):
u2f_counter: int = None, u2f_counter: int = None,
skip_backup: bool = None, skip_backup: bool = None,
no_backup: bool = None, no_backup: bool = None,
slip39: bool = None, backup_type: int = None,
) -> None: ) -> None:
self.display_random = display_random self.display_random = display_random
self.strength = strength self.strength = strength
@ -34,7 +34,7 @@ class ResetDevice(p.MessageType):
self.u2f_counter = u2f_counter self.u2f_counter = u2f_counter
self.skip_backup = skip_backup self.skip_backup = skip_backup
self.no_backup = no_backup self.no_backup = no_backup
self.slip39 = slip39 self.backup_type = backup_type
@classmethod @classmethod
def get_fields(cls) -> Dict: def get_fields(cls) -> Dict:
@ -48,5 +48,5 @@ class ResetDevice(p.MessageType):
7: ('u2f_counter', p.UVarintType, 0), 7: ('u2f_counter', p.UVarintType, 0),
8: ('skip_backup', p.BoolType, 0), 8: ('skip_backup', p.BoolType, 0),
9: ('no_backup', p.BoolType, 0), 9: ('no_backup', p.BoolType, 0),
10: ('slip39', p.BoolType, 0), 10: ('backup_type', p.UVarintType, 0), # default=ResetDeviceBackupType_Bip39
} }

View File

@ -0,0 +1,5 @@
# Automatically generated by pb2py
# fmt: off
Bip39 = 0
Slip39_Single_Group = 1
Slip39_Multiple_Groups = 2

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,7 @@ class ResetDevice(p.MessageType):
u2f_counter: int = None, u2f_counter: int = None,
skip_backup: bool = None, skip_backup: bool = None,
no_backup: bool = None, no_backup: bool = None,
slip39: bool = None, backup_type: int = None,
) -> None: ) -> None:
self.display_random = display_random self.display_random = display_random
self.strength = strength self.strength = strength
@ -34,7 +34,7 @@ class ResetDevice(p.MessageType):
self.u2f_counter = u2f_counter self.u2f_counter = u2f_counter
self.skip_backup = skip_backup self.skip_backup = skip_backup
self.no_backup = no_backup self.no_backup = no_backup
self.slip39 = slip39 self.backup_type = backup_type
@classmethod @classmethod
def get_fields(cls) -> Dict: def get_fields(cls) -> Dict:
@ -48,5 +48,5 @@ class ResetDevice(p.MessageType):
7: ('u2f_counter', p.UVarintType, 0), 7: ('u2f_counter', p.UVarintType, 0),
8: ('skip_backup', p.BoolType, 0), 8: ('skip_backup', p.BoolType, 0),
9: ('no_backup', p.BoolType, 0), 9: ('no_backup', p.BoolType, 0),
10: ('slip39', p.BoolType, 0), 10: ('backup_type', p.UVarintType, 0), # default=ResetDeviceBackupType_Bip39
} }

View File

@ -0,0 +1,5 @@
# Automatically generated by pb2py
# fmt: off
Bip39 = 0
Slip39_Single_Group = 1
Slip39_Multiple_Groups = 2

View File

@ -267,6 +267,7 @@ from . import PassphraseSourceType
from . import PinMatrixRequestType from . import PinMatrixRequestType
from . import RecoveryDeviceType from . import RecoveryDeviceType
from . import RequestType from . import RequestType
from . import ResetDeviceBackupType
from . import TezosBallotType from . import TezosBallotType
from . import TezosContractType from . import TezosContractType
from . import WordRequestType from . import WordRequestType