Matrix (protocol)

From Wikipedia, the free encyclopedia
  (Redirected from Matrix (communication protocol))
Jump to navigation Jump to search
Matrix
Communication protocol
Matrix logo.svg
PurposeFederated messaging and data synchronization
Developer(s)The Matrix.org Foundation
IntroducedDecember 2014; 4 years ago (2014-12)[1]
Based onHTTP, WebRTC
OSI layerApplication layer

Matrix is an open protocol for real-time communication. It is designed to allow users with accounts at one communications service provider to communicate with users of a different service provider via online chat, Voice over IP, and Videotelephony. That is, it aims to make real-time communication work seamlessly between different service providers, just like standard Simple Mail Transfer Protocol email does now for store-and-forward email service.

From a technical perspective, it is an application layer communication protocol for federated real-time communication. It provides HTTP APIs and open source reference implementations for securely distributing and persisting messages in JSON format over an open federation of servers.[2][3] It can integrate with standard web services via WebRTC, facilitating browser-to-browser applications.

Other attempts at defining an open instant messaging or multimedia signalling protocol of this type had difficulties becoming widely adopted—e.g. XMPP and IRCv3—and have highlighted the challenges involved, both technological and political.[4] It is unclear if there is enough demand among users for services which interoperate among providers.[5][6]

History[edit]

Initial Project[edit]

The initial project was created inside Amdocs, while building a chat tool called "Amdocs Unified Communications"[7], by Matthew Hodgson and Amandine Le Pape. Amdocs then funded most of the development work from 2014 - October 2017.[8] In 2015 a subsidiary of Amdocs was created, named "Vector Creations Limited", and the Matrix Staff was moved there.[9]

Matrix was the winner of the Innovation award at WebRTC 2014 Conference & Expo,[10] and of the "Best in Show" award at WebRTC World in 2015.[11]

Funding Crisis[edit]

In July 2017 the funding by Amdocs was announced to be cut and in the following weeks the core team created their own UK-based company, "New Vector"[12], which was mainly build to support Matrix and Riot development.[13] During this time period, there were multiple calls for support to the community and companies that build on Matrix[14], to help pay for the wages of at least part of the core team. Patreon and Liberapay crowdfunding accounts were created[15], and the core team started a video podcast, called Matrix "Live" to keep the contributors up to speed with ongoing developments.[16] This was expanded by a weekly blog format, called "This Week in Matrix", where interested community members could read, or submit their own, Matrix-related news.[17]

New Vector[edit]

The company was created with the goal of offering consultancy services for Matrix and paid hosting of Matrix servers (as a platform called modular.im) to generate income.[18][19]

In the early weeks after its creation, there the Matrix team and the company Purism published plans to collaborate in the creation of the Librem 5 phone.[20] The Librem 5 was intended to be a Matrix native phone, where the default pre-installed messaging and caller app should use Matrix for audio and video calls and instant messaging.[21]

In late January 2018 the company received a investment of US$ 5 million from status[22][23], a  Ethereum based startup.

In April 2018 the French Government announced plans to create their own instant messaging tool[24], which was later confirmed, by the Matrix team, to be based on Riot and Matrix.[25] New Vector is said to provide some support to the government in this endeavour.

The Matrix.org Foundation[edit]

In October 2018 a private company limited by guarantee called "the Matrix.org foundation"[26] was incorporated, to serve as a neutral legal entity for further development of the standard.[27]

Protocol[edit]

Matrix targets use cases like Voice over IP, Internet of Things and instant messaging, including group communication, along with a longer-term goal to be a generic messaging and data synchronization system for the web. The protocol supports security and replication, maintaining full conversation history, with no single points of control or failure. Existing communication services can integrate with the Matrix ecosystem.[2]

Client software is available for open-federated Instant Messaging (IM), Voice over IP (VoIP) and Internet of Things (IoT) communication.

The Matrix standard specifies RESTful HTTP APIs for securely transmitting and replicating JSON data between Matrix-capable clients, servers and services. Clients send data by PUTing it to a ‘room’ on their server, which then replicates the data over all the Matrix servers participating in this ‘room’. This data is signed using a git-style signature to mitigate tampering, and the federated traffic is encrypted with HTTPS and signed with each server’s private key to avoid spoofing. Replication follows eventual consistency semantics, allowing servers to function even if offline or after data-loss by re-synchronizing missing history from other participating servers.

The Olm library provides for optional end-to-end encryption on a room-by-room basis via a Double Ratchet Algorithm implementation.[1] It can ensure that conversation data at rest is only readable by the room participants. With it configured, data transmitted over Matrix is only visible as ciphertext to the Matrix servers, and can be decrypted only by authorized participants in the room. The Olm and Megolm (an expansion of Olm to better suit the need for bigger rooms) libraries have been subject of a cryptographic review by NCC Group, whose findings are publicly available[28], and have been addressed by the Matrix team.[29] The review was sponsored by the Open Technology Fund.

Bridges[edit]

Matrix does support bridging messages from different chat applications into Matrix rooms. These bridges are programs that run on the server and communicate with the non-Matrix servers. Bridges can either be acting as puppets or relays, where the in the former the individual users account is visibly posting the messages, and in the latter a bot posts the messages for non puppeteered user accounts.

Currently there are bridges for:

But all are at various stages of completion.

Clients[edit]

Riot is the reference implementation of a client. Many other clients, bots, bridges, servers and other implementations of the Matrix protocol exist too.[36]

See also[edit]

References[edit]

  1. ^ a b Ermoshina, Ksenia; Musiani, Francesca; Halpin, Harry (September 2016). "End-to-End Encrypted Messaging Protocols: An Overview". In Bagnoli, Franco; et al. Internet Science. INSCI 2016. Florence, Italy: Springer. pp. 244–254. doi:10.1007/978-3-319-45982-0_22. ISBN 978-3-319-45982-0.
  2. ^ a b Nathan Willis (2015-02-11). "Matrix: a new specification for federated realtime chat". LWN.net. Retrieved 2015-06-28.
  3. ^ Adrian Bridgwater (2014-09-09). "Matrix.org Reloads Inside "Illusion of Control" Vortex". Dr. Dobb's Journal. Retrieved 2015-07-20.
  4. ^ Andrew Prokop (2015-02-23). "Solving the WebRTC Interoperability Problem - Post". No Jitter. Retrieved 2015-06-28.
  5. ^ Ian Scales (2015-05-11). "To interop or not to interop? Is Matrix.org the answer for silo'd comms services?". TelecomTV. Retrieved 2015-06-22.
  6. ^ Matt Weinberger (2014-09-16). "Matrix wants to smash the walled gardens of messaging". ITworld. Retrieved 2015-07-20.
  7. ^ "Amdocs | Products | Unified Communications". amdocs. Archived from the original on 2014-10-03. Retrieved 2018-11-04.
  8. ^ "Who is Matrix.org? | Matrix.org". matrix.org. Retrieved 2018-10-20.
  9. ^ "Linkedin entry for Vector Creations Limited". Retrieved 2018-10-22.
  10. ^ "Award Winners of the WebRTC 2014 Conference & Expo - Upperside Blog". WebRTC. 2014-12-23. Retrieved 2015-06-28.
  11. ^ "WebRTC World Miami Wrap Up and Review". WebRTC. 2015-05-18. Retrieved 2015-06-28.
  12. ^ "Free company information from Companies House (UK Government)". Retrieved 2018-07-30.
  13. ^ "New Vector - We believe the future will be open and decentralized". New Vector. Retrieved 2018-10-20.
  14. ^ "A Call to Arms: Supporting Matrix! | Matrix.org". matrix.org. Retrieved 2018-10-20.
  15. ^ "Hello world! | Matrix.org on Patreon". Patreon. Retrieved 2018-11-04.
  16. ^ Matrixdotorg (2017-07-21), Matrix Live - Episode 1: July 14th 2017, retrieved 2018-10-22
  17. ^ "This Week in Matrix | Matrix.org". matrix.org. Retrieved 2018-10-22.
  18. ^ "Matrix". CrunchBase. Retrieved 2015-06-28.
  19. ^ "Awesome hosting for Matrix | Modular". www.modular.im. Retrieved 2018-10-20.
  20. ^ "Purism's Privacy-Focused Librem 5 Smartphone's On Track For A Jan '19 Release". Tom's Hardware. 2018-06-06. Retrieved 2018-11-04.
  21. ^ "Librem 5 – A Security and Privacy Focused Phone – Purism". shop.puri.sm. Retrieved 2018-11-04.
  22. ^ "Status invests $5 million in Matrix to create a blockchain messaging superpower". VentureBeat. 2018-01-29. Retrieved 2018-10-20.
  23. ^ "Status Invests $5M In Riot.im – Status Blog". Status Blog. 2018-01-29. Retrieved 2018-10-20.
  24. ^ Rosemain, Mathieu. "France builds WhatsApp rival due to surveillance risk". U.S. Retrieved 2018-11-04.
  25. ^ "Matrix and Riot confirmed as the basis for France's Secure Instant Messenger app | Matrix.org". matrix.org. Retrieved 2018-11-04.
  26. ^ "THE MATRIX.ORG FOUNDATION - Overview (free company information from Companies House)". beta.companieshouse.gov.uk. Retrieved 2018-11-04.
  27. ^ "Introducing the Matrix.org Foundation (Part 1 of 2) | Matrix.org". matrix.org. Retrieved 2018-11-04.
  28. ^ "Matrix Olm Cryptographic Review". www.nccgroup.trust. 18 November 2016. Retrieved 2018-10-20.
  29. ^ "Matrix's 'Olm' End-to-end Encryption security assessment released – and implemented cross-platform on Riot at last! | Matrix.org". matrix.org. Retrieved 2018-10-20.
  30. ^ "tulir/mautrix-telegram". GitHub. Retrieved 2018-10-20.
  31. ^ "Half-Shot/matrix-appservice-discord". GitHub. Retrieved 2018-10-20.
  32. ^ "matrix-org/matrix-appservice-gitter". GitHub. Retrieved 2018-10-20.
  33. ^ "matrix-org/matrix-appservice-slack". GitHub. Retrieved 2018-10-20.
  34. ^ "matrix-org/matrix-appservice-irc". GitHub. Retrieved 2018-10-20.
  35. ^ "tulir/mautrix-whatsapp". GitHub. Retrieved 2018-10-20.
  36. ^ "Try Matrix Now!". Matrix.org. Retrieved 13 August 2017.

External links[edit]