# Public EVM Gateway Architecture

The public EVM gateway sits at the heart of SecretPath. It coordinates the tasks (stored in the Task stuct and saved in a `mapping(uint256 => Task) public tasks`). It verifies the inputs when sending in encrypted Payloads in `send` and verifies the incoming callback packet in `postExecution`. A UML diagram of the upgradeable Gateway contract, together with it's dependencies, is shown below.

<figure><img src="/files/0O42BtNmzxr7oDUDrqdP" alt=""><figcaption></figcaption></figure>


---

# 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.scrt.network/secret-network-documentation/confidential-computing-layer/ethereum-evm-developer-toolkit/basics/cross-chain-messaging/secretpath/public-evm-gateway-architecture.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.
