Represents the various errors that arise when resolving state.
Abstraction of a PDU so users can have their own PDU types.
Authenticate the incoming
For the given event
kind what are the relevant auth events that are needed to authenticate
Sorts the event graph based on number of outgoing/incoming edges.
Resolve sets of state events as they come in. Internally
StateResolution builds a graph and an
auth chain to allow for state conflict resolution.