Contract
0xF6656646ECf7bD4100ec0014163F6CaD44eA1715
3
Contract Overview
Balance:
0 AVAX
AVAX Value:
$0.00
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Contract Source Code Verified (Exact Match)
Contract Name:
OpensigRegistry
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at snowtrace.io on 2023-04-02 */ // 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_]; } }
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"},{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"signature","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Signature","type":"event"},{"inputs":[{"internalType":"bytes32","name":"sig_","type":"bytes32"}],"name":"isRegistered","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sig_","type":"bytes32"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"registerSignature","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061055a806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806327258b221461003b578063a1eba4d01461006b575b600080fd5b610055600480360381019061005091906101da565b610087565b6040516100629190610222565b60405180910390f35b61008560048036038101906100809190610383565b6100b0565b005b600080600083815260200190815260200160002060009054906101000a900460ff169050919050565b60008083815260200190815260200160002060009054906101000a900460ff1615610110576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101079061043c565b60405180910390fd5b600160008084815260200190815260200160002060006101000a81548160ff021916908315150217905550813373ffffffffffffffffffffffffffffffffffffffff167f941876eaeb3c2aecc9762b7896052e2c4aa9cd0fa30da5f973b4a648a916700242846040516101849291906104f4565b60405180910390a35050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6101b7816101a4565b81146101c257600080fd5b50565b6000813590506101d4816101ae565b92915050565b6000602082840312156101f0576101ef61019a565b5b60006101fe848285016101c5565b91505092915050565b60008115159050919050565b61021c81610207565b82525050565b60006020820190506102376000830184610213565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61029082610247565b810181811067ffffffffffffffff821117156102af576102ae610258565b5b80604052505050565b60006102c2610190565b90506102ce8282610287565b919050565b600067ffffffffffffffff8211156102ee576102ed610258565b5b6102f782610247565b9050602081019050919050565b82818337600083830152505050565b6000610326610321846102d3565b6102b8565b90508281526020810184848401111561034257610341610242565b5b61034d848285610304565b509392505050565b600082601f83011261036a5761036961023d565b5b813561037a848260208601610313565b91505092915050565b6000806040838503121561039a5761039961019a565b5b60006103a8858286016101c5565b925050602083013567ffffffffffffffff8111156103c9576103c861019f565b5b6103d585828601610355565b9150509250929050565b600082825260208201905092915050565b7f7369676e617475726520616c7265616479207075626c69736865640000000000600082015250565b6000610426601b836103df565b9150610431826103f0565b602082019050919050565b6000602082019050818103600083015261045581610419565b9050919050565b6000819050919050565b61046f8161045c565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156104af578082015181840152602081019050610494565b60008484015250505050565b60006104c682610475565b6104d08185610480565b93506104e0818560208601610491565b6104e981610247565b840191505092915050565b60006040820190506105096000830185610466565b818103602083015261051b81846104bb565b9050939250505056fea2646970667358221220777fac70e3fc7a30d6b2c83ef7a2e43c2aad69ba957fe3938bb14ec8b618a1f364736f6c63430008120033
Deployed ByteCode Sourcemap
222:930:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1038:105;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;690:245;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1038:105;1095:4;1119:10;:16;1130:4;1119:16;;;;;;;;;;;;;;;;;;;;;1112:23;;1038:105;;;:::o;690:245::-;778:10;:16;789:4;778:16;;;;;;;;;;;;;;;;;;;;;777:17;769:57;;;;;;;;;;;;:::i;:::-;;;;;;;;;856:4;837:10;:16;848:4;837:16;;;;;;;;;;;;:23;;;;;;;;;;;;;;;;;;915:4;903:10;876:51;;;886:15;921:5;876:51;;;;;;;:::i;:::-;;;;;;;;690:245;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:90::-;1059:7;1102:5;1095:13;1088:21;1077:32;;1025:90;;;:::o;1121:109::-;1202:21;1217:5;1202:21;:::i;:::-;1197:3;1190:34;1121:109;;:::o;1236:210::-;1323:4;1361:2;1350:9;1346:18;1338:26;;1374:65;1436:1;1425:9;1421:17;1412:6;1374:65;:::i;:::-;1236:210;;;;:::o;1452:117::-;1561:1;1558;1551:12;1575:117;1684:1;1681;1674:12;1698:102;1739:6;1790:2;1786:7;1781:2;1774:5;1770:14;1766:28;1756:38;;1698:102;;;:::o;1806:180::-;1854:77;1851:1;1844:88;1951:4;1948:1;1941:15;1975:4;1972:1;1965:15;1992:281;2075:27;2097:4;2075:27;:::i;:::-;2067:6;2063:40;2205:6;2193:10;2190:22;2169:18;2157:10;2154:34;2151:62;2148:88;;;2216:18;;:::i;:::-;2148:88;2256:10;2252:2;2245:22;2035:238;1992:281;;:::o;2279:129::-;2313:6;2340:20;;:::i;:::-;2330:30;;2369:33;2397:4;2389:6;2369:33;:::i;:::-;2279:129;;;:::o;2414:307::-;2475:4;2565:18;2557:6;2554:30;2551:56;;;2587:18;;:::i;:::-;2551:56;2625:29;2647:6;2625:29;:::i;:::-;2617:37;;2709:4;2703;2699:15;2691:23;;2414:307;;;:::o;2727:146::-;2824:6;2819:3;2814;2801:30;2865:1;2856:6;2851:3;2847:16;2840:27;2727:146;;;:::o;2879:423::-;2956:5;2981:65;2997:48;3038:6;2997:48;:::i;:::-;2981:65;:::i;:::-;2972:74;;3069:6;3062:5;3055:21;3107:4;3100:5;3096:16;3145:3;3136:6;3131:3;3127:16;3124:25;3121:112;;;3152:79;;:::i;:::-;3121:112;3242:54;3289:6;3284:3;3279;3242:54;:::i;:::-;2962:340;2879:423;;;;;:::o;3321:338::-;3376:5;3425:3;3418:4;3410:6;3406:17;3402:27;3392:122;;3433:79;;:::i;:::-;3392:122;3550:6;3537:20;3575:78;3649:3;3641:6;3634:4;3626:6;3622:17;3575:78;:::i;:::-;3566:87;;3382:277;3321:338;;;;:::o;3665:652::-;3742:6;3750;3799:2;3787:9;3778:7;3774:23;3770:32;3767:119;;;3805:79;;:::i;:::-;3767:119;3925:1;3950:53;3995:7;3986:6;3975:9;3971:22;3950:53;:::i;:::-;3940:63;;3896:117;4080:2;4069:9;4065:18;4052:32;4111:18;4103:6;4100:30;4097:117;;;4133:79;;:::i;:::-;4097:117;4238:62;4292:7;4283:6;4272:9;4268:22;4238:62;:::i;:::-;4228:72;;4023:287;3665:652;;;;;:::o;4323:169::-;4407:11;4441:6;4436:3;4429:19;4481:4;4476:3;4472:14;4457:29;;4323:169;;;;:::o;4498:177::-;4638:29;4634:1;4626:6;4622:14;4615:53;4498:177;:::o;4681:366::-;4823:3;4844:67;4908:2;4903:3;4844:67;:::i;:::-;4837:74;;4920:93;5009:3;4920:93;:::i;:::-;5038:2;5033:3;5029:12;5022:19;;4681:366;;;:::o;5053:419::-;5219:4;5257:2;5246:9;5242:18;5234:26;;5306:9;5300:4;5296:20;5292:1;5281:9;5277:17;5270:47;5334:131;5460:4;5334:131;:::i;:::-;5326:139;;5053:419;;;:::o;5478:77::-;5515:7;5544:5;5533:16;;5478:77;;;:::o;5561:118::-;5648:24;5666:5;5648:24;:::i;:::-;5643:3;5636:37;5561:118;;:::o;5685:98::-;5736:6;5770:5;5764:12;5754:22;;5685:98;;;:::o;5789:168::-;5872:11;5906:6;5901:3;5894:19;5946:4;5941:3;5937:14;5922:29;;5789:168;;;;:::o;5963:246::-;6044:1;6054:113;6068:6;6065:1;6062:13;6054:113;;;6153:1;6148:3;6144:11;6138:18;6134:1;6129:3;6125:11;6118:39;6090:2;6087:1;6083:10;6078:15;;6054:113;;;6201:1;6192:6;6187:3;6183:16;6176:27;6025:184;5963:246;;;:::o;6215:373::-;6301:3;6329:38;6361:5;6329:38;:::i;:::-;6383:70;6446:6;6441:3;6383:70;:::i;:::-;6376:77;;6462:65;6520:6;6515:3;6508:4;6501:5;6497:16;6462:65;:::i;:::-;6552:29;6574:6;6552:29;:::i;:::-;6547:3;6543:39;6536:46;;6305:283;6215:373;;;;:::o;6594:419::-;6733:4;6771:2;6760:9;6756:18;6748:26;;6784:71;6852:1;6841:9;6837:17;6828:6;6784:71;:::i;:::-;6902:9;6896:4;6892:20;6887:2;6876:9;6872:18;6865:48;6930:76;7001:4;6992:6;6930:76;:::i;:::-;6922:84;;6594:419;;;;;:::o
Swarm Source
ipfs://777fac70e3fc7a30d6b2c83ef7a2e43c2aad69ba957fe3938bb14ec8b618a1f3
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.