docs/book/general/resources/compliance-tool.md

46 lines
2.6 KiB
Markdown
Raw Permalink Normal View History

2023-01-28 11:53:42 +00:00
# Compliance tool
By design, everything is public on the blockchain, which can deprive users from their right to privacy. Anyone can have view everyone elses entire financial history. The right of privacy lies in the ability to have control over the information we provide and to whom we provide it.
2023-02-18 23:32:43 +00:00
To this extent, **the compliance tool enables users to prove the origin of their funds through selective disclourse.** Each note translates to a unique deposit, **this tool will issue a cryptographic proof of a deposit** allowing a third party to authethicate one's transactional profile.
2023-01-28 16:55:19 +00:00
![](/.gitbook/assets/capture-de-cran-2021-09-02-a-14.57.11.png)
2023-01-28 16:55:19 +00:00
## How to use the compliance tool?
2023-02-18 23:32:43 +00:00
With each deposit made through the application, a new note is generated by the protocol. This note is necessary to withdraw the deposited assets later on any withdrawal address. It is this same note that, if needed, allow users to generate a compliance Report to prove the origin of their assets.
2023-02-18 23:32:43 +00:00
_More information see section _[_Deposit / Withdraw_](deposit-withdraw.md)_._
2023-02-18 23:32:43 +00:00
To get a compliance report, the user solely need to copy the note, generated after the deposit, in the dedicated input.
2023-01-28 16:55:19 +00:00
### Before withdrawal
2023-02-18 23:32:43 +00:00
If the note wasn't spent yet (i.e. assets have still not been withdrawn), the compliance tool will only provide you with information about the deposit:
2023-02-18 23:32:43 +00:00
* Transaction hash of the deposit
* The source address
* The commitment hash
2023-02-18 23:32:43 +00:00
The commitment is the hashed random area of bytes generated at each deposit that is sent to anonymity pool to characterize the transaction.
2023-02-18 23:32:43 +00:00
![](../../.gitbook/assets/capture-de-cran-2021-09-02-a-15.07.01.png)
2023-02-18 23:32:43 +00:00
To can find more information about how Tornado Cash achieves privacy see section [_How does Tornado Cash work?_](../how-does-it-work.md)_._
2023-01-28 16:55:19 +00:00
### After withdrawal
2023-01-28 16:55:19 +00:00
If the note was spent (i.e. assets were withdrawn to a given address using the note), the compliance tool will complete the information above by adding:
2023-02-18 23:32:43 +00:00
* Transaction hash of the withdrawal
* The destination address
* The nullifier hash
2023-02-18 23:32:43 +00:00
The nullifier hash is a public input that is sent on-chain to get checked with the smart contract and authenthicate the presence of the note's secret in the Merkle tree for the withdrawal.
2023-02-18 23:32:43 +00:00
![](../../.gitbook/assets/capture-de-cran-2021-09-02-a-15.12.23.png)
2023-02-18 23:32:43 +00:00
Therefore, the tool allows users to re-link source and destination addresses in order to prove transaction history for assets transacted through Tornado Cash. The compliance report can be downloaded as a PDF format for accessible disclosure.
2023-02-18 23:32:43 +00:00
![](../../.gitbook/assets/capture-de-cran-2021-09-02-a-15.12.53.png)