Starlight: Payment channels on Stellar

Dan Robinson
Oct 25, 2018 · 2 min read
Image for post
Image for post

Interstellar is pleased to announce a preview release of Starlight, an implementation of bidirectional payment channels on Stellar. Payment channels allow parties to transact privately, instantly, and securely, while paying zero fees.

Normally, making a payment on a network like Stellar involves publishing details of the payment to all observers, paying a small fee, and waiting for the network to reach consensus and confirm the payment.

A payment channel, on the other hand, uses the network to “lock up” some funds for use by the channel’s participants. They may then pay each other these funds without further involving the network. Such payments are thus private, instant, and free.

The security of the channel is ensured by special information exchanged between the participants with each payment. This information includes signed Stellar transactions that are not published to the network until one party chooses to close the channel. When the channel is closed, these “settlement transactions” send to each party’s Stellar account their respective share of the balance, taking into account the channel’s history of payments back and forth.

Only the final settlement balances are revealed to the network when the channel closes. All other activity in the channel remains private and known only to its participants.

Starlight payment channels are analogous to the Bitcoin payment channels used in the Lightning Network. As we extend the Starlight project to support not only payment channels but also multi-hop payments across those channels, we plan to build in compatibility with other payment-channel networks, such as Lightning and Interledger.

A demonstration of the Starlight wallet

This preview release supports bilateral channels (channels with exactly two participants). It includes the Starlight payment channel software as well as a built-in wallet application. It allows transacting in lumens only (the native asset of the Stellar network). Future versions will support any asset issued on the Stellar network.

This is an early demo release, and you should expect bugs as well as frequent incompatible upgrades. Until we work out the kinks, Starlight connects only to the Stellar testnet, not the mainnet, to eliminate the risk of losing real funds to a software bug. Please do not attempt to use this application with the Stellar mainnet.

You can download the Starlight application, read the source code, and try the demo here. You can learn more about the Starlight payment channel protocol by reading the specification.

Thank you to Jeremy Rubin, Jed McCaleb, Nicolas Barry, David Mazières, Akash Khosla, and others for inventing and developing the designs for payment channels on the Stellar protocol.

Interstellar

Introducing Interstellar: making building and operating on…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store