Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: Miniscript library under bitcoinjs org #1464

Open
blmalone opened this issue Aug 28, 2019 · 3 comments
Open

TODO: Miniscript library under bitcoinjs org #1464

blmalone opened this issue Aug 28, 2019 · 3 comments
Labels

Comments

@blmalone
Copy link

For more information see this Introduction and Live Compiler

@junderw
Copy link
Member

junderw commented Aug 28, 2019

I think this would be good for a separate library under the bitcoinjs org.

Since many people who are not Bitcoin devs will also likely use it.

@junderw junderw changed the title Do we think Miniscript would be a useful addition to this library? TODO: Miniscript library under bitcoinjs org Aug 28, 2019
@junderw junderw reopened this Aug 28, 2019
@landabaso
Copy link

Do you guys know about any progress on this by anyone?

@landabaso
Copy link

I've been investigating this.

We could use sipa's implementation (wasm) or rust-miniscript (also wasm?).

I managed to convert sipa's implementation into pure javascript (no wasm) using binaryen wasm2js, so we could even build a pure javascript version (it was very fast based on some examples I tested).

However, the last piece I'm missing in both packages is witness creation (how to produce the unlocking script).

There are not (yet) reference implementations for witness creation from arbitrary miniscripts. rust-miniscript is able to sign arbitrary descriptors but I believe there is no way to get the witness for an arbitrary policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants