Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The shortest private messages NIP (Simplex) #564

Conversation

MaxHillebrand
Copy link

@MaxHillebrand MaxHillebrand commented May 27, 2023

This PR is (only somewhat of) a joke.

NIP4 is an elegant hack for somewhat private messages, but its design has many flaws in the details. There have been numerous proposed patches and workarounds to make NIP4 slightly less bad.

Maybe, we don't have to write a new standard this time?

Simplex seems to be a private messaging protocol that takes care of many thread vectors, and it's "smart client, dumb relay" architecture design is even similar to nostr.

Maybe all that's needed in this repo, is a reference to the simplex protocol?

Simplex Website: https://simplex.chat/

Simplex Client: https://github.com/simplex-chat/simplex-chat

Simplex Messaging Protocol (the crypto magic, could maybe be used with nostr relays too): https://github.com/simplex-chat/simplexmq/blob/master/protocol/simplex-messaging.md

Simplex Architecture Overview: https://github.com/simplex-chat/simplexmq/blob/stable/protocol/overview-

@MaxHillebrand MaxHillebrand changed the title The shortest private messages NIP The shortest private messages NIP (Simplex) May 27, 2023
@Egge21M
Copy link
Contributor

Egge21M commented May 27, 2023

I might just not be familiar enough with SimpleX but this sounds a lot like kind 4 with throwaway keys (that are exchanged off-protocol) and NIP-42 protected kind 4 events, no?

@fiatjaf
Copy link
Member

fiatjaf commented May 27, 2023

It has some similarities, yes, but it seems to be much more well-fleshed and sane. I just wanted it to be easier to integrate, have more libraries and clients. Would be nice to plug it into Nostr clients that want to do DMs.

@Egge21M
Copy link
Contributor

Egge21M commented May 27, 2023

It has some similarities, yes, but it seems to be much more well-fleshed and sane. I just wanted it to be easier to integrate, have more libraries and clients. Would be nice to plug it into Nostr clients that want to do DMs.

Understood. It does look promising, but then again much more complicated and there seems to be less tooling around (unless you are into Haskell). I feel like we could have a very similar flow based on what we already have today.

We are definitely going to explore this though.

@paulmillr
Copy link
Contributor

This can be closed, discussions are better suited:

#658

@staab staab closed this Aug 24, 2023
@MaxHillebrand MaxHillebrand deleted the NIPlol-private-messages branch August 25, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants