pub fn auth_check<E: Event>(
) -> Result<bool>
Authenticate the incoming
event. The steps of authentication are:
- check that the event is being authenticated for the correct room
- check that the events signatures are valid
- then there are checks for specific event types
auth_events that are passed to this function should be a state snapshot.
We need to know if the event passes auth against some state not a recursive collection
of auth_events fields.
This returns an
Error only when serialization fails or some other fatal outcome.