How to spend Bitcoin by solving "x + 2 = 3"
This was a short presentation to introduce Script, the programming language of Bitcoin. Presentation was held at the Trondheim Open Blockchain Meetup, 19. November 2021.
In the demo session of the presentation, I went through some simple locking script and the audience helped figure out the unlocking scripts.
To debug the programs, we used meep debugger. To view the transactions below in meep, run
meep debug --tx=<transaction ID>.
Transactions from the demo session (published to the Bitcoin Cash chain):
2 OP_ADD 3 OP_EQUAL. This one has the solution to the title of the presentation.
OP_REVERSEBYTES <DIGGS> OP_EQUAL.
OP_DROP OP_DROP OP_NIP. If the audience figured out this one, the transaction would be a donation to EatBCH. The audience figured it out.