Simplest puzzles for testing: Difference between revisions
Jump to navigation
Jump to search
(Created page with "===== Return to: Insightful Comments ===== <h2>Example 1</h2>keybase://chat/chia_network.public#chialisp/6836 Q: Is it the case that a coin locked with the puzzle '()' can be spent always? Or should it be '(1)'? A: The puzzle can actually just be `1` yes which just returns whatever you pass in the solution. We use it a lot for testing. <h2>Example 2</h2> <code>(mod () (q (51 0x656214f18f80a85a30f97cafa0fdfd29578d5e8030316b21e36552f9172c49d1 0x01...") |
(No difference)
|
Latest revision as of 02:07, 18 November 2023
Return to: Insightful Comments
Example 1
keybase://chat/chia_network.public#chialisp/6836
Q: Is it the case that a coin locked with the puzzle '()' can be spent always? Or should it be '(1)'?
A: The puzzle can actually just be `1` yes which just returns whatever you pass in the solution. We use it a lot for testing.
Example 2
(mod () (q (51 0x656214f18f80a85a30f97cafa0fdfd29578d5e8030316b21e36552f9172c49d1 0x01)))