# Fraud Proofs Based on Bitcoin

Merlin Chain will introduce a fraud proof mechanism to further ensure data integrity and security. This mechanism involves two roles: the Prover and the Verifier. The implementation pathway is as follows:

1. **Pre-Signed Transactions**
   * Provers and Verifiers pre-sign a series of transactions to enable a challenge-response mechanism between them.
2. **Binary Circuit Conversion**
   * The Prover converts the program to be verified into a binary circuit containing many NAND logic gates to ensure data integrity and correctness.
   * Each logic gate has a leaf script defining and describing its behavior and function.
3. **Merkle Tree Submission**
   * The Prover places the leaf script of each logic gate in this large binary circuit into a Merkle Tree and submits the Merkle Root to a Taproot address.
4. **Verification Process**
   * The Verifier extracts the Merkle Root from the Taproot address and verifies its validity.
   * If the Verifier suspects any issues with the submitted Merkle Root, such as incorrect data or fraudulent behavior, they can initiate the challenge-response mechanism. The Verifier challenges the Prover to provide the corresponding leaf scripts or other proofs to verify the correctness of the Merkle Root.
   * The Prover must provide the necessary evidence to prove that the submitted Merkle Root is correct.
   * The Verifier checks these proofs to ensure their validity and the integrity of the data.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.merlinchain.io/merlin-docs/about-merlin/key-modules/fraud-proofs-based-on-bitcoin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
