Skip to main content
Matrix Event Explainer
BETA This service is in beta. Results may be wrong or incomplete.

Explain an event

Paste a Matrix event, or a request between servers, and see which checks it passes, and why.

Checking… Clear
Signing keys

Hashes and signatures check out

The required signatures fit the public keys used, so trust the result as far as you trust those keys.

Authorisation rules and state resolution are not checked.

  • Payload
  • Origin
  • Room graph
  • Hashes and signatures
  • Not covered by hashes
  • Other

Checks run on this server. What you paste is processed to answer your request and is not stored or written to logs. Only when you choose to fetch keys does this server contact the servers that signed the event, which then learn that their keys were asked for, not what you pasted. Keys you paste take precedence. Authorisation rules and state resolution are not checked.

Hashes and signatures check out

View
FieldValueMeaning
auth_eventsRoom graph
[ "$03kOQB-ltXVljZB2hQvh-JzHU4nYizYpnfD3wxqcM4Q", "$vKmN9dyCe9Yik8UrWyNWlWTAsx2_uAYZiaKEfDwvJ1U" ]
Earlier events that permit this one. Learn more
contentPayload
{ "body": "Hello from the example server", "msgtype": "m.text" }
The payload. What belongs here depends on the type. Learn more
depthRoom graph
12
Position of the event in the room graph, as claimed by the sending server. Still required, but not trustworthy: a server can sign any value, and false ones have been used in attacks. Learn more
hashesHashes and signatures
{ "sha256": "v/dTiTTsjFjNckyfi9S5GkQvBjIpbOkb2Fpia/UdQOY" }
The content hash. It shows whether the event was changed or redacted. Learn more
origin_server_tsOrigin
1700000000000
2023-11-14 22:13:20 UTC
When the sending server says it created the event, in milliseconds since 1970. Learn more
prev_eventsRoom graph
[ "$hP2brDM615FUNIKWIE-n-MU3qW4ImD5fc7P1rKjo7fc" ]
The events that came directly before this one. Learn more
room_idOrigin
!example:example.org
The room the event belongs to. Learn more
senderOrigin
@alice:example.org
The user who sent the event. Learn more
signaturesHashes and signatures
{ "example.org": { "ed25519:1": "zoNJ9smkRCZpd2uDgHiLRGhwsz4kwIbKOS8dOuIhTS+mIn+PN0k6lIqSjrK/Ncx8dcjYogTK9po+tV3s+UpCCg" } }
Signatures of servers over the redacted event. Learn more
typePayload
m.room.message
What kind of event this is. Learn more
{"auth_events":["$03kOQB-ltXVljZB2hQvh-JzHU4nYizYpnfD3wxqcM4Q","$vKmN9dyCe9Yik8UrWyNWlWTAsx2_uAYZiaKEfDwvJ1U"],"content":{"body":"Hello from the example server","msgtype":"m.text"},"depth":12,"hashes":{"sha256":"v/dTiTTsjFjNckyfi9S5GkQvBjIpbOkb2Fpia/UdQOY"},"origin_server_ts":1700000000000,"prev_events":["$hP2brDM615FUNIKWIE-n-MU3qW4ImD5fc7P1rKjo7fc"],"room_id":"!example:example.org","sender":"@alice:example.org","signatures":{"example.org":{"ed25519:1":"zoNJ9smkRCZpd2uDgHiLRGhwsz4kwIbKOS8dOuIhTS+mIn+PN0k6lIqSjrK/Ncx8dcjYogTK9po+tV3s+UpCCg"}},"type":"m.room.message"}

Checks

Passed Input format

This is in the format servers exchange (a PDU).

What this checks: Servers exchange events as PDUs, which carry hashes, signatures and links to earlier events. Clients are given a shorter form without them. Short-lived messages such as typing notices travel as EDUs instead.

Note Room version

An event does not state its room version. Possible here: 4, 5, 6, 7, 8, 9, 10, 11. Select the version if you know it.

What this checks: The room version decides the event format, what redaction keeps and how event IDs are built. It is fixed when a room is created and is not written into each event, so it has to be worked out or told.

  • Against 1, 2: "prev_events" and "auth_events" are plain event IDs. Room versions 1 and 2 write pairs of ID and hashes.
  • Against 3: Referenced event IDs contain "-" or "_". Room version 3 uses "+" and "/" instead.
  • Against 12: "room_id" names a server. In room version 12 a room ID is a hash without one.
Passed Canonical JSON

All numbers are allowed integers and no key appears twice.

What this checks: Hashes and signatures are calculated over bytes, so every server has to write the same JSON in exactly the same way: keys sorted, no extra spaces, only whole numbers, no key twice.

Passed Required fields

All required fields are present with the right type.

What this checks: The fields every event of this kind must have, each with the right type of value. Servers reject events without them.

Passed Event size

573 of at most 65536 bytes as canonical JSON.

What this checks: A complete event, written as canonical JSON, has a maximum size. Larger events are rejected.

Passed Content hash

"hashes.sha256" matches the event, so nothing it covers was changed since it was hashed. Whether the sender wrote the hash is what signatures show.

What this checks: A SHA-256 hash over the whole event except "unsigned", "signatures" and "hashes". If it no longer matches, something it covers is different from when the event was sent.

Note Event ID

Computed from the redacted event, per room version: $Y3GYQPbyJlFhvirfWsiamVvBQ_vMAY4IJo_WEbX2sQc (4, 5, 6, 7, 8, 9, 10, 11)

What this checks: The reference hash is a SHA-256 hash over the redacted event. From room version 3 on, it is the event ID, so the ID cannot be chosen or changed freely.

Show the redacted JSON that is hashed
{"auth_events":["$03kOQB-ltXVljZB2hQvh-JzHU4nYizYpnfD3wxqcM4Q","$vKmN9dyCe9Yik8UrWyNWlWTAsx2_uAYZiaKEfDwvJ1U"],"content":{},"depth":12,"hashes":{"sha256":"v/dTiTTsjFjNckyfi9S5GkQvBjIpbOkb2Fpia/UdQOY"},"origin_server_ts":1700000000000,"prev_events":["$hP2brDM615FUNIKWIE-n-MU3qW4ImD5fc7P1rKjo7fc"],"room_id":"!example:example.org","sender":"@alice:example.org","type":"m.room.message"}
Passed Field limits

No field exceeds its limit.

What this checks: Some fields have their own maximum length or number of entries.

Passed Signature

The signature of "example.org" (ed25519:1) is valid.

It is the server of the sender, which must always sign.

What this checks: A server signs the redacted event with its private Ed25519 key. Checking it with the server's public key shows that the server vouched for the event and that the parts redaction keeps, including the content hash, are unchanged.