Relayer
The relayer is probably the simplest component of the HYC stack. It is a simple server that possesses a private key to an account. All that the server does is expose an API for HYC users to send their ZK proofs, the server then validates them and sends a withdrawal transaction on-chain using the ZK proof.
The relayer is rewarded with a fee from transactions to cover its gas and operations costs.
It is impossible for the relayer to cheat by, let's say, taking the ZK proof and actually withdrawing all funds to their account. That is because the ZK proofs are bound to a final recipient, a relayer account and a predefined fee rate.
Decentralization
At the initial steps of the project, HYC developers will run a relayer and front end for the project. However, all code is open sourced and anyone can run their own relayer instances, front end instances or even provide access to the dApp through integrations using the SDK - it is possible to add HYC to mobile apps, discord servers, other DeFi applications, etc.
Last updated