1
0

Trezor: Add wipe device functionality

Also add a chicken box for PIN removal.
This commit is contained in:
Neil Booth
2015-12-28 00:12:26 +09:00
parent 9aae66a9d2
commit a7028176cd
6 changed files with 122 additions and 56 deletions

View File

@@ -154,7 +154,8 @@ def trezor_client_class(protocol_mixin, base_client, proto):
cls = TrezorClient
for method in ['apply_settings', 'change_pin', 'get_address',
'get_public_node', 'sign_message', 'sign_tx']:
'get_public_node', 'sign_message', 'sign_tx',
'wipe_device']:
setattr(cls, method, wrapper(getattr(cls, method)))
return cls