Skip to content

bitcoincoretech/sphinx-relay-light

 
 

Repository files navigation

Relay

Relay is a Node.js wrapper around LND, handling connectivity and storage for Sphinx. Original Project here

Relay Light

Relay Light is an Electron UI wrapper around Relay. Its purpose is to allow users to connect to an already existing Lighting Network Node in order to use Sphinx Chat.

Connect Relay to Lightning Network

Simply open the application (MacOS Only for now) and provide the connection info for your Lighting Network Node, then click (Re)connect

e1

Connect Sphinx Chat to Relay

Use the connection string provided by Sphinx Relay and create a new user e2

Join Tribes and Chat with Friends

e3

Lightning Network Checklist

Make sure that your LN Node is correctly configured and up to date. Both synced_to_chain and synced_to_graph must be set to true.

$ lncli getinfo
{
    ...
    "alias": "bitcoincore.tech",
    "num_active_channels": 1,
    "num_peers": 3,
    ...
    "synced_to_chain": true,
    "synced_to_graph": true,
    "testnet": false,
    "chains": [
        {
            "chain": "bitcoin",
            "network": "mainnet"
        }
    ],

Next check that your LN wallet is unlocked and that it has funds.

$ lncli walletbalance
{
    "total_balance": "19521952",
    "confirmed_balance": "19521952",
    "unconfirmed_balance": "0"
}

Check that you can reach the Sphinx LN Node. It is not mandatory to have a path to this node, but many other participants will likely have one.

$ lncli queryroutes --dest 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f --amt 10
{
    "routes": [
        {
            "total_time_lock": 677028,
            ....
        }
    ],
    "success_prob": 0.8346682227708259
}

TLS Cert

Make sure the LND certificate allows you to connect from your host to the LND host. The Relay does not explicitly report the error but lncli will pinpoint it correctly.

[lncli] rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: authentication handshake failed: x509: certificate is valid for 127.0.0.1, ::1, 172.19.0.2, not 192.168.0.67"

About

Electron UI wrapper for the Sphinx Relay

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 77.7%
  • TypeScript 20.8%
  • HTML 1.3%
  • Other 0.2%