mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 08:38:07 +00:00
build
This commit is contained in:
parent
71dbbf9e97
commit
1480f754f4
@ -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
|
||||||
}
|
}
|
||||||
|
5
core/src/trezor/messages/ResetDeviceBackupType.py
Normal file
5
core/src/trezor/messages/ResetDeviceBackupType.py
Normal 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
@ -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
|
||||||
}
|
}
|
||||||
|
5
python/trezorlib/messages/ResetDeviceBackupType.py
Normal file
5
python/trezorlib/messages/ResetDeviceBackupType.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
|
Bip39 = 0
|
||||||
|
Slip39_Single_Group = 1
|
||||||
|
Slip39_Multiple_Groups = 2
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user