> For the complete documentation index, see [llms.txt](https://wixcash.gitbook.io/wixcash-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wixcash.gitbook.io/wixcash-docs/getting-started/how-it-works.md).

# How It Works

4.1 Deposit Phase

1. A user generates a **commitment** (hashed secret).
2. The user deposits **funds** into the mixer contract along with the commitment.
3. The deposit is recorded on the blockchain in a Merkle tree.

#### 4.2 Mixing Phase

1. The mixer contract introduces **fake transaction noise**.
2. Withdrawals are **time-delayed** to prevent transaction correlation.
3. Funds are pooled, making it impossible to link deposits to withdrawals.

#### 4.3 Withdrawal Phase

1. The user generates a **zero-knowledge proof** that confirms ownership of the deposited funds.
2. A **nullifier hash** is used to prevent double withdrawals.
3. Funds are sent to a **stealth address** that is not linked to the depositor.
