3.7 KiB
Silent Dragon Lite IN THE RAW (SDL-RAW)
This documentation is how you setup Silent Dragon Lite to use a Hush blockchain stored on your local computer, or what I like to call SDL in the RAW. This is advanced and most user will never need to do this. These instructions are written with the assumption that you do not normally run a web server on your local computer and have some basic understanding. If you are more familiar than you can adjust these instructions to your needs.
NOTE: YOU WOULD NEVER DO THIS ON AN ACTUAL SERVER. IT WOULD BE INSECURE, BUT HERE IT IS RUNNING LOCALLY so it's alright.
SDL-RAW Setup
Setup hushd
We need to install the hush daemon (hushd) and then completely download the Hush blockchain.
-
Setup and get your hushd functional on Linux, Windows, or Mac.
-
Start it up and it will take some time to download the whole blockchain. You can check your download against the latest block height on the Hush explorer.
Setup lightwalletd
Once that is done downloading, we setup Hush lightwalletd:
-
Clone it
git clone https://git.hush.is/hush/lightwalletd
-
Then run
$ cd lightwalletd $ sudo go run cmd/server/main.go -bind-addr 127.0.0.1:9067 -conf-file ~/.komodo/HUSH3/HUSH3.conf -no-tls
``
Setup nginx as reverse proxy
Here we use a very simple nginx.conf as this web server will not run anything else and will only be started when needed.
-
Install nginx. Look up how to do that as it differs per operating system.
-
Start up nginx and open your computer's web browser to http://127.0.0.1 to verify that the nginx test page is working. If not then determine nginx is running and then continue on when it is.
-
Backup the nginx.conf to a nginx.conf.original before you change it.
-
Then delete everything in the nginx.conf and replace with the following:
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80 http2; server_name localhost; location / { grpc_pass grpc://localhost:9067; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } } }
``
-
Restart nginx.
$ sudo systemctl restart nginx.service
``
Download and install SDL
Make sure you make a paper backup of your seed phrases!
- For Binary releases, the download link is here
- For source code so you can compile your own, the link is here
- For legacy AppImage releases, the download link is here
Configure SDL
-
Open SDL, let it do it's thing (whether it connects successfully or not), and then exit it when it's done. This allows SDL to generate a local config file.
-
Locate your SDL config file. On Linux it's usually in ~/.config/Hush/SilentDragonLite.conf. I'm not sure where they reside on Windows or Mac.
-
In the [connection] section, make sure the following is there & we only want one server= line in that section:
server=http://127.0.0.1:9067
``
Start SDL
This should now be working! Yay! When you are done then shut down all the servers...
For Support
- If it is having trouble connecting, then please go into the Hush Tech Support Telegram channel but be aware that most support will not be aware of this configuration, so you might have to ping me in there @jahway603 :)