mirror of
https://github.com/zkemail/zk-email-verify.git
synced 2026-01-08 05:04:04 -05:00
28 lines
714 B
Solidity
28 lines
714 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.12;
|
|
|
|
import "@openzeppelin/contracts/utils/Strings.sol";
|
|
import "forge-std/src/Test.sol";
|
|
import "forge-std/src/console.sol";
|
|
import "../interfaces/IERC7969.sol";
|
|
import "../DKIMRegistry.sol";
|
|
|
|
/// @title ECDSAOwnedDKIMRegistry
|
|
/// @notice A DKIM Registry that could be updated by predefined ECDSA signer
|
|
contract TestDKIMRegistry is Test {
|
|
DKIMRegistry public dkimRegistry;
|
|
address public signer;
|
|
|
|
constructor() {
|
|
dkimRegistry = new DKIMRegistry(msg.sender);
|
|
signer = msg.sender;
|
|
}
|
|
|
|
function test_setDKIM() public {
|
|
vm.prank(signer);
|
|
dkimRegistry.setDKIMPublicKeyHash("test.com", "a81273981273bce922");
|
|
vm.stopPrank();
|
|
}
|
|
}
|
|
|