// VFALCO TODO Make this a generic utility function of some container class // std::string AccountState::createGravatarUrl (uint128 uEmailHash) { Blob vucMD5 (uEmailHash.begin (), uEmailHash.end ()); std::string strMD5Lower = strHex (vucMD5); boost::to_lower (strMD5Lower); // VFALCO TODO Give a name and move this constant to a more visible location. // Also shouldn't this be https? return str (boost::format ("http://www.gravatar.com/avatar/%s") % strMD5Lower); }
void RippleAddress::setSeed(uint128 hash128) { SetData(VER_FAMILY_SEED, hash128.begin(), 16); }