remove accountFromSeed (#399)

This commit is contained in:
CJ Cobb
2022-11-14 13:20:42 -05:00
committed by GitHub
parent e825be24cc
commit 42cf55fd0e
2 changed files with 0 additions and 17 deletions

View File

@@ -347,20 +347,6 @@ canHaveDeliveredAmount(
return true;
}
std::optional<ripple::AccountID>
accountFromSeed(std::string const& account)
{
auto const seed = ripple::parseGenericSeed(account);
if (!seed)
return {};
auto const keypair =
ripple::generateKeyPair(ripple::KeyType::secp256k1, *seed);
return ripple::calcAccountID(keypair.first);
}
std::optional<ripple::AccountID>
accountFromStringStrict(std::string const& account)
{

View File

@@ -25,9 +25,6 @@ namespace RPC {
std::optional<ripple::AccountID>
accountFromStringStrict(std::string const& account);
std::optional<ripple::AccountID>
accountFromSeed(std::string const& account);
bool
isOwnedByAccount(ripple::SLE const& sle, ripple::AccountID const& accountID);