matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
171 stars 91 forks source link

auth_events and prev_events arrays of v1 PDU are flattened #1820

Open Kladki opened 1 month ago

Kladki commented 1 month ago

Link to problem area: https://spec.matrix.org/v1.10/rooms/v1/#event-format Issue The auth_events field looks like this on the website:

{
  // -- snip --
  "auth_events": [
    "$af232176:example.org",
    {
      "sha256": "abase64encodedsha256hashshouldbe43byteslong"
    }
  ]
  // -- snip --
}

despite the source code of the website having the correct version, where there is an array of arrays: https://github.com/matrix-org/matrix-spec/blob/b0df8e7fb58ddef4f96c0c527b66d2c7e55255b9/data/api/server-server/examples/unsigned_pdu_base.json#L7-L12

This is also the case for prev_events.