From rusty at rustcorp.com.au Thu Oct 31 00:17:56 2019 From: rusty at rustcorp.com.au (Rusty Russell) Date: Thu, 31 Oct 2019 10:47:56 +1030 Subject: [Lightning-dev] [PATCH] First draft of option_simplfied_commitment In-Reply-To: References: Message-ID: <8736f9939n.fsf@rustcorp.com.au> Matt Corallo writes: > Why not stick with the original design from Adelaide with a spending path with a 1CSV that is anyone can spend (or that is revealed by spending another output). The original design IIRC was a single anyone-can-spend anchor output. If we need two anchor outputs, and want the other to turn into an anyone-can-spend after it's mined, it's possible by gratuitously mentioning the other key in the script, I think: # If they provide a signature, they can push this: OP_DEPTH OP_IF OP_CHECKSIG OP_ELSE # Reveal the other key so you can spend the other anchor, too. OP_DROP # Now, anyone can spend after 1 block. 1 OP_CHECKSEQUENCEVERIFY OP_TRUE OP_ENDIF The other anchor output reverses and . Cheers, Rusty.