Skip to main navigation Skip to search Skip to main content

Programmable Payment Channels

  • Ranjit Kumaresan
  • , Duc V. Le
  • , Mohsen Minaei
  • , Srinivasan Raghuraman
  • , Yibin Yang
  • , Mahdi Zamani
  • Visa Inc
  • Massachusetts Institute of Technology
  • Georgia Institute of Technology

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

2 Scopus citations

Abstract

One approach for scaling blockchains is to create bilateral, offchain channels, known as payment/state channels, that can protect parties against cheating via onchain collateralization. While such channels have been studied extensively, not much attention has been given to programmability, where the parties can agree to dynamically enforce arbitrary conditions over their payments without going onchain. We introduce the notion of a programmable payment channel (PPC) that allows two parties to do exactly this. In particular, our notion of programmability enables the sender of a (unidirectional) payment to dynamically set the terms and conditions for each individual payment using a smart contract. Of course, the verification of the payment conditions (and the payment itself) happens offchain as long as the parties behave honestly. If either party violates any of the terms, then the other party can deploy the smart contract onchain to receive a remedy as agreed upon in the contract. In this paper, we make the following contributions:We formalize PPC as an ideal functionality FPPC in the universal composable framework, and build lightweight implementations of applications such as hash-time-locked contracts (HTLCs), “reverse HTLCs”, and rock-paper-scissors in the FPPC-hybrid model;We show how FPPC can be easily modified to capture the state channels functionality FSC (described in prior works) where two parties can execute dynamically chosen arbitrary two-party contracts (including those that take deposits from both parties) offchain, i.e., we show how to efficiently realize FSC in the FPPC-hybrid model;We implement FPPC on blockchains supporting smart contracts (such as Ethereum), and provide several optimizations to enable concurrent programmable transactions—the gas overhead of an HTLC PPC contract is < 100K, amortized over many offchain payments. We formalize PPC as an ideal functionality FPPC in the universal composable framework, and build lightweight implementations of applications such as hash-time-locked contracts (HTLCs), “reverse HTLCs”, and rock-paper-scissors in the FPPC-hybrid model; We show how FPPC can be easily modified to capture the state channels functionality FSC (described in prior works) where two parties can execute dynamically chosen arbitrary two-party contracts (including those that take deposits from both parties) offchain, i.e., we show how to efficiently realize FSC in the FPPC-hybrid model; We implement FPPC on blockchains supporting smart contracts (such as Ethereum), and provide several optimizations to enable concurrent programmable transactions—the gas overhead of an HTLC PPC contract is < 100K, amortized over many offchain payments. We note that our implementations of FPPC and FSC depend on the CREATE2 opcode which allows one to compute the deployment address of a contract (without having to deploy it).

Original languageEnglish
Title of host publicationApplied Cryptography and Network Security - 22nd International Conference, ACNS 2024, Proceedings
EditorsChristina Pöpper, Lejla Batina
PublisherSpringer Science and Business Media Deutschland GmbH
Pages51-73
Number of pages23
ISBN (Print)9783031547751
DOIs
StatePublished - 2024
Externally publishedYes
Event22nd International Conference on Applied Cryptography and Network Security, ACNS 2024 - Abu Dhabi, United Arab Emirates
Duration: Mar 5 2024Mar 8 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14585 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference22nd International Conference on Applied Cryptography and Network Security, ACNS 2024
Country/TerritoryUnited Arab Emirates
CityAbu Dhabi
Period03/5/2403/8/24

Keywords

  • Blockchain
  • Layer-2 channels
  • Programmable payments

Fingerprint

Dive into the research topics of 'Programmable Payment Channels'. Together they form a unique fingerprint.

Cite this