Nothing Special   »   [go: up one dir, main page]

Skip to main content

Sprites and State Channels: Payment Networks that Go Faster Than Lightning

  • Conference paper
  • First Online:
Financial Cryptography and Data Security (FC 2019)

Part of the book series: Lecture Notes in Computer Science ((LNSC,volume 11598))

Included in the following conference series:

Abstract

Bitcoin, Ethereum and other blockchain-based cryptocurrencies, as deployed today, cannot support more than several transactions per second. Off-chain payment channels, a “layer 2” solution, are a leading approach for cryptocurrency scaling. They enable two mutually distrustful parties to rapidly send payments between each other and can be linked together to form a payment network, such that payments between any two parties can be routed through the network along a path that connects them.

We propose a novel payment channel protocol, called Sprites. The main advantage of Sprites compared with earlier protocols is a reduced “collateral cost,” meaning the amount of money \(\times \) time that must be locked up before disputes are settled. In the Lightning Network and Raiden, a payment across a path of \(\ell \) channels requires locking up collateral for \(\varTheta (\ell \varDelta )\) time, where \(\varDelta \) is the time to commit an on-chain transaction; every additional node on the path forces an increase in lock time. The Sprites construction provides a constant lock time, reducing the overall collateral cost to \(\varTheta (\ell + \varDelta ).\) Our presentation of the Sprites protocol is also modular, making use of a generic state channel abstraction. Finally, Sprites improves on prior payment channel constructions by supporting partial withdrawals and deposits without any on-chain transactions.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    The rational investor’s preference is to obtain and use money now rather than later.

  2. 2.

    The reference implementation can be found at https://github.com/amiller/sprites, Sprites: 0x85DF43619C04d2eFFD7e14AF643aef119E7c8414, Manager: 0x62E2D8cfE64a28584390B58C4aaF71b29D31F087.

  3. 3.

    The intermediary nodes in a path can also be incentivized to participate in the route if the sender allocates an extra fee that will be shared among them.

  4. 4.

    https://github.com/amiller/sprites.

  5. 5.

    Representative Lightning transaction https://www.blockchain.com/btc/tx/c9e6a9200607871e18fcfdd54dcb0da17ac8eca005101b82c8a807def9885d3e.

References

  1. Bentov, I., Kumaresan, R.: How to use bitcoin to design fair protocols. In: Garay, J.A., Gennaro, R. (eds.) CRYPTO 2014. LNCS, vol. 8617, pp. 421–439. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-662-44381-1_24

    Chapter  Google Scholar 

  2. Bentov, I., Kumaresan, R., Miller, A.: Instantaneous decentralized poker. In: Takagi, T., Peyrin, T. (eds.) ASIACRYPT 2017. LNCS, vol. 10625, pp. 410–440. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-70697-9_15. https://arxiv.org/abs/1701.06726

    Chapter  Google Scholar 

  3. Castro, M., Liskov, B.: Practical byzantine fault tolerance. In: OSDI (1999)

    Google Scholar 

  4. Decker, C., Wattenhofer, R.: A fast and scalable payment network with bitcoin duplex micropayment channels. In: Pelc, A., Schwarzmann, A.A. (eds.) SSS 2015. LNCS, vol. 9212, pp. 3–18. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-21741-3_1

    Chapter  Google Scholar 

  5. Dziembowski, S., Eckey, L., Faust, S., Malinowski, D.: PERUN: virtual payment channels over cryptographic currencies (2017)

    Google Scholar 

  6. hashxp: September 2018. https://hashxp.org/lightning

  7. Eyal, I., Gencer, A.E., Sirer, E.G., van Renesse, R.: Bitcoin-NG: a scalable blockchain protocol. In: NSDI (2016)

    Google Scholar 

  8. Khalil, R., Gervais, A.: Revive: rebalancing off-blockchain payment networks. In: ACM CCS (2017). http://eprint.iacr.org/2017/823

  9. Kokoris-Kogias, E., Jovanovic, P., Gailly, N., Khoffi, I., Gasser, L., Ford, B.: Enhancing bitcoin security and performance with strong consistency via collective signing. In: USENIX Security Symposium (2016)

    Google Scholar 

  10. Kumaresan, R., Bentov, I.: How to use bitcoin to incentivize correct computations. In: CCS (2014)

    Google Scholar 

  11. Luu, L., Narayanan, V., Baweja, K., Zheng, C., Gilbert, S., Saxena, P.: SCP: a computationally-scalable byzantine consensus protocol for blockchains. In: CCS (2016)

    Google Scholar 

  12. Malavolta, G., Moreno-Sanchez, P., Kate, A., Maffei, M., Ravi, S.: Concurrency and privacy with payment-channel networks (2017)

    Google Scholar 

  13. McCorry, P., Bakshi, S., Bentov, I., Meiklejohn, S., Miller, A.: Pisa: arbitration outsourcing for state channels (2018). https://www.cs.cornell.edu/~iddo/pisa.pdf

  14. Moreno-Sanchez, P., Kate, A., Maffei, M.: Silentwhispers: enforcing security and privacy in decentralized credit networks (2016)

    Google Scholar 

  15. Network, R.: (2015). http://raiden.network/

  16. Nolan, T.: Alt chains and atomic transfers, May 2013. bitcointalk.org

  17. Pass, R., Shi, E.: Hybrid consensus: efficient consensus in the permissionless model. Cryptology ePrint Archive, Report 2016/917 (2016). http://eprint.iacr.org/2016/917

  18. Peterson, D.: Sparky: a lightning network in two pages of solidity. http://www.blunderingcode.com/a-lightning-network-in-two-pages-of-solidity

  19. Poon, J., Dryja, T.: The bitcoin lightning network: scalable off-chain instant payments (2016). https://lightning.network/lightning-network-paper.pdf

  20. Prihodko, P., Zhigulin, S., Sahno, M., Ostrovskiy, A., Osuntokun, O.: Flare: an approach to routing in lightning network. Whitepaper (2016). http://bitfury.com/content/5-white-papers-research/whitepaper_flare_an_approach_to_routing_in_lightning_network_7_7_2016.pdf

  21. Roos, S., Moreno-Sanchez, P., Kate, A., Goldberg, I.: Settling payments fast and private: efficient decentralized routing for path-based transactions. In: NDSS (2018)

    Google Scholar 

  22. Sivaraman, V., Venkatakrishnan, S.B., Alizadeh, M., Fanti, G., Viswanath, P.: Routing cryptocurrency with the spider network. arXiv preprint arXiv:1809.05088 (2018)

  23. Spilman, J.: Anti DoS for tx replacement (2013). https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2013-April/002433.html

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Andrew Miller .

