Paper 2021/1249

Flexible Anonymous Transactions (FLAX): Towards Privacy-Preserving and Composable Decentralized Finance

Wei Dai

Abstract

Decentralized finance (DeFi) refers to interoperable smart contracts running on distributed ledgers offering financial services beyond payments. Recently, there has been an explosion of DeFi applications centered on Ethereum, with close to a hundred billion USD in total assets deposited as of September 2021. These applications provide financial services such as asset management, trading, and lending. The wide adoption of DeFi has raised important concerns, and among them is the key issue of privacy---DeFi applications store account balances in the clear, exposing financial positions to public scrutiny. In this work, we propose a framework of anonymous and composable DeFi on public-state smart contract platforms. First, we define a cryptographic primitive called a flexible anonymous transaction (FLAX) system with two distinctive features: (1) transactions authenticate additional information known as ``associated data'' and (2) transactions can be applied flexibly via a parameter that is determined at processing time, e.g. during the execution time of smart contracts. Second, we design an anonymous token standard (extending ERC20), which admits composable usage of anonymous funds by other contracts. Third, we demonstrate how the FLAX token standard can realize privacy-preserving variants of the Ethereum DeFi ecosystem of today---we show contract designs for asset pools, decentralized exchanges, and lending, covering the largest DeFi projects to date including Curve, Uniswap, Dai stablecoin, Aave, Compound, and Yearn. Lastly, we provide formal security definitions for FLAX and describe instantiations from existing designs of anonymous payments such as Zerocash, RingCT, Quisquis, and Zether.

Note: Added a new section on FLAX in Ethereum compatibility mode (Section 5).

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Preprint. Minor revision.
Keywords
Cryptocurrenciessmart contractsdecentralized finance
Contact author(s)
weidai @ eng ucsd edu
me @ wdai us
History
2022-03-18: last of 2 revisions
2021-09-20: received
See all versions
Short URL
https://ia.cr/2021/1249
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2021/1249,
      author = {Wei Dai},
      title = {Flexible Anonymous Transactions (FLAX): Towards Privacy-Preserving and Composable Decentralized Finance},
      howpublished = {Cryptology ePrint Archive, Paper 2021/1249},
      year = {2021},
      note = {\url{https://eprint.iacr.org/2021/1249}},
      url = {https://eprint.iacr.org/2021/1249}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.