Lightning Network Daemon
Go to file
2019-06-12 09:37:26 -03:00
.github
aezeed
autopilot multi: replace manual CAS with sync.Once in component start/stop 2019-05-30 17:14:04 -03:00
brontide
buffer
build
chainntnfs chainntnfs/neutrinonotify: async call GetUtxo from RegisterSpendNtfn 2019-06-04 09:58:04 +02:00
chanbackup multi: replace manual CAS with sync.Once in component start/stop 2019-05-30 17:14:04 -03:00
channeldb channeldb: add todo for more detailed failure reasons 2019-06-05 12:41:55 +02:00
channelnotifier multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00
cmd cmd/lncli: expose pending input sweeps within UtxoSweeper over lncli 2019-06-06 03:23:19 -07:00
contractcourt Merge pull request #3026 from wpaulino/sweeper-fee-preference 2019-05-27 16:02:37 -07:00
contrib
discovery multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00
docker Merge pull request #3031 from neevai/patch-1 2019-06-06 13:12:27 -07:00
docs
htlcswitch multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00
input
invoices
keychain
lncfg
lnpeer
lnrpc multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00
lntest lnd_test: add testHoldInvoicePersistence 2019-06-07 16:53:32 +02:00
lntypes lntypes: add ZeroHash 2019-06-05 12:41:41 +02:00
lnwallet multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00
lnwire
macaroons
make lntest: move itest into package 2019-05-28 21:43:23 +02:00
multimutex
nat
netann multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00
pool
queue multi: replace manual CAS with sync.Once in several more modules 2019-06-12 09:37:26 -03:00
routing multi: make GetPaymentResult take payment hash 2019-06-07 16:53:32 +02:00
scripts scripts: update bitcoind version to 0.18 2019-05-23 18:08:58 -07:00
shachain
signal
subscribe
sweep sweep: expose pending input sweeps within the UtxoSweeper 2019-06-05 12:10:32 -07:00
ticker
tor
walletunlocker
watchtower watchtower/wtdb: add CSessionStatus field to ClientSession 2019-05-24 18:24:41 -07:00
zpay32
.gitignore lntest: move itest into package 2019-05-28 21:43:23 +02:00
.travis.yml travis: fix log upload regression after itest move 2019-06-04 15:03:54 -07:00
breacharbiter_test.go multi: address lingering TODO by no longer wiping out local HTLCs on remote close 2019-05-27 14:34:13 -07:00
breacharbiter.go multi: replace manual CAS with sync.Once in component start/stop 2019-05-30 17:14:04 -03:00
chainparams.go
chainregistry.go chainregistry+config: add neutrino flag to assert filter header chain 2019-06-06 16:05:12 -07:00
chancloser.go
channel_notifier.go
chanrestore.go
config.go chainregistry+config: add neutrino flag to assert filter header chain 2019-06-06 16:05:12 -07:00
doc.go
Dockerfile
fundingmanager_test.go lntest: move itest into package 2019-05-28 21:43:23 +02:00
fundingmanager.go multi: replace manual CAS with sync.Once in component start/stop 2019-05-30 17:14:04 -03:00
go.mod go.mod: update to latest neutrino to enable asserting filter hash. 2019-06-06 16:05:09 -07:00
go.sum go.mod: update to latest neutrino to enable asserting filter hash. 2019-06-06 16:05:09 -07:00
LICENSE
lnd.go Merge pull request #2704 from MDrollette/multiple-opts 2019-05-22 08:59:19 +02:00
log.go
logo.png
Makefile Merge pull request #1881 from halseth/neutrino-integration-tests 2019-05-27 16:09:44 -07:00
mock.go
nursery_store_test.go
nursery_store.go
peer_test.go
peer.go
pilot.go
README.md
release.sh
rpcserver.go lnrpc/walletrpc: expose pending input sweeps within UtxoSweeper over RPC 2019-06-05 12:10:33 -07:00
sample-lnd.conf
server_test.go
server.go routerrpc: convert sendpayment to async 2019-06-05 12:41:53 +02:00
subrpcserver_config.go lnrpc/walletrpc: expose pending input sweeps within UtxoSweeper over RPC 2019-06-05 12:10:33 -07:00
test_utils.go
utxonursery_test.go multi: support arbitrary client fee preferences to UtxoSweeper 2019-05-24 15:30:38 -07:00
utxonursery.go multi: support arbitrary client fee preferences to UtxoSweeper 2019-05-24 15:30:38 -07:00
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

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