Editor information

Editors and Affiliations

Appendix

Appendix

1.1 A.1 Acknowledgements

This work is funded in part by NSF grants CNS-1801321 and CNS-1617676 and a gift from DTR Foundation.

1.2 A.2 Further Discussion

Supporting Fees. Participants who act as intermediaries in a payment path contribute their resources to provide a useful service to the sender and recipient. The intermediaries’ collateral is tied up for the duration of the payment, but the sender and recipient would not be able to complete their payment otherwise. Therefore the sender may provide a fee along with the payment, which can be claimed by each intermediary upon completion of the payment. To achieve this, each conditional payment along the path should include a slightly less amount than the last; the difference can be pocketed by the intermediary upon completion. The following example provides a \(\$1\) fee to each intermediary, \(P_2\) and \(P_3\).

figure d

1.3 A.3 Details of the Linked Payments Construction

In the body of the paper (Sect. 4) we presented the update function and auxiliary smart contracts (Figure 5) for the state channel protocol \(\varPi _{\mathsf {Linked}}\). In Fig. 6 we define the local behavior of the parties.

Fig. 6.
figure 6

Construction for \(\varPi _{\mathsf {Linked}}\) with the \(\varPi _{\mathsf {State}}\) primitive. (Local portion only. See Fig. 5 for the smart contract portion.) Portions of the update function \(U_{{\mathsf {Linked}},\$X}\) that are delegated to the underlying \(U_{\mathsf {Pay}}\) update function (Fig. 5) are in bold to help readability.

1.4 A.4 Local Protocol for the State Channel Construction

In the body of the paper (Figure 3) we presented the smart contract portion of the state channel protocol. In Fig. 7 we define the local behavior of the parties.

Reaching Agreement Off-Chain. The main role of the local portion of the protocol is to reach agreement on which inputs to process next. To facilitate this we have one party, \(P_1\), act as the leader. The leader receives inputs from each party, batches them, and then requests signatures from each party on the entire batch. After receiving all such signatures, the leader sends a \(\mathtt {COMMIT}\) message containing the signatures to each party. This resembles the “fast-path” case of a fault tolerant consensus protocol [3]; However, in our setting, there is no need for a view-change procedure to guarantee liveness when the leader fails; instead the fall-back option is to use the on-chain smart contract.

Fig. 7.
figure 7

Construction of a general purpose state channel parameterized by transition function U. (Local portion only, for the smart contract see Fig. 3.)

Rights and permissions

Reprints and permissions

Copyright information

© 2019 International Financial Cryptography Association

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Miller, A., Bentov, I., Bakshi, S., Kumaresan, R., McCorry, P. (2019). Sprites and State Channels: Payment Networks that Go Faster Than Lightning. In: Goldberg, I., Moore, T. (eds) Financial Cryptography and Data Security. FC 2019. Lecture Notes in Computer Science(), vol 11598. Springer, Cham. https://doi.org/10.1007/978-3-030-32101-7_30

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-32101-7_30

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-32100-0

  • Online ISBN: 978-3-030-32101-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics