Skip to content

Miniscript support? #668

@joemphilips

Description

@joemphilips

Hi

I've been trying to port rust-miniscript into F#

https://github.com/joemphilips/FNBItcoin/tree/master/src/FNBitcoin

My original idea is to make this library as a wrapper for NBitcoin, but I'm wondering if this should be included in this repository when it is finished. Any opinion ?

(It is almost done besides 1. decompiler is not finished, and 2. want to add more property tests to asssure the behaviour will be exactly the same with rust-miniscript in all case. )

reasons to merge into this repo is

  1. more fluent ScriptBuilder class will be possible
  2. PSBT could support arbitrary script for finalization (currently it is only for simple multisig)
  3. PSBT can parse the script into human readable format and users could see if it is in the right form

reasons to not merge is

  1. It is written in F# and does not align well with other source code.
  • I have no clue how to write this kind of software (parser, compiler) with C#
  1. spec of miniscript itself is not formalized and might change slightly in the future
  • I don't think this is a big problem since 1) optimizing the compilation process seems to have done well and more optimization sounds like over-engineering. 2) it is likely to change in the future anyway, when MuSig and Graftroot comes out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions