NIP-46 server #625

Closed
opened 2024-01-18 13:58:27 +13:00 by mikedilger · 3 comments
mikedilger commented 2024-01-18 13:58:27 +13:00 (Migrated from github.com)

Serve as a NIP-46 nostr connect server

See https://github.com/nostr-protocol/nips/blob/master/46.md

Presumed method, started on gossip:

  1. User configures gossip NIP-46 with a set of relays
  2. Gossip creates a keypair for itself
  3. Gossip displays a token for the user to post into their client
  4. Gossip listens for 24133 events on that relay to itself and handles them.

Presumed method, started on some client elsewhere:

  1. User posts a nostrconnect url into gossip to configure gossip
  2. Gossip creates a keypair for itself
  3. Gossip sends connect message to the relays found in that nostrconnect URL
  4. Gossip listens for 24133 events on that relay to itself and handles them.

For use of NIP-46 as a client, see #227

Serve as a NIP-46 nostr connect server See https://github.com/nostr-protocol/nips/blob/master/46.md Presumed method, started on gossip: 1. User configures gossip NIP-46 with a set of relays 2. Gossip creates a keypair for itself 3. Gossip displays a token for the user to post into their client 4. Gossip listens for 24133 events on that relay to itself and handles them. Presumed method, started on some client elsewhere: 1. User posts a nostrconnect url into gossip to configure gossip 2. Gossip creates a keypair for itself 3. Gossip sends connect message to the relays found in that nostrconnect URL 4. Gossip listens for 24133 events on that relay to itself and handles them. For use of NIP-46 as a client, see #227
mikedilger commented 2024-01-31 16:07:03 +13:00 (Migrated from github.com)

This was working on unstable at fb24f723ee

But we have a bit further to go:

  • However, there is no pop-up approval yet. For encrypt/decrypt/sign operations we should popup and ask the user to approve it.
  • Also, when setting up, the user should select a name so that we can use that name in the list and in the popop to specify which client (rather than the random client pubkey).
This was working on unstable at fb24f723eee557875bba554838d55938b9b10f67 But we have a bit further to go: - [x] However, there is no pop-up approval yet. For encrypt/decrypt/sign operations we should popup and ask the user to approve it. - [x] Also, when setting up, the user should select a name so that we can use that name in the list and in the popop to specify which client (rather than the random client pubkey).
mikedilger commented 2024-03-08 09:18:54 +13:00 (Migrated from github.com)
  • Approval Needed error is not being caught, going through to end client.
- [x] Approval Needed error is not being caught, going through to end client.
mikedilger commented 2024-03-08 14:35:58 +13:00 (Migrated from github.com)
  • Show name in Approval window
  • Fix decline (not sending event)
- [x] Show name in Approval window - [x] Fix decline (not sending event)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#625
No description provided.