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 //