mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
added --curve argument for get_public_node
This commit is contained in:
parent
6f975532c0
commit
ead2781aff
@ -107,7 +107,8 @@ class Commands(object):
|
|||||||
|
|
||||||
def get_public_node(self, args):
|
def get_public_node(self, args):
|
||||||
address_n = self.client.expand_path(args.n)
|
address_n = self.client.expand_path(args.n)
|
||||||
return self.client.get_public_node(address_n)
|
curve = args.curve
|
||||||
|
return self.client.get_public_node(address_n, ecdsa_curve_name=curve)
|
||||||
|
|
||||||
def set_label(self, args):
|
def set_label(self, args):
|
||||||
return self.client.apply_settings(label=args.label)
|
return self.client.apply_settings(label=args.label)
|
||||||
@ -353,6 +354,7 @@ class Commands(object):
|
|||||||
|
|
||||||
get_public_node.arguments = (
|
get_public_node.arguments = (
|
||||||
(('-n', '-address'), {'type': str}),
|
(('-n', '-address'), {'type': str}),
|
||||||
|
(('-e', '--curve'), {'type': str, 'default': 'secp256k1'}),
|
||||||
)
|
)
|
||||||
|
|
||||||
firmware_update.arguments = (
|
firmware_update.arguments = (
|
||||||
|
Loading…
Reference in New Issue
Block a user