From 9bda4f2df9159d676f3e44c160f7ca31f4e5f728 Mon Sep 17 00:00:00 2001 From: openoms Date: Sun, 31 Mar 2019 14:29:35 +0100 Subject: [PATCH] update Zap connection --- README.MD | 7 +++-- ZAPtoRaspiBolt/README.md | 33 +++++++++++++++++++++--- electrs/electrs_automation_for_Eclair.sh | 7 +++-- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/README.MD b/README.MD index 48cbe91..691f546 100644 --- a/README.MD +++ b/README.MD @@ -10,9 +10,12 @@ More here: * #### [Connect the Zeus Lightning Wallet on Android to the RaspiBlitz over Tor](Zeus_to_RaspiBlitz_through_Tor.md) -* #### [Set up SSL acces for the Ride The Lightning web UI on the RaspiBlitz](nginx/README.md) +* #### [SSL/HTTPS access for the Ride The Lightning web UI on the RaspiBlitz](nginx/README.md) -* #### [Install the Electrum Server in Rust (electrs) on the RaspiBlitz and set it up as the backend of the Eclair wallet](electrs/README.md) +* #### [Install the Electrum Server in Rust (electrs) on the RaspiBlitz and set it up to connect over SSL](electrs/README.md) + Can be used as the backend of: + * Eclair Mobile Bitcoin and Ligthtning wallet + * Electrum wallet \`The server indexes the entire Bitcoin blockchain, and the resulting index enables fast queries for any given user wallet, allowing the user to keep real-time track of his balances and his transaction history using the Electrum wallet. Since it runs on the user's own machine, there is no need for the wallet to communicate with external Electrum servers, thus preserving the privacy of the user's addresses and balances.\` - https://github.com/romanz/electrs diff --git a/ZAPtoRaspiBolt/README.md b/ZAPtoRaspiBolt/README.md index 6bd2831..081bc9c 100644 --- a/ZAPtoRaspiBolt/README.md +++ b/ZAPtoRaspiBolt/README.md @@ -1,6 +1,6 @@ -## Connect the ZAP Desktop Lightning wallet to the RaspiBlitz +## Connect the ZAP Desktop Lightning wallet to the RaspiBolt The desktop app ZAP (https://github.com/LN-Zap/zap-desktop) ) is a cross platform Lightning Network wallet focused on user experience and ease of use. @@ -9,7 +9,6 @@ Download ZAP for your operating sytem: https://github.com/LN-Zap/zap-desktop/releases Install instructions: https://github.com/LN-Zap/zap-desktop#install - ### Preparation on the Pi * Allow connections to the RaspiBolt from your LAN. Check what your LAN IP address is starting with eg. 192.168.0.xxx or 192.168.1.xxx and use the address accordingly. Changing the last number (xxx) with .0/24 will allow all IP addresses from your local network. @@ -37,6 +36,34 @@ Install instructions: https://github.com/LN-Zap/zap-desktop#install `$ sudo ufw enable` `$ sudo ufw status` + --- + +## To use the Connection String method (available from ZAP 0.4 beta): + +### On the RaspiBolt: +* Install LndConnect: + `$ cd ~` + `$ go get -d github.com/LN-Zap/lndconnect` - this can take a couple of minutes + `$ cd ~/go/src/github.com/LN-Zap/lndconnect` + `$ make install` + +* Generate the Connection String + `$ cd ~/go/bin` + `$ ./lndconnect --lnddir=/home/admin/.lnd --image --host=your.RaspiBolt.LAN.IP --port=10009` + + Copy the resulting text starting with lndconnect://... + +### Set up ZAP: + + * Start ZAP on your desktop + * Create new wallet + * Connect to your node + * Paste the Connection string generated with LndConnect + * Confirm and Connect + +--- + +## To use the files method: ### On your Linux desktop terminal: @@ -46,7 +73,7 @@ Install instructions: https://github.com/LN-Zap/zap-desktop#install * Copy the admin.macaroon to your home directory: `$ scp root@your.RaspiBolt.LAN.IP:/home/bitcoin/.lnd/data/chain/bitcoin/mainnet/admin.macaroon ~/` -### Configure ZAP +### Configure ZAP: * Start the app and select: ```Connect your own node``` diff --git a/electrs/electrs_automation_for_Eclair.sh b/electrs/electrs_automation_for_Eclair.sh index fabdedb..0f74ed7 100644 --- a/electrs/electrs_automation_for_Eclair.sh +++ b/electrs/electrs_automation_for_Eclair.sh @@ -1,4 +1,4 @@ -# A script to set up the Electrum Server in Rust on the RaspiBlitz to be used with Eclair +# A script to set up the Electrum Server in Rust on the RaspiBlitz to connect over SSL to Eclair and Electrum wallet # Sets up the automatic start of electrs and nginx and certbot # To download this script, make executable and run: @@ -181,4 +181,7 @@ sudo systemctl enable nginx sudo systemctl restart nginx echo "" -echo "Set the \`Current Electrum server\` of you Eclair wallet to \`$YOUR_DOMAIN:50002\` and make sure the port 50002 is forwarded on your router" +echo "To connect from outside of the local network make sure the port 50002 is forwarded on your router" +echo "Eclair mobile wallet: In the \`Network info\` set the \`Current Electrum server\` to \`$YOUR_DOMAIN:50002\`" +echo "Electrum wallet: start with the options \`electrum --oneserver --server $YOUR_DOMAIN:50002:s" +echo ""