diff --git a/trezorctl b/trezorctl index de6f18fe02..b90a39d95d 100755 --- a/trezorctl +++ b/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') diff --git a/vendor/trezor-common b/vendor/trezor-common index dcda93322a..57a31feb2e 160000 --- a/vendor/trezor-common +++ b/vendor/trezor-common @@ -1 +1 @@ -Subproject commit dcda93322a2a0085e88acffab493403afb9d1d83 +Subproject commit 57a31feb2e48ac5057761fd07e5c7b280b66b5c6