Verified contractExactMIT
OpensigRegistry
Address0x73ef7a3643acbc3d616bd5f7ee5153aa5f14db30
- Balance
0 ETH
- Transactions
25
- Compiler
solc 0.8.18
- Same code
Only this contract
Details
- Compiler
- solc 0.8.18+commit.87f61d96
- Language
- solidity
- Optimization
- No
- EVM version
- paris
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 16,764,681
- Creation transaction
- 0xfd36719b61…38564733bb
OpensigRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Opensig Registry
* @author Bubble Protocol
*
* EVM version of the OpenSig blockchain registry. Signatures can be registered once.
*/
contract OpensigRegistry {
/**
* @dev emitted each time a new published signature is registered.
*/
event Signature(uint256 time, address indexed signer, bytes32 indexed signature, bytes data);
/**
* @dev registry of published signatures.
*/
mapping (bytes32 => bool) private signatures;
/**
* @dev Registers the given signature and emits it along with the block timestamp and given data.
*/
function registerSignature(bytes32 sig_, bytes memory data_) public {
require(!signatures[sig_], "signature already published");
signatures[sig_] = true;
emit Signature(block.timestamp, msg.sender, sig_, data_);
}
/**
* @dev Returns true if the given signature has already been registered
*/
function isRegistered(bytes32 sig_) public view returns (bool) {
return signatures[sig_];
}
}
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "paris",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.