Hush Documentation for all levels of users
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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.

  1. Setup and get your hushd functional on Linux, Windows, or Mac.

  2. 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:

  1. Clone it git clone https://git.hush.is/hush/lightwalletd

  2. 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.

  1. Install nginx. Look up how to do that as it differs per operating system.

  2. 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.

  3. Backup the nginx.conf to a nginx.conf.original before you change it.

  4. 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;
            }
    	}
    }
    

    ``

  5. Restart nginx.

    $ sudo systemctl restart nginx.service
    
    

    ``

Download and install SDL

Make sure you make a paper backup of your seed phrases!

Configure SDL

  1. 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.

  2. 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.

  3. 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 :)