当前位置: 首页 > 软件库 > Web3 > 开源货币/比特币 >

lightning-onion

授权协议 MIT License
开发语言 Python
所属分类 Web3、 开源货币/比特币
软件类型 开源软件
地区 不详
投 递 者 林俊英
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

lightning-onion

This repository houses an implementation of the LightningNetwork's onion routing protocol. The Lightning Networkuses onion routing to securely, and privately route HTLC's(Hash-Time-Locked-Contracts, basically a conditional payment) within thenetwork. (A full specification of the protocol can be found amongst thelighting-rfc repository, specifically withinBOLT#04.

The Lightning Network is composed of a series of "payment channels" which areessentially tubes of money whose balances can instantaneous be reallocatedbetween two participants. By linking these payment channels in a pair-wisemanner, a network of connect payment channels are created.

Within the Lightning Network,source-routing is utilized inorder to give nodes full control over the route their payment follows withinthe network. This level of control is highly desirable as with it, senders areable to fully specify: the total number of hops in their routes, the totalcumulative fee they'll pay to send the payment, and finally the totalworst-case time-lock period enforced by the conditional payment contract.

In line with Bitcoin's spirit of decentralization and censorship resistance, weemploy an onion routing scheme within the Lightningprotocol to prevent theability of participants on the network to easily censor payments, as theparticipants are not aware of the final destination of any given payment.Additionally, by encoding payment routes within a mix-net like packet, we areable to achieve the following security and privacy features:

  • Participants in a route don't know their exact position within the route
  • Participants within a route don't know the source of the payment, nor theultimate destination of the payment
  • Participants within a route aren't aware exactly how many otherparticipants were involved in the payment route
  • Each new payment route is computationally indistinguishable from any otherpayment route

Our current onion routing protocol utilizes a message format derived fromSphinx. In orderto cater Sphinx's mix-format to our specification application, we've made thefollowing modifications:

  • We've added a MAC over the entire mix-header as we have no use for SURB's(single-use-reply-blocks) in our protocol.
  • Additionally, the end-to-end payload to the destination has been removed inorder to cut down on the packet-size, and also as we don't currently have ause for a large message from payment sender to recipient.
  • We've dropped usage of LIONESS (as we don't need SURB's), and insteadutilize chacha20 uniformly throughout as a stream cipher.
  • Finally, the mix-header has been extended with a per-hop-payload whichprovides each hops with exact instructions as to how and where to forwardthe payment. This includes the amount to forward, the destination chain,and the time-lock value to attach to the outgoing HTLC.

For further information see these resources:

In the near future, this repository will be extended to also includes aapplication specific version ofHORNET.

  • 我只是在5.2方式下做了验证 我的系统:Linux vbtc 4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux 1、安装tor及配置参照 《tor隐藏服务配置(比特币).txt》 2、为持久的.onion地址创建隐藏服务(tor2)     /et

 相关资料
  • lightning 是由贝壳找房 DBA 团队开发和维护的一个 MySQL binlog 转换工具。 该工具可以将 MySQL ROW 格式的 binlog 转换为想要的 SQL,如:原始 SQL,闪回 SQL等。也可以对 binlog 进行统计分析,用于数据库异常分析。甚至可以通过定制 lua 插件进行二次开发,发挥无限的想象力。 应用 数据修改错误,需要快速回滚 (闪回) DELETE, UP

  • Lightning 是一个日程应用,可与 Mozilla Thunderbird 和 SeaMonkey 邮件客户端协同工作。可以让你管理多个日程,创建每日待办事宜,邀请朋友到某个事件,订阅公共日程等。

  • ng-lightning This library contains native Angular components and directives written from scratch in TypeScript using the Lightning Design System CSS framework. We are looking for community help to fin

  • ember-lightning Ember lightning hosting for https://github.com/ember-cli/ember-cli-deploy Docker support ember-lightning is also available as a docker container. To build the container run: docker bui

  • PytorchLightning Tutorials This is the Lightning Library - collection of Lightning related notebooks which are pulled back to the main repo as submodule and rendered inside the main documentations.The

  • Lightning Browser Speed, Simplicity, Security Download Master Branch Dev Branch Features Bookmarks History Multiple search engines (Google, Bing, Yahoo, StartPage, DuckDuckGo, etc.) Incognito mode Fol

相关阅读

相关文章

相关问答

相关文档