I would like to create a game (kind of like a treasure hunt) where the winner finds a piece of hidden information that allows them to claim some bitcoin.
One way to do it is to create a transaction with OP_TRUE in the script so anyone can spend, and the winner is the person who finds this transaction and spends it to himself.
Another way is to create a new wallet, and the winner is the person who finds the private key.
Which way is better, what are the pros/cons?