Work In Progress, not suited for production just yet. Contributions, suggestions and ideas are appreciated. Database schema and configuration are bound to change.
Dunder is a Lightning Service Provider for the Bitcoin Lightning Network.
It currently supports "on demand channel openings", meaning if a Lightning wallet gets an inbound payment while not having any inbound capacity, Dunder will open a channel to the wallet with push amount equal to the inbound payment minus the on-chain fee.
More on how this works here.
Dunder require lnd as the Lightning backend right now, though the plan is to make the service implementation independent.
The master
branch always expects the latest version of lnd. Lnd compiled with routerrpc is required.
- Run lnd, wallet must be unlocked for Dunder to operate correctly
git clone https://github.com/hsjoberg/dunder-lsp && cd dunder-lsp
- Copy
config/default.json_TEMPLATE
toconfig/default.json
and set up your configuration yarn
yarn start
The admin interface is reachable via /admin
.
To create an administrator, run scripts/create-admin-lnurl-auth.js
and scan the QR-code with an
LNURL-auth compatible wallet (for example Blixt Wallet):
node scripts/create-admin-lnurl-auth.js <listen host:ip> <domain/IP to reach from)> <HTTPS (true/false)>
This will create a temporary HTTP server serving an LNURL-auth endpoint at /lnurl-auth.
To do tests run yarn test
or yarn test:coverage
.
Any new code should not decerease code coverage significantly.
MIT