diff options
Diffstat (limited to '47.md')
| -rw-r--r-- | 47.md | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -81,7 +81,7 @@ If the command was successful, the `error` field must be null. | |||
| 81 | ## Nostr Wallet Connect URI | 81 | ## Nostr Wallet Connect URI |
| 82 | **client** discovers **wallet service** by scanning a QR code, handling a deeplink or pasting in a URI. | 82 | **client** discovers **wallet service** by scanning a QR code, handling a deeplink or pasting in a URI. |
| 83 | 83 | ||
| 84 | The **wallet service** generates this connection URI with protocol `nostr+walletconnect:` and base path it's hex-encoded `pubkey` with the following query string parameters: | 84 | The **wallet service** generates this connection URI with protocol `nostr+walletconnect://` and base path it's hex-encoded `pubkey` with the following query string parameters: |
| 85 | 85 | ||
| 86 | - `relay` Required. URL of the relay where the **wallet service** is connected and will be listening for events. May be more than one. | 86 | - `relay` Required. URL of the relay where the **wallet service** is connected and will be listening for events. May be more than one. |
| 87 | - `secret` Required. 32-byte randomly generated hex encoded string. The **client** MUST use this to sign events and encrypt payloads when communicating with the **wallet service**. | 87 | - `secret` Required. 32-byte randomly generated hex encoded string. The **client** MUST use this to sign events and encrypt payloads when communicating with the **wallet service**. |
| @@ -95,7 +95,7 @@ The **client** should then store this connection and use it when the user wants | |||
| 95 | 95 | ||
| 96 | ### Example connection string | 96 | ### Example connection string |
| 97 | ```sh | 97 | ```sh |
| 98 | nostr+walletconnect:b889ff5b1513b641e2a139f661a661364979c5beee91842f8f0ef42ab558e9d4?relay=wss%3A%2F%2Frelay.damus.io&secret=71a8c14c1407c113601079c4302dab36460f0ccd0ad506f1f2dc73b5100e4f3c | 98 | nostr+walletconnect://b889ff5b1513b641e2a139f661a661364979c5beee91842f8f0ef42ab558e9d4?relay=wss%3A%2F%2Frelay.damus.io&secret=71a8c14c1407c113601079c4302dab36460f0ccd0ad506f1f2dc73b5100e4f3c |
| 99 | ``` | 99 | ``` |
| 100 | 100 | ||
| 101 | ## Commands | 101 | ## Commands |
| @@ -402,7 +402,7 @@ Response: | |||
| 402 | 402 | ||
| 403 | ## Example pay invoice flow | 403 | ## Example pay invoice flow |
| 404 | 404 | ||
| 405 | 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. | 405 | 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. |
| 406 | 1. **client** sends an event to the **wallet service** with kind `23194`. The content is a `pay_invoice` request. The private key is the secret from the connection string above. | 406 | 1. **client** sends an event to the **wallet service** with kind `23194`. The content is a `pay_invoice` request. The private key is the secret from the connection string above. |
| 407 | 2. **wallet service** verifies that the author's key is authorized to perform the payment, decrypts the payload and sends the payment. | 407 | 2. **wallet service** verifies that the author's key is authorized to perform the payment, decrypts the payload and sends the payment. |
| 408 | 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. | 408 | 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. |