Skip to content

Commit 5976e75

Browse files
committed
chore(python): allow ignoring xpub magic in trezorctl
Output descriptors don't use ypub/zpubs. [no changelog]
1 parent 1e27d5d commit 5976e75

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • python/src/trezorlib/cli

python/src/trezorlib/cli/btc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def get_address(
254254
@click.option("-e", "--curve")
255255
@click.option("-t", "--script-type", type=ChoiceType(INPUT_SCRIPTS))
256256
@click.option("-d", "--show-display", is_flag=True)
257+
@click.option("-i", "--ignore-xpub-magic", is_flag=True)
257258
@with_session
258259
def get_public_node(
259260
session: "Session",
@@ -262,6 +263,7 @@ def get_public_node(
262263
curve: Optional[str],
263264
script_type: Optional[messages.InputScriptType],
264265
show_display: bool,
266+
ignore_xpub_magic: bool,
265267
) -> dict:
266268
"""Get public node of given path."""
267269
address_n = tools.parse_path(address)
@@ -275,6 +277,7 @@ def get_public_node(
275277
coin_name=coin,
276278
script_type=script_type,
277279
unlock_path=get_unlock_path(address_n),
280+
ignore_xpub_magic=ignore_xpub_magic,
278281
)
279282
return {
280283
"node": {

0 commit comments

Comments
 (0)