Hi,

I’ve just tested SimpleX. Great piece of software, all the options are really well thought …

Sadly it’s not P2P (all the messages pass by servers… ) is there a way to make-it P2P ?

Thanks.

  • rrobin@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 months ago

    Depends a bit on what you mean by p2p.

    If you mean it as anyone can run their own server - this is already possible. But since message inboxes are one way you can really only control how the server for the messages your are receiving. The messages you send go to wherever the destination says they should go.

    If by P2P you mean fully decentralized with no distinction between clients and servers then the discussion is a bit longer, but right now no, and for practical reasons probably not. Let me elaborate a bit.

    First the protocol assumes a client, that is your messaging app, delivers the message to a server which is identified by a hostname/ip (you ability to deliver depends on this server being up and working).

    For practical reasons the server is a separate entity, just like in email delivery protocols, because

    1. it needs a stable hostname or ip address
    2. it needs to be reachable most of the time to maximize availability, otherwise messages are not delivered

    Now, in practice nothing prevents your client and server from being the same machine, but if the previous two points are not true you will have a bad experience receiving your messages. Specially since most clients are on mobile phones, these two points will likely not be true.

    Another thing we could do to get it to be fully distributed would be to run simplex on top of other p2p protocol - anything w/ a DHT that can expose ports to the Internet (Tor, GNUNet, etc). But this has one downside - the client app would need to recognize new types of inbox addresses and connect accordingly.

    You could probably achieve this with Tor and some .onion host setup. But then anyone that wanted to deliver to you would need an equivalent setup.

    Apologies, I tend to nerd on about distributed systems.

    • N0x0n
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      9 months ago

      You souldn’t apologie. We should thank you for nerding and give to those interested, valuable information !

  • PropaGandalf@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    9 months ago

    You mean like a mesh network? Like briar?

    I’d love to see the ad hoc, mesh network implementation of briar and the identifierless communication of simplex combined into one single service.

  • jet@hackertalks.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    Simple x is open federation. So to make it P2P you and your friend just need to run simple x relay servers. Then it would be P2P

    The idea behind the open federation model, is anybody could run a server preventing a single point of failure.

    Briar is the gold standard, but if you think about it, they’re using Tor as their relay servers.

    Both models require a relay of some description

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Not like your thinking. P2P is rather hard to do and can’t just happen. Briar is the alternative and it is totally decentralized.

    There also is Jami but it has reliability issues and no security audit