Add miniscript implementation ()
Host: sputn1ck -
Notes
-
- This is not a PR in the
lnd
repository, but in thebtcd
repository that is used bylnd
. https://github.com/btcsuite/btcd/pull/1987
- This is not a PR in the
- As this PR is in a draft/unfinished state, we’re mainly looking to get some general miniscript knowledge, as well as look into some of the early code and design choices.
Questions
- How are Bitcoins generally locked?
- Whats an example of a p2wsh script and how to spend it?
- Why could manually composing bitcoin script be difficult?
- What is the difference between Miniscript Policy and Miniscript?
- What is an abstract syntax tree?
- What does the
AST.Apply
function do? - For
AST.Apply
describe the parsed slice of functions. - How is the bitcoin script generated from the
AST
? - How do we satisfy the miniscript?
- Do you think a policy to miniscript parser would make sense?
- Have you toyed around with the implementation? What are your thoughts? What should the API look like?
- What are some ideas you have on how/where to use miniscript in LND?