From bastien at acinq.fr Thu Dec 19 08:29:45 2019 From: bastien at acinq.fr (Bastien TEINTURIER) Date: Thu, 19 Dec 2019 09:29:45 +0100 Subject: [Lightning-dev] Pay-to-Open and UX improvements In-Reply-To: <6dOF2eZd0A4ICUmgFP4owHBJBWdoPOA9yp1Wvj7gn6xgIhK-YrtZ_tsoEmeJ-cu7kMaKSpNR52_qoJVppp_VDxxO1OEbr7EB-5h3DYIvXck=@protonmail.com> References: <20191217144346.erlikoqqllxu4irx@ganymede> <3GiEjMd49K1cZukcBKrRpZE4xa0-GQ4andCz_4MIO3WHIjSdDEdPrOTwez7hJwHgHM9NUHzXaWoSGPd6m_71xoLJvZUEw1Cllcm6TfFb5Yo=@protonmail.com> <6dOF2eZd0A4ICUmgFP4owHBJBWdoPOA9yp1Wvj7gn6xgIhK-YrtZ_tsoEmeJ-cu7kMaKSpNR52_qoJVppp_VDxxO1OEbr7EB-5h3DYIvXck=@protonmail.com> Message-ID: Good points, these are good optimisations if we propose such a new opcode! I'm still pondering whether this will be useful enough or if finney attacks completely ruin all use-cases... Le jeu. 19 d?c. 2019 ? 07:24, ZmnSCPxj a ?crit : > Good morning t-bast, > > > > - A script-path spend with the following script (and only that > script): > > > OP_SWAP OP_DUP OP_EQUALVERIFY OP_SWAP

OP_CHECKSIG > > > > > > > Why not this: > > > > 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? > > For that matter, since we are far more likely to have a constant `R` than > a constant `s` maybe you should instead propose that `OP_CHECKSPLITSIG` be > given `

OP_CHECKSPLITSIG`, so that a fixed-`R` single-show > signature is just `

OP_CHECKSPLITSIG`. > > Regards, > ZmnSCPxj > -------------- next part -------------- An HTML attachment was scrubbed... URL: