aboutsummaryrefslogtreecommitdiff
path: root/src/base58.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2017-09-19 16:49:52 -0700
committerPieter Wuille <[email protected]>2018-02-19 18:55:20 -0800
commit32e69fa0df8fc1cfc8ac4f8381bc54b8f33e1c38 (patch)
treecd00b30d48911729cef8bd436797177bd8ebeb33 /src/base58.h
parentMerge #10579: [RPC] Split signrawtransaction into wallet and non-wallet RPC c... (diff)
downloaddiscoin-32e69fa0df8fc1cfc8ac4f8381bc54b8f33e1c38.tar.xz
discoin-32e69fa0df8fc1cfc8ac4f8381bc54b8f33e1c38.zip
Replace CBitcoinSecret with {Encode,Decode}Secret
Diffstat (limited to 'src/base58.h')
-rw-r--r--src/base58.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/base58.h b/src/base58.h
index 39eb4eacc..c3dea060b 100644
--- a/src/base58.h
+++ b/src/base58.h
@@ -94,21 +94,8 @@ public:
bool operator> (const CBase58Data& b58) const { return CompareTo(b58) > 0; }
};
-/**
- * A base58-encoded secret key
- */
-class CBitcoinSecret : public CBase58Data
-{
-public:
- void SetKey(const CKey& vchSecret);
- CKey GetKey();
- bool IsValid() const;
- bool SetString(const char* pszSecret);
- bool SetString(const std::string& strSecret);
-
- CBitcoinSecret(const CKey& vchSecret) { SetKey(vchSecret); }
- CBitcoinSecret() {}
-};
+CKey DecodeSecret(const std::string& str);
+std::string EncodeSecret(const CKey& key);
template<typename K, int Size, CChainParams::Base58Type Type> class CBitcoinExtKeyBase : public CBase58Data
{