Timed events

From mojo_puzzler
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Return to: Insightful_Comments

Keybase 20211021:

Q : Hi there, a friend and I are wanting to develop a project on Chia as part of our dissertation at university, we wanted to know if timed events/conditions are possible/easy to do?

A (Quexington): You can assert that a certain time/block height has passed if you'd like but you cannot assert that a certain time/block height has not passed.

If you want to lock a spend until a certain time, you can do that. If you want to lock a spend at a certain time, you cannot do that. Spends only become valid, not invalid.

One more thing to note is that you could get close to the "spend becomes invalid" behavior by having a spend path that allows anyone to spend the coin to some predetermined puzzle. Watchers can watch the blockchain and purposefully go brick those coins that have "expired"