Conversation
|
This has been implemented on Primal and Olas. |
|
Love it. This pairs nicely with NIP-68 for client app registration btw! You can use an oauth-like flow via these sorts of deeplinks if you add a pubkey+relay where the wallet can find the client app's nip-68 verification. |
|
Nice and very simple addition to NIP-47. Alby is working on something similar right now for Alby Go. The one downside I see is that it only works on a single device (e.g. it's impossible to connect your mobile wallet to an app running on your desktop or some service where they can provide a QR for you to scan). We are thinking of a simpler version of NWA implemented by Mutiny. It's a bit more complicated than this proposal, but more flexible and allows for more usecases. In case you are interested my current draft is here. Alby's original 1-click connection flow had some optional parameters (e.g. configuring budget and supported methods) which could be great to add here too. The name of the scheme |
|
I think adding this to AlbyGo would make the lives of all Alby users super easy. We could use 10s of apps and each could ping AlbyGo for a separate connection URL. Apps knowing that there is a local app that can quickly connect users to their wallets is huge. We can check and just trigger the popup if we know the user already knows bitcoin/lightning. |
| * `callback` -- URI schema the wallet should open with the connection string | ||
|
|
||
| Once a connection has been created by the wallet, it should be returned to the client by opening the callback with the following parameters | ||
| * `value` -- NWC pairing code (e.g. `nostr+walletconnect://...`) |
There was a problem hiding this comment.
Shouldn't this be encoded?
When trying with the Alby Hub Olas almost immediately crashes after showing a primal logo.
Example URL: olas://dlnwc?value=nostr%2Bwalletconnect%3A%2F%2Ffc00def748e2b2780a9e558cd230cd24f939abfa2548092aceee2c70d18dbe4d%3Fsecret%3D75643a127aad012a45c56b11d945a4df6d3a109723edda0a60b17c8227eabebb%26relay%3Dwss%3A%2F%2Frelay.getalby.com%2Fv1
|
Great idea. I'm trying to build a similar deeplink flow for signer apps that would work for iOS (as it already does with Android), as an amendment to NIP-55. |
|
Implemented in Alby Go getAlby/go#272 |
|
are we ready to merge this? |
#YESTR |

This PR documents a standard for using deeplinks to communicate between a wallet and a nostr client.
The mobile app checks if there is a handler for nostrnwc:// or a handful of nostrnwc+{known_nwc-capable_wallets}:// -- if one is found, the app can open the app via a deeplink and receive the NWC pairing code back from the wallet.