NWC hardcoded keys (#1335)
* Include keys.json in NWC container image * Update NWC ATTACH.md
This commit is contained in:
parent
9f194c5d8e
commit
ec6124ca62
@ -10,3 +10,5 @@ RUN apt-get update -y \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
RUN cargo build --release && cargo install --path .
|
RUN cargo build --release && cargo install --path .
|
||||||
|
|
||||||
|
COPY keys.json .
|
||||||
|
1
docker/nwc/keys.json
Normal file
1
docker/nwc/keys.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"server_key":"4463b828d1950885de82b518efbfbe3dd6c35278e8ee5f6389721515b4c5e021","user_key":"0d1ef06059c9b1acf8c424cfe357c5ffe2d5f3594b9081695771a363ee716b67","sent_info":true}
|
@ -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:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ sndev logs nwc
|
|
||||||
```
|
```
|
||||||
|
nostr+walletconnect://5224c44600696216595a70982ee7387a04bd66248b97fefb803f4ed6d4af1972?relay=wss%3A%2F%2Frelay.damus.io&secret=0d1ef06059c9b1acf8c424cfe357c5ffe2d5f3594b9081695771a363ee716b67
|
||||||
|
```
|
||||||
|
|
||||||
|
This won't work for receives since it allows `pay_invoice`.
|
||||||
|
|
||||||
|
TODO: generate NWC string with only `make_invoice` as permission
|
||||||
|
Loading…
x
Reference in New Issue
Block a user