mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
Added Ping.button_protection
This commit is contained in:
parent
229cfa3cd4
commit
2a59a8e055
@ -111,10 +111,11 @@ class TrezorClient(object):
|
||||
def get_entropy(self, size):
|
||||
return self.call(proto.GetEntropy(size=size), proto.Entropy).entropy
|
||||
|
||||
def ping(self, msg, pin_protection=False, passphrase_protection=False):
|
||||
def ping(self, msg, button_protection=True, pin_protection=True, passphrase_protection=True):
|
||||
msg = proto.Ping(message=msg,
|
||||
pin_protection=pin_protection,
|
||||
passphrase_protection=passphrase_protection)
|
||||
button_protection=button_protection,
|
||||
pin_protection=pin_protection,
|
||||
passphrase_protection=passphrase_protection)
|
||||
|
||||
return self.call(msg, proto.Success).message
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user