hdac SDK
SDK for hdac blockchain development
bitcoinsecret.h
1 #ifndef BITCOINSECRET_H
2 #define BITCOINSECRET_H
3 
4 #include <structs/base58.h>
5 #include "key.h"
6 #include "keyshelper.h"
11 {
12 public:
13  void SetKey(const CKey& vchSecret);
14  CKey GetKey();
15  bool IsValid() const;
16  bool SetString(const char* pszSecret);
17  bool SetString(const std::string& strSecret);
18 
19  CBitcoinSecret(const CKey& vchSecret, const IPrivateKeyHelper& helper) :
20  CBase58Data(helper.addrChecksumValue()),
21  _privkeyPrefix(helper.privkeyPrefix()) {
22  SetKey(vchSecret);
23  }
24 
25  CBitcoinSecret(const IPrivateKeyHelper& helper) :
26  CBase58Data(helper.addrChecksumValue()),
27  _privkeyPrefix(helper.privkeyPrefix()) {}
28 
29 private:
30  const std::vector<unsigned char> _privkeyPrefix;
31 };
32 
33 #endif // BITCOINSECRET_H
Definition: base58.h:52
Definition: bitcoinsecret.h:10
Definition: keyshelper.h:30
Definition: key.h:29