Lightning Network Daemon

Lightning网络守护进程(lnd) - 是Lightning Network节点的完整实现,目前部署在比特币测试网络 testnet3 上。(The Lightning Network Daemon (lnd) - is a complete implementation of a Lightning Network node and currently deployed on testnet3 - the Bitcoin Test Network.)

Github stars Tracking Chart

闪电网络守护进程(Lightning Network Daemon)

Lightning Network Daemon( lnd ) - 是 Lightning Network 节点的完整实现并且当前部署在 testnet3 上 -- 比特币测试网络。lnd有几个可插拔的后端链服务, 包括 btcd (全节点)和 neutrino (一个新的 实验Lightning客户端)。该项目的代码库使用 btcsuite 比特币库集,并在其中导出大量隔离的可重复使用的Lightning网络相关库。 在当前状态下,lnd 可以:

  • 创建频道
  • 关闭频道
  • 完全管理所有渠道状态(包括特殊情况!)。
  • 维护完整验证的+验证的渠道图。
  • 在网络中执行路径查找,被动地转发收款。
  • 通过网络发送传出onion-encrypted(洋葱加密)的付款
  • 更新广告费用表。
  • 自动频道管理( 自动驾驶仪 )。

Lightning 网络规范合规性(Lightning Network Specification Compliance)

lnd 完全符合 Lightning Network规范 (BOLTs)。 BOLT代表: Lightning技术基础。这些规范目前正由世界各地的几个实施者组成,包括lnd的开发者。 规范文档集以及我们对规范的实现仍在进行中。 话虽如此,lnd的BOLT合规的当前状态是:

  • [X] BOLT 1:基本协议
  • [X] BOLT 2:通道管理对等协议
  • [X] BOLT 3:比特币交易和脚本格式
  • [X] BOLT 4:洋葱路由协议
  • [X] BOLT 5:针对在链交易处理的建议
  • [X] BOLT 7:P2P节点和信道发现
  • [X] BOLT 8:加密并通过身份验证的传输
  • [X] BOLT 9:分配的功能标记
  • [X] BOLT 10:DNS引导和辅助节点位置
  • [X] BOLT 11:Lightning付款的发票协议

开发者资源

该守护进程被设计为尽可能开发人员友好,以便在lnd之上进行应用程序开发。 导出两个主RPC接口:HTTP REST API和 gRPC 服务。 导出的API尚未稳定,因此请注意:它们可能会在不久的将来发生巨大变化。

可以在 api.lightning.community 上找到自动生成的RPC API文档集。 可以在以下位置找到一组开发人员资源,包括讲座,文章和示例应用程序: dev.lightning.community

最后,我们还有一个活跃的 Slack ,协议开发人员,应用程序开发人员,测试人员和用户聚集在一起讨论lnd和Lightning的各个方面。

安装

为了从源代码构建,请参阅安装说明

Docker

要从Docker运行lnd,请参阅主要的Docker说明

IRC

进一步阅读

Overview

Name With Ownerlightningnetwork/lnd
Primary LanguageGo
Program languageGo (Language Count: 4)
PlatformLinux, Mac, Windows, Docker
License:MIT License
Release Count257
Last Release Nametlv/v1.2.5 (Posted on 2024-04-29 10:52:34)
First Release Namev0.1-alpha (Posted on )
Created At2016-01-16 08:19:33
Pushed At2024-05-04 13:03:03
Last Commit At2024-05-02 12:09:04
Stargazers Count7.5k
Watchers Count327
Fork Count2k
Commits Count16.6k
Has Issues Enabled
Issues Count3946
Issue Open Count519
Pull Requests Count3372
Pull Requests Open Count168
Pull Requests Close Count902
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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

To the top