Provide a more complete example of a "minimally-sized event"
Using all the required fields of a v1 event.
@@ -91,11 +91,22 @@ Given the following minimally-sized event:
.. code:: json
{
+ "room_id": "!x:domain",
+ "sender": "@a:domain",
"event_id": "$0:domain",
"origin": "domain",
"origin_server_ts": 1000000,
"signatures": {},
+ "hashes": {},
"type": "X",
+ "content": {},
+ "prev_events": [
+ ["$1:domain", "ExampleHash"]
+ ],
+ "auth_events": [
+ ["$2", "ExampleHash2"]
+ ],
+ "depth": 3,
"unsigned": {
"age_ts": 1000000
}
@@ -106,15 +117,25 @@ The event signing algorithm should emit the following signed event:
.. code:: json
{
+ "auth_events": [
+ ["$2", "6tJjLpXtggfke8UxFhAKg82QVkJzvKOVOOSjUDK4ZSI"]
+ ],
+ "content": {},
+ "depth": 3,
"event_id": "$0:domain",
"hashes": {
- "sha256": "6tJjLpXtggfke8UxFhAKg82QVkJzvKOVOOSjUDK4ZSI"
+ "sha256": "6AaJICN1NJURTtaomDYfJlCPMIU+0gtkwg7qzd8FiJM"
},
"origin": "domain",
"origin_server_ts": 1000000,
+ "prev_events": [
+ ["$1:domain", "onLKD1bGljeBWQhWZ1kaP9SorVmRQNdN5aM2JYU2n/g"]
+ ],
+ "room_id": "!x:domain",
+ "sender": "@a:domain",
"signatures": {
"domain": {
- "ed25519:1": "JV2dlZUASAefSdywnyCxzykHlyr7xkKGK7IRir1cF8eYsnONrCSb+GRn7aXXstr1UHKvzYjRXPx0001+boD1Ag"
+ "ed25519:1": "51U0wpKYsaNLTQRbha2v5EGO2cVA6pCtnAKEXguu3j3efCLlmq/53vEfWhsk3tY6gnLsV0YM4Lx2NGZkzmV2Ag"
}
},
"type": "X",
