Runs as on your computer/pi to securley bridge communciation between your Bitcoin and Lightning nodes (via Cyphernode) and the Sifir mobile app.
Sifir is very much WIP.
- Docker
- Cyphernode installed: https://github.com/SatoshiPortal/cyphernode
- Sifir Bitcoin Mobile Wallet Apk OR Google play (Coming soon) to pair your phone.
- Run:
git clone https://github.com/Sifir-io/cyphernode-app.git
- Run
cd cyphernode-app && ./build.sh
- Edit
.env
file with your favorite text editor (IE Vim) and change the following values to match your Cyphernode installation:
- CYPHERNODE_API_KEY=api key from cyphernode
- CYPHERNODE_API_KEY_ID=api key id from cyphernode
- CYPHERNODE_ONION_URL=https://[cyphernode-traefik-torr-hiddenservice-hostname]:[traefik-hiddenservice-torr-port]
All the values you need can be obtained from your Cyphernode configuration file which can be viewed easily by:
- Login to your Cyphernode welcome portal
- Click 'Download your Cyphernode configurations, can be used for another Cyphernode deployment' and open the zip file (Enter your config password when prompted)
- Open
config.json
and look for the following value path in the jsongatekeeper_keys.gatekeeper_keys
the value would look something like003=734f3b......b221e8a
, and so:- CYPHERNODE_API_KEY=734f3b......b221e8a (copy paste the entire string after the equality sign)
- CYPHERNODE_API_KEY_ID=003
CYPHERNODE_ONION_URL
Needs to contain Traefik hidden service URL and the port. In a typical cyphernode installation with Tor service it can easily be obtained by:
- Your traefik hidden service hostname can be found: /dist/.cyphernodeconf/tor/torrc, ex:
a3209sdlakdoljkljsads.onion
- Your traefik hidden service port can found: /dist/.cyphernodeconf/tor/traefik/hidden_service/hostname , look for a line that looks like
HiddenServicePort 2768 traefik
HiddenServicePort 2769 traefik
First line is your port number, so in this case 2768
and thus
CYPHERNODE_ONION_URL=https://a3209sdlakdoljkljsads.onion:2768
One last step is to give Sifir access to Cyphernode gatekeeper SSL certificate for https communication. The easiest way to do this is:
- Login to your Cyphernode welcome portal
- Click 'Download Client API ID's and keys, needed in your client apps' and open the zip file (Enter your config password when prompted)
- Copy
cacert.pem
to sifir app root directory
Your now ready !
- Run
./run.sh
Note: The run script assumes you have placedcacert.pem
in the same directory, if you have placed it in another path please providde the path to the certificate as a second parameter , ex./run.sh ./path/to/ssl/cert.pem
- Open your browser and go to 'https://localhost:3011' you should see Sifir App
- If both Sifir bridge and UI are installed on the same machine, click connect. Otherwise if you have installed the Sifir bridge on a rasberryPI or have multiple bridges installed thee edit the
URL where sifir is located
field to match the network machine where the bridge component of sifir has been installed. - If this is a fresh install click 'Go To Setup'
- Enter a password to encrypt your PGP keys with (PGP keys will be used to sign and encrypt all communication coming in and out of Sifir), re-enter your password in the confirmation box.
- Click on 'Make Keys'
- Wait for Keys to generate and click on 'Continue to Pairing'
- Select the method you would like to pair your phone with 'Tor' or 'Sifir Sync'
- Enter a lowercase only name for this device, and re-enter your password again. Click 'Show pairing QR code'
- Download Sifir's mobile App and scan the QR code !
- Enjoy your awesome private and secure Bitcoin Mobile Wallet :)