// SPDX-License-Identifier: CC0-1.0 pragma solidity ^0.8.20; /// @dev Minimal subset of the ERC-8004 Validation Registry used by the KYA bridge. interface IERC8004ValidationRegistry { event ValidationRequest(address indexed validatorAddress, uint256 indexed agentId, string requestURI, bytes32 indexed requestHash); event ValidationResponse(address indexed validatorAddress, uint256 indexed agentId, bytes32 indexed requestHash, uint8 response, string responseURI, bytes32 responseHash, string tag); function getIdentityRegistry() external view returns (address identityRegistry); function validationRequest(address validatorAddress, uint256 agentId, string calldata requestURI, bytes32 requestHash) external; function validationResponse(bytes32 requestHash, uint8 response, string calldata responseURI, bytes32 responseHash, string calldata tag) external; function getValidationStatus(bytes32 requestHash) external view returns (address validatorAddress, uint256 agentId, uint8 response, bytes32 responseHash, string memory tag, uint256 lastUpdate); } /// @dev Minimal subset of the ERC-8004 Identity Registry (ERC-721) used here. interface IERC8004IdentityRegistry { function ownerOf(uint256 agentId) external view returns (address); function getApproved(uint256 agentId) external view returns (address); function isApprovedForAll(address owner, address operator) external view returns (bool); function getMetadata(uint256 agentId, string memory metadataKey) external view returns (bytes memory); function setMetadata(uint256 agentId, string memory metadataKey, bytes memory metadataValue) external; }