diff --git a/docker/nwc/Dockerfile b/docker/nwc/Dockerfile index b8a75eb5..62d559e4 100644 --- a/docker/nwc/Dockerfile +++ b/docker/nwc/Dockerfile @@ -9,4 +9,6 @@ RUN apt-get update -y \ && apt-get install -y cmake \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -RUN cargo build --release && cargo install --path . \ No newline at end of file +RUN cargo build --release && cargo install --path . + +COPY keys.json . diff --git a/docker/nwc/keys.json b/docker/nwc/keys.json new file mode 100644 index 00000000..5e6a042e --- /dev/null +++ b/docker/nwc/keys.json @@ -0,0 +1 @@ +{"server_key":"4463b828d1950885de82b518efbfbe3dd6c35278e8ee5f6389721515b4c5e021","user_key":"0d1ef06059c9b1acf8c424cfe357c5ffe2d5f3594b9081695771a363ee716b67","sent_info":true} \ No newline at end of file diff --git a/wallets/nwc/ATTACH.md b/wallets/nwc/ATTACH.md index 808bc5d1..b4b929b7 100644 --- a/wallets/nwc/ATTACH.md +++ b/wallets/nwc/ATTACH.md @@ -1,7 +1,9 @@ -The nwc string is printed in the nwc container logs on startup ... +Use this NWC string to attach the wallet for payments: -Open the nwc container logs like this: +``` +nostr+walletconnect://5224c44600696216595a70982ee7387a04bd66248b97fefb803f4ed6d4af1972?relay=wss%3A%2F%2Frelay.damus.io&secret=0d1ef06059c9b1acf8c424cfe357c5ffe2d5f3594b9081695771a363ee716b67 +``` -```bash -$ sndev logs nwc -``` \ No newline at end of file +This won't work for receives since it allows `pay_invoice`. + +TODO: generate NWC string with only `make_invoice` as permission