mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-27 14:52:10 +00:00
Implemented get_address API
This commit is contained in:
parent
842720052a
commit
9d7e55ea30
@ -36,9 +36,12 @@ class BitkeyClient(object):
|
|||||||
if self.master_public_key:
|
if self.master_public_key:
|
||||||
return self.master_public_key
|
return self.master_public_key
|
||||||
|
|
||||||
self.master_public_key = self.call(proto.GetMasterPublicKey(algo=self.algo))
|
self.master_public_key = self.call(proto.GetMasterPublicKey(algo=self.algo)).key
|
||||||
return self.master_public_key
|
return self.master_public_key
|
||||||
|
|
||||||
|
def get_address(self, n):
|
||||||
|
return self.call(proto.GetAddress(algo=self.algo, address_n=n)).address
|
||||||
|
|
||||||
def get_entropy(self, size):
|
def get_entropy(self, size):
|
||||||
return self.call(proto.GetEntropy(size=size)).entropy
|
return self.call(proto.GetEntropy(size=size)).entropy
|
||||||
|
|
||||||
@ -112,7 +115,7 @@ class BitkeyClient(object):
|
|||||||
return resp
|
return resp
|
||||||
|
|
||||||
def get_uuid(self):
|
def get_uuid(self):
|
||||||
return self.call(proto.GetUUID())
|
return self.call(proto.GetUUID()).UUID
|
||||||
|
|
||||||
def sign_tx(self, inputs, outputs):
|
def sign_tx(self, inputs, outputs):
|
||||||
'''
|
'''
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import bitkey_pb2 as proto
|
import bitkey_pb2 as proto
|
||||||
|
from transport import NotImplementedException
|
||||||
|
|
||||||
def otp_info(otp):
|
def otp_info(otp):
|
||||||
print "Device asks for OTP %s" % otp.otp
|
print "Device asks for OTP %s" % otp.otp
|
||||||
|
Loading…
Reference in New Issue
Block a user