Paper 2022/1286

ZEBRA: SNARK-based Anonymous Credentials for Practical, Private and Accountable On-chain Access Control

Deevashwer Rathee, University of California, Berkeley
Guru Vamsi Policharla, University of California, Berkeley
Tiancheng Xie, University of California, Berkeley
Ryan Cottone, University of California, Berkeley
Dawn Song, University of California, Berkeley
Abstract

Restricting access to certified users is not only desirable for many blockchain applications, it is also legally mandated for decentralized finance (DeFi) applications to counter malicious actors. Existing solutions, however, are either (i) non-private, i.e., they reveal the link between users and their wallets to the authority granting credentials, or (ii) they introduce additional trust assumptions by relying on a decentralized oracle to verify anonymous credentials (ACs). To remove additional trust in the latter approach, we propose verifying credentials on-chain in this work. We find that this approach has impractical costs with prior AC schemes, and propose a new AC scheme ZEBRA that crucially relies on zkSNARKs to provide efficient on-chain verification for the first time. In addition to the standard unlinkability property that provides privacy for users, ZEBRA also supports auditability, revocation, traceability, and theft detection, which adds accountability for malicious users and convenience for honest users to our access control solution. Even with these properties, ZEBRA reduces the gas cost incurred on the Ethereum Virtual Machine (EVM) by 14.3x when compared to Coconut [NDSS 2019], the state-of-the-art AC scheme for blockchains that only provides unlinkability. This improvement translates to a reduction in transaction fees from 176 USD to 12 USD on Ethereum in May 2023. Since 12 USD is still high for most applications, ZEBRA further drives down credential verification costs through batched verification. For a batch of 512 layer-1 and layer-2 wallets, the transaction fee on Ethereum is reduced to just 0.44 USD and 0.02 USD, respectively, which is comparable to the minimum transaction costs on Ethereum.

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Preprint.
Keywords
Anonymous CredentialszkSNARKsPermissionless BlockchainsDecentralized Finance (DeFi)Know-your-customer (KYC)
Contact author(s)
deevashwer @ berkeley edu
guruvamsip @ berkeley edu
tianc x @ berkeley edu
rcottone @ berkeley edu
dawnsong @ berkeley edu
History
2023-06-20: last of 2 revisions
2022-09-28: received
See all versions
Short URL
https://ia.cr/2022/1286
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2022/1286,
      author = {Deevashwer Rathee and Guru Vamsi Policharla and Tiancheng Xie and Ryan Cottone and Dawn Song},
      title = {{ZEBRA}: {SNARK}-based Anonymous Credentials for Practical, Private and Accountable On-chain Access Control},
      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1286},
      year = {2022},
      url = {https://eprint.iacr.org/2022/1286}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.