Skip to content

Commit

Permalink
Merge pull request #2372 from matrix-org/jryans/clarify-cross-signing…
Browse files Browse the repository at this point in the history
…-examples

Clarify cross-signing examples
  • Loading branch information
uhoreg authored Dec 2, 2019
2 parents e4deb4c + 71faffc commit 75a6a28
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions proposals/1756-cross-signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ response:
}
```

Similarly, the federation endpoints `GET /user/keys/query` and `POST
Similarly, the federation endpoints `POST /user/keys/query` and `POST
/user/devices/{userId}` will include the master and self-signing keys. (It
will not include the user-signing key because it is not intended to be visible
to other users.)

`POST /keys/query`
`POST /user/keys/query`

``` json
{
Expand Down Expand Up @@ -432,27 +432,31 @@ response:
}
}
},
"master_key": {
"user_id": "@alice:example.com",
"usage": ["master"],
"keys": {
"ed25519:base64+master+public+key": "base64+master+public+key"
},
"signatures": {
"@alice:example.com": {
"ed25519:HIJKLMN": "base64+signature+of+master+key"
"master_keys": {
"@alice:example.com": {
"user_id": "@alice:example.com",
"usage": ["master"],
"keys": {
"ed25519:base64+master+public+key": "base64+master+public+key"
},
"signatures": {
"@alice:example.com": {
"ed25519:HIJKLMN": "base64+signature+of+master+key"
}
}
}
},
"self_signing_key": {
"user_id": "@alice:example.com",
"usage": ["self_signing"],
"keys": {
"ed25519:base64+self+signing+public+key": "base64+self+signing+public+key"
},
"signatures": {
"@alice:example.com": {
"ed25519:base64+master+public+key": "base64+signature"
"self_signing_keys": {
"@alice:example.com": {
"user_id": "@alice:example.com",
"usage": ["self_signing"],
"keys": {
"ed25519:base64+self+signing+public+key": "base64+self+signing+public+key"
},
"signatures": {
"@alice:example.com": {
"ed25519:base64+master+public+key": "base64+signature"
}
}
}
}
Expand Down

0 comments on commit 75a6a28

Please sign in to comment.