Timed events

From mojo_puzzler
Revision as of 02:03, 18 November 2023 by Gneale (talk | contribs) (Created page with "==== 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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"