From 861401e89a54fc7c86c638d74e1000bbef589a99 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 9 Apr 2016 21:09:11 +0300 Subject: [PATCH] client: make get_address() public --- trezor_agent/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trezor_agent/client.py b/trezor_agent/client.py index 9464385..30e5ead 100644 --- a/trezor_agent/client.py +++ b/trezor_agent/client.py @@ -51,7 +51,7 @@ class Client(object): label = identity_to_string(identity) # canonize key label log.info('getting "%s" public key (%s) from %s...', label, self.curve, self.device_name) - addr = _get_address(identity) + addr = get_address(identity) node = self.client.get_public_node(n=addr, ecdsa_curve_name=self.curve) @@ -129,7 +129,8 @@ def identity_to_string(identity): return ''.join(result) -def _get_address(identity): +def get_address(identity): + """Compute BIP32 derivation address for SignIdentity API.""" index = struct.pack('