tMerge pull request #216 from NullSense/fix-markdown-warnings - electrum-personal-server - Maximally lightweight electrum server for a single user HTML git clone https://git.parazyd.org/electrum-personal-server DIR Log DIR Files DIR Refs DIR README --- DIR commit 7ea587f0edb4a0e387618512fe8f01119f4c8f64 DIR parent a11d9b423cce9a17bd5bd31cbc40ca3c90b8e9db HTML Author: chris-belcher <belcher@riseup.net> Date: Tue, 23 Feb 2021 15:17:12 +0000 Merge pull request #216 from NullSense/fix-markdown-warnings Fix markdownlint warnings Diffstat: M README.md | 141 +++++++++++++++---------------- 1 file changed, 70 insertions(+), 71 deletions(-) --- DIR diff --git a/README.md b/README.md t@@ -31,27 +31,27 @@ which bitcoin addresses they are interested in. ### Features -* Fully-featured Electrum server for a single user. Combine full node security -and privacy with all of Electrum's feature-richness: (Hardware wallet -integration, [Multisignature wallets](http://docs.electrum.org/en/latest/multisig.html), -[Offline signing](http://docs.electrum.org/en/latest/coldstorage.html), -[Seed recovery phrases](https://en.bitcoin.it/wiki/Seed_phrase), Coin control, -Fee-bumping) -* Maximally lightweight. Very low CPU, RAM and disk space requirements. Only a -full node required. -* Compatible with all Bitcoin Core resource-saving features: - * [Pruning](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.12.0.md#wallet-pruning) - * [Blocksonly](https://bitcointalk.org/index.php?topic=1377345.0) - * Disabled txindex -* Scriptable transaction broadcasting. When the user click "Send" the server -can be configured to run a system call with the new transaction: - * Broadcast transactions through Tor, for [resisting traffic analysis](https://en.bitcoin.it/wiki/Privacy#Tor_and_tor_broadcasting). - * By writing a shell script (eg. `send-tx-over-sms.sh`) the server can - broadcast transactions via SMS, radio or any other creative way. +- Fully-featured Electrum server for a single user. Combine full node security + and privacy with all of Electrum's feature-richness: (Hardware wallet + integration, [Multisignature wallets](http://docs.electrum.org/en/latest/multisig.html), + [Offline signing](http://docs.electrum.org/en/latest/coldstorage.html), + [Seed recovery phrases](https://en.bitcoin.it/wiki/Seed_phrase), Coin control, + Fee-bumping) +- Maximally lightweight. Very low CPU, RAM and disk space requirements. Only a + full node required. +- Compatible with all Bitcoin Core resource-saving features: + - [Pruning](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.12.0.md#wallet-pruning) + - [Blocksonly](https://bitcointalk.org/index.php?topic=1377345.0) + - Disabled txindex +- Scriptable transaction broadcasting. When the user click "Send" the server + can be configured to run a system call with the new transaction: + - Broadcast transactions through Tor, for [resisting traffic analysis](https://en.bitcoin.it/wiki/Privacy#Tor_and_tor_broadcasting). + - By writing a shell script (eg. `send-tx-over-sms.sh`) the server can + broadcast transactions via SMS, radio or any other creative way. ## How To -* If you dont already have them, download and install Bitcoin Core version 0.17 +- If you dont already have them, download and install Bitcoin Core version 0.17 or higher. Make sure you [verify the digital signatures](https://bitcoin.stackexchange.com/questions/50185/how-to-verify-bitcoin-core-release-signing-keys) of any binaries before running them, or compile from source. The Bitcoin node t@@ -60,7 +60,7 @@ can be configured to run a system call with the new transaction: to Electrum Personal Server using the command line argument `bitcoin-cli createwallet electrumpersonalserver true`. -* If you dont already have it, download and install +- If you dont already have it, download and install [Electrum bitcoin wallet](https://electrum.org/), and set up your Electrum wallet (for example by linking your hardware wallet). To avoid damaging privacy by connecting to public Electrum servers, disconnect from the t@@ -68,46 +68,46 @@ can be configured to run a system call with the new transaction: `--server localhost:50002:s`. To avoid accidentally connecting to public electrum servers, also use the command line argument `--oneserver`. -* Download the [latest release](https://github.com/chris-belcher/electrum-personal-server/releases) +- Download the [latest release](https://github.com/chris-belcher/electrum-personal-server/releases) of Electrum Personal Server. If using Windows OS take the packaged binary release build `electrumpersonalserver-windows-release-XXX.zip`. -* Extract and enter the directory, and copy the file `config.ini_sample` to +- Extract and enter the directory, and copy the file `config.ini_sample` to `config.ini`. Edit the file `config.ini` to configure everything about the server. Add your wallet master public keys or watch-only addresses to the `[master-public-keys]` and `[watch-only-addresses]` sections. Master public keys for an Electrum wallet (which start with xpub/ypub/zpub/etc) can be found - in the Electrum client menu `Wallet` -> `Information`. You can add multiple + in the Electrum client menu `Wallet` -> `Information`. You can add multiple master public keys or watch-only addresses by adding separate lines for the different keys/addresses: wallet1 = xpub661MyMwAqRbcF... wallet2 = xpub7712KLsfsg46G... -* If you created a wallet dedicated to Electrum Personal Server in Bitcoin Core, - you have to modify the line `wallet_filename` in the `[bitcoin-rpc]` section - with the name of the wallet, for example `electrumpersonalserver`. +- If you created a wallet dedicated to Electrum Personal Server in Bitcoin Core, + you have to modify the line `wallet_filename` in the `[bitcoin-rpc]` section + with the name of the wallet, for example `electrumpersonalserver`. -* If using the windows packaged binary release, drag the file `config.ini` onto +- If using the windows packaged binary release, drag the file `config.ini` onto the file `electrum-personal-server.exe` to run the server, or on the command line run `electrum-personal-server config.ini`. -* If installing from the source release, install Electrum Personal Server in - your home directory with `pip3 install --user .`. On Linux the script - `electrum-personal-server` will be installed in `~/.local/bin`. Please note, +- If installing from the source release, install Electrum Personal Server in + your home directory with `pip3 install --user .`. On Linux the script + `electrum-personal-server` will be installed in `~/.local/bin`. Please note, if for some reason, you want to make a system-wide install, simply run `pip3 install .` as root (e.g. if you have `sudo` setup, you could use: `sudo pip3 install .`). Run `electrum-personal-server /path/to/config.ini` to start Electrum Personal Server. -* The first time the server is run it will import all configured addresses as +- The first time the server is run it will import all configured addresses as watch-only into the Bitcoin node, and then exit. If the wallets contain historical transactions you can use the rescan script (`electrum-personal-server --rescan /path/to/config.ini`) to make them appear. If using the windows packaged binary release build then drag the file `config.ini` onto the file `electrum-personal-server-rescan.bat`. -* Run the server again which will start Electrum Personal Server. Wait until +- Run the server again which will start Electrum Personal Server. Wait until the message `Listening for Electrum Wallet ...` appears and then tell Electrum to connect to the server in `Tools` -> `Server`. By default the server details are `localhost` if running on the same machine. Make sure the t@@ -126,35 +126,35 @@ default transactions will be broadcast through tor. If running tor, also set `walletbroadcast=0` in your `bitcoin.conf`. This prevents the node from rebroadcasting transactions without tor. -#### Quick start on a Debian/Ubuntu machine with a running Bitcoin full node +### Quick start on a Debian/Ubuntu machine with a running Bitcoin full node + 1. Download the [latest release](https://github.com/chris-belcher/electrum-personal-server/releases) -of Electrum Personal Server. (Not the Windows version, the "Source code" zip or -tar.gz.) + of Electrum Personal Server. (Not the Windows version, the "Source code" zip or + tar.gz.) 1. Extract the compressed file 1. Enter the directory 1. `cp config.ini_sample config.ini` 1. Edit the config.ini file: - 1. Add bitcoind back-end RPC auth information - 1. Add wallet master public keys for your wallets + 1. Add bitcoind back-end RPC auth information + 1. Add wallet master public keys for your wallets 1. Install the server to your home directory with `pip3 install --user .` -1. Make sure `~/.local/bin` is in your $PATH (`echo $PATH`). If not, add it: +1. Make sure `~/.local/bin` is in your \$PATH (`echo $PATH`). If not, add it: `echo 'PATH=$HOME/.local/bin:$PATH' >> ~/.profile`, logout, and log in again 1. Run the server: `electrum-personal-server config.ini` 1. Start your Electrum wallet: `electrum --oneserver --server localhost:50002:s`. ### Links to other setup guides -* [How to setup Electrum Personal Server on a Raspberry Pi](https://github.com/Stadicus/RaspiBolt/blob/master/raspibolt_64_electrum.md) -* [Electrum Personal Server on Windows 10](https://driftwoodpalace.github.io/Hodl-Guide/hodl-guide_63_eps-win.html) -* [Running Electrum Personal Server on Mac OS](https://driftwoodpalace.github.io/Hodl-Guide/hodl-guide_64_eps-mac.html) -* [How to set up your own Bitcoin node, Electrum wallet and Server](https://curiosityoverflow.xyz/posts/bitcoin-electrum-wallet/) -* [How to set up Wireguard to connect to EPS](https://curiosityoverflow.xyz/posts/wireguard-eps/) -* [Linux setup video tutorial on youtube](https://www.youtube.com/watch?v=1JMP4NZCC5g) -* [BTCPay Server integration with Electrum Personal Server](https://docs.btcpayserver.org/ElectrumPersonalServer/) -* [Using Electrum Personal Server with a Bitseed node](https://github.com/john-light/bitcoin/blob/master/eps.md) -* [Spanish language video tutorial / InstalaciĆ³n del servidor Electrum Personal Server](https://www.youtube.com/watch?v=F3idwecYvcU) -* [Japanese language setup guide](https://freefromjp.wordpress.com/2019/07/13/electrum-personal-server-%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB/) - +- [How to setup Electrum Personal Server on a Raspberry Pi](https://github.com/Stadicus/RaspiBolt/blob/master/raspibolt_64_electrum.md) +- [Electrum Personal Server on Windows 10](https://driftwoodpalace.github.io/Hodl-Guide/hodl-guide_63_eps-win.html) +- [Running Electrum Personal Server on Mac OS](https://driftwoodpalace.github.io/Hodl-Guide/hodl-guide_64_eps-mac.html) +- [How to set up your own Bitcoin node, Electrum wallet and Server](https://curiosityoverflow.xyz/posts/bitcoin-electrum-wallet/) +- [How to set up Wireguard to connect to EPS](https://curiosityoverflow.xyz/posts/wireguard-eps/) +- [Linux setup video tutorial on youtube](https://www.youtube.com/watch?v=1JMP4NZCC5g) +- [BTCPay Server integration with Electrum Personal Server](https://docs.btcpayserver.org/ElectrumPersonalServer/) +- [Using Electrum Personal Server with a Bitseed node](https://github.com/john-light/bitcoin/blob/master/eps.md) +- [Spanish language video tutorial / InstalaciĆ³n del servidor Electrum Personal Server](https://www.youtube.com/watch?v=F3idwecYvcU) +- [Japanese language setup guide](https://freefromjp.wordpress.com/2019/07/13/electrum-personal-server-%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB/) #### Exposure to the Internet t@@ -210,17 +210,17 @@ sort of thing. #### Further ideas for work -* Allowing connections from more than one Electrum instance at a time. See issue -[#50](https://github.com/chris-belcher/electrum-personal-server/issues/50). First -the server code should be separated from the networking code. -* Fix mempool lock/CPU bottleneck issue. See issue [#96](https://github.com/chris-belcher/electrum-personal-server/issues/96). -* Research and develop an easier way of rescanning the wallet when blockchain -pruning is enabled. See issue [#85](https://github.com/chris-belcher/electrum-personal-server/issues/85). -* Developing some way for Electrum servers to authenticate clients, so that -Electrum Personal Server can accept connections from the entire internet but -without a fear of privacy loss. -* Dynamic adding of wallet master public keys. Perhaps by polling for changes -in the config file. +- Allowing connections from more than one Electrum instance at a time. See issue + [#50](https://github.com/chris-belcher/electrum-personal-server/issues/50). First + the server code should be separated from the networking code. +- Fix mempool lock/CPU bottleneck issue. See issue [#96](https://github.com/chris-belcher/electrum-personal-server/issues/96). +- Research and develop an easier way of rescanning the wallet when blockchain + pruning is enabled. See issue [#85](https://github.com/chris-belcher/electrum-personal-server/issues/85). +- Developing some way for Electrum servers to authenticate clients, so that + Electrum Personal Server can accept connections from the entire internet but + without a fear of privacy loss. +- Dynamic adding of wallet master public keys. Perhaps by polling for changes + in the config file. ## Contact t@@ -231,17 +231,17 @@ My PGP key fingerprint is: `0A8B 038F 5E10 CC27 89BF CFFF EF73 4EA6 77F3 1129`. ## Articles, Discussion and Talks -* [BitcoinMagazine.com article](https://bitcoinmagazine.com/articles/electrum-personal-server-will-give-users-full-node-security-they-need/) -* [Electrum Personal Server talk at London Bitcoin Developer Meetup](https://www.youtube.com/watch?v=uKMXYdfm-is) -* Electrum Personal Server used as a building block for systems which use -bitcoin without internet access. See [here](https://twitter.com/notgrubles/status/1091011511961731073) -and [here](https://medium.com/hackernoon/completely-offline-bitcoin-transactions-4e58324637bd) -for information and setup guide. -* [Mailing list email](https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-February/015707.html) -* [Bitcointalk thread](https://bitcointalk.org/index.php?topic=2664747.msg27179198) -* [Nasdaq article](https://www.nasdaq.com/article/the-electrum-personal-server-will-give-users-the-full-node-security-they-need-cm920443) -* [Bitcoinnews.ru article (russian)](https://bitcoinnews.ru/novosti/electrum-personal-server-uluchshennaya-versiya-/) -* [bits.media article (russian)](https://bits.media/razrabotchiki-electrum-opublikovali-alfa-versiyu-electrum-personal-server/) +- [BitcoinMagazine.com article](https://bitcoinmagazine.com/articles/electrum-personal-server-will-give-users-full-node-security-they-need/) +- [Electrum Personal Server talk at London Bitcoin Developer Meetup](https://www.youtube.com/watch?v=uKMXYdfm-is) +- Electrum Personal Server used as a building block for systems which use + bitcoin without internet access. See [here](https://twitter.com/notgrubles/status/1091011511961731073) + and [here](https://medium.com/hackernoon/completely-offline-bitcoin-transactions-4e58324637bd) + for information and setup guide. +- [Mailing list email](https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-February/015707.html) +- [Bitcointalk thread](https://bitcointalk.org/index.php?topic=2664747.msg27179198) +- [Nasdaq article](https://www.nasdaq.com/article/the-electrum-personal-server-will-give-users-the-full-node-security-they-need-cm920443) +- [Bitcoinnews.ru article (russian)](https://bitcoinnews.ru/novosti/electrum-personal-server-uluchshennaya-versiya-/) +- [bits.media article (russian)](https://bits.media/razrabotchiki-electrum-opublikovali-alfa-versiyu-electrum-personal-server/) ## Contributing t@@ -249,4 +249,3 @@ Donate to help improve Electrum Personal Server: `bc1qwt8kh83dpdj4yuquvsf28rhcft This is open source project which happily accepts coding contributions from anyone. See [developer-notes.md](docs/developer-notes.md). -