# Cross-chain Interactions

<figure><img src="/files/pXwFDiEx35BrIB7ZIfAX" alt=""><figcaption></figcaption></figure>

The diagram shows the interactions between the Main Registry, Proxy Registry and LayerZero, where

* **Main Registry** - maintains a main registry that stores verified identity data and transaction records.
* **Proxy Registry** - is a proxy registry on a proxy rollup that aims to integrate with the Identity Layer
* [**LayerZero**](https://layerzero.network/) - is a decentralized messaging protocol that facilitates cross-chain communication and verifiable message passing between Main Registry and Proxy Registry.

### **Core Interactions**

#### **Identity Layer <> Proxy Rollup**

* **Transaction Submission**: Users initiate transactions via dApps/smart contracts on the **Proxy Rollup**.
* **Transaction Aggregation**: The **Proxy Rollup** aggregates multiple transactions into a single batch to improve efficiency and reduce gas costs.
* **Verification and Finality**: The **Identity Layer** verifies the submitted proof using the LayerZero Messaging Protocol. This involves validating the cryptographic signatures and ensuring the integrity of the transactions. Once verified, the transactions are considered finalized on the **Identity Layer**, and any state changes resulting from these transactions are applied to the main Registry.

#### LayerZero **Messaging Protocol Communication**

* **Message Routing**: The LayerZero Messaging Protocol handles the routing of messages between the **Identity Layer** and the **Proxy Rollup**. It ensures that messages are delivered securely and reliably between the two networks.
* **Cross-Chain Communication**: The LayerZero Messaging Protocol allows the **Identity Layer** and the **Proxy Rollup** to communicate seamlessly, enabling interoperability and coordination between the two layers.
* **Protocol Security**: The LayerZero Messaging Protocol incorporates security mechanisms such as cryptographic signatures, message encryption, and replay protection to ensure the integrity and confidentiality of cross-chain messages.

The **Identity Layer** and Proxy Rollup interaction involves transaction submission, verification, and response. The LayerZero Messaging Protocol facilitates this interaction, enabling secure and efficient communication between heterogeneous blockchain networks.


---

# 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://snowball-mns.gitbook.io/snowball/decentralized-identity-layer/cross-chain-interactions.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.
