Example puzzle reveal and solution

From mojo_puzzler
Jump to navigation Jump to search
Return to: Chialisp

Example 1

This is spend using standard transaction from GUI:

Puzzle reveal:

(a (q 2 (q 2 (i 11 (q 2 (i (= 5 (point_add 11 (pubkey_for_exp (sha256 11 (a 6 (c 2 (c 23 ()))))))) (q 2 23 47) (q 8)) 1) (q 4 (c 4 (c 5 (c (a 6 (c 2 (c 23 ()))) ()))) (a 23 47))) 1) (c (q 50 2 (i (l 5) (q 11 (q . 2) (a 6 (c 2 (c 9 ()))) (a 6 (c 2 (c 13 ())))) (q 11 (q . 1) 5)) 1) 1)) (c (q . 0xb0ae2c321d9fe66b0cfc17a2772dabf692f2081632f423cc9c736e263cc8f36358a67451c0334105b768d66b07e8f608) 1))

Solution:

(() (q (51 0xd336d6cffee5fb311b2200b75b34c37d9e77e296ad3e8d73ce8629092749bd5f 1) (51 0x3d7024f87005282f007374f3b5f7fb3db4f5df8e568cadc2431d23600e7bd3cf "LK<") (60 0xec3b34e6fa8c25efaa1f717bcd3ee16b8c4216f96a82aaaa2e1fe1cab5bee2b4)) ())

Example 2

This spend is a password-locked coin and in the solution the password("hello2") is visible.

Puzzle reveal:

Serialized:

ff02ffff01ff02ffff03ffff09ffff0bff0580ffff01a087298cc2f31fba73181ea2a9e6ef10dce21ed95e98bdac9c4e1504ea16f486e480ffff01ff04ffff04ff02ffff04ff0bffff04ff17ff80808080ff8080ffff01ff088080ff0180ffff04ffff0133ff018080

CLVM:

(a (q 2 (i (= (sha256 5) (q . 0x87298cc2f31fba73181ea2a9e6ef10dce21ed95e98bdac9c4e1504ea16f486e4)) (q 4 (c 2 (c 11 (c 23 ()))) ()) (q 8)) 1) (c (q . 51) 1))

Solution:

Serialized:

ff8668656c6c6f32ffa0e01be2a577d6a90647fd681863dfa8832f8844cf7a5d7f96d8fd804fbad92c64ff0280

CLVM:

("hello2" 0xe01be2a577d6a90647fd681863dfa8832f8844cf7a5d7f96d8fd804fbad92c64 2)