Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : OpensigRegistry
// 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_]; } }
Please enter a contract address above to load the contract details and source code.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.