|
19 | 19 | )
|
20 | 20 | )
|
21 | 21 | )
|
22 |
| - ( |
| 22 | + ( |
| 23 | + precommited_cat_maker_hash ; (sha256tree precommited_cat_maker_reveal) |
23 | 24 | precommited_cat_maker_reveal
|
24 |
| - precommited_cat_maker_hash |
25 | 25 | precommited_cat_maker_solution
|
26 | 26 | tail_hash ; full TAIL in the reveal of the pre-commit coin
|
27 | 27 | initial_nft_owner_ph ; also included in the pre-commit coin
|
28 | 28 | refund_puzzle_hash_hash ; used to compute precommit coin puzzle hash
|
29 | 29 | precommit_amount . ; amount of the pre-commit coin
|
30 |
| - neighbors_hash ; (sha256sum (left_tail_hash . right_tail_hash)) |
| 30 | + neighbors ; (left_tail_hash . right_tail_hash) |
31 | 31 | ) ; solution
|
32 | 32 | )
|
33 | 33 | (include condition_codes.clib)
|
34 |
| - (include secure_nft.clib) |
35 | 34 | (include sha256tree.clib)
|
| 35 | + (include curry.clib) |
36 | 36 | (include slots.clib)
|
37 | 37 |
|
38 |
| - (defun get_slot_value_hash (value neighbors_hash) |
39 |
| - (sha256 2 (sha256 1 value) neighbors_hash) |
40 |
| - ) |
41 |
| - |
42 |
| - (defun main (SLOT_1ST_CURRY_HASH slot_value_hash slot_hint slot_spend_needed base_conditions) |
| 38 | + (defun main (SLOT_1ST_CURRY_HASH slot_value_hash slot_spend_needed base_conditions) |
43 | 39 | (if slot_spend_needed
|
44 | 40 | (c
|
45 | 41 | (spend_slot SLOT_1ST_CURRY_HASH slot_value_hash)
|
46 | 42 | (c
|
47 |
| - (create_slot SLOT_1ST_CURRY_HASH slot_value_hash slot_hint) |
| 43 | + (create_slot SLOT_1ST_CURRY_HASH slot_value_hash) |
48 | 44 | base_conditions
|
49 | 45 | )
|
50 | 46 | )
|
|
58 | 54 | Truth ; nothing changes
|
59 | 55 | (main
|
60 | 56 | SLOT_1ST_CURRY_HASH
|
61 |
| - (get_slot_value_hash tail_hash neighbors_hash) |
62 |
| - tail_hash |
| 57 | + (sha256tree (c tail_hash neighbors)) |
63 | 58 | (all
|
64 | 59 | (= Registration_Price precommit_amount)
|
65 | 60 | (= precommited_cat_maker_hash Cat_Maker_Puzzle_Hash)
|
|
69 | 64 | (list
|
70 | 65 | CREATE_PUZZLE_ANNOUNCEMENT
|
71 | 66 | (concat '$'
|
72 |
| - (sha256 2 |
73 |
| - (sha256 1 tail_hash) |
74 |
| - (sha256 1 initial_nft_owner_ph) |
75 |
| - ) ; (sha256tree (tail_hash . initial_nft_owner_ph)) |
| 67 | + (sha256tree (c tail_hash initial_nft_owner_ph)) |
76 | 68 | )
|
77 | 69 | )
|
78 | 70 |
|
|
83 | 75 | 0 ; message = 0 = refund
|
84 | 76 | (a
|
85 | 77 | precommited_cat_maker_reveal
|
86 |
| - (list |
| 78 | + (c |
87 | 79 | (curry_hashes PRECOMMIT_1ST_CURRY_HASH
|
88 | 80 | refund_puzzle_hash_hash
|
| 81 | + ; full precommit value reveal is (TAIL . HASH) |
| 82 | + ; where HASH = (sha256tree initial_nft_owner_ph cat_maker_hash . cat_maker_solution) |
89 | 83 | (sha256 2
|
| 84 | + tail_hash |
90 | 85 | (sha256 1
|
91 |
| - (sha256 2 |
92 |
| - precommited_cat_maker_hash |
93 |
| - (sha256tree precommited_cat_maker_solution) |
94 |
| - ) |
95 |
| - ) |
96 |
| - (sha256 2 |
97 |
| - (sha256 1 initial_nft_owner_ph) |
98 |
| - tail_hash |
| 86 | + (sha256tree (c initial_nft_owner_ph (c precommited_cat_maker_hash precommited_cat_maker_solution))) |
99 | 87 | )
|
100 |
| - ) ; precommit coin reveal will be (c refund_info_hash (c initial_nft_owner_ph TAIL)) |
| 88 | + ) |
101 | 89 | ) ; Inner_Puzzle_Hash
|
102 | 90 | precommited_cat_maker_solution
|
103 | 91 | )
|
|
0 commit comments