Lightning Network Daemon
Go to file
2021-01-08 15:39:11 +01:00
.github github: add workflow that allows us to pin dependencies 2020-12-15 21:17:11 +02:00
aezeed
autopilot
batch
brontide
buffer
build build: bump version to v0.12.0-beta.rc3 2020-12-31 15:58:17 -08:00
cert
chainntnfs chainntnfs/test: parallelize iface tests by backend 2020-12-10 20:56:10 -08:00
chainreg
chanacceptor ensure 64bit alignment of atomically accessed field in ChannelAcceptor 2020-12-28 10:04:13 -06:00
chanbackup chanrestore: define ZeroHtlcTxFeeCommitVersion 2020-12-15 10:13:12 +01:00
chanfitness
channeldb etcd: add support for user specified ports for testing 2021-01-08 15:39:11 +01:00
channelnotifier
clock
cmd
contractcourt contractcourt/htlc_timeout_test: expand timeout tests 2020-12-10 14:24:20 +01:00
contrib
discovery
docker
docs
feature lnwire+feature: define AnchorsZeroFeeHtlcTx feature 2020-12-15 10:13:04 +01:00
funding lnd+funding: move Manager to funding, change references 2020-12-17 10:45:05 -05:00
fuzz
healthcheck
htlcswitch multi: cap anchors feerate at configurable maximum 2020-12-15 19:54:50 +01:00
input contraccourt+input: create resolver for timeout second level 2020-12-10 14:24:20 +01:00
invoices
keychain
labels
lncfg etcd: add support for user specified ports for testing 2021-01-08 15:39:11 +01:00
lnpeer
lnrpc trivial: fix make rpc-format 2020-12-24 21:41:42 +08:00
lntest multi: move and export funding-related vars to funding package 2020-12-17 09:36:34 -05:00
lntypes
lnwallet multi: cap anchors feerate at configurable maximum 2020-12-15 19:54:50 +01:00
lnwire lnwire+feature: define AnchorsZeroFeeHtlcTx feature 2020-12-15 10:13:04 +01:00
macaroons
make Merge pull request #4797 from Crypt-iQ/zpay32_fflags 2020-12-12 11:14:59 +01:00
mobile
monitoring
multimutex
nat
netann
peer peer: ensure consistent local+global feature bits when downgrading 2020-12-17 17:04:15 -08:00
peernotifier
pool
queue
record
routing
scripts
shachain
signal
subscribe
sweep rpctest: increase sweeper BatchWindow during itests 2020-12-10 14:24:20 +01:00
ticker
tlv
tor
walletunlocker lnd+walletunlocker: move history drop to unlocker 2020-12-15 21:34:12 +01:00
watchtower wtclient/client: fix missed prefix log 2021-01-04 08:33:34 -08:00
zpay32
.gitignore
.golangci.yml
.travis.yml GitHub+Travis: update to latest golang patch version 2020-12-12 11:26:00 +01:00
breacharbiter_test.go
breacharbiter.go
channel_notifier.go
chanrestore.go chanrestore: define ZeroHtlcTxFeeCommitVersion 2020-12-15 10:13:12 +01:00
config.go multi: move and export funding-related vars to funding package 2020-12-17 09:36:34 -05:00
dev.Dockerfile docker: update to latest golang base image 2020-12-12 11:25:22 +01:00
doc.go
Dockerfile docker: update to latest golang base image 2020-12-12 11:25:22 +01:00
go.mod
go.sum go.sum: cleanup unused entries 2020-12-15 21:17:04 +02:00
LICENSE
lnd.go lnd+walletunlocker: move history drop to unlocker 2020-12-15 21:34:12 +01:00
log.go lnd+funding: move Manager to funding, change references 2020-12-17 10:45:05 -05:00
logo.png
Makefile
nursery_store_test.go
nursery_store.go
pilot.go lnd+funding: move Manager to funding, change references 2020-12-17 10:45:05 -05:00
README.md
rpcserver.go rpcserver: fix log statement in channelbalance 2020-12-22 09:39:43 +01:00
sample-lnd.conf etcd: add support for user specified ports for testing 2021-01-08 15:39:11 +01:00
server_test.go
server.go lnd+funding: move Manager to funding, change references 2020-12-17 10:45:05 -05:00
subrpcserver_config.go
test_utils.go
utxonursery_test.go
utxonursery.go
witness_beacon.go

Lightning Network Daemon

Build Status MIT licensed Irc Godoc

The Lightning Network Daemon (lnd) - is a complete implementation of a Lightning Network node. lnd has several pluggable back-end chain services including btcd (a full-node), bitcoind, and neutrino (a new experimental light client). The project's codebase uses the btcsuite set of Bitcoin libraries, and also exports a large set of isolated re-usable Lightning Network related libraries within it. In the current state lnd is capable of:

  • Creating channels.
  • Closing channels.
  • Completely managing all channel states (including the exceptional ones!).
  • Maintaining a fully authenticated+validated channel graph.
  • Performing path finding within the network, passively forwarding incoming payments.
  • Sending outgoing onion-encrypted payments through the network.
  • Updating advertised fee schedules.
  • Automatic channel management (autopilot).

Lightning Network Specification Compliance

lnd fully conforms to the Lightning Network specification (BOLTs). BOLT stands for: Basis of Lightning Technology. The specifications are currently being drafted by several groups of implementers based around the world including the developers of lnd. The set of specification documents as well as our implementation of the specification are still a work-in-progress. With that said, the current status of lnd's BOLT compliance is:

  • BOLT 1: Base Protocol
  • BOLT 2: Peer Protocol for Channel Management
  • BOLT 3: Bitcoin Transaction and Script Formats
  • BOLT 4: Onion Routing Protocol
  • BOLT 5: Recommendations for On-chain Transaction Handling
  • BOLT 7: P2P Node and Channel Discovery
  • BOLT 8: Encrypted and Authenticated Transport
  • BOLT 9: Assigned Feature Flags
  • BOLT 10: DNS Bootstrap and Assisted Node Location
  • BOLT 11: Invoice Protocol for Lightning Payments

Developer Resources

The daemon has been designed to be as developer friendly as possible in order to facilitate application development on top of lnd. Two primary RPC interfaces are exported: an HTTP REST API, and a gRPC service. The exported API's are not yet stable, so be warned: they may change drastically in the near future.

An automatically generated set of documentation for the RPC APIs can be found at api.lightning.community. A set of developer resources including talks, articles, and example applications can be found at: dev.lightning.community.

Finally, we also have an active Slack where protocol developers, application developers, testers and users gather to discuss various aspects of lnd and also Lightning in general.

Installation

In order to build from source, please see the installation instructions.

Docker

To run lnd from Docker, please see the main Docker instructions

IRC

  • irc.freenode.net
  • channel #lnd
  • webchat

Safety

When operating a mainnet lnd node, please refer to our operational safety guildelines. It is important to note that lnd is still beta software and that ignoring these operational guidelines can lead to loss of funds.

Security

The developers of lnd take security very seriously. The disclosure of security vulnerabilities helps us secure the health of lnd, privacy of our users, and also the health of the Lightning Network as a whole. If you find any issues regarding security or privacy, please disclose the information responsibly by sending an email to security at lightning dot engineering, preferably encrypted using our designated PGP key (91FE464CD75101DA6B6BAB60555C6465E5BCB3AF) which can be found here.

Further reading