# zkRelayer

Messages in Way Network are sent and received under zkRelayer, transferring messages from subscribers to executors in a trustless way. zkRelayer uses a transparent zero knowledge proof technology, which provides a secure environment for users to transfer inter-chain messages.

## **Why is zkRelayer the key to interchain communication**

An excellent interchain communication scheme should have the following advantages:

1. Trustless security without any trust assumption;
2. Permissionless；
3. Decentralized；
4. Universal and General；
5. Extensible and Scalable;&#x20;
6. Efficient and Low Cost.

&#x20;Not all cross-chain solutions have these advantages, and the priorities of each are different. Users can tolerate slower cross-chain services, but also can tolerate higher cross-chain costs, and do not necessarily do a variety of data formats across the chain transfer immediately. But the first Trustless is really urgent and important. The earliest external verification mode is to use one chain to solve the communication problems of other public chains. From the perspective of methodology, it is a relatively cumbersome way, which is difficult to solve the communication problems between EVM and Non-EVM, POW, and POS. At the same time, the intermediate chain itself is a single centralized tool, and it is difficult to be "self-certified". That is, the external verification mode is neither decentralized nor Trustless.

However, LayerZero in native verification mainly emphasizes the role of the Sender and Receiver while weakening Relayer and Oracle. There are several problems. First, users must trust that Relayer and Oracle are not conspiring to do evil. Second, the user must trust that the protocol itself will not do any harm in the Relayer. That is, Trustless Security cannot be implemented in any of the current solutions. Single points of failure and local failures are like a bomb that never knows when to explode, placed in a naturally flawed cross-chain communication scheme.

zkRelayer is a zero-knowledge proof repeater for inter-chain communication designed by Way Network. Its advantage is that users do not need to trust any external third party, nor do they need to trust the protocol itself. As long as the mathematical and cryptographic proofs are complete and correct, the public can accept the system. Note that things have fundamentally changed here, and the user believes the "truth," not a person or an organization. People and organizations can err and do evil, but truth cannot. In the whole link, Chain A→ Sender→ zkRelayer → ZK Verifier→ Receiver→ Chain B, zkRelayer will surpass Sender and Receiver, which are two light clients, and become the core of the whole solution.

The core components of zkRelayer are ZK Prover and Message Aggregator. The zero-knowledge proof method used by ZK Prover of Way Network is ZK-Foaks proposed by Fox Tech, which has the advantage of being very fast, Recursive and Trustless, and the linear proof time and sub-linear verification time have reached the theoretical lower limit. ZK-FOAKS used in Relayer for inter-chain communication will ensure that the entire communication is Trustless, Efficient, and Low Cost.

zkRelayer is the key to interchain communication. With the help of zkRelayer, inter-chain communication will open a new chapter.

<figure><img src="https://1729545078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzdsj1Df53rixsY1DyDlr%2Fuploads%2F3pe6hxB16nHb0Qv2Icoh%2F%E6%88%AA%E5%B1%8F2023-01-07%2022.06.51.png?alt=media&#x26;token=eddb1db1-223c-4b98-8272-e5298ca9b63b" alt=""><figcaption><p>zkRelayer</p></figcaption></figure>
