docs: update sending message diagram

This commit is contained in:
Evgeny Poberezkin 2019-12-21 14:21:01 +00:00
parent c7a95710eb
commit 08a933e22c
2 changed files with 146 additions and 146 deletions

View file

@ -6,7 +6,7 @@ sequenceDiagram
participant App B
participant Bob
Alice ->> App A: Alice writes the message to Bob in the app
App A ->> Server A: the message (including ID & timestamp) is encrypted by <Alice-Bob public key> and sent to all Alice's servers<br>{from: <Bob-Alice key hash>, to: <Alice-Bob key hash>, message: <encrypted with Alice-Bob public key>}
Server A ->> Server B: Alice's servers use <Alice-Bob key hash> to locate Bob's servers<br>and forwards encrypted message to all Bob's servers (in case they are different from Alice's servers
App A ->> Server A: The message (including ID & timestamp) is encrypted with <AB public key> and sent to all Alice's servers<br>{from: <BA public key hash>, to: <AB public key hash>, message: <encrypted with AB public key>}
Server A ->> Server B: Alice's servers use <AB public key hash> to locate Bob's servers<br>and forward encrypted message to all Bob's servers (when they are different from Alice's servers
Server B ->> App B: Bob's servers send the message to Bob's app
App B ->> Bob: Bob's app uses <Bob-Alice key hash> to identify Alice<br>and decrypts the message with <Bob-Alice private key> to show it
App B ->> Bob: Bob's app uses <BA public key hash> to identify Alice<br>and decrypts the messages with <AB private key>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After