Seed::Seed (uint128 const& seed) { if (seed.size() != buf_.size()) LogicError("Seed::Seed: invalid size"); std::memcpy(buf_.data(), seed.data(), buf_.size()); }
// 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); }
uint256 keyFromSeed (uint128 const& seed) { return sha512Half_s(Slice( seed.data(), seed.size())); }