User Tools

Site Tools


peonect:usecases:messenger

This is an old revision of the document!


Messenger

Frequently there is a need to communicate with People with same interests or located in the same area. Examples:

  • a hotel guest might want to discover groups of the hotel
  • at some event men want to organize Minyan and want a way to agree on time and place
  • a lost child or item was found and want to announce that in “Lost and Found” group of the area
  • a person wants to discuss some public event with like-minders

For matter of the Machon Tal Term Project Success, the POC would allow flow below:

  1. A person creates “stored query” with properties below:
    • kind: Messages
    • with date not older than week ago
    • geo: X,Y with radius R
    • query lifetime for the next 2 hours
  2. He reviews results and sees summary of Messages found, grouped by topic name and number of unique posters (implying activity) and wants to subscribe to certain topic:
    • he creates folder with “chat view” Memo with the topic id, and exports it
    • the Memo automatically creates “stored query” for Memos of kind:Message, date not older than week ago and that topic id
    • any message Memo he creates will contain same topic id, and get consumed by other subscribers
    • he might want to enable popup notification on every incoming message

The scenario above might be extended to cover more cases like these:

  • ignore someone that posts offensive content
  • send message about group details to someone (“Invite them”)
  • propose “group” icon that allows voting. The one with most votes is shown as “group” logo

Privacy (aka Mail mode)

There might be need to for private Memos exchange between two or more parties. For many-to-many communcations, single shared pubkey is created, per the flow below:

  1. An public/private keypair is created
  2. For each recipient, it is encrypted with his public key and Memo of kind “KeyPair” and recipient id is created
  3. Recipients has active subscription to all Memos of kind “KeyPair” and recipient equals his id
  4. recipient receives the “KeyPair” Memo, decrypts it and stores in his keyring.
  5. recipient subscribes to all Memo of kind “Encrypted” and id=hashed keyring
  6. All messages shared in the folder are encrypted using the keyring
peonect/usecases/messenger.1736054501.txt.gz · Last modified: 2025/01/05 05:21 by arie

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki