Skip to content

Instantly share code, notes, and snippets.

@ankh2054
Created June 18, 2018 19:58
Show Gist options
  • Save ankh2054/4290c9c191dce2664d24760aee4579ad to your computer and use it in GitHub Desktop.
Save ankh2054/4290c9c191dce2664d24760aee4579ad to your computer and use it in GitHub Desktop.
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