Update example

pull/2047/head
Travis Ralston 5 years ago
parent 7f01346bba
commit 00fee74636

@ -93,19 +93,14 @@ Given the following minimally-sized event:
{ {
"room_id": "!x:domain", "room_id": "!x:domain",
"sender": "@a:domain", "sender": "@a:domain",
"event_id": "$0:domain",
"origin": "domain", "origin": "domain",
"origin_server_ts": 1000000, "origin_server_ts": 1000000,
"signatures": {}, "signatures": {},
"hashes": {}, "hashes": {},
"type": "X", "type": "X",
"content": {}, "content": {},
"prev_events": [ "prev_events": [],
["$1:domain", "ExampleHash"] "auth_events": [],
],
"auth_events": [
["$2", "ExampleHash2"]
],
"depth": 3, "depth": 3,
"unsigned": { "unsigned": {
"age_ts": 1000000 "age_ts": 1000000
@ -117,25 +112,20 @@ The event signing algorithm should emit the following signed event:
.. code:: json .. code:: json
{ {
"auth_events": [ "auth_events": [],
["$2", "6tJjLpXtggfke8UxFhAKg82QVkJzvKOVOOSjUDK4ZSI"]
],
"content": {}, "content": {},
"depth": 3, "depth": 3,
"event_id": "$0:domain",
"hashes": { "hashes": {
"sha256": "6AaJICN1NJURTtaomDYfJlCPMIU+0gtkwg7qzd8FiJM" "sha256": "5jM4wQpv6lnBo7CLIghJuHdW+s2CMBJPUOGOC89ncos"
}, },
"origin": "domain", "origin": "domain",
"origin_server_ts": 1000000, "origin_server_ts": 1000000,
"prev_events": [ "prev_events": [],
["$1:domain", "onLKD1bGljeBWQhWZ1kaP9SorVmRQNdN5aM2JYU2n/g"]
],
"room_id": "!x:domain", "room_id": "!x:domain",
"sender": "@a:domain", "sender": "@a:domain",
"signatures": { "signatures": {
"domain": { "domain": {
"ed25519:1": "51U0wpKYsaNLTQRbha2v5EGO2cVA6pCtnAKEXguu3j3efCLlmq/53vEfWhsk3tY6gnLsV0YM4Lx2NGZkzmV2Ag" "ed25519:1": "KxwGjPSDEtvnFgU00fwFz+l6d2pJM6XBIaMEn81SXPTRl16AqLAYqfIReFGZlHi5KLjAWbOoMszkwsQma+lYAg"
} }
}, },
"type": "X", "type": "X",

Loading…
Cancel
Save