Event struct represents a TAPLE event, which is the fundamental unit of state change in the system. Events are created, evaluated, and approved before being applied to a subject’s state.
Event Structure
The identifier of the subject of the event.
The signed event request.
The sequence number of the event.
The version of the governance contract.
The patch to apply to the state (JSON Patch format).
The hash of the state after applying the patch.
Whether the evaluation was successful and the result was validated against the schema.
Whether approval is required for the event to be applied to the state.
Whether the event has been approved.
The hash of the previous event.
The set of evaluators who have evaluated the event.
The set of approvers who have approved the event.
Metadata Structure
TheMetadata struct represents the metadata associated with a TAPLE event.
The namespace of the event.
The identifier of the subject of the event.
The identifier of the governance contract.
The version of the governance contract.
The identifier of the schema used to validate the event.
Event Lifecycle
- Creation - An event is created from an event request
- Evaluation - Evaluators validate the event against the schema
- Approval - If required, approvers approve or reject the event
- Application - The event’s patch is applied to the subject’s state
Example
Related Types
EventRequest- The request that initiated the eventSigned<T>- Wrapper for cryptographically signed dataDigestIdentifier- Cryptographic identifierSignature- Cryptographic signature
