<oembed><type>rich</type><version>1.0</version><author_name>npub1g6vxlp4e0nyhs2dqxxcryztyf5f5hyuaq93nw4r87zcnv0sdsa0qqsl5wd</author_name><author_url>https://nostr.ae/npub1g6vxlp4e0nyhs2dqxxcryztyf5f5hyuaq93nw4r87zcnv0sdsa0qqsl5wd</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2016-08-03&#xA;📝 Original message:On Wed, Aug 3, 2016 at 7:16 PM, Matthew Roberts via bitcoin-dev &lt;&#xA;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&#xA;&gt; The reason why I bring this up is existing OP codes and TX types don&#39;t&#xA;&gt; seem suitable for a secure clearing mechanism;&#xA;&gt;&#xA;&#xA;I think reversing transactions is not likely to be acceptable.  You could&#xA;add an opcode that requires that an output be set to something.&#xA;&#xA;[target script] SPENDTO&#xA;&#xA;This would require that [target script] is the script for the corresponding&#xA;output.  This is a purely local check.&#xA;&#xA;For example, if SPENDTO executes as part of the script for input 3, then it&#xA;checks that output 3 uses the given script as its scriptPubKey.  The value&#xA;of input 3 and output 3 would have to be the same too.&#xA;&#xA;This allows check sequence verify to be used to lock the spending script&#xA;for a while.  This doesn&#39;t allow reversal, but would give a 24 hour window&#xA;where the spenders can reverse the transaction.&#xA;&#xA;[IF &lt;1 day&gt; CSV DROP &lt;live public key&gt; CHECKSIG ELSE &lt;offline protected&#xA;key&gt; CHECKSIG] SPENDTO &lt;live public key2&gt; CHECKSIG&#xA;&#xA;Someone with the live public key can create a transaction that spends the&#xA;funds to the script in the square brackets.&#xA;&#xA;Once that transaction hits the blockchain, then someone with the &lt;offline&#xA;protected key&gt; has 24 hours to spend the output before the person with the&#xA;live keys can send the funds onward.&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20160804/3e551535/attachment-0001.html&gt;</html></oembed>