# Anonymity Mining

<figure><img src="https://679099605-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtJYowcoUd8dyfwpjiol%2Fuploads%2F0I6smiA8sTESjiPXIAo9%2FTornadoCashMining.webp?alt=media&#x26;token=a9cc0c98-f4d9-4817-80e6-bb0d7c21e4ff" alt=""><figcaption></figcaption></figure>

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.

*Tornado Cash anonymity mining program began on December 18, 2020 and has ended on December 18, 2021.*

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.

<figure><img src="https://miro.medium.com/v2/resize:fit:720/format:webp/0*MmSDS1FXo6QEJTix" alt=""><figcaption></figcaption></figure>

### Anonymity points (AP) <a href="#anonymity-points-ap" id="anonymity-points-ap"></a>

*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*

One of the community members created the resource of a mining spreadsheet 13 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. **It is highly recommended to view this resource and plan one’s course of action before expecting to earn yield.** At the bottom of the spreadsheet, you can view each pool by selecting the associated tab.

### How to earn AP <a href="#how-to-earn-ap" id="how-to-earn-ap"></a>

1\. Decide what amount and asset to deposit by selecting it through the dropdown menu, before clicking on "Connect" and "Deposit".

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2FAC8cbypPZumvqVfJgQH8%2F1.png?alt=media&#x26;token=c91cca3b-ca09-4d1d-94d3-a7939a2d7617" alt=""><figcaption></figcaption></figure>

2\. Take a record of your depositing note and back it up safely, **do not share this with anyone or risk losing your deposit and reward.**

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2Flh94x8fpe1ObanyFdUKn%2F2.png?alt=media&#x26;token=2e075ca4-29c0-4627-ae39-9836c766ff52" alt=""><figcaption></figcaption></figure>

3\. Generate the proof and submit the transaction.

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.

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2F2CKpIFa37h8tVt9MT1a2%2F4.png?alt=media&#x26;token=e7937ae9-79d9-4937-a6c5-645bdf836c3a" alt=""><figcaption></figcaption></figure>

*Notes that are active (not withdraw) are known as unspent notes.*

### How to claim AP <a href="#how-to-claim-ap" id="how-to-claim-ap"></a>

1\. First you must create a mining account and store those credentials on-chain for easy recovery (requires a transaction), **like depositing notes, you should never share your mining recovery key with anyone** 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\_.\_

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2F6eNNRnymk3kziBfCKkvz%2F11.png?alt=media&#x26;token=e0a38a23-5265-4953-9835-d1d325b4cbe3" alt=""><figcaption></figcaption></figure>

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 (*to maintain a deposit’s anonymity it is always advised to use a relayer*), this will bring the note into a spent state.

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2F6HKIef6GJgbNBp1IgCK9%2F22.png?alt=media&#x26;token=ffe4dee5-4a47-4c17-a6e5-5448d84ecbaf" alt=""><figcaption></figcaption></figure>

**Remember to still keep your depositing notes a secret even after withdrawing, as they still retain the ability to redeem AP.**

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2FZhfCHxTBJpmzMNSDw1O5%2F23.png?alt=media&#x26;token=38f6f396-3795-4ec9-b883-2391b376f7a9" alt=""><figcaption></figcaption></figure>

3\. Visit the mining route of the application and enter your spent note, you may be faced with one of the following situations.

* **The ability to claim your spent note**: 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.

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2Fy98KbLnkKJRy1oWIdNBz%2F33.png?alt=media&#x26;token=6b4b3577-8015-4c61-bd2d-934bd0e0ee1a" alt=""><figcaption></figcaption></figure>

* **The inability to claim a spent note:** *“Warning: The note is not yet ready for anonymity mining. You can wait few days before trying again"* - This means the Merkle trees are out of sync and require a transaction to be updated.

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2Fq6hfUskw1H2imuckS2hI%2F1.png?alt=media&#x26;token=ec052abe-d81e-4ff2-af17-24dacc840598" alt=""><figcaption></figcaption></figure>

Updating the trees can be an expensive process, **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**. If you want to view your event relative to the current pending batches. Click the *“Show mining note information"* hyperlink, here you can also pay the transaction fees to sync the tree relative to your withdrawal through the Update trees button.

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2FZrqfHsemSI8rGl4HRFLf%2F2.png?alt=media&#x26;token=10aa8762-b78d-4244-8aad-233619958f03" alt=""><figcaption></figcaption></figure>

### How to exchange AP <a href="#how-to-exchange-ap" id="how-to-exchange-ap"></a>

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.

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2FyEQqfglqFx8vEWNuSj4P%2F1.png?alt=media&#x26;token=c9573183-fe89-4f4a-b368-d03e73aaede2" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://2754767501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW3U990Qef6L7w7eSM7Iw%2Fuploads%2FDvTy8f4WOS1O86veh5DG%2F2.png?alt=media&#x26;token=647946a0-6c79-49ab-9013-e349bbd3f96f" alt=""><figcaption></figcaption></figure>

3\. If all steps were followed correctly, TORN will be transferred to the address of preference provided in step 2 of this section.

### Closing remarks <a href="#closing-remarks" id="closing-remarks"></a>

Congratulations, you have successfully participated in anonymity mining!It is always recommended to plan when deciding to mine any of the anonymity sets, users should also be aware that the [AP/TORN rate](https://duneanalytics.com/luckyallocator/Daily-AP-TORN-Rate-v2) is dependent on supply and demand, therefore, **the more people that claim the higher the rate becomes, and the less people that claim the lower it becomes**.For more information on anonymity mining, seek the following resources:

* ​[Tornado.Cash governance proposal article](https://tornado-cash.medium.com/tornado-cash-governance-proposal-a55c5c7d0703)​
* ​[Tornado.Cash anonymity mining optimisation article](https://tornado-cash.medium.com/gas-price-claimed-anonymity-mining-a-victim-but-now-everyone-can-claim-ap-5441aaa32a1a)​​
