Event Lifecycle
When users interact with the validator through the GraphQL API, it will validate the content of the request, as well as the permissions of the user over the data. The lifecycle of an event (for example, issue a PDA) looks like this:- The user authenticates to API by signing a message.
- The user chooses a schema that matches the claim body of the PDA.
- The user does an authenticated call to API passing the action and body of the request (issuePDA with claim body and data model ID).
- The validator checks if the user has permission over the data model.
- The validator checks if the claim body matches the data model schema.
- The validator encrypts the PDA data with the owner’s key.
- The validator stores the data encrypted at rest.
- The validator broadcasts the transaction on-chain.