[Lightning-dev] Pay-to-Open and UX improvements

ZmnSCPxj ZmnSCPxj at protonmail.com
Thu Dec 19 03:22:18 UTC 2019


Good morning t-bast,

> * A script-path spend with the following script (and only that script):
> OP_SWAP OP_DUP <R> OP_EQUALVERIFY OP_SWAP <P> OP_CHECKSIG

Why not this:

    <R> OP_SWAP OP_CHECKSPLITSIG

?

Since `R` is constrained to be fixed anyway, why repeat `R` twice, once in the script and once in the witness stack?

Also, would we want to support non-`SIGHASH_ALL` sighashes?

Regards,
ZmnSCPxj


More information about the Lightning-dev mailing list