Lightning Network Daemon
Go to file
2022-12-06 12:52:31 +00:00
.github github: update action versions 2022-11-17 21:06:12 +08:00
.vscode
aezeed scripted-diff: replace ⛰ emoji with $ [skip ci] 2022-10-28 12:06:49 -04:00
aliasmgr
amp
autopilot
batch
blockcache
brontide brontide,lnwire,wtwire,zpay32: appease linter 2022-11-11 08:44:30 -06:00
buffer
build build: remove go-fuzz dependency and references 2022-11-11 10:44:37 -06:00
cert cert: add TLS reloader and return bytes from GenCert 2022-11-01 16:44:18 -05:00
chainntnfs multi: don't access loop variables in goroutines 2022-11-21 13:54:23 +01:00
chainreg
chanacceptor
chanbackup
chanfitness
channeldb channeldb+lnd: rpc server filters payments by date 2022-12-05 20:04:47 +08:00
channelnotifier
clock
cluster
cmd cli: update listinvoices and listpayments to use the date filter 2022-12-05 20:04:47 +08:00
contractcourt multi: fix make lint 2022-11-18 20:48:23 +08:00
contrib
discovery multi: improve readability of goroutine defers 2022-11-21 13:54:24 +01:00
docker scripted-diff: replace ⛰ emoji with $ [skip ci] 2022-10-28 12:06:49 -04:00
docs Merge pull request #7209 from guggero/btcwallet-fund-psbt 2022-12-05 19:47:42 -08:00
feature
funding multi: improve readability of goroutine defers 2022-11-21 13:54:24 +01:00
healthcheck fix typo liveliness 2022-11-25 21:52:00 +09:00
htlcswitch multi: update to tlv/v1.1.0 and use new *P2P tlv decoding variants 2022-12-05 09:32:56 -05:00
input
invoices
keychain mod+keychain+lntest: bump btcd to version with tweak fix 2022-11-11 10:20:08 +01:00
kvdb multi: fix make lint 2022-11-18 20:48:23 +08:00
labels
lncfg lncfg: fix gossip.pinned-syncers flag description 2022-11-28 09:55:18 +01:00
lnencrypt
lnpeer
lnrpc lnrpc: identify *.proto files as separate files within a given directory 2022-12-06 12:52:31 +00:00
lntemp lntest: add itest for timestamp filters 2022-12-05 20:04:47 +08:00
lntest lntest: add itest for timestamp filters 2022-12-05 20:04:47 +08:00
lntypes
lnwallet lnwallet: skip dual funding test as not exposed on p2p layer 2022-11-22 13:44:54 +01:00
lnwire multi: update to tlv/v1.1.0 and use new *P2P tlv decoding variants 2022-12-05 09:32:56 -05:00
macaroons scripted-diff: replace ⛰ emoji with $ [skip ci] 2022-10-28 12:06:49 -04:00
make itest: increase test timeout to 120m 2022-11-17 21:06:12 +08:00
mobile docs: remove $ from multiline commands or frequently copied [skip ci] 2022-10-28 12:32:24 -05:00
monitoring
multimutex
nat
netann
peer contractcourt+brontide: fix typo and inaccurate logging 2022-10-27 01:11:35 +08:00
peernotifier
pool
queue
record
routing lnwire: allow longer failure messages 2022-12-02 14:27:59 +01:00
rpcperms multi: improve readability of goroutine defers 2022-11-21 13:54:24 +01:00
scripts make+scripts+docs: update fuzzing script and make fuzz 2022-11-11 10:30:05 -06:00
shachain
signal
subscribe
sweep multi: improve readability of goroutine defers 2022-11-21 13:54:24 +01:00
ticker multi: improve readability of goroutine defers 2022-11-21 13:54:24 +01:00
tlv multi: update to latest version of btcd in submodules 2022-11-16 17:50:34 -08:00
tools golangci: update version to v1.50.1 2022-11-18 19:42:38 +08:00
tor multi: update to latest version of btcd in submodules 2022-11-16 17:50:34 -08:00
walletunlocker
watchtower multi: improve readability of goroutine defers 2022-11-21 13:54:24 +01:00
zpay32 multi: fix make lint 2022-11-18 20:48:23 +08:00
.editorconfig
.gitignore build: remove go-fuzz dependency and references 2022-11-11 10:44:37 -06:00
.golangci.yml golangci: update version to v1.50.1 2022-11-18 19:42:38 +08:00
.travis.yml
channel_notifier.go
chanrestore.go
config_builder.go config_builder: use correct birthday when creating watch-only wallet 2022-10-18 13:29:09 +02:00
config.go multi: fix make lint 2022-11-18 20:48:23 +08:00
dev.Dockerfile docker: correct comment concerning lnd build/install 2022-11-22 11:54:24 +00:00
doc.go
Dockerfile
go.mod Merge pull request #7209 from guggero/btcwallet-fund-psbt 2022-12-05 19:47:42 -08:00
go.sum Merge pull request #7209 from guggero/btcwallet-fund-psbt 2022-12-05 19:47:42 -08:00
intercepted_forward.go
LICENSE
lnd.go fix typo 2022-10-27 16:26:47 -07:00
log.go
logo.png
Makefile build: remove go-fuzz dependency and references 2022-11-11 10:44:37 -06:00
pilot.go
README.md
rpcserver_test.go
rpcserver.go Merge pull request #7227 from Crypt-iQ/tlv_change_to_p2p 2022-12-05 23:11:30 +01:00
sample-lnd.conf lnd: make MailboxDeliveryTimeout configurable 2022-11-03 18:29:08 +08:00
SECURITY.md lnd: add SECURITY.MD to bolster security entry in README 2022-10-17 12:05:15 -07:00
server_test.go
server.go fix typo liveliness 2022-11-25 21:52:00 +09:00
subrpcserver_config.go
witness_beacon_test.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 guides, articles, example applications and community resources can be found at: docs.lightning.engineering.

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.libera.chat
  • channel #lnd
  • webchat

Safety

When operating a mainnet lnd node, please refer to our operational safety guidelines. 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