ZEBRA: Anonymous Credentials with Practical On-chain Verification and Applications to KYC in DeFi

AbstractZEBRA is an Anonymous Credential (AC) scheme, supporting auditability and revocation, that provides practical on-chain verification for the first time. It realizes efficient access control on permissionless blockchains while achieving both privacy and accountability. In all prior solutions, users either pay exorbitant fees or lose privacy since authorities granting access can map users to their wallets. Hence, ZEBRA is the first to enable DeFi platforms to remain compliant with imminent regulations without compromising user privacy. We evaluate ZEBRA and show that it reduces the gas cost incurred on the Ethereum Virtual Machine (EVM) by 11.8x when compared to Coconut [NDSS 2019], the state-of-the-art AC scheme for blockchains. This translates to a reduction in transaction fees from 94 USD to 8 USD on Ethereum in August 2022. However, 8 USD is still high for most applications, and ZEBRA further drives down credential verification costs through batched verification. For a batch of 512 layer-1 and layer-2 wallets, the gas cost is reduced by 35x and 641x on EVM, and the transaction fee is reduced to just 0.23 USD and 0.0126 USD on Ethereum, respectively. For perspective, these costs are comparable to the minimum transaction costs on Ethereum.
Year2022
Link to the paperhttps://eprint.iacr.org/2022/1286
Relevance scoreRelevant
Quality score4
LabelsAnonymous CredentialsImplementations

ZEBRA - Zero-knowledge (Anonymous), batched, revocable and auditable credentials

ZEBRA supports -

  1. Auditability - Authorized auditors identify the owner of a maliciously behaving user.
  1. Revocation - as credentials are often lost or stolen, and credentials of malicious users need to be revoked.
  1. On-chain verification - With the primary goal of minimizing the verification cost using ZK-SNARKs. ZEBRA further reduces the cost of credential verification through batched verification.

Note: Batched verification relies on an untrusted aggregator to verify many credential verification proofs and recursively prove their validity to the contract with a single SNARK proof, the cost of which is amortized across multiple users.

System Model

Source: This paper

Source: This paper

5. Batched Verification

Source: This paper

Batching solution works as follows with two layers of recursion -

Conclusion

  1. ZEBRA supports auditability and revocation
  1. ZEBRA relies on ZK-SNARKs for reducing the on-chain verification costs and batch credential verifications.

References

  1. ZEBRA: Anonymous Credentials with Practical On-chain Verification and Applications to KYC in DeFi, https://eprint.iacr.org/2022/1286.