commit 90d6857128796ffe03464d9fcea41ff616761f60 Author: Evgeny Poberezkin Date: Sat Dec 21 14:08:57 2019 +0000 docs: sending message diagram diff --git a/diagrams/message.mmd b/diagrams/message.mmd new file mode 100644 index 000000000..36aae4bd3 --- /dev/null +++ b/diagrams/message.mmd @@ -0,0 +1,12 @@ +sequenceDiagram + participant Alice + participant App A + participant Server A + participant Server B + 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 and sent to all Alice's servers
{from: , to: , message: } + Server A ->> Server B: Alice's servers use to locate Bob's servers
and forwards encrypted message to all Bob's servers (in case 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 to identify Alice
and decrypts the message with to show it \ No newline at end of file diff --git a/diagrams/message.svg b/diagrams/message.svg new file mode 100644 index 000000000..c5591f37d --- /dev/null +++ b/diagrams/message.svg @@ -0,0 +1,494 @@ +AliceApp AServer AServer BApp BBobAlice writes the message to Bob in the appthe message (including ID & timestamp) is encrypted by <Alice-Bob public key> and sent to all Alice's servers{from: <Bob-Alice key hash>, to: <Alice-Bob key hash>, message: <encrypted with Alice-Bob public key>}Alice's servers use <Alice-Bob key hash> to locate Bob's serversand forwards encrypted message to all Bob's servers (in case they are different from Alice's serversBob's servers send the message to Bob's appBob's app uses <Bob-Alice key hash> to identify Aliceand decrypts the message with <Bob-Alice private key> to show itAliceApp AServer AServer BApp BBob \ No newline at end of file