File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; revocable_cat_maker.clsp by yakuhito
2
+ ;; Given an inner puzzle and a user-supplied solution, CAT makers return the full puzzle of a CAT
3
+ ;; with the given inner puzzle. This allows the registry to support intermediary layers in
4
+ ;; future CATs, such as the recently-proposed revocation layer.
5
+
6
+ ;; The revocable CAT maker assumes the revocation layer is the only layer separating the CAT outer puzzle
7
+ ;; from the inner puzzle.
8
+
9
+ ;; Note: Truths (Inner_Puzzle_Hash) are trusted and should be verified by the outer puzzle.
10
+
11
+ (mod (
12
+ (CAT_MOD_HASH REVOCATION_LAYER_MOD_HASH . HIDDEN_PUZZLE_HASH_HASH)
13
+ TAIL_HASH_HASH ; (sha256 1 TAIL_HASH)
14
+ Inner_Puzzle_Hash
15
+ ; Note: other CAT makers may have more arguments here
16
+ ; Puzzles using the maker should prepend Inner_Puzzle_Hash to a user-supplied input
17
+ )
18
+ (include curry.clib)
19
+
20
+ (curry_hashes_inline CAT_MOD_HASH
21
+ (sha256 1 CAT_MOD_HASH)
22
+ TAIL_HASH_HASH
23
+ (curry_hashes_inline REVOCATION_LAYER_MOD_HASH
24
+ (sha256 1 REVOCATION_LAYER_MOD_HASH)
25
+ HIDDEN_PUZZLE_HASH_HASH
26
+ (sha256 1 Inner_Puzzle_Hash)
27
+ ) ; CAT layer inner puzzle
28
+ )
29
+ )
Original file line number Diff line number Diff line change
1
+ ff02ffff01ff0bff16ffff0bff04ffff0bff04ff1aff0980ffff0bff04ffff0bff1effff0bff04ffff0bff04ff1affff0bffff0101ff098080ffff0bff04ffff0bff1effff0bff04ffff0bff04ff1aff0b80ffff0bff04ffff0bff1effff0bff04ffff0bff04ff1affff0bff16ffff0bff04ffff0bff04ff1aff1580ffff0bff04ffff0bff1effff0bff04ffff0bff04ff1affff0bffff0101ff158080ffff0bff04ffff0bff1effff0bff04ffff0bff04ff1aff1d80ffff0bff04ffff0bff1effff0bff04ffff0bff04ff1affff0bffff0101ff178080ffff0bff04ff1aff12808080ff12808080ff12808080ff1280808080ffff0bff04ff1aff12808080ff12808080ff12808080ff12808080ffff04ffff01ff02ffffa04bf5122f344554c53bde2ebb8cd2b7e3d1600ad631c385a5d7cce23c7785459aa09dcf97a184f32623d11a73124ceb99a5709b083721e878a16d78f596718ba7b2ffa102a12871fee210fb8619291eaea194581cbd2531e4b23759d225f6806923f63222a102a8d5dd63fba471ebcb1f3e8f7c1e1879b7152a6e7298a91ce119a63400ade7c5ff018080
You can’t perform that action at this time.
0 commit comments