Created
June 18, 2018 19:58
-
-
Save ankh2054/4290c9c191dce2664d24760aee4579ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.20; | |
contract RegisterEos { | |
mapping (address => string) public keys; | |
event LogRegister (address user, string key); | |
function register(string key) { | |
assert(bytes(key).length <= 64); | |
keys[msg.sender] = key; | |
emit LogRegister(msg.sender, key); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment