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:
Nik Bougalis
2015-10-22 02:15:04 -07:00
parent e0af6ec567
commit 3974ddd8f7
116 changed files with 2445 additions and 4272 deletions

View File

@@ -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;