mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 00:28:10 +00:00
trezorctl: add stellar_get_address/stellar_get_public_key
This commit is contained in:
parent
22872c53c2
commit
b791e805a1
13
trezorctl
13
trezorctl
@ -1029,9 +1029,16 @@ def cosi_sign(connect, address, data, global_commitment, global_pubkey):
|
||||
def stellar_get_address(connect, address):
|
||||
client = connect()
|
||||
address_n = tools.parse_path(address)
|
||||
# StellarPublicKey response
|
||||
response = client.stellar_get_public_key(address_n)
|
||||
return stellar.address_from_public_key(response.public_key)
|
||||
return client.stellar_get_address(address_n)
|
||||
|
||||
|
||||
@cli.command(help='Get Stellar public key')
|
||||
@click.option('-n', '--address', required=False, help="BIP32 path. Always use hardened paths and the m/44'/148'/ prefix", default=stellar.DEFAULT_BIP32_PATH)
|
||||
@click.pass_obj
|
||||
def stellar_get_public_key(connect, address):
|
||||
client = connect()
|
||||
address_n = tools.parse_path(address)
|
||||
return client.stellar_get_public_key(address_n)
|
||||
|
||||
|
||||
@cli.command(help='Sign a base64-encoded transaction envelope')
|
||||
|
2
vendor/trezor-common
vendored
2
vendor/trezor-common
vendored
@ -1 +1 @@
|
||||
Subproject commit dcda93322a2a0085e88acffab493403afb9d1d83
|
||||
Subproject commit 57a31feb2e48ac5057761fd07e5c7b280b66b5c6
|
Loading…
Reference in New Issue
Block a user