mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Add some LocalAccount helper functions. Add parseAccount.
This commit is contained in:
6
Wallet.h
6
Wallet.h
@@ -85,6 +85,7 @@ public:
|
||||
bool isLocked() const { return mRootPrivateKey==NULL; }
|
||||
|
||||
void setSeq(uint32 s) { mLastSeq=s; }
|
||||
uint32 getSeq(void) { return mLastSeq; }
|
||||
void setName(const std::string& n) { mName=n; }
|
||||
void setComment(const std::string& c) { mComment=c; }
|
||||
|
||||
@@ -117,6 +118,10 @@ public:
|
||||
uint160 getAddress() const;
|
||||
bool isLocked() const;
|
||||
|
||||
std::string getShortName() const;
|
||||
std::string getFullName() const;
|
||||
bool isIssued() const;
|
||||
|
||||
bool signRaw(Serializer::pointer);
|
||||
bool signRaw(Serializer::pointer, std::vector<unsigned char>& signature);
|
||||
bool checkSignRaw(Serializer::pointer data, std::vector<unsigned char>& signature);
|
||||
@@ -161,6 +166,7 @@ public:
|
||||
|
||||
void load(void);
|
||||
|
||||
LocalAccount::pointer parseAccount(const std::string& accountSpecifier);
|
||||
LocalAccount::pointer getLocalAccount(const uint160& famBase, int seq);
|
||||
LocalAccount::pointer getLocalAccount(const uint160& acctID);
|
||||
uint160 peekKey(const uint160& family, int seq);
|
||||
|
||||
Reference in New Issue
Block a user