1

I have read about that it is a language for writing Bitcoin Scripts in a structured way, enabling analysis, composition, generic signing and more.

http://bitcoin.sipa.be/miniscript/ is helpful but need more information, examples, libraries etc.

Simplicity is a blockchain programming language designed as an alternative to Bitcoin script and works for Elements.

I need more links or information to try things.

Also can miniscript be used for elements and simplicity be used for bitcoin?

1 Answer 1

3

Miniscript is an encoding of Bitcoin Script. The functionality of Miniscript is a subset of Script so there is nothing you can do with Miniscript that you can't do with Script. Therefore scripts decoded from Miniscript can be used on Bitcoin mainnet today in addition to testnet, regtest, signet and Elements.

In terms of Miniscript resources (in addition to the one you posted), the following are useful:

  • Andrew Poelstra presentation at London Bitcoin Devs in 2020
  • Andrew Poelstra workshop at Advancing Bitcoin 2020
  • Blockstream blog post in September 2019
  • PR to add Miniscript support to Bitcoin Core (C++)
  • PR to add Miniscript support to Bitcoin Core test framework (Python)
  • rust-miniscript library (Rust)

Simplicity, depending on which jets are enabled, has greater functionality than Script and is a direct alternative to Script rather than just an encoding. In addition:

Simplicity is a work-in-progress low-level programming language with greater flexibility and expressiveness than Bitcoin Script. It allows you to verify the safety, security and costs of a program.

It is supported on this test branch of Bitcoin Core and in Elements but not yet on Bitcoin mainnet.

In terms of Simplicity resources, the following are useful:

There is also a Simplicity Discussions page in the Simplicity repo which has a number of interesting Q&A. A more technical question on Simplicity may have already been asked there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.