mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-21 12:15:54 +00:00
remove accountFromSeed (#399)
This commit is contained in:
@@ -347,20 +347,6 @@ canHaveDeliveredAmount(
|
|||||||
return true;
|
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>
|
std::optional<ripple::AccountID>
|
||||||
accountFromStringStrict(std::string const& account)
|
accountFromStringStrict(std::string const& account)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ namespace RPC {
|
|||||||
std::optional<ripple::AccountID>
|
std::optional<ripple::AccountID>
|
||||||
accountFromStringStrict(std::string const& account);
|
accountFromStringStrict(std::string const& account);
|
||||||
|
|
||||||
std::optional<ripple::AccountID>
|
|
||||||
accountFromSeed(std::string const& account);
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
isOwnedByAccount(ripple::SLE const& sle, ripple::AccountID const& accountID);
|
isOwnedByAccount(ripple::SLE const& sle, ripple::AccountID const& accountID);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user