Skip to content

Commit e651b61

Browse files
committed
review: clarify format
1 parent 5ac4656 commit e651b61

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

proposals/4311-stripped-state-create-event.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ where available. No other changes are proposed to the Client-Server API.
3232
Over federation, for room versions affected by [MSC4291](https://github.com/matrix-org/matrix-spec-proposals/pull/4291),
3333
the `m.room.create` event MUST be included in [`invite_room_state`](https://spec.matrix.org/v1.15/server-server-api/#put_matrixfederationv1inviteroomideventid)
3434
and [`knock_room_state`](https://spec.matrix.org/v1.15/server-server-api/#get_matrixfederationv1make_knockroomiduserid)
35-
and MUST be a properly-formatted PDU according to that room version's event format specification.
35+
and MUST be a properly-formatted PDU according to that room version's event format specification. The
36+
full PDU format is used to ensure that receiving applications can independently verify the room ID
37+
by calculating the reference hash of the create event themselves.
3638

3739
If the `m.room.create` event is not present, not a PDU, or not for the room ID specified, the server
3840
MUST fail to continue processing the invite or knock. For invites, this is a `400 M_MISSING_PARAM`
@@ -68,7 +70,11 @@ of the above:
6870
## Potential issues
6971

7072
* This technique is not applied to other state events present in stripped state. A future MSC or
71-
series of MSCs is expected to address this particular concern.
73+
series of MSCs is expected to address this particular concern. Specifically, future work is expected
74+
to make it easier for applications to independently verify other events included in "stripped" state
75+
when they become formatted as full PDUs too. (A rename from "stripped state" to something else may
76+
also be required at that stage.) Until then, the other events are left in their stripped form to
77+
indicate that they are explicitly untrusted data.
7278

7379
* Some server implementations allow safety tooling and other applications to hook into them between
7480
the Federation API and Client-Server API. Such implementations are encouraged to make the create

0 commit comments

Comments
 (0)