{
    "Function": "validateProof",
    "File": "contracts/auth/AxelarAuthWeighted.sol",
    "Parent Contracts": [
        "contracts/interfaces/IAxelarAuthWeighted.sol",
        "contracts/interfaces/IAxelarAuth.sol",
        "contracts/Ownable.sol",
        "contracts/interfaces/IOwnable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "_validateSignatures",
        "abi.encode()",
        "keccak256(bytes)",
        "revert InvalidOperators()",
        "abi.decode()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function validateProof(bytes32 messageHash, bytes calldata proof) external view returns (bool currentOperators) {\n        (address[] memory operators, uint256[] memory weights, uint256 threshold, bytes[] memory signatures) = abi.decode(\n            proof,\n            (address[], uint256[], uint256, bytes[])\n        );\n\n        bytes32 operatorsHash = keccak256(abi.encode(operators, weights, threshold));\n        uint256 operatorsEpoch = epochForHash[operatorsHash];\n        uint256 epoch = currentEpoch;\n\n        if (operatorsEpoch == 0 || epoch - operatorsEpoch >= OLD_KEY_RETENTION) revert InvalidOperators();\n\n        _validateSignatures(messageHash, operators, weights, threshold, signatures);\n\n        currentOperators = operatorsEpoch == epoch;\n    }"
}