Asterizm Client Server Module
Where omnichain DeFi magic actually happens
Last updated
Where omnichain DeFi magic actually happens
Last updated
This module is implemented based on the off-chain and on-chain infrastructure of the cross-chain messaging protocol Asterizm.
The Chainspot Client Server module functions as an off-chain module within the Asterizm infrastructure, facilitating the transportation of payloads between blockchains. The most important role in processing and verifying cross-chain transactions plays an on-chain Asterizm client, that calculates and checks proofs from payload and hash this smart contract receives from Chainspot Client Server and Asteriz Relayers.
This design enables efficient cross-chain communication, allowing for seamless transactions while ensuring the integrity and reliability of the data being transferred.
The transaction flow within the Chainspot protocol, utilizing the Asterizm infrastructure, follows a secure and trustless model:
Payload Submission: The payload is sent to the immutable Chainspot smart contract, which inherits the abstract methods from Asterizm for sending and receiving data. The contract computes a hash of the payload directly.
Client Server Retrieval: The Chainspot client server retrieves the payload, while the hash is collected by the relayer servers of the Asterizm protocol.
Payload Execution in Destination Network: When the payload arrives at the destination network's immutable Chainspot smart contract, it undergoes a re-computation of the hash to ensure it matches the one received from the Asterizm relayer servers.
Validation and Execution: If the hashes match, the payload is executed, such as withdrawing funds from a DeFi position or claiming rewards. If they do not match, the transaction is deemed invalid.
This approach enhances security by leveraging a trustless infrastructure, ensuring the safety of user funds even if the off-chain module of Chainspot is compromised. This method emphasizes the reliability and integrity of transactions across different blockchain networks.