upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/47.md
diff options
context:
space:
mode:
authorSemisol <45574030+Semisol@users.noreply.github.com>2023-03-30 01:23:04 +0300
committerGitHub <noreply@github.com>2023-03-30 01:23:04 +0300
commit961f28285a739000277f489573f5b4c22053f27c (patch)
treef100fadd8161142bb9dae184fde9e5fafa73da74 /47.md
parente2f088286fcd324bb4754dcdf5ff10f4dc823b5b (diff)
NIP-47: Fix up some things
Diffstat (limited to '47.md')
-rw-r--r--47.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/47.md b/47.md
index 326100d..96bf906 100644
--- a/47.md
+++ b/47.md
@@ -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
68nostrwalletconnect:b889ff5b1513b641e2a139f661a661364979c5beee91842f8f0ef42ab558e9d4?relay=wss%3A%2F%2Frelay.damus.io&secret=71a8c14c1407c113601079c4302dab36460f0ccd0ad506f1f2dc73b5100e4f3c 68nostr+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
1060. 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. 1060. 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.
1071. **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. 1071. **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.
1082. **nostr-wallet-connect-service** verifies that the author's key is authorized to perform the payment, decrypts the payload and sends the payment. 1082. **wallet service** verifies that the author's key is authorized to perform the payment, decrypts the payload and sends the payment.
1093. **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. 1093. **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
112This 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. 112This 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.