From b35de2ed6aa069ece4bc840055f42b2b9a6a3573 Mon Sep 17 00:00:00 2001 From: rasputin Date: Sun, 12 Oct 2025 13:14:34 +0200 Subject: [PATCH 1/2] Add en/nwc.md --- en/nwc.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 en/nwc.md diff --git a/en/nwc.md b/en/nwc.md new file mode 100644 index 0000000..8c5e70d --- /dev/null +++ b/en/nwc.md @@ -0,0 +1,26 @@ +Nostr Wallet Connect (NWC) allows you to easily connect your wallet to a Nostr app, for example for easy one-click zaps. + +## Nostr Wallet Connect (NWC) + +Nostr Wallet Connect is like a bridge between your Lightning wallet and Nostr apps. It essentially works over three simple steps. + +![nwc-flowchart](https://loratu.bitcointxoko.com/3ca8bd26a7b1b0be82778673ccebc9f6b40945f03e307a92d8f671f4937c2fb9.webp) + +1. **Set up the connection**: Generate a connection string with your wallet. This connection string contains a public key, relay information, and a secret. This connection string is pasted into the Nostr app you want to use. + +2. **Message over relays**: When you want to make a payment in the Nostr app, for example to send a zap, the app sends a request to the relay encrypted with the secret from the previous step. Your wallet listens on the same relay and picks up the request. + +3. **Payment**: After receiving the request, the wallet makes the payment. This can be done automatically or require approval. + +For more information on NWC, you can check [NIP-47](https://nips.nostr.com/47) or the developer [documentation](https://nwc.dev). + +## Set up + +Now that we have an understanding of how it works, let's configure some Nostr apps to use our Lightning wallet over NWC with the NWC Service Provider extension in LNbits. + +0. **Enable the extension**: In the Extensions section in the sidebar, enable the NWC Service Provider extension. After enabling it, open it. +1. **Select a wallet**: It's a decent idea to create a wallet just for NWC if you want to separate it from your main wallet. You can easily do this by selecting "+ Add a new wallet" in the sidebar. +2. **Add a connection**: Click on the "+" and you can configure your connection settings, or just leave them at the default and add a description so you can later identify the connection. Once you're happy with the settings, click "Connect". +3. **Pairing**: You can now pair the Nostr app by pasting the connection string ("Pairing URL") or scanning the QR code with a compatible app. + +That's it! Try it out by sending a zap. From f318d74d3aa9319aaa4b719b438fa75a8e04966d Mon Sep 17 00:00:00 2001 From: rasputin Date: Sun, 12 Oct 2025 13:14:40 +0200 Subject: [PATCH 2/2] Add es/nwc.md --- es/nwc.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 es/nwc.md diff --git a/es/nwc.md b/es/nwc.md new file mode 100644 index 0000000..0ff9eac --- /dev/null +++ b/es/nwc.md @@ -0,0 +1,26 @@ +Nostr Wallet Connect (NWC) te permite conectar fácilmente tu billetera Lightning a una aplicación Nostr, por ejemplo, para zaps con un solo clic. + +## Nostr Wallet Connect (NWC) + +Nostr Wallet Connect es como un puente entre tu billetera Lightning y las aplicaciones Nostr. Esencialmente, funciona en tres sencillos pasos. + +![nwc-flowchart](https://loratu.bitcointxoko.com/3ca8bd26a7b1b0be82778673ccebc9f6b40945f03e307a92d8f671f4937c2fb9.webp) + +1. **Configura la conexión**: Genera una cadena de conexión con tu monedero. Esta cadena de conexión contiene una clave pública, información de relay y un secreto. Esta cadena de conexión se pega en la aplicación Nostr que deseas usar. + +2. **Mensaje a través de retransmisiones**: Cuando quieres hacer un pago en la aplicación Nostr, por ejemplo, para enviar un zap, la aplicación envía una solicitud al relay cifrada con el secreto del paso anterior. Tu billetera escucha en el mismo relay y recoge la solicitud. + +3. **Pago**: Después de recibir la solicitud, la billetera realiza el pago. Esto se puede hacer automáticamente o requerir aprobación. + +Para obtener más información sobre NWC, puedes consultar [NIP-47](https://nips.nostr.com/47) o la [documentación](https://nwc.dev) del desarrollador. + +## Configuración + +Ahora que entendemos cómo funciona, configuremos algunas aplicaciones Nostr para usar nuestra billetera Lightning a través de NWC con la extensión de NWC Service Provider en LNbits. + +0. **Habilita la extensión**: En la sección Extensiones de la barra lateral, habilita la extensión del NWC Service Provider. Después de habilitarla, ábrela. +1. **Selecciona una billetera**: Es una buena idea crear una billetera solo para NWC si quieres separarla de tu billetera principal. Puedes hacerlo fácilmente seleccionando "+ Añadir una nueva billetera" en la barra lateral. +2. **Añade una conexión**: Haz clic en el "+" y podrás configurar los ajustes de tu conexión, o simplemente dejarlos por defecto y añadir una descripción para que puedas identificar la conexión más tarde. Una vez que estés satisfecho con los ajustes, haz clic en "Conectar". +3. **Emparejamiento**: Ahora puedes emparejar la aplicación Nostr pegando la cadena de conexión ("Pairing URL") o escaneando el código QR con una aplicación compatible. + +¡Eso es todo! Pruébalo enviando un zap.