All Projects → lightningnetwork → Lightning Onion

lightningnetwork / Lightning Onion

Licence: mit
Onion Routed Micropayments for the Lightning Network

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Lightning Onion

Lightning Rfc
Lightning Network Specifications
Stars: ✭ 1,224 (+312.12%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network, cryptography
Lnd
Lightning Network Daemon ⚡️
Stars: ✭ 5,623 (+1793.27%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network, cryptography
Ipchain
IPChain Core Wallet
Stars: ✭ 26 (-91.25%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Straks
A new decentralised, open source, community driven digital currency, focusing on e-commerce utility
Stars: ✭ 53 (-82.15%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network
Qtum
Qtum Core Wallet
Stars: ✭ 1,080 (+263.64%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Eclair
A scala implementation of the Lightning Network.
Stars: ✭ 892 (+200.34%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network
Aeternity
æternity: solving scalability problems by making sense of state-channels
Stars: ✭ 923 (+210.77%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Blockchain Papers
区块链相关的有价值的文献
Stars: ✭ 20 (-93.27%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (-47.14%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Lopp.net
Personal web site of Jameson Lopp
Stars: ✭ 174 (-41.41%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Zeus
A mobile Bitcoin/Lightning app for lnd, c-lightning, and Eclair node operators ⚡️
Stars: ✭ 175 (-41.08%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network
Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (-22.22%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network
Neutrino
Privacy-Preserving Bitcoin Light Client
Stars: ✭ 564 (+89.9%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network
Bitcoin
Bitcoin Core integration/staging tree
Stars: ✭ 60,211 (+20173.06%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Firmware
❄️ Firmware and simulator for Coldcard Hardware Wallet
Stars: ✭ 198 (-33.33%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Bitcoin Cryptography Library
Nayuki's implementation of cryptographic primitives used in Bitcoin.
Stars: ✭ 81 (-72.73%)
Mutual labels:  bitcoin, cryptocurrency, cryptography
Lncli Web
Light-weight web client for the lnd daemon written in NodeJS / Angular.
Stars: ✭ 181 (-39.06%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network
Bitcoin S
Bitcoin Implementation in Scala
Stars: ✭ 206 (-30.64%)
Mutual labels:  bitcoin, cryptocurrency, lightning-network
Cryptotrader
A cryptocurrency trader for all famous exchanges
Stars: ✭ 228 (-23.23%)
Mutual labels:  bitcoin, cryptocurrency
Php Bitcoinrpc
Fully unit-tested Bitcoin JSON-RPC client based on GuzzleHttp.
Stars: ✭ 231 (-22.22%)
Mutual labels:  bitcoin, cryptocurrency

lightning-onion

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

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

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

In line with Bitcoin's spirit of decentralization and censorship resistance, we employ an onion routing scheme within the Lightning protocol to prevent the ability of participants on the network to easily censor payments, as the participants are not aware of the final destination of any given payment. Additionally, by encoding payment routes within a mix-net like packet, we are able 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 the ultimate destination of the payment
  • Participants within a route aren't aware exactly how many other participants were involved in the payment route
  • Each new payment route is computationally indistinguishable from any other payment route

Our current onion routing protocol utilizes a message format derived from Sphinx. In order to cater Sphinx's mix-format to our specification application, we've made the following 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 in order to cut down on the packet-size, and also as we don't currently have a use for a large message from payment sender to recipient.
  • We've dropped usage of LIONESS (as we don't need SURB's), and instead utilize chacha20 uniformly throughout as a stream cipher.
  • Finally, the mix-header has been extended with a per-hop-payload which provides each hops with exact instructions as to how and where to forward the 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 a application specific version of HORNET.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].