Relayer and Oracle

<aside> 🤯 In the current iteration of LayerZero, an application has to decide for a single Relayer and Oracle they want to trust. As the system is open for third party Relayers and Oracles, an application can choose between different providers and switch at any time. This drastically reduces the impact of malicious Relayers and improves decentralization.As the system is open for third party Relayers and Oracles, an application can choose between different providers and switch at any time. This drastically reduces the impact of malicious Relayers and improves decentralization.

</aside>

LAYERZERO IS A USER APPLICATION (UA) CONFIGURABLE ON-CHAIN ENDPOINT THAT RUNS A ULN. LAYERZERO RELIES ON TWO PARTIES TO TRANSFER MESSAGES BETWEEN ON-CHAIN ENDPOINTS: THE ORACLE AND THE RELAYER.

When a UA sends a message from chain A to chain B, the message is routed through the endpoint on chain A. The endpoint then notifies the UA specified Oracle and Relayer of the message and it's destination chain. The Oracle forwards the block header to the endpoint on chain B and the Relayer then submits the transaction proof. The proof is validated on the destination chain and the message is forwarded to the destination address. Because LayerZero was built from the vision that all blockchain transactions should remain trustless, it's infrastructure focuses entirely on ensuring the validation of transactions by requiring both Oracle and Relayer to continuously corroborate these transactions. By doing so, it adds an additional layer of security, which Altitude uses to it's advantage.