Skip to content

Instantly share code, notes, and snippets.

@izqui
Created February 28, 2017 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izqui/082e77c33b21ce691ce7f378b989d43c to your computer and use it in GitHub Desktop.
Save izqui/082e77c33b21ce691ce7f378b989d43c to your computer and use it in GitHub Desktop.
KeybaseRegistryInterface.sol
contract KeybaseRegistryInterface {
// Lookup
function getAddress(string username) returns (address); // Lookup for an address given a username.
function getUsername(address ethAddress) returns (string username); // Reverse lookup of username for a given address
function myUsername() returns (string username); // Reverse lookup for sender
// Registering
function register(string username, address ethAddress) payable; // Starts registration for the provided address and username.
function registerSender(string username) payable; // Starts registration for tx sender for the provided username.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment