Stellar Lumens (XLM) Forum with if you love Stellar Lumens please takeover this forum email

What is Bitcoin Miniscript and how does it work?
  • 5 Vote(s) - 3.2 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
01 information Hot NEWS How do I start a bitcoin exchange? coinsbot 1 496 30-04-2020, 10:07 PM
Last Post: Milner
  How to Tell If a Bitcoin Bear Market Is Coming crytocure 1 389 30-04-2020, 10:01 PM
Last Post: Milner
  50 Cent, Talib Kweli, Snoop Dogg and Nas: Celebrities Who Could Be Bitcoin Millionair crytocure 0 475 22-02-2020, 04:15 PM
Last Post: crytocure
  This Chinese Whale Lost $45 Million in Bitcoin and BCH Overnight: How it Happened crytocure 0 498 22-02-2020, 11:51 AM
Last Post: crytocure
  How Uniswap Taxes Work crytocure 0 220 21-02-2020, 03:17 PM
Last Post: crytocure
  What is Bitcoin Genesis Block? Explained crytocure 0 344 21-02-2020, 02:58 PM
Last Post: crytocure
  Withdraw Bitcoin to a credit card in Lumi Wallet crytocure 0 340 21-02-2020, 12:11 PM
Last Post: crytocure
  Tom Lee: ‘In the Long Term’ Bitcoin Could Achieve ‘100X Increase in Price’ crytocure 0 360 19-02-2020, 03:18 PM
Last Post: crytocure
  Keep Calm and Work Hard: The Story of Binance’s CEO From A to CZ crytocure 0 220 17-02-2020, 10:46 AM
Last Post: crytocure
  Can All Of Bitcoin Be Hacked? crytocure 0 366 16-02-2020, 03:31 PM
Last Post: crytocure

Users browsing this thread: 1 Guest(s)