1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

Make ScrambledWords default recovery method (#93)

For backwards compatibility, existing code should use the old recovery
method unless it explicitly states that it is compatible to the new
one.
This commit is contained in:
Jochen Hoenicke 2017-01-26 13:58:33 +01:00 committed by Pavol Rusnak
parent 8609f62f91
commit 1dc3152c11

View File

@ -812,7 +812,7 @@ class ProtocolMixin(object):
@field('message')
@expect(proto.Success)
def recovery_device(self, word_count, passphrase_protection, pin_protection, label, language, type=types.RecoveryDeviceType_Matrix):
def recovery_device(self, word_count, passphrase_protection, pin_protection, label, language, type=types.RecoveryDeviceType_ScrambledWords):
if self.features.initialized:
raise Exception("Device is initialized already. Call wipe_device() and try again.")