mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 19:56:00 +00:00
remove accountFromSeed (#399)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user