Skip to content

Commit

Permalink
Add diagram for federated invite
Browse files Browse the repository at this point in the history
  • Loading branch information
devonh committed Nov 22, 2023
1 parent 7781640 commit 3f161df
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions proposals/4080-cryptographic-identities.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,25 @@ the event to the invited user’s homeserver.

**TODO**: document /make_invite & /send_invite endpoints

```mermaid
sequenceDiagram
participant Alice
participant Alice HS
participant Bob HS
participant Bob
Bob ->> Bob HS: /keys_upload (one-time cryptoID)
Note over Bob, Bob HS: Occurs separately, when one-time<br/>cryptoID count is low.
Alice ->> Alice HS: /invite:@bob:bob_hs
Alice HS ->> Bob HS: /make_invite
Bob HS ->> Bob HS: Claim one-time cryptoID
Note right of Bob HS: A valid one-time cryptoID is required<br/>to create the full invite event.
Bob HS ->> Alice HS: (proto pdu)
Alice HS ->> Alice: (proto pdu)
Alice ->> Alice: Sign PDU
Alice ->> Alice HS: /send_pdus
Alice HS ->> Bob HS: /send_invite
```

200 OK Response:
```
{
Expand Down

0 comments on commit 3f161df

Please sign in to comment.