Compare commits

...

3 commits

Author SHA1 Message Date
timedout fb878b2886
Merge e3744b1dee into 2192bfa996 2026-03-26 22:26:13 +00:00
timedout e3744b1dee
Add changelog entry
Signed-off-by: timedout <git@nexy7574.co.uk>
2026-03-21 16:51:17 +00:00
timedout f2b51f6a62
Clarify how multiple signatures should be handled during verification
Signed-off-by: timedout <git@nexy7574.co.uk>
2026-03-21 16:46:52 +00:00
2 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1 @@
Clarify how multiple signatures should be handled during signature verification. Contributed by @nexy7574.

View file

@ -1484,10 +1484,9 @@ the Policy Server for a signature too.
When a server receives an event over federation from another server, the
receiving server should check the hashes and signatures on that event.
First the signature is checked. The event is redacted following the
[redaction
algorithm](/client-server-api#redactions), and
the resultant object is checked for a signature from the originating
First the signatures are checked. The event is redacted following the
[redaction algorithm](/client-server-api#redactions), and
the resultant object is checked for signatures from the originating
server, following the algorithm described in [Checking for a
signature](/appendices#checking-for-a-signature). Note that this
step should succeed whether we have been sent the full event or a
@ -1503,7 +1502,7 @@ The signatures expected on an event are:
Other room versions do not track the `event_id` over federation and
therefore do not need a signature from those servers.
If the signature is found to be valid, the expected content hash is
If all signatures from known keys are found to be valid, the expected content hash is
calculated as described below. The content hash in the `hashes` property
of the received event is base64-decoded, and the two are compared for
equality.