Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.7 KB

INSTRUCTIONS.md

File metadata and controls

31 lines (23 loc) · 1.7 KB

Miniscript Policy Puzzle

This workshop is designed to help you understand the concepts of Miniscript and how to use them to create Bitcoin scripts.

Exercise Spending Conditions

For this workshop, we present a list of spending conditions for which we expect the following for each:

  • Write a policy.
  • Compile to miniscript.
  • Generate the mapped bitcoin script.
  • Generate an address for the script and we'll lock funds to this address.
  • Check that we provide enough information to generate a valid witness to satisfy the spending condition.

The spending conditions presented are below. We provide test files with batteries included so that you can generate policies, compile them, and test their satisfaction by providing an adequate witness.

  1. Single key can spend.
  2. One-of-two keys, equally likely to spend.
  3. One-of-two keys, one more likely to spend.
  4. User key, and service key or timelock

Resources