Skip to content

Commit

Permalink
Add IDKIMRegistryExt
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed Oct 21, 2024
1 parent cacd779 commit eb3f4f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/UserOverrideableDKIMRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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
{
Expand Down
12 changes: 12 additions & 0 deletions packages/contracts/interfaces/IDKIMRegistryExt.sol
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit eb3f4f1

Please sign in to comment.