mirror of
https://github.com/romanz/amodem.git
synced 2026-04-03 02:46:48 +08:00
trezor: simplify client API
This commit is contained in:
@@ -88,7 +88,7 @@ def trezor_agent():
|
||||
if command:
|
||||
command = ['git'] + command
|
||||
|
||||
identity = client.get_identity(label=label, protocol='ssh')
|
||||
identity = client.get_identity(label=label)
|
||||
public_key = client.get_public_key(identity=identity)
|
||||
|
||||
use_shell = False
|
||||
@@ -105,7 +105,7 @@ def trezor_agent():
|
||||
return
|
||||
|
||||
def signer(label, blob):
|
||||
identity = client.get_identity(label=label, protocol='ssh')
|
||||
identity = client.get_identity(label=label)
|
||||
return client.sign_ssh_challenge(identity=identity, blob=blob)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user