Lightning Network Daemon
Go to file
2020-04-14 10:31:59 +02:00
.github
aezeed
autopilot autopilot: tidying up source code to fit to 80 cols 2020-03-30 16:36:13 +02:00
brontide multi: fix typos 2020-03-27 16:59:18 +08:00
buffer
build bulid: only return semantic version from Version() 2020-04-10 16:39:23 -07:00
cert
chainntnfs
chanacceptor
chanbackup
chanfitness
channeldb channeldb/channel: don't print ChanStatusDefault when it's not 2020-04-10 16:11:44 -07:00
channelnotifier channelnotifier: new ActiveLinkEvent for link startup notification 2020-03-27 08:49:46 -04:00
clock
cmd routing+routerrpc+lncli: rename MaxHtlcs to MaxShards 2020-04-14 10:31:59 +02:00
contractcourt multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
contrib
discovery multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
docker build+routerrpc+lncli: remove routerrpc conditional compilation 2020-03-31 21:41:22 +02:00
docs docs: add PSBT funding tutorial 2020-03-31 10:00:12 +02:00
feature
fuzz
htlcswitch multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
input input/size: assert witness size constants 2020-04-10 15:34:27 -07:00
invoices invoices: elminitate sleep from expiry watcher tests 2020-04-09 09:58:22 +02:00
keychain
lncfg
lnpeer multi: remove returned error from WipeChannel 2020-04-02 17:39:29 -07:00
lnrpc routing+routerrpc+lncli: rename MaxHtlcs to MaxShards 2020-04-14 10:31:59 +02:00
lntest routing+routerrpc+lncli: rename MaxHtlcs to MaxShards 2020-04-14 10:31:59 +02:00
lntypes
lnwallet input: pass input.Signature to multisig spend 2020-04-10 14:27:35 -07:00
lnwire multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
macaroons macaroons: use fast scrypt options in itest and unit tests 2020-03-24 09:52:39 +01:00
make build+routerrpc+lncli: remove routerrpc conditional compilation 2020-03-31 21:41:22 +02:00
mobile build+routerrpc+lncli: remove routerrpc conditional compilation 2020-03-31 21:41:22 +02:00
monitoring
multimutex multimutex: add hash mutex 2020-04-08 08:54:05 +02:00
nat
netann multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
peernotifier
pool
queue queue: detect close of incoming channel 2020-04-08 08:54:03 +02:00
record
routing routing+routerrpc+lncli: rename MaxHtlcs to MaxShards 2020-04-14 10:31:59 +02:00
scripts
shachain
signal
subscribe
sweep input/size: assert witness size constants 2020-04-10 15:34:27 -07:00
ticker
tlv
tor
walletunlocker
watchtower input/size: assert witness size constants 2020-04-10 15:34:27 -07:00
zpay32
.gitignore gitignore: add coverage.txt 2020-03-27 16:58:41 +08:00
.golangci.yml Merge pull request #4124 from halseth/travis-lint-concurrency 2020-03-31 16:09:50 -07:00
.travis.yml travis+lint+make: limit lint concurrency only on travis 2020-03-31 10:27:44 +02:00
breacharbiter_test.go
breacharbiter.go
chainparams.go
chainregistry.go multi: support config bitcoind fee estimate mode 2020-03-25 14:59:23 +08:00
chancloser_test.go
chancloser.go input: pass input.Signature to multisig spend 2020-04-10 14:27:35 -07:00
channel_notifier.go
chanrestore.go
config.go config: add WatchtowerKeyPath Tor option 2020-03-29 11:54:59 -04:00
doc.go
Dockerfile build+routerrpc+lncli: remove routerrpc conditional compilation 2020-03-31 21:41:22 +02:00
fundingmanager_test.go multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
fundingmanager.go multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
go.mod build: update to latest btcutil and psbt versions 2020-04-13 17:02:32 -07:00
go.sum build: update to latest btcutil and psbt versions 2020-04-13 17:02:32 -07:00
LICENSE
lnd.go lnd+server+watchtower: allow Standalone access to the tor controller 2020-03-29 12:36:54 -04:00
log.go lnrpc/verrpc: add Versioner RPC server 2020-04-10 16:39:23 -07:00
logo.png
Makefile make+build: compile go version into binary 2020-04-10 16:39:23 -07:00
mock.go multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
nursery_store_test.go
nursery_store.go
peer_test.go multi: return input.Signature from SignOutputRaw 2020-04-10 14:27:35 -07:00
peer.go peer: filter channels loaded into switch via whitelist 2020-04-13 15:19:59 -07:00
pilot.go
README.md
rpcserver.go routing+routerrpc+lncli: rename MaxHtlcs to MaxShards 2020-04-14 10:31:59 +02:00
sample-lnd.conf multi: support config bitcoind fee estimate mode 2020-03-25 14:59:23 +08:00
server_test.go
server.go Merge pull request #4172 from cfromknecht/witness-size 2020-04-10 16:45:04 -07:00
subrpcserver_config.go rpc: allow wumbo invoices 2020-04-09 19:02:08 -07:00
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