mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-05 21:10:57 +00:00
Configurable ping message
This commit is contained in:
parent
fa8c5e884f
commit
60e6064d4e
@ -111,8 +111,12 @@ class TrezorClient(object):
|
|||||||
def get_entropy(self, size):
|
def get_entropy(self, size):
|
||||||
return self.call(proto.GetEntropy(size=size), proto.Entropy).entropy
|
return self.call(proto.GetEntropy(size=size), proto.Entropy).entropy
|
||||||
|
|
||||||
def ping(self, msg):
|
def ping(self, msg, pin_protection=False, passphrase_protection=False):
|
||||||
return self.call(proto.Ping(message=msg), proto.Success).message
|
msg = proto.Ping(message=msg,
|
||||||
|
pin_protection=pin_protection,
|
||||||
|
passphrase_protection=passphrase_protection)
|
||||||
|
|
||||||
|
return self.call(msg, proto.Success).message
|
||||||
|
|
||||||
def get_device_id(self):
|
def get_device_id(self):
|
||||||
return self.features.device_id
|
return self.features.device_id
|
||||||
|
Loading…
Reference in New Issue
Block a user