You can take a look at Keychat's solution; it reuses the Signal protocol. nostr:note16gv0dfkfaj2cvyujxlk9thckm4vy63r9vl0hpcn9473flca9qqqscm583q