# 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="https://1849345700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgF1LuzRcRVxJ2tTkh299%2Fuploads%2FuU3jD35ur4FDec9aOkew%2FDownloadUML.svg?alt=media&#x26;token=4bd3d930-825c-4751-b2b4-215bf0205cfd" alt=""><figcaption></figcaption></figure>
