@Vitor Pamplona @hodlbod are there other use cases for gift-wraps happening besides messages? If yes, are these using other kinds for the rumor besides 14, but aside from the shouldn't they work exactly the same way? Like the flow for subscribing and publishing these should also use the kind 10050 relay list and everything else is the same except for the kind number? If that is the case, shouldn't we merge NIP-17 and NIP-59 to simplify things, and then add a table of kinds being used besides kind 14 for all the other use cases?
I say that because I'm trying to use what essentially are DMs in a thing, but are not real DMs, so I wanted to use a different kind -- but then the external wrapper would be the same kind anyway, and I still need a relay list to know what relays to publish these things. And then https://github.com/nbd-wtf/go-nostr has each NIP as a different subpackage and it kinda makes no sense to split functionality between them if one always necessarily depends on the other and the other isn't used anywhere except with the one. At least we should expand NIP-17 to include other use cases, because having stuff explicitly saying "direct messages" there is awkward when the same "nip17" package must also be used when you're passing around other kinds of stuff.
All the non-DM cases send wraps to the regular NIP-65 inbox relay. There are cases where the wrap is just there to hide an inner event. They are not sealed, so that the inner event can be reshared with others. Some stuff is sealed but not wrapped, like when sending notifications via push systems (no need to inform the destination because it's already the push systems job of delivering it). Some group admin shared keys/secrets are sealed and wrapped. All of these only use a generic wrap because they don't want the public to know which type of event is inside of it. So, to me, NIP-59 just lists primitives that can be used according to the use case. I tried to rewrite NIP-59 to match that here: https://github.com/nostr-protocol/nips/pull/1144
> All the non-DM cases send wraps to the regular NIP-65 inbox relay. Not true, nip 87 sends messages to the relay specified on the grouo metadata. Otherwise I agree.
Makes sense.