vicariousdrama / cornychat

🌽 Corny Chat is an open source audio space built on Jam that integrates Nostr and Lightning
https://cornychat.com
GNU Affero General Public License v3.0
20 stars 6 forks source link

NIP-46 Auth #7

Open patrickulrich opened 6 months ago

patrickulrich commented 6 months ago

Would love to see NIP-46 integration for easy mobile sign in

vicariousdrama commented 5 months ago

+1 It's a good idea for sure as an alternate verification method

vicariousdrama commented 5 months ago

NIP-46 Nostr Remote Signing https://github.com/nostr-protocol/nips/blob/master/46.md

At the time of this comment, NIP-46 is not yet complete enough to understand how it should be implemented. It references two different non-standard protocols (bunker, nostrconnect), and this leaves me with implementation questions

For the resource being logged into, who (server or client) initiates the flow? Does that have to be initiated over nostr relays? or can a client talk directly to a server as normal? At the end of flows between client and remote signer, expects client to publish signed event to relays. Can the server communicate directly with the server providing the signed event?

I'm also unclear at this time on how users are expected to setup NIP46 bunkers.

Overall this seems like way more friction then NIP07 extensions, but possibly suitable for instances where extensions for browsers aren't possible?