> For the complete documentation index, see [llms.txt](https://docs.fairway.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fairway.global/developers/build-on-cardano/merkle-compliance-utxo/testing-and-deployment.md).

# Testing & Deployment

#### Local dev with Aiken

* Mock a Compliance UTXO.
* Simulate Merkle membership with a test leaf.
* Write unit tests for:
  * Membership valid/invalid
  * Sanctions epoch stale
  * KYC too old
  * Signature mismatch

#### Deploy flow

1. Deploy Compliance UTXO script.
2. Fairway Agent publishes Merkle root + epoch.
3. Integrate Policy Engine into validators.
4. Test epoch + timestamp logic.
5. Roll to preprod → mainnet.
