Skip to content

Commit

Permalink
Add test with unspendable taproot keypath during wallet registration
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Apr 3, 2024
1 parent 848773d commit 40e1375
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_register_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,19 @@ def test_register_wallet_tr_script_pk(client: Client, speculos_globals):
))


@has_automation("automations/register_wallet_accept.json")
def test_register_wallet_tr_with_nums_keypath(client: Client, speculos_globals):
# The taproot keypath is unspendable; the UX must explicitly mark it as a 'dummy' key.
run_register_test(client, speculos_globals, WalletPolicy(
name="Taproot unspendable keypath",
descriptor_template="tr(@0/**,pk(@1/**))",
keys_info=[
"tpubD6NzVbkrYhZ4WLczPJWReQycCJdd6YVWXubbVUFnJ5KgU5MDQrD998ZJLSmaB7GVcCnJSDWprxmrGkJ6SvgQC6QAffVpqSvonXmeizXcrkN",
"[f5acc2fd/48'/1'/0'/2']tpubDFAqEGNyad35aBCKUAXbQGDjdVhNueno5ZZVEn3sQbW5ci457gLR7HyTmHBg93oourBssgUxuWz1jX5uhc1qaqFo9VsybY1J5FuedLfm4dK",
],
))


@has_automation("automations/register_wallet_accept.json")
def test_register_wallet_tr_script_sortedmulti(client: Client, speculos_globals):
run_register_test(client, speculos_globals, WalletPolicy(
Expand Down

0 comments on commit 40e1375

Please sign in to comment.