GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - decred/dcrlnd: Decred Lightning Network Daemon ⚡️

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

11,088 Commits
11,088 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
aezeed
aezeed
 
 
amp
amp
 
 
assets
assets
 
 
automation
automation
 
 
autopilot
autopilot
 
 
batch
batch
 
 
blockcache
blockcache
 
 
brontide
brontide
 
 
btcwalletcompat
btcwalletcompat
 
 
buffer
buffer
 
 
build
build
 
 
cert
cert
 
 
chainntnfs
chainntnfs
 
 
chainreg
chainreg
 
 
chainscan
chainscan
 
 
chanacceptor
chanacceptor
 
 
chanbackup
chanbackup
 
 
chanfitness
chanfitness
 
 
channeldb
channeldb
 
 
channelnotifier
channelnotifier
 
 
clock
clock
 
 
cluster
cluster
 
 
cmd
cmd
 
 
contractcourt
contractcourt
 
 
contrib
contrib
 
 
discovery
discovery
 
 
docker
docker
 
 
docs
docs
 
 
feature
feature
 
 
funding
funding
 
 
fuzz
fuzz
 
 
healthcheck
healthcheck
 
 
htlcswitch
htlcswitch
 
 
input
input
 
 
internal
internal
 
 
invoices
invoices
 
 
keychain
keychain
 
 
kvdb
kvdb
 
 
labels
labels
 
 
lncfg
lncfg
 
 
lnpeer
lnpeer
 
 
lnrpc
lnrpc
 
 
lntest
lntest
 
 
lntypes
lntypes
 
 
lnwallet
lnwallet
 
 
lnwire
lnwire
 
 
macaroons
macaroons
 
 
make
make
 
 
mobile
mobile
 
 
monitoring
monitoring
 
 
multimutex
multimutex
 
 
nat
nat
 
 
netann
netann
 
 
neutrinocache
neutrinocache
 
 
peer
peer
 
 
peernotifier
peernotifier
 
 
pool
pool
 
 
queue
queue
 
 
record
record
 
 
routing
routing
 
 
rpcperms
rpcperms
 
 
scripts
scripts
 
 
shachain
shachain
 
 
signal
signal
 
 
subscribe
subscribe
 
 
sweep
sweep
 
 
ticker
ticker
 
 
tlv
tlv
 
 
tor
tor
 
 
walletunlocker
walletunlocker
 
 
watchtower
watchtower
 
 
zpay32
zpay32
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
channel_notifier.go
channel_notifier.go
 
 
chanrestore.go
chanrestore.go
 
 
config.go
config.go
 
 
config_builder.go
config_builder.go
 
 
dcrlnd.go
dcrlnd.go
 
 
doc.go
doc.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
ipc.go
ipc.go
 
 
lnd.go
lnd.go
 
 
log.go
log.go
 
 
logo.png
logo.png
 
 
pilot.go
pilot.go
 
 
rpcserver.go
rpcserver.go
 
 
rpcserver_test.go
rpcserver_test.go
 
 
sample-dcrlnd.conf
sample-dcrlnd.conf
 
 
server.go
server.go
 
 
server_test.go
server_test.go
 
 
subrpcserver_config.go
subrpcserver_config.go
 
 
witness_beacon.go
witness_beacon.go
 
 

Repository files navigation

dcrlnd

Build Status MIT License GoDoc

Lightning Network Daemon

The Decred Lightning Network Daemon (dcrlnd) - is a complete implementation of a Lightning Network node and currently deployed on testnet3 - the Decred Test Network.

dcrlnd currently requires a dcrd backing full node to perform the required chain services. The project's codebase uses the existing set of decred libraries, and also exports a large set of isolated re-usable Lightning Network related libraries within it. In the current state dcrlnd 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).

LND Porting Status

dcrlnd is currently developed as a port of the original lnd lightning network daemon with the changes required to make it work on the Decred network and with Decred software.

Some of the most important (though by no means exhaustive) diffrences between lnd and dcrlnd include:

  • Import Paths
  • Full node integration API
  • Transaction serialization layout
  • Transaction witness format and signature process
  • Wallet integration API

Lightning Network Specification Compliance

dcrlnd aims to conform 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 dcrlnd. 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 dcrlnd'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 dcrlnd. 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.

Most of the automatically generated documentation for the LND RPC APIs is applicable to dcrlnd and can be found at api.lightning.community. The developer resources including talks, articles, and example applications are also relevant to dcrlnd and can be found at: dev.lightning.community.

For questions and discussions, all Decred communities can be found at:

https://decred.org/community

Installation

Knowledgeable users may use the quickstart guide.

For more detailed instructions, please see the installation instructions.

The operation modes document lists how dcrlnd may connect to the Decred network to run its operations.

And a sample config file with annotated options is also available here.

Quick Simnet Network

A shell script that uses tmux to setup a 3-node simnet network (along with appropriate dcrd and dcrwallet nodes) is available in contrib/dcrlnd-tmux-3node.sh.

Note that this requires having dcrlnd and dcrlncli in your $PATH variable, as well as compatible versions of dcrd and dcrwallet.

Docker

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

Safety

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

Security

Please see the security policy.

Further reading

  • Step-by-step send payment guide with docker
  • Contribution guide

About

Decred Lightning Network Daemon ⚡️

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

35 stars

Watchers

12 watching

Forks

23 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.