RTL icon indicating copy to clipboard operation
RTL copied to clipboard

Integrated Nostr chat

Open saubyk opened this issue 2 years ago • 3 comments

Playing with ideas on integrating a Nostr chat client within RTL. The objective is to enable an out of band communication channel between lightning node operators. This communication channel can be used to coordinate on various operational aspects like notifying a peer on an inactive node or notifying channel partners on node maintenance etc.

Initial ideas are for a basic interface, but can evolve much further depending on traction and feedback from users High level requirement is:

  • create a Nostr Chat menu at the top level
  • Clicking on the menu takes the user to the chat page where user can perform the following actions
  • Add/Create a Nostr prv-pub key pair and save to RTL
  • Add Nostr pub keys by associating them with LN pub key and save them as Contacts
  • Chat 1:1 with the contacts over Nostr

Node - Nostr new Node - Nostr chat home

saubyk avatar Jan 07 '23 20:01 saubyk

Hey! Posted this to nostr and someone pointed me to this issue. Happy to see others with similar thoughts.

Upon setup, the lightning node signs the user’s npub, thus creating an attestation. The nostr client publishes a profile update (kind 0) and includes the attestation (signtature) and the lightning node’s pubkey in the content JSON.

The nostr client would then run beside a Lightning Node and automatically attempt to follow new channel partners (and maybe gossip peers).

This could allow node runners to send verified messages to their channel partners at any time, even if their node goes down… All without the use of a 3rd party service.

Thinking it could be used to free up some bandwidth over gossip (liquidity ads, channel negotiations, etc.)

Thoughts?

alexlwn123 avatar Jan 11 '23 06:01 alexlwn123

Add/Create a Nostr prv-pub key pair and save to RTL

Please, support browser extension (nos2x) and/or key delegation in order not to import existing privkeys.

Add Nostr pub keys by associating them with LN pub key and save them as Contacts

Why not getting (and updating) the Contacts List through nostr itself?

oscarrdg avatar Jan 11 '23 07:01 oscarrdg

Great idea!

FYI: nostr npub keys are the same as taproot addresses with a different prefix, (npub vs bc1p) if that's any help. So if RTL can already create a taproot address, it can be a chat identifier

melvincarvalho avatar Jan 11 '23 10:01 melvincarvalho