Kegan is a Staff Software Engineer at Element. Kegan has worked across most of the Matrix ecosystem, from servers and clients to bots and bridges, including Synapse, the Matrix JS SDK, Dendrite and Sliding Sync, and wrote test frameworks such as Complement and Chaos to keep it interoperable and reliable. Kegan’s current focus is the federation protocol, making Matrix more secure against Byzantine actors, working with academics in the field of CRDTs.

Posts

  • Implementation

    Project Hydra: Improving state resolution in Matrix

    Project Hydra is an ongoing exercise in improving the security of Matrix’s federation protocol, carried out under embargo by the backend team at Element, the Matrix.org Security Team and the Spec Core Team. Its changes, including State Resolution v2.1 and Room Version 12, resolve CVE-2025-49090 and CVE-2025-54315, and were shared with the maintainers of all known homeserver implementations for a coordinated release.

    By Kegan Dougal

  • Deep dive

    Low Bandwidth Matrix: An implementation guide

    Matrix’s HTTP and JSON client-server API is slow, costly and poorly suited to low bandwidth links such as 2G networks. MSC3079 defines a low bandwidth protocol using CoAP and CBOR instead, and a proxy placed in front of any homeserver makes it MSC3079-compatible. Sending a single message takes 6 packets and 1440 bytes this way, against 43 packets and 6533 bytes over HTTP/2 with JSON.

    By Kegan Dougal

Elsewhere