Receive event
Last updated
Last updated
After the event was made on the SRC chain and verified by the Signer, the last step of the protocol is receiving that event on the DEST chain.
We can trust that event happened on the SRC chain if proof of this event was made by the correct signer. is responsible for this validation.
In our example, to receive the event on the DEST chain, we have to call receiveMyMessage
method on the MsgReceiver
.
After the signature maker was recovered, signersRegistry
checked if the signer was whitelisted. That's why all public and private Signers
have to be whitelisted before producing any event proofs.
If signersRegistry
approved that the signer was whitelisted, it means that we can trust this event. Therefore, do any steps required by your dApp.
In our example, it just emits the MyMessageReceived
event.
You can check, that was made the same way as Signer did while making the signature. It's very important to recover the signature with the same eventHash.
See the example of the receiveMyMessage
transaction on the .