read.cash Log in
@bitcoincashautist edited

Celebrating Bitcoin Cash May-2022 Upgrade - 2.5 BCH Giveaway I have already funded the giveaway by sending 2.5 BCH to bitcoincash:pzq2vg8ppftlnk7raj452eae33upjgedj5dnc5efg5. https://blockchair.com/bitcoin-cash/address/pzq2vg8ppftlnk7raj452eae33upjgedj5dnc5efg5 This is no ordinary address, this is a P2SH address, which means that it is a "smart contract" address. Anyone who wants to spend from it must satisfy the contract, and I designed it so that ANYONE will be able to satisfy it. First come, first served! :) https://btcinformation.org/en/developer-guide#pay-to-script-hash-p2sh There's a catch, though - the contract uses Script features (native introspection opcodes and OP_MUL) that will only become available when the May 2022 Bitcoin Cash upgrade will be activated. Because of that, nobody can spend from the address yet and that gives you a few days of time to figure out how to craft the spending transaction in anticipation of the upgrade activation. https://reference.cash/protocol/blockchain/script https://gitlab.com/GeneralProtocols/research/chips/-/blob/master/CHIP-2021-02-Add-Native-Introspection-Opcodes.md#chip-2021-02-native-introspection-opcodes https://gitlab.com/GeneralProtocols/research/chips/-/blob/master/CHIP-2021-02-Bigger-Script-Integers.md#technical-specification Anyone is able to do the same, so it will be a race - who will broadcast the valid spending transaction first and at the right time to claim the reward? The contract redeem script is: `0xc3518876cd00c788cc00c65f956096a269cd3a6a38486170707920426974636f696e2043617368204d61792d32303232207570677261646521202d20626974636f696e6361736861757469737487` and here's a link to a very useful tool for Script contracts (kudos to @bitjson): https://ide.bitauth.com/. I suggest using Electron Cash to make a dummy TX that sends to your address, export the TX into a file then edit it in your favorite text editor to replace the input with the one spending the reward, load it back into Electron Cash and broadcast! https://electroncash.org/index.html The transaction format is documented here: https://reference.cash/protocol/blockchain/transaction/ I will not give any other help - you figure it out, good luck!

$1.39

18 comments

Log in to join in Reading is open to everyone. Replying needs an account.