diff --git a/packages/contracts/UserOverrideableDKIMRegistry.sol b/packages/contracts/UserOverrideableDKIMRegistry.sol index 8bb5abb59..94ba375e8 100644 --- a/packages/contracts/UserOverrideableDKIMRegistry.sol +++ b/packages/contracts/UserOverrideableDKIMRegistry.sol @@ -2,7 +2,7 @@ pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; -import "./interfaces/IDKIMRegistry.sol"; +import "./interfaces/IDKIMRegistryExt.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol"; import {IERC1271} from "@openzeppelin/contracts/interfaces/IERC1271.sol"; @@ -17,7 +17,7 @@ import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Own Additionally, the public key can be revoked by the signature of either the user or the main authorizer alone. */ contract UserOverrideableDKIMRegistry is - IDKIMRegistry, + IDKIMRegistryExt, OwnableUpgradeable, UUPSUpgradeable { diff --git a/packages/contracts/interfaces/IDKIMRegistryExt.sol b/packages/contracts/interfaces/IDKIMRegistryExt.sol new file mode 100644 index 000000000..844220bb5 --- /dev/null +++ b/packages/contracts/interfaces/IDKIMRegistryExt.sol @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import "./IDKIMRegistry.sol"; + +interface IDKIMRegistryExt is IDKIMRegistry { + function isDKIMPublicKeyHashValid( + string memory domainName, + bytes32 publicKeyHash, + address authorizer + ) external view returns (bool); +}