Intercoin Communication
Return to: Insightful Comments
Keybase 20211023:
Q: Any wisdom on the differences/use-cases between CREATE_COIN_ANNOUNCEMENT and CREATE_PUZZLE_ANNOUNCEMENT?
A (gneale):
CREATE_COIN_ANNOUNCEMENT versus CREATE_PUZZLE_ANNOUNCEMENT is not that big of a difference code-wise, but usage-wise it is vast. Basically, the coinID dependency is much stricter, like one and done. The assertion coin is looking for that one announcement coin with that one ID and if it gets spent in a different block than the assertion then the assertion coin is locked unspent forever. In contrast, puzzle_hash assertion is looser in that if one announcement is missed another can come later from that same puzzle_hash.
- Comment1: That actually used to be the implementation of announcements funny enough. You would create a zero value coin and then consume it and another coin would assert that it had been consumed. Announcements are much nicer. - Quexington 20210909
- Comment2: Zero value coins are still useful for "announcements" that last longer than the block they're created it (but you've got to make a spend for them and all that good stuff) - Matt Howard 20210909