How to Use DeFi Privately đľď¸
Dear Bankless nation,
Should we have the right to financial privacy?
The recent OFAC sanctions on Tornado Cash clearly show that governments donât want to support this. They want a purview into everything.
The good news is that despite the Tornado Cash sanctions, DeFi isn't so easily deterred. Everythingâs open.
Anyone can fork Tornadoâs code, and plenty of other privacy tools exist like Monero and Zcash.
Moreover, the innovation of DeFi privacy tools hasnât stopped.
The earliest DeFi privacy products like Monero, Zcash and Tornado let users make simple, private transactions from point A to B.
But the latest in DeFi privacy go further, letting you conduct these transactions on Ethereum, meaning you can bridge, stake and earn yield in an entirely private process.
Aztec Network achieves this. Itâs a new privacy layer for Ethereum.
Interested in learning more?
William wrote up a guide on how to use this new burgeoning Layer 2.
- Bankless team
What you do in DeFi should be your business, but right now anyone can see your on-chain actions since Ethereum transactions are totally public.
Cue Aztec Network, a privacy-focused zkRollup that lets you access L1 DeFi apps within a private L2. This Bankless tactic will show you how to use Aztec in order to access DeFi privately.
- Goal: Learn how to use Aztec Network
- Skill: Intermediate
- Effort: 30 minutes
- ROI: +4% APR via Aztecâs Lido integration
A Beginnerâs Guide to Aztec Network
âAztec has an offchain UTXO architecture that functions like cash. Shielding a token functionally means depositing it into Aztec's Ethereum smart contracts, which then communicate with Aztec's offchain UTXO state system to generate cash-like encrypted notes.
[...] When assets are deposited to Aztec, withdrawn from Aztec, sent within Aztec, or exchanged for other assets via Aztec Connect, the state tree is updated with new encrypted notes. Because no one can peer inside a note except its owner, user identity and account balance is fully preserved.â â the Aztec FAQ
What is Aztec Network
Aztec Network is an Ethereum scaling solution built with privacy as its lodestar.
At the heart of Aztec is its zero-knowledge âPLONKâ proving system, through which users of the zkRollup can access DeFi in anonymous fashion and with transactions that are ~100x more affordable than Ethereum L1 transactions.
What is zk.money?
zk.money is a private token transfer protocol built on top of the Aztec L2. In other words, itâs an overlay system that makes it simple to interact with the underlying zkRollup.
zk.money has helped facilitate over 250,000 private crypto transactions to date. Aztec currently has ~$2.8M in total value locked (TVL) across mainly ETH and DAI deposits, and itâs zk.money thatâs made those deposits possible.
What is Aztec Connect
Built as an extension of zk.money, Aztec Connect is a privacy bridge for Ethereum DeFi.
What makes this privacy bridge go âround are Aztec Connectâs special bridge contracts, which make it possible for users to interact with L1 DeFi projects from within the private L2.
This design is powerful, since DeFi projects donât have to port their code over and have separate distinct deployments like theyâd have to with other L2s. In this way, there is no liquidity fragmentation or trust fragmentation via Aztec Connect, as it lets you access L1 DeFiâs superior liquidity and proven smart contracts but in a shielded manner.
The basic mechanics of Aztec
When you make a deposit to shield crypto via zk.money, you receive encrypted notes on Aztec, e.g. zkETH or zkDAI.
If you send these notes to someone else whoâs on zk.money theyâll receive zkETH/zkDAI on Aztec, and if you send the notes to someone whoâs not on zk.money theyâll simply receive ETH/DAI on the Ethereum L1. In the latter case your send is also private, since the recipient will only see that the funds came from the Aztec smart contract and not your address specifically.
For now, users are limited to shielding a maximum of 5 ETH or 10k DAI per transaction. Whenever youâre ready to unshield your assets you can expect to have your withdrawal facilitated by Aztec within four hours, but if you raise your transaction fee enough you can shorten this process to around 10 minutes.
Itâs recommended not to withdraw to the same address that youâve made a deposit from. In the same vein, itâs best to stick to round nondescript withdrawal sums like 0.1 ETH, etc. For example, if you make a bunch of 0.069420 ETH deposits and withdrawals with the same address in quick succession, itâd become easy to deanonymize your address.
How to create a zk.money account
- Go to https://zk.money/ and press the Shield Now button
- On the next page click on MetaMask or WalletConnect and sign the ensuing transaction with your wallet to generate a zk.money account
- Pick your alias, i.e. account name, and then press Register â you will then sign two more transactions to generate your accountâs privacy and spending keys
- Next you will input the amount of ETH you want to fund your new Aztec account with, check that you understand the risks, and then press Shield
- When prompted submit your deposit transaction, and then sign the shield proof transaction â after this you can check to see when your deposit has settled at zk.money/balance
How to use Aztec with DeFi
- Go to https://zk.money/earn and sign in with your wallet
- Review the available opportunities, which are currently fixed yields on zkDAI via ElementFi or stETH staking yields via Lido, and press the Earn button your desired option
- On the next page input the amount of zkETH/zkDAI youâd like to deposit and then choose your transaction fee tier (Batched, Fast Track, or Instant)
- When youâre ready to proceed press Next and carry through with the deposit steps
- Once youâre in, keep track of your Aztec DeFi investments using the Earn Positions tab on the https://zk.money/balance page
Financial Privacy For Everyone
The blockchain space is in desperate need of more privacy tools, and toward that end the Aztec Network is one of Ethereumâs most promising up-and-coming tools.
To be sure, the Aztec system is still quite young and should be approached as what it currently is â an experiment â but if cryptoâs privacy frontier matters to you, then Aztec is a project worth exploring and supporting.
Going forward, look for the L2 to become increasingly decentralized and for more and more DeFi projects to embrace it.
And while this privacy zkRollup doesnât have any token plans for now, trying it out today may position you for an airdrop in the future if one does eventually materialize.
Action steps
- đĽ Create an account on zk.money
- đ Check out the Aztec docs and the Aztec block explorer
- đ´ See my previous tactic Top 5 ways to earn OP on Optimism if you missed it!