<p>Anonymity mining is an incentive to increase the level of privacy in any coin-joining or coin-mixing protocols by rewarding participants anonymity points (AP) dependent on how long they hedge their assets in a pool.</p>
<blockquote><em>Tornado Cash anonymity mining program began on December 18, 2020 and has ended on December 18, 2021.</em></blockquote>
<p>Individuals deposit to any one of the anonymity pools that are supported (ETH, WBTC, DAI or cDAI) and are rewarded a fixed amount of AP per block, over the period their deposit remains in the pool. These points can then be exchanged for TORN once claimed.</p>
<h3 id="anonymity-points-ap">Anonymity points (AP)</h3>
<p><em>Readers should be aware some lower denomination deposits at the time of writing, do not produce a positive return due to the gas costs required to withdraw, redeem and exchange anonymity points</em></p>
<p>One of the community members created the resource of <a href="https://torn.community/t/anonymity-mining-spreadsheet/720" target="_blank" rel="noopener noreferrer">a mining spreadsheet 13</a> that helps calculate annual percentage yield’s (APY’s) for each pool and each denomination set within, through estimating the fees required to claim a reward. <strong>It is highly recommended to view this resource and plan one’s course of action before expecting to earn yield.</strong> At the bottom of the spreadsheet, you can view each pool by selecting the associated tab.</p>
<h3 id="how-to-earn-ap">How to earn AP</h3>
<p>1\. Decide what amount and asset to deposit by selecting it through the dropdown menu, before clicking on "Connect" and "Deposit".</p>
<figure><img src="/uploads/imported-3c1d1c63171b3ef7227d121d.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p>2\. Take a record of your depositing note and back it up safely, <strong>do not share this with anyone or risk losing your deposit and reward.</strong></p>
<figure><img src="/uploads/imported-231580198fdff01627d4699c.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p>3\. Generate the proof and submit the transaction.</p>
<p>4\. Your deposit should now be viewable on the bottom of the page, you can track how much AP it earns here; remember the longer your deposit remains active, the more AP you earn.</p>
<figure><img src="/uploads/imported-d32fa0cbbb188830656c3b02.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p><em>Notes that are active (not withdrawn) are known as “unspent notes.</em></p>
<h2 id="how-to-claim-ap">How to claim AP</h2>
<p>1\. First you must create a mining account and store those credentials on-chain for easy recovery (requires a transaction), <strong>like depositing notes, you should never share your mining recovery key with anyone</strong> and ensure to back it up in a safe place. This feature is not supported by hardware wallets so it’s encouraged to store the information as presented</p>
<figure><img src="/uploads/imported-2ba1d4c73041eaef111da56c.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p>2\. Take an active deposit through providing an unspent note and withdraw to an address of preference and decide whether to use a relayer or not (<em>to maintain a deposit’s anonymity it is always advised to use a relayer</em>), this will bring the note into a “spent state.</p>
<figure><img src="/uploads/imported-5c11d384670ef94e506ac50d.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p><strong>Remember to still keep your depositing notes a secret even after withdrawing, as they still retain the ability to redeem AP.</strong></p>
<figure><img src="/uploads/imported-9814624bce486e27d4b1ac88.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p>3\. Visit the mining route of the application and enter your spent note, you may be faced with one of the following situations.</p>
<ul><li><strong>The ability to claim your spent note</strong>: click the “Claim reward button and submitting the transaction either by using a relayer or not, once confirmed your AP balance should update to reflect the action.</li></ul>
<figure><img src="/uploads/imported-12a5c08f29f693339d88fcb2.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<ul><li><strong>The inability to claim a spent note:</strong> <em>“Warning: The note is not yet ready for anonymity mining. You can wait few days before trying again</em> - This means the Merkle trees are out of sync and require a transaction to be updated.</li></ul>
<figure><img src="/uploads/imported-839f6741d65b494d23988190.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p>Updating the trees can be an expensive process, <strong>it is recommended that users with small deposits wait for the larger miners to update the trees, this could take anywhere from a few days to a week</strong>. If you want to view your event relative to the current pending batches. Click the <em>“Show mining note information</em> hyperlink, here you can also pay the transaction fees to sync the tree relative to your withdrawal through the “Update trees button.</p>
<figure><img src="/uploads/imported-df3485e483bb4c6da9034684.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<h3 id="how-to-exchange-ap">How to exchange AP</h3>
<p>1\. Navigate over to the “Swap tab on the mining page which can be accessed through the second navigation bar from the top of the page.</p>
<figure><img src="/uploads/imported-0472ded87d11fda3696045b8.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p>2\. Enter the amount of AP requested to exchange or select the “Maximum option to convert your active balance. Below this input, information regarding the current AP/TORN rate and reward output will be displayed. Provide an address of preference to receive the reward, finalise by generating the proof and submitting the transaction through a relayer or not.</p>
<figure><img src="/uploads/imported-45b1fb2ffede7102a7d66342.png" alt="" loading="lazy"><figcaption></figcaption></figure>
<p>3\. If all steps were followed correctly, TORN will be transferred to the address of preference provided in step 2 of this section.</p>
<p>Congratulations, you have successfully participated in anonymity mining!</p>
<p>It is always recommended to plan when deciding to mine any of the anonymity sets, users should also be aware that the <a href="https://duneanalytics.com/luckyallocator/Daily-AP-TORN-Rate-v2" target="_blank" rel="noopener noreferrer">AP/TORN rate</a> is dependent on supply and demand, therefore, <strong>the more people that claim the higher the rate becomes, and the less people that claim the lower it becomes</strong>.</p>
<p>For more information on anonymity mining, seek the following resources:</p>
<ul><li>​<a href="https://tornado-cash.medium.com/tornado-cash-governance-proposal-a55c5c7d0703" target="_blank" rel="noopener noreferrer">Tornado.Cash governance proposal article</a>​</li><li>​<a href="https://tornado-cash.medium.com/gas-price-claimed-anonymity-mining-a-victim-but-now-everyone-can-claim-ap-5441aaa32a1a" target="_blank" rel="noopener noreferrer">Tornado.Cash anonymity mining optimisation article</a>​</li><li>​<a href="https://torn.community/t/anonymity-mining-technical-overview/15" target="_blank" rel="noopener noreferrer">Anonymity mining explained (technical)</a>​</li></ul>
