diff options
| author | Semisol <45574030+Semisol@users.noreply.github.com> | 2023-03-30 01:23:04 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-30 01:23:04 +0300 |
| commit | 961f28285a739000277f489573f5b4c22053f27c (patch) | |
| tree | f100fadd8161142bb9dae184fde9e5fafa73da74 /47.md | |
| parent | e2f088286fcd324bb4754dcdf5ff10f4dc823b5b (diff) | |
NIP-47: Fix up some things
Diffstat (limited to '47.md')
| -rw-r--r-- | 47.md | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -65,7 +65,7 @@ The **client** should then store this connection and use it when the user wants | |||
| 65 | 65 | ||
| 66 | ### Example connection string | 66 | ### Example connection string |
| 67 | ```sh | 67 | ```sh |
| 68 | nostrwalletconnect:b889ff5b1513b641e2a139f661a661364979c5beee91842f8f0ef42ab558e9d4?relay=wss%3A%2F%2Frelay.damus.io&secret=71a8c14c1407c113601079c4302dab36460f0ccd0ad506f1f2dc73b5100e4f3c | 68 | nostr+walletconnect:b889ff5b1513b641e2a139f661a661364979c5beee91842f8f0ef42ab558e9d4?relay=wss%3A%2F%2Frelay.damus.io&secret=71a8c14c1407c113601079c4302dab36460f0ccd0ad506f1f2dc73b5100e4f3c |
| 69 | ``` | 69 | ``` |
| 70 | 70 | ||
| 71 | ## Commands | 71 | ## Commands |
| @@ -103,10 +103,10 @@ Response: | |||
| 103 | 103 | ||
| 104 | ## Example pay invoice flow | 104 | ## Example pay invoice flow |
| 105 | 105 | ||
| 106 | 0. The user scans the QR code generated by the **wallet service** with their **client** application, they follow a `nostrwalletconnect:` deeplink or configure the connection details manually. | 106 | 0. The user scans the QR code generated by the **wallet service** with their **client** application, they follow a `nostr+walletconnect:` deeplink or configure the connection details manually. |
| 107 | 1. **client** sends an event to with **wallet service** service with kind `23194`. The content is a `pay_invoice` request. The private key is the secret from the connection string above. | 107 | 1. **client** sends an event to with **wallet service** service with kind `23194`. The content is a `pay_invoice` request. The private key is the secret from the connection string above. |
| 108 | 2. **nostr-wallet-connect-service** verifies that the author's key is authorized to perform the payment, decrypts the payload and sends the payment. | 108 | 2. **wallet service** verifies that the author's key is authorized to perform the payment, decrypts the payload and sends the payment. |
| 109 | 3. **nostr-wallet-connect-service** responds to the event by sending an event with kind `23195` and content being a response either containing an error message or a preimage. | 109 | 3. **wallet service** responds to the event by sending an event with kind `23195` and content being a response either containing an error message or a preimage. |
| 110 | 110 | ||
| 111 | ## Using a dedicated relay | 111 | ## Using a dedicated relay |
| 112 | This NIP does not specify any requirements on the type of relays used. However, if the user is using a custodial service it might make sense to use a relay that is hosted by the custodial service. The relay may then enforce authentication to prevent metadata leaks. Not depending on a 3rd party relay would also improve reliability in this case. | 112 | This NIP does not specify any requirements on the type of relays used. However, if the user is using a custodial service it might make sense to use a relay that is hosted by the custodial service. The relay may then enforce authentication to prevent metadata leaks. Not depending on a 3rd party relay would also improve reliability in this case. |