Skip to main content

CallVerification

The CallVerification library provides utility functions for verifying and hashing call sequences within the Atlas Protocol. It ensures the integrity of operation chains by generating unique hashes based on user and solver operations. This library is essential for maintaining consistent and secure execution flows in complex decentralized applications.

Functions

getCallChainHash

function getCallChainHash(
UserOperation memory userOp,
SolverOperation[] memory solverOps
) internal pure returns (bytes32 callSequenceHash)

Description

Generates a unique hash representing the sequence of user and solver operations. This hash is used to verify the integrity and order of operations within the protocol, ensuring that the execution flow remains consistent and tamper-proof.

Parameters

NameTypeDescription
userOpUserOperation memoryThe user operation to be included in the hash.
solverOpsSolverOperation[] memoryAn array of solver operations to be included in the hash.

Return Values

NameTypeDescription
callSequenceHashbytes32The resulting hash representing the call sequence.