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.

51 lines
1.7 KiB

5 years ago
# Relay
5 years ago
**Relay** is a Node.js wrapper around [LND](https://github.com/lightningnetwork/lnd), handling connectivity and storage for [**Sphinx**](https://sphinx.chat). Communication between Relay nodes takes place entirely on the Lightning Network, so is decentralized, untraceable, and encrypted. Message content is also end-to-end encrypted using client public keys, on the **Sphinx** app itself.
5 years ago
5 years ago
![Relay](https://github.com/stakwork/sphinx-relay/raw/master/public/relay.jpg)
5 years ago
Relay stores:
- Aliases
- Messages
- Recurring payment configurations
- Invites (so you can add your friends)
- Media Keys: keys for decrypting media files, asymetrically encrypted for each contact in a chat
# run your own sphinx node
You can run your own Sphinx node in order to have full ownership over your communication!
### download
5 years ago
`git clone https://github.com/stakwork/sphinx-relay`
5 years ago
5 years ago
`cd sphinx-relay`
5 years ago
`npm install`
### dependencies
sqlite3: `apt-get install sqlite3`
### configure
Edit the "production" section of config/app.json:
- Change `macaroon_location` to the location of your LND admin macaroon
- Change `tls_location` to the location of your LND cert
5 years ago
Edit the "production" section of config/config.json
- Update "storage" to point to where you want your DB file to live
5 years ago
To connect to your app
- `export NODE_IP=x.x.x.x` (you can use a domain name instead if you have that set up)
- For extra security, `export USE_PASSWORD=true`
5 years ago
### run
`npm run prod`
5 years ago
When Relay starts up, it will print a QR in the terminal. You can scan this in your app (right now Android only) to connect!
5 years ago
# Roadmap
- linking recurring payments to files, to enable use cases such as subscribing to podcasts with BTC!