コード例 #1
0
ファイル: Seed.cpp プロジェクト: bachase/rippled
Seed::Seed (uint128 const& seed)
{
    if (seed.size() != buf_.size())
        LogicError("Seed::Seed: invalid size");
    std::memcpy(buf_.data(),
        seed.data(), buf_.size());
}
コード例 #2
0
ファイル: AccountState.cpp プロジェクト: BobWay/rippled
// 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);
}
コード例 #3
0
void RippleAddress::setSeed(uint128 hash128) {
    SetData(VER_FAMILY_SEED, hash128.begin(), 16);
}
コード例 #4
0
uint256 keyFromSeed (uint128 const& seed)
{
    return sha512Half_s(Slice(
        seed.data(), seed.size()));
}