trezor: simplify client API

This commit is contained in:
Roman Zeyde
2015-08-19 17:40:16 +03:00
parent 5d510c4a60
commit e4a7d9aa06
3 changed files with 5 additions and 7 deletions

View File

@@ -34,11 +34,9 @@ class Client(object):
self.client.clear_session() # forget PIN and shutdown screen
self.client.close()
def get_identity(self, label, protocol=None):
def get_identity(self, label):
identity = string_to_identity(label, self.factory.identity_type)
if protocol is not None:
identity.proto = protocol
identity.proto = 'ssh'
return identity
def get_public_key(self, identity):