Post
Topic
Board Development & Technical Discussion
Merits 4 from 3 users
Re: How can one make a transaction that any address can claim it just by solving the
by
BlackHatCoiner
on 09/07/2023, 10:51:02 UTC
⭐ Merited by pooya87 (2) ,WhyFhy (1) ,ETFbitcoin (1)
You should add some destination to where the funds will go after you complete the puzzle, correct.

So, even if the winner solves the scriptPubKey, how can then he/she divert the funds to another destination address?
They will just construct a transaction which includes an input that satisfies the conditions specified by the script. It would look like this:
Code:
Input:
- Previous Transaction Output: Puzzle Transaction Output
- ScriptSig: <puzzle_solution>

Output:
- Destination Address: XYZabc...