mirror of
https://github.com/nostr-connect/connect.git
synced 2025-12-17 05:04:20 +01:00
71964211eeaf2c84db350a898537ad52c720caba
Nostr Connect
Nostr Connect
PAIRING
- User clicks on "Connect" button on a website or scan it with a QR code
- It will show an URI to open a "nostr-connect" enabled Wallet
- In the URI there is a pubkey of the App ie. nc://
- The Wallet will send a kind 4 encrypted message to ACK the pairing request, along with his public key
ENABLE
- The App will send a kind 4 encrypted message with metadata to the Wallet with a Enable Request
- The Wallet will show a popup to the user to enable the App to requesta data or remote siging requests
- The Wallet will send a kind 4 encrypted message to ACK the Enable Request or reject it
- All others subsequent Enabled Requests will be ACKed automatically
DELEGATE
- The App will send a kind 4 encrypted message with metadata to the Wallet with a Delegate Request
- The Wallet will show a popup to the user to delegate the App to sign with a child key
- The Wallet will send a kind 4 encrypted message to ACK the Delegate Request with the child private key or reject it
- All others subsequent Delegate Requests will be ACKed automatically
REMOTE SIGNING
- The App will send a kind 4 encrypted message with metadata to the Wallet with a Sign Event Request
- The Wallet will show a popup to the user to sign the event
- The Wallet will send a kind 4 encrypted message to ACK the Sign Event Request with the signed event or reject it
Languages
TypeScript
98.2%
HTML
1.5%
JavaScript
0.3%