{"push_id":814074631,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"7e8d1dc3de74368efa67a954fb9831c6a0a6b34a","before":"5e5e901453f92c30378136c23e1104ec4259df5c","commits":[{"sha":"8b6af9695b1812d314a1473a92f83e3863ca8807","author":{"email":"197640a3fd89d850ca4cac3b562aa6fd666b3375@gmail.com","name":"Ryan X. Charles"},"message":"friendly note","distinct":true,"url":"https://api.github.com/repos/dattnetwork/datt/commits/8b6af9695b1812d314a1473a92f83e3863ca8807"},{"sha":"7e8d1dc3de74368efa67a954fb9831c6a0a6b34a","author":{"email":"197640a3fd89d850ca4cac3b562aa6fd666b3375@gmail.com","name":"Ryan X. Charles"},"message":"create auth message when setting username\n\nOur current strategy for setting a username is that each user has a randomly\ngenerated mnemonic which should not be shared with any other user (unless\nsomeone's operating system entropy is broken). You can then sign to assert what\nyour name is. This does not guarantee global uniqueness of names - that is\nanother problem we will solve some other way. But in any case, using your\nmaster key, you can assert your name by creating an \"auth\" message. I have have\nthe auth message hooked up to the \"setUserName\" method, so that when you set\nyour username, it automatically creates an auth message, including a signature.\n\nTODO:\n- Much of logic for this needs to be moved out of dattcore and into core-user,\n  which will be a module that manages the user object and the db-user object,\n  which is the instance of the user saved in the db.\n- Some of the signing logic should move to msg-auth.\n\nAddresses #37 and #17","distinct":true,"url":"https://api.github.com/repos/dattnetwork/datt/commits/7e8d1dc3de74368efa67a954fb9831c6a0a6b34a"}]}