Append a new event to the ledger. Serialized via internal queue to maintain hash chain integrity.
Get a single event by ID.
Get events in a sequence range (inclusive).
Get events by type.
Get events matching a payload filter (searches JSON payload).
Optional types: ProvenanceEventType[]Get the latest event.
Get all events for this agent (ordered by sequence).
Initialize the ledger: load the last sequence number and hash from the DB.