From e03f452a054e7c73d031f220a275aedbed5e7e0d Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 26 May 2012 02:52:03 -0700 Subject: [PATCH] Add createAccountID() to NewcoinAddress. --- src/NewcoinAddress.cpp | 9 +++++++++ src/NewcoinAddress.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/NewcoinAddress.cpp b/src/NewcoinAddress.cpp index 60de45be07..6f7d597db9 100644 --- a/src/NewcoinAddress.cpp +++ b/src/NewcoinAddress.cpp @@ -322,6 +322,15 @@ bool NewcoinAddress::accountPublicVerify(const uint256& uHash, const std::vector return bVerified; } +NewcoinAddress NewcoinAddress::createAccountID(const uint160& uiAccountID) +{ + NewcoinAddress na; + + na.setAccountID(uiAccountID); + + return na; +} + // // AccountPrivate // diff --git a/src/NewcoinAddress.h b/src/NewcoinAddress.h index a5eedb5f77..387ef614c1 100644 --- a/src/NewcoinAddress.h +++ b/src/NewcoinAddress.h @@ -65,6 +65,8 @@ public: bool setAccountID(const std::string& strAccountID); void setAccountID(const uint160& hash160In); + static NewcoinAddress createAccountID(const uint160& uiAccountID); + // // Accounts Public //