<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:2017-05-24&#xA;📝 Original message:On Wed, May 24, 2017 at 9:50 AM, Tier Nolan &lt;tier.nolan at gmail.com&gt; wrote:&#xA;&#xA;&gt; OP_BRIBE_VERIFY could then operate as follows&#xA;&gt;&#xA;&gt; &lt;block height&gt; &lt;sidechain_id&gt; &lt;critical hash&gt; OP_BRIBE_VERIFY&#xA;&gt;&#xA;&gt; This causes the script to fail if&#xA;&gt;   &lt;block height&gt; does not match the block height, or&#xA;&gt;   &lt;critical hash&gt; is not the hash for the sidechain with &lt;sidechain_id&gt;, or&#xA;&gt;   there is no hash for that sidechain in the block&#39;s coinbase&#xA;&gt;&#xA;&gt;&#xA;I was thinking more on the process for these transactions.&#xA;&#xA;I assume that the process is&#xA;&#xA;- sidechain miner broadcasts transaction with OP_BRIBE output&#xA;- this transaction ends up in the memory pool of miners&#xA;- Miners add the transaction to their next block&#xA;- Miners add a transaction which spends the output to one of their own&#xA;addresses&#xA;&#xA;I think you need an additional rule that OP_BRIBE checks fails unless the&#xA;output is locked 100 or more blocks.&#xA;&#xA;The output script would end up something like&#xA;&#xA;IF&#xA;   &lt;block height&gt; &lt;chain_id&gt; &lt;critical hash&gt; OP_BRIBE_VERIFY&#xA;ELSE&#xA;  &lt;public key&gt; OP_CHECKSIG&#xA;ENDIF&#xA;&#xA;This output acts like &#34;anyone can spend&#34; for the one block height.&#xA;Otherwise, only the sidechain miner can spend the output.&#xA;&#xA;This allows the sidechain miner to reclaim their coins if the transaction&#xA;ends up in a different block.&#xA;&#xA;OP_BRIBE_VERIFY would have an additional rule&#xA;&#xA;The script to fails if&#xA;  one or more of the transaction outputs start with something other than&#xA;the template&#xA;  &lt;block height&gt; does not match the block height, or&#xA;  &lt;critical hash&gt; is not the hash for the sidechain with &lt;sidechain_id&gt;, or&#xA;  there is no hash for that sidechain in the block&#39;s coinbase&#xA;&#xA;The template is&#xA;  &lt;100&gt; OP_CHECKSEQUENCE_VERIFY&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20170524/02094798/attachment.html&gt;</html></oembed>