mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add static helpers to NewcoinAddress.
This commit is contained in:
@@ -89,6 +89,10 @@ public:
|
||||
return naNew;
|
||||
}
|
||||
|
||||
static std::string createHumanAccountPublic(const std::vector<unsigned char>& vPublic) {
|
||||
return createAccountPublic(vPublic).humanAccountPublic();
|
||||
}
|
||||
|
||||
//
|
||||
// Accounts Private
|
||||
//
|
||||
@@ -110,6 +114,19 @@ public:
|
||||
// Decrypt a message.
|
||||
std::vector<unsigned char> accountPrivateDecrypt(const NewcoinAddress& naPublicFrom, const std::vector<unsigned char>& vucCipherText) const;
|
||||
|
||||
static NewcoinAddress createAccountPrivate(const std::vector<unsigned char>& vPrivate)
|
||||
{
|
||||
NewcoinAddress naNew;
|
||||
|
||||
naNew.setAccountPrivate(vPrivate);
|
||||
|
||||
return naNew;
|
||||
}
|
||||
|
||||
static std::string createHumanAccountPrivate(const std::vector<unsigned char>& vPrivate) {
|
||||
return createAccountPrivate(vPrivate).humanAccountPrivate();
|
||||
}
|
||||
|
||||
//
|
||||
// Family Generators
|
||||
// Use to generate a master or regular family.
|
||||
|
||||
Reference in New Issue
Block a user