Remix.run Logo
DoctorOetker an hour ago

thats a poorly implemented reward script, if it leaves you exposed to the mining pool with this gentleman's agreement.

the script could have been designed 2 phase, so one first submits a hash of the solution & submitter address, so even if miners front-run the submitter, they just helpfully pay the transaction fee!

LiamPowell an hour ago | parent [-]

There is no script.

greyface- 7 minutes ago | parent [-]

Of course there's a script; every bitcoin tx output has a script. These challenges use the standard P2PKH script, i.e.:

  scriptPubKey: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG
  scriptSig: <sig> <pubKey>
https://en.bitcoin.it/wiki/Script