Privacy-Protecting Crypto Airdrops with Zero Knowledge Proofs

Sam Ragsdale Posted March 27, 2022

The Ethereum blockchain is a public ledger that anyone can inspect.

Generally, all anyone needs to view the entire holdings and financial history associated with a given account is its public address. This makes the technology poorly suited for criminal enterprises, despite a common misconception to the contrary. This also means that crypto airdrops – the distribution of tokens to people’s wallets (that is, public addresses) – commonly expose lots of unnecessary information about the tokens’ recipients.

This is a problem. Crypto airdrops are a popular way for web3 projects to bootstrap network effects by incentivizing contributors, participants, and early adopters with the possibility of rewards. People should be able to airdrop tokens to their communities without asking anyone to doxx their financial histories.

So, I created a tool to enhance consumer protection, increase security, and protect people’s privacy in airdrops using zero knowledge proofs. This is a novel use of advanced cryptography that has practical applications for everyday users. Just because the default mode for blockchains is full transparency doesn’t mean everyone should have to abandon their privacy just to participate. Zero knowledge proofs enable people to selectively reveal specific pieces of information without giving up everything they’ve ever done.

The tool is especially useful in situations where the governors of a protocol wish to airdrop tokens to people according to their off-chain activities. One could imagine using the tool to reward Github open source contributors, Discord community participants, Twitter followers, Patreon patrons, and others – all while respecting the financial privacy of the receivers. Using the tool, an airdropper need not ask anyone to provide a public key – and thereby expose themselves – when participating in an airdrop. 

Here’s how the system works. Prospective airdrop recipients can provide a message (known as a “commitment”) over a public channel, like Telegram, Discord, Twitter, or Signal. The airdroppers then construct a Merkle tree by hashing together a tree of these commitments. The prospective recipients can then later claim their portion of the airdrop by providing a zero-knowledge Merkle proof that verifies they are the authors of a commitment within the tree, without revealing which. Claiming tokens in this manner mixes the recipients’ public addresses with those of all other users entitled to an airdrop, thereby protecting their anonymity.

In more detail, the steps are as follows.

  1. Users create a key and a secret, and concatenate hash(key + secret) to create the commitment.
  2. The commitment can then be transmitted across a public or private channel without leaking information.
  3. An admin assembles a Merkle tree of these commitments and deploys the smart contracts.
  4. Users can then redeem airdrop tokens with a zero-knowledge proof that they belong in the Merkle tree without revealing which commitment is associated with their public key.

Web2 has accustomed people to trading their data and privacy for free and easy-to-use internet services. Web3 offers an alternative. In the new model, people can regain control of their data and selectively reveal details about themselves at their own discretion. This tool more closely aligns the state of the art in airdropping with web3’s core philosophy.

This tool may not be necessary in all cases; indeed, all that privacy-protecting computation can rack up considerable gas fees. If everyone’s public keys are already known, airdropping is a straightforward process. But there are plenty of situations, like the examples of rewarding off-chain contributors while preserving their privacy, outlined above, where the tool’s use is warranted.

You can access the tools here.


Acknowledgements: The Iden3 team has put in some incredible work building out Circom and Snarkjs for the ecosystem to use to build zero-knowledge powered applications. Separately, some of the concepts, methods, tools also come from a simplified version of the original Tornado.cash protocol. 

Want More a16z Crypto?

Your go-to-guide to the next internet.

Learn More
Recommended For You

Expert News by a16z

We have built a network of experts who are deeply rooted in technology and how it’s shaping our future. Subscribe to our newsletters to receive their perspectives.

Views expressed in “posts” (including podcasts, videos, and social media) are those of the individual a16z personnel quoted therein and are not the views of a16z Capital Management, L.L.C. (“a16z”) or its respective affiliates. a16z Capital Management is an investment adviser registered with the Securities and Exchange Commission. Registration as an investment adviser does not imply any special skill or training. The posts are not directed to any investors or potential investors, and do not constitute an offer to sell — or a solicitation of an offer to buy — any securities, and may not be used or relied upon in evaluating the merits of any investment.

The contents in here — and available on any associated distribution platforms and any public a16z online social media accounts, platforms, and sites (collectively, “content distribution outlets”) — should not be construed as or relied upon in any manner as investment, legal, tax, or other advice. You should consult your own advisers as to legal, business, tax, and other related matters concerning any investment. Any projections, estimates, forecasts, targets, prospects and/or opinions expressed in these materials are subject to change without notice and may differ or be contrary to opinions expressed by others. Any charts provided here or on a16z content distribution outlets are for informational purposes only, and should not be relied upon when making any investment decision. Certain information contained in here has been obtained from third-party sources, including from portfolio companies of funds managed by a16z. While taken from sources believed to be reliable, a16z has not independently verified such information and makes no representations about the enduring accuracy of the information or its appropriateness for a given situation. In addition, posts may include third-party advertisements; a16z has not reviewed such advertisements and does not endorse any advertising content contained therein. All content speaks only as of the date indicated.

Under no circumstances should any posts or other information provided on this website — or on associated content distribution outlets — be construed as an offer soliciting the purchase or sale of any security or interest in any pooled investment vehicle sponsored, discussed, or mentioned by a16z personnel. Nor should it be construed as an offer to provide investment advisory services; an offer to invest in an a16z-managed pooled investment vehicle will be made separately and only by means of the confidential offering documents of the specific pooled investment vehicles — which should be read in their entirety, and only to those who, among other requirements, meet certain qualifications under federal securities laws. Such investors, defined as accredited investors and qualified purchasers, are generally deemed capable of evaluating the merits and risks of prospective investments and financial matters.

There can be no assurances that a16z’s investment objectives will be achieved or investment strategies will be successful. Any investment in a vehicle managed by a16z involves a high degree of risk including the risk that the entire amount invested is lost. Any investments or portfolio companies mentioned, referred to, or described are not representative of all investments in vehicles managed by a16z and there can be no assurance that the investments will be profitable or that other investments made in the future will have similar characteristics or results. A list of investments made by funds managed by a16z is available here: https://a16z.com/investments/. Past results of a16z’s investments, pooled investment vehicles, or investment strategies are not necessarily indicative of future results. Excluded from this list are investments (and certain publicly traded cryptocurrencies/ digital assets) for which the issuer has not provided permission for a16z to disclose publicly. As for its investments in any cryptocurrency or token project, a16z is acting in its own financial interest, not necessarily in the interests of other token holders. a16z has no special role in any of these projects or power over their management. a16z does not undertake to continue to have any involvement in these projects other than as an investor and token holder, and other token holders should not expect that it will or rely on it to have any particular involvement.

With respect to funds managed by a16z that are registered in Japan, a16z will provide to any member of the Japanese public a copy of such documents as are required to be made publicly available pursuant to Article 63 of the Financial Instruments and Exchange Act of Japan. Please contact compliance@a16z.com to request such documents.

For other site terms of use, please go here. Additional important information about a16z, including our Form ADV Part 2A Brochure, is available at the SEC’s website: http://www.adviserinfo.sec.gov.