std::string toBase58 (AccountID const& v) { return base58EncodeToken( TOKEN_ACCOUNT_ID, v.data(), v.size()); }
uint256 CanonicalTXSet::accountKey (AccountID const& account) { uint256 ret = beast::zero; memcpy ( ret.begin (), account.begin (), account.size ()); ret ^= salt_; return ret; }
boost::optional<AccountID> deprecatedParseBitcoinAccountID (std::string const& s) { auto const result = decodeBase58TokenBitcoin( s, TOKEN_ACCOUNT_ID); if (result.empty()) return boost::none; AccountID id; if (result.size() != id.size()) return boost::none; std::memcpy(id.data(), result.data(), result.size()); return id; }