{"type":"rich","version":"1.0","author_name":"npub1g6vxlp4e0nyhs2dqxxcryztyf5f5hyuaq93nw4r87zcnv0sdsa0qqsl5wd","author_url":"https://nostr.ae/npub1g6vxlp4e0nyhs2dqxxcryztyf5f5hyuaq93nw4r87zcnv0sdsa0qqsl5wd","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2017-05-24\n📝 Original message:On Wed, May 24, 2017 at 9:50 AM, Tier Nolan \u003ctier.nolan at gmail.com\u003e wrote:\n\n\u003e OP_BRIBE_VERIFY could then operate as follows\n\u003e\n\u003e \u003cblock height\u003e \u003csidechain_id\u003e \u003ccritical hash\u003e OP_BRIBE_VERIFY\n\u003e\n\u003e This causes the script to fail if\n\u003e   \u003cblock height\u003e does not match the block height, or\n\u003e   \u003ccritical hash\u003e is not the hash for the sidechain with \u003csidechain_id\u003e, or\n\u003e   there is no hash for that sidechain in the block's coinbase\n\u003e\n\u003e\nI was thinking more on the process for these transactions.\n\nI assume that the process is\n\n- sidechain miner broadcasts transaction with OP_BRIBE output\n- this transaction ends up in the memory pool of miners\n- Miners add the transaction to their next block\n- Miners add a transaction which spends the output to one of their own\naddresses\n\nI think you need an additional rule that OP_BRIBE checks fails unless the\noutput is locked 100 or more blocks.\n\nThe output script would end up something like\n\nIF\n   \u003cblock height\u003e \u003cchain_id\u003e \u003ccritical hash\u003e OP_BRIBE_VERIFY\nELSE\n  \u003cpublic key\u003e OP_CHECKSIG\nENDIF\n\nThis output acts like \"anyone can spend\" for the one block height.\nOtherwise, only the sidechain miner can spend the output.\n\nThis allows the sidechain miner to reclaim their coins if the transaction\nends up in a different block.\n\nOP_BRIBE_VERIFY would have an additional rule\n\nThe script to fails if\n  one or more of the transaction outputs start with something other than\nthe template\n  \u003cblock height\u003e does not match the block height, or\n  \u003ccritical hash\u003e is not the hash for the sidechain with \u003csidechain_id\u003e, or\n  there is no hash for that sidechain in the block's coinbase\n\nThe template is\n  \u003c100\u003e OP_CHECKSEQUENCE_VERIFY\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20170524/02094798/attachment.html\u003e"}
