mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove RippleAddress:
The RippleAddress class was used to represent a number of fundamentally different types: account public keys, account secret keys, node public keys, node secret keys, seeds and generators. The class is replaced by the following types: * PublicKey for account and node public keys * SecretKey for account and node private keys * Generator for generating secp256k1 accounts * Seed for account, node and generator seeds
This commit is contained in:
@@ -585,11 +585,9 @@ private:
|
||||
if (bPeer && iCursor >= 2)
|
||||
strPeer = jvParams[iCursor].asString ();
|
||||
|
||||
RippleAddress raAddress;
|
||||
|
||||
if (! raAddress.setAccountPublic (strIdent) &&
|
||||
if (! parseBase58<PublicKey>(TokenType::TOKEN_ACCOUNT_PUBLIC, strIdent) &&
|
||||
! parseBase58<AccountID>(strIdent) &&
|
||||
! raAddress.setSeedGeneric (strIdent))
|
||||
! parseGenericSeed(strIdent))
|
||||
return rpcError (rpcACT_MALFORMED);
|
||||
|
||||
// Get info on account.
|
||||
@@ -602,11 +600,9 @@ private:
|
||||
|
||||
if (!strPeer.empty ())
|
||||
{
|
||||
RippleAddress raPeer;
|
||||
|
||||
if (! raPeer.setAccountPublic (strPeer) &&
|
||||
if (! parseBase58<PublicKey>(TokenType::TOKEN_ACCOUNT_PUBLIC, strPeer) &&
|
||||
! parseBase58<AccountID>(strPeer) &&
|
||||
! raPeer.setSeedGeneric (strPeer))
|
||||
! parseGenericSeed (strPeer))
|
||||
return rpcError (rpcACT_MALFORMED);
|
||||
|
||||
jvRequest["peer"] = strPeer;
|
||||
@@ -730,8 +726,6 @@ private:
|
||||
std::string strNode = jvParams[0u].asString ();
|
||||
std::string strComment = (jvParams.size () == 2) ? jvParams[1u].asString () : "";
|
||||
|
||||
RippleAddress naNodePublic;
|
||||
|
||||
if (strNode.length ())
|
||||
{
|
||||
Json::Value jvRequest;
|
||||
|
||||
Reference in New Issue
Block a user