Stellar Lumens (XLM) Forum with for newcomers and contributor's rewarded Check here

What is Bitcoin Miniscript and how does it work?
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5

      Bitcoin Miniscript aims to improve Bitcoin's programmability without compromising security through the addition of an improved scripting compiler

Released in August 2019 by Bitcoin developer Pieter Wuille, Bitcoin Miniscript aims to improve Bitcoin’s programmability without compromising security through the addition of an improved scripting compiler.

The goal is to make programmers’ lives easier and to allow for more/better functionality.

Bitcoin’s lack of programmability

Quote:[Image: 42UPDKnB_bigger.png]
Jimmy Song (송재준)@jimmysong

The developer that makes code and possible states simpler is doing so to reduce the attack surface.
The developer that makes code and possible states more complex is either inexperienced or following orders.

BTC is simplifying (miniscript).
ETH is growing more complex (ETH 2.0).

9:20 AM - Aug 21, 2019
Twitter Ads info and privacy

One of the key security aspects of Bitcoin (besides its massive energy requirements and vast decentralised network) is the fact it was developed in a non-Turing complete way, meaning it lacks programmability and doesn’t run loops or complex programs.

The less programmability a program has, the less chance you have of encountering errors, bugs, or issues.

In addition, it’s harder to break the code given less people know how to code in it.

As Bitcoin developer and educator Jimmy Song has said during his weekly podcast, ‘Off Chain with Jimmy Song’:

Quote:“The smart contract language differs from Ethereum’s Solidity language, because while Ethereum makes it possible to write many more types of smart contracts, Miniscript actually reduces the possibilities.”

Bitcoin Miniscript

As explained by Blockstream on GitHub – a company focused on improving Bitcoin and creating products over the Bitcoin network – there are some advantages to using a more user-friendly scripting language:

Quote:“Miniscript is a language for writing (a subset of) Bitcoin Scripts in a structured way, enabling analysis, composition, generic signing, and more.”

Blockstream adds that Bitcoin is designed for the implementation of 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, find the most economical script to implement it.

  • Given two scripts, construct a script that implements a composition of their spending conditions (for example, 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.
Blockstream concludes that Miniscript functions as a representation for scripts that makes the operations listed above possible. It has a structure that allows composition and is easy to statically analyse for various properties like the spending conditions, correctness, security properties, and malleability.

Finally, compatible scripts can easily be converted to Miniscript form – avoiding the need for additional metadata.

by Pedro Febrero

Possibly Related Threads...
Thread Author Replies Views Last Post
  Memes and manipulation: Bitcoin’s BART pattern and its origins crytocure 0 4 17 minutes ago
Last Post: crytocure
  3 THINGS STOPPING BITCOIN FROM RETURNING TO $20K crytocure 0 18 Yesterday, 03:20 PM
Last Post: crytocure
  Weekend Digest: How Much Bitcoin Is Enough For Retirement In 5 years? crytocure 0 21 Yesterday, 09:30 AM
Last Post: crytocure
  How to Make Money with Bitcoin: 10 Ways to Earn Cryptocurrency crytocure 0 62 16-11-2019, 03:35 PM
Last Post: crytocure
  What do Bitcoin’s Mining Difficulty Adjustments Say About the Bull Market Top? crytocure 0 82 15-11-2019, 02:52 AM
Last Post: crytocure
  Bobby Lee Predicts “Two More Bubbles” Before Bitcoin Reaches $1 Million Value crytocure 0 50 10-11-2019, 02:58 PM
Last Post: crytocure
  Bitcoin’s Upcoming Halving Exposes Long-Term Security Issues crytocure 0 59 10-11-2019, 11:20 AM
Last Post: crytocure
  Three things Bitcoin miners should know crytocure 0 57 09-11-2019, 03:25 PM
Last Post: crytocure
  Microsoft Windows Bug Makes it Possible to Mine Bitcoin on Old Computers crytocure 0 54 09-11-2019, 11:41 AM
Last Post: crytocure
  Will Bitcoin Follow Gold Prices Down as Trade Tensions Ease? crytocure 0 70 08-11-2019, 10:57 AM
Last Post: crytocure

Users browsing this thread: 1 Guest(s)