Skip to content
Snippets Groups Projects
  1. Sep 29, 2021
    • Richard van der Hoff's avatar
      Split `event_auth.check` into two parts (#10940) · 428174f9
      Richard van der Hoff authored
      Broadly, the existing `event_auth.check` function has two parts:
       * a validation section: checks that the event isn't too big, that it has the rught signatures, etc. 
         This bit is independent of the rest of the state in the room, and so need only be done once 
         for each event.
       * an auth section: ensures that the event is allowed, given the rest of the state in the room.
         This gets done multiple times, against various sets of room state, because it forms part of
         the state res algorithm.
      
      Currently, this is implemented with `do_sig_check` and `do_size_check` parameters, but I think
      that makes everything hard to follow. Instead, we split the function in two and call each part
      separately where it is needed.
      428174f9
  2. Aug 09, 2021
  3. Jul 26, 2021
  4. Jul 14, 2021
  5. Apr 14, 2021
  6. Mar 31, 2021
  7. Feb 16, 2021
  8. May 15, 2020
  9. May 14, 2020
  10. Mar 09, 2020
  11. Feb 07, 2020
  12. Jan 28, 2020
  13. May 10, 2019
  14. Apr 01, 2019
  15. Jan 25, 2019
  16. Aug 10, 2018
  17. Jul 09, 2018
  18. Jun 14, 2018
Loading