Fork of LndHub with some fixes, as well as additions for lnurl-pay support https://lndhub.kosmos.org
Go to file
ViktorBohu 68fd866894 Fixed progress bar css for small values 2021-04-08 19:27:31 +01:00
.github/workflows Umbrel support (#141) 2021-02-24 15:17:22 +00:00
class Umbrel support (#141) 2021-02-24 15:17:22 +00:00
controllers REF 2021-04-05 12:14:41 +01:00
doc ADD: qr image on pain page 2020-12-31 17:48:17 +00:00
scripts Umbrel support (#141) 2021-02-24 15:17:22 +00:00
static Fixed progress bar css for small values 2021-04-08 19:27:31 +01:00
templates REF: Change title 2021-02-18 12:11:01 +00:00
utils Update dependencies (#121) 2021-01-04 12:49:42 +00:00
.babelrc Update .babelrc 2020-12-04 18:59:57 +00:00
.eslintrc Umbrel support (#141) 2021-02-24 15:17:22 +00:00
.gitignore INIT 2018-12-02 22:17:02 +00:00
Dockerfile Umbrel support (#141) 2021-02-24 15:17:22 +00:00
LICENSE MIT License added see #40 2019-11-04 14:23:43 +00:00
README.md doc: Add options that were added for Umbrel 2021-04-08 12:54:57 +01:00
bitcoin.js Umbrel support (#141) 2021-02-24 15:17:22 +00:00
btc-decoder.js Umbrel support (#141) 2021-02-24 15:17:22 +00:00
config.js FIX: force using specific bitcoind wallet file 2020-08-16 15:18:30 +01:00
index.js Update dependencies (#121) 2021-01-04 12:49:42 +00:00
lightning.js Umbrel support (#141) 2021-02-24 15:17:22 +00:00
package-lock.json ADD: /getchaninfo/:chanid 2021-04-03 12:35:45 +01:00
package.json fix: upgrade bolt11 from 1.2.7 to 1.3.1 2021-04-02 12:32:53 +01:00
rpc.proto Update dependencies (#121) 2021-01-04 12:49:42 +00:00
run-process-locked.sh OPS 2020-08-12 16:45:29 +01:00

README.md

LndHub

Wrapper for Lightning Network Daemon. It provides separate accounts with minimum trust for end users

INSTALLATION

You can use those guides or follow instructions below:

git clone git@github.com:BlueWallet/LndHub.git
cd LndHub
npm i

Install bitcoind, lnd and redis. Edit config.js and set it up correctly. Copy admin.macaroon and tls.cert in root folder of LndHub.

bitcoind should run with -deprecatedrpc=accounts, for now. Lndhub expects Lnd's wallet to be unlocked, if not - it will attempt to unlock it with password stored in config.lnd.password. Don't forget to enable disk-persistance for redis.

If you have no bitcoind instance, for example if you use neutrino, or you have no bitcoind wallet, for example if you use LND for wallet managment, you can remove the bitcoind settings from config.js. Please not that this feature is limited to Bitcoin, so you can't use this feature if you use any other cryptocurrency with LND.

Deploy to Heroku

Add config vars :

  • CONFIG : json serialized config object
  • MACAROON: hex-encoded admin.macaroon
  • TLSCERT: hex-encoded tls.cert

Run in docker

LndHub is available on Docker Hub as bluewalletorganization/lndhub. Please note that this requires a separate instance of redis and LND and optionally, bitcoind. You can also view Umbrel's implementation using docker-compose here.

Reference client implementation

Can be used in ReactNative or Nodejs environment

Tests

Acceptance tests are in https://github.com/BlueWallet/BlueWallet/blob/master/LightningCustodianWallet.test.js

image

Responsible disclosure

Found critical bugs/vulnerabilities? Please email them bluewallet@bluewallet.io Thanks!