Replies: 6 comments 2 replies
-
Referencing question #9339, where another user unknowingly stumbled upon this. I think this is worthy of a bug report, so opening #9345 as well. |
Beta Was this translation helpful? Give feedback.
-
Just to explain what's going on for everyone: |
Beta Was this translation helpful? Give feedback.
-
We should also have a "more details" page in ui for TXs so that we can display full puzzle also. This is useful if you want to check TXs on a explorer. |
Beta Was this translation helpful? Give feedback.
-
In that case, also display the outer puzzle for outgoing TX in more details? Do you have an idea if it is possible to spend coins which have been double CAT wrapped, or are they burned? I see this question coming up a lot as a result of these mistakes. |
Beta Was this translation helpful? Give feedback.
-
I don't think that these double wrapped CATs are able to be unwrapped to be regular CATs. chia-blockchain/chia/wallet/puzzles/cat.clvm Line 163 in d6441e8 Thus spending a coin which has two layers of CAT is going to wrap the destination puzzle hash twice, and you'll get the same monster again. Perhaps the CAT puzzle could be tweaked to examine if the inner layer is also a CAT of the same type, and then to skip the second wrap. However this would require changing the CAT standard and breaking compatibility with current CATs. |
Beta Was this translation helpful? Give feedback.
-
Just an update: spending doubly wrapped coins is possible, albeit in a very limited fashion. The result of the spend can only be another doubly wrapped coin, which significantly restricts their use (e.g. combining them with regular CATs to send some amount of CAT, and receive back the change). They are also not recognized by the wallet, and spending them currently requires manually crafting a special spend bundle. PR #9422 seeks to address this by introducing a mechanism into the CAT puzzle which will allow us to unwrap the multiply wrapped coin back into a regular CAT. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The light wallet shows the CAT puzzle hash for incoming transactions, and not the real puzzle hash of the underlying standard chia wallet.
For example, one of my Chia receive addresses is
xch1....3hlnh
, and when you wrap that puzzle in a CAT puzzle (with the Spacebucks tail0x78ad32a8c9ea70f27d73e9306fc467bab2a6b15b30289791e37ab6e8612212b1
), you get a puzzle hashxch1...6sj34t68
.This is how it looks like when I got some Spacebucks from their faucet:

However, an uninformed user may try to use this as an address for sending the CAT. The UI would suggest that everything is fine:
But this actually sent the funds to
xch1vnk6f5tm30y7zmyd0v2g2s9xt8fuvm894u82f4l560ttllv7ltsq6ry9u7
, which is a puzzle where we have a second outer Spacebucks CAT layer wrapping the original CAT in turn wrapping the original standard wallet puzzle. Of course, the wallet has no understanding of this, so it doesn't display this in the balance.In fact, can this coin even be spent? Will the inner CAT puzzle be messed up by the outer CAT layer?
Beta Was this translation helpful? Give feedback.
All reactions