still exploring the issues described in this topic....
I took some time to deep dive into the SAFE Dev tutorials that greatly explain how to interact with the SAFE API and the data structures AppendableData and StructuredData. Learned a lot by exploring that great resources.
However, what is still unclear to me is how I would create a SAFE app that runs "in the SAFE network" and does certain actions on its own when certain conditions are met, without an action of a human being that triggers some change in data stored on the SAFE network. The SAFE Dev tutorial apps (Email, Website-comments and VideoChat) are all examples for apps where all actions are triggered by humans, no example there of some action that is done by a SAFE app itself (in a background process).
I try to give an example in order to explain what I mean:
- User 'Alice' encrypts some message for user 'Bob' with the encryption key of 'Bob' (as in the Email-App tutorial)
- The encrypted messages is given over to a SAFE app that runs on the SAFE network 24/7. The SAFE app cannot read the encrypted message because it is encrypted for Bob. However, Alice specifies a condition (lets call it conditionForHandover) when she wants the SAFE app to deliver the encrypted message to Bob.
- The app constantly checks if conditionForHandover is fullfilled
- If conditionForHandover is fulfilled, the SAFE app (WITHOUT action triggering from any user!!!) appends the encrypted message to Bob.
I can see which data structures of SAFE will serve for the described use case, but not what means I have to use in order to design a SAFE app that acts as the described "autonomous intermediary". How to design such an app?
Any hints very welcome here!