Skip to content

Application idea - Encrypted group messaging #91

Closed

Description

@cankisagun

Encrypted group chat is created based on a secret contract, where messages coming from group members are stored in the secret contract state of Enigma blockchain. Using the concept of encrypted outputs, participants of the chat can access messages.

This application requires an admin (Alice) and other users (Bob and Charlie), who participate in the encrypted messaging

  • Alice (admin) creates a secret group chat room by deploying the secret contract
  • Alice adds Bob and Charlie to the chat - there should be a function for access mgmt, where Alice can add Bob and Charlie's public keys - messages would be encrypted in a way such that Alice and Bob and Charlie are able to read
  • Alice, Bob or Charlier can send messages to the secret contract, each message updates the contract state
  • Alice, Bob and Charlie should be able to see the msg history through a GUI

Questions:

  • Would it be possible to encrypt the output such that it can be decrypted by Alice, Bob and Charlie? One option is to encrypt the message n times, where n=3 in this case. Not elegant but would work
  • Would each chat need to be deployed as a new contract? If so is it going to be expensive for the users (lower priority)

Activity

  1. changed the title [-]Encrypted group messaging[/-] [+]Application idea - Encrypted group messaging[/+] on May 27, 2020
  2. cankisagun commented on May 27, 2020

    @cankisagun
    ContributorAuthor

    Based on issue #201 , there doesn't seem to be any limitations with the encrypted group chat idea.

    Once secret chat group (whitelist) is determined by the user who deploys the contract, she can define the addresses and any other msg_sender can be rejected to view / decrypt the data
    @reuvenpo , what do you think?

  3. reuvenpo commented on May 28, 2020

    @reuvenpo
    Contributor

    Yes, i don't think there will be a problem with this application.
    Reading the original description i was about to suggest how to simplify it, but you got the idea on your own 😄
    I don't see a problem with having one contract manage an unbounded set of groups.
    At the moment we do have a problem where a malicious host can provide outdated values to the contract for only some of the fields in storage, which creates what we call the "old permissions new secrets" and "old secrets new permissions". This needs to be solved by the contract logic itself, but is easy to do in most cases. In this application the risk is that a new member in a chat can view the entire chat history (in a very naive contract) or force an enclave to reveal old messages in the chats he is in (in a slightly less, but still naive contract). This might not be an issue at all, or just require careful permission design inside the contract itself. I can elaborate on this in private.

  4. cankisagun commented on Jul 6, 2020

    @cankisagun
    ContributorAuthor
  5. added
    help wanted
    on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedproduct

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions