mirror of
https://github.com/luxfi/eoa-contracts.git
synced 2026-11-02 13:38:44 +00:00
18 lines
776 B
Solidity
18 lines
776 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.17;
|
|
import {UserOperation} from "@account-abstraction/contracts/interfaces/UserOperation.sol";
|
|
|
|
// interface for modules to verify singatures signed over userOpHash
|
|
interface IModule {
|
|
/**
|
|
* @dev standard validateSignature for modules to validate and mark userOpHash as seen
|
|
* @param userOp the operation that is about to be executed.
|
|
* @param userOpHash hash of the user's request data. can be used as the basis for signature.
|
|
* @return sigValidationResult sigAuthorizer to be passed back to trusting Account, aligns with validationData
|
|
*/
|
|
function validateSignature(
|
|
UserOperation calldata userOp,
|
|
bytes32 userOpHash
|
|
) external returns (uint256 sigValidationResult);
|
|
}
|