Client
Contract user can send the payload for private execution through the send() function of the client and listen for event from the callback() function on the client contract.
User prepares the params and packed ExecutionInfo struct which client contract will then pass onto gateway contract for preExecution where it does payload hash sginature verrification and then logs out the new task which relayer picks up and sends to the private computational network, and then after the computation is done the relayer packs the logs from private compuation and call back the gateway with logs fro postExecution where the gateway contract after doing payload hash verification , result signature verification, packet signature verification, calls back the callback onclient with the computed result and client logs out the computed result.
Client Interface:
Data Structs:
For sending a transaction for computation you just have to do a send() call on the client like the below given example:
Last updated