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

#1
      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).

145
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.




source https://coinrivet.com/guides/cryptocurre...-it-works/
by Pedro Febrero
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  WHY BITFINEX NO LONGER RULES OVER BITCOIN (BTC) crytocure 0 12 3 hours ago
Last Post: crytocure
  Bitwise To SEC: 3 Reasons The World Is Ready For A Bitcoin ETF crytocure 0 14 Yesterday, 12:42 PM
Last Post: crytocure
  What is BTCPay Server? Free & Open Source Bitcoin Payment Processor crytocure 0 13 19-09-2019, 02:48 PM
Last Post: crytocure
  5 reasons why Bitcoin Price might crash hard soon crytocure 0 26 19-09-2019, 09:39 AM
Last Post: crytocure
  HOW MUCH BTC DO YOU NEED TO BE A BITCOIN WHALE? crytocure 0 15 17-09-2019, 03:20 PM
Last Post: crytocure
  Why Bitcoin? Part 3: How Money Works Today crytocure 0 18 17-09-2019, 10:15 AM
Last Post: crytocure
  Want Bitcoin to Moon? You’d Better Start Buying Stocks crytocure 0 26 16-09-2019, 01:10 PM
Last Post: crytocure
  Why Bitcoin? Part 2: Bitcoin Versus Gold crytocure 0 26 15-09-2019, 04:41 AM
Last Post: crytocure
  Why Bitcoin? Part One: The History Of Money crytocure 0 51 13-09-2019, 11:37 AM
Last Post: crytocure
  ARE BITCOIN PRICE AND CRYPTO EXCHANGE BTC FLOW RELATED? crytocure 0 38 10-09-2019, 03:25 PM
Last Post: crytocure



Users browsing this thread: 1 Guest(s)