mirror of
https://github.com/romanz/amodem.git
synced 2026-04-18 04:06:00 +08:00
trezor: simplify client API
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user