Skip to content

Instantly share code, notes, and snippets.

@qlrd
Last active February 28, 2025 22:32
Show Gist options
  • Save qlrd/b1552015ef232ed97aaaaf1d9b34133f to your computer and use it in GitHub Desktop.
Save qlrd/b1552015ef232ed97aaaaf1d9b34133f to your computer and use it in GitHub Desktop.

Miniscript challenge

Build a simple inheritance scheme on Liana and try to spend a ~170000 sats.

Prelude

During the workshop at BTC++ in 2025, the speaker created a simple inheritance scheme and put you as his heir. He can spend at any time, but you only can spend after some time.

Preliminary instructions

Your goal is spend a UXTO. But to do that you must find:

  1. A password to decrypt a mnemonic;
  2. get the correct mnemonic;
  3. find a passphrase for the previous mnemonic;
  4. a derivation path m/48'/0'/0'/<index>'.

Prepare your system

# Check if python exists
python --version

# Install virtualenv
pip install virtualenv

# Create a virtualenv
venv ~/.workshop

# Go inside virtualenv
source ~/.workshop/bin/activate

# install base58
pip install base58

# Edit file and run script
python ./solution.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment