Skip to content

Instantly share code, notes, and snippets.

@qlrd
Created February 20, 2025 13:24
Show Gist options
  • Save qlrd/aca897acb42f0b6cbd07d7337f16c790 to your computer and use it in GitHub Desktop.
Save qlrd/aca897acb42f0b6cbd07d7337f16c790 to your computer and use it in GitHub Desktop.

a derivation path m/48'/0'/0'/<index>'

Once you have entered the passphrase, you will need to select a miniscript policy with a specific type of descriptor (either P2WSH or P2TR), and a custom derivation path m/48'/0'/0'/<index>' to spend the funds.

Basically, the index is a number that you will need to figure out to construct the given descriptor:

# <descriptor> : wsh || tr
# <index> -> 0, 1, 2, 3 ... who knows?

<descriptor>(
  [3307757b/48'/0'/0'/2']xpub6Dg5dttYhZt1NzWvVPAU1fKPjpz3iXEuL55Ch7LW7NiXWt6swCGjyTbrrDdwNyKMPJX7aDn7ox9hSJWLEj7upQe6VQBCiRErSWWZsBhTJZp/<0;1>/*,
  and_v(
    v:pk(
      [e977c471/48'/0'/0'/<index>']xpub6E1vWdqGPc5JV2asaDRh9gZo4Dtw8BRW317Q7v6tc53Heqa2HJ9wMaksxhgSCrG9kSAySwc4SKamuHr7rQ7CgAhcNUKUBnfSrX2xWgj8M2Q/<0;1>/*
    ),
    older(144)
  )
)#hjdg06d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment