Great ressource by Pieter Wuille to learn about and test Bitcoin miniscripts

in #bitcoin5 years ago (edited)

http://bitcoin.sipa.be/miniscript/


What is Miniscript?

It's a language for writing (a subset of) Bitcoin Scripts in a structured way, enabling analysis, composition, generic signing and more.

Bitcoin Script is an unusual stack-based language with many edge cases, designed for implementing spending conditions consisting of various combinations of signatures, hash locks, and time locks. Yet despite being limited in functionality it is still highly nontrivial to:

  • Given a combination of spending conditions, finding the most economical script to implement it.
  • Given two scripts, construct a script that implements a composition of their spending conditions (e.g. a multisig where one of the "keys" is another multisig).
  • Given a script, find out what spending conditions it permits.
  • Given a script and access to a sufficient set of private keys, construct a general satisfying witness for it.
  • Given a script, be able to predict the cost of spending an output.
  • Given a script, know whether particular resource limitations like the ops limit might be hit when spending.
Sort:  

To listen to the audio version of this article click on the play image.

Brought to you by @tts. If you find it useful please consider upvoting this reply.

65$ has been spent to promote this content using Steemium.
Learn more here!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 65634.72
ETH 3493.40
USDT 1.00
SBD 2.51