- E4FA4700D17D7DA955E3EE980C4A4315E44655DAFDEC0A4657278E174FA92A187DE81C121D30B85A86FD0FE4334867CA73090142C58A3D51083F4EBE7DD4B35C
+ 1F4664B4C9784CC26DF8A5CDCBFF6523E4E3CC5E0BAF7940896F757D8D88F1D82110BD6E5CDE43C17D989BDF8FB48500D4FB1706E87F5DCA29B7DC9A0C0585F7
bitcoin/src/base58.h
(18 . 6)(18 . 7)
5 #include <string>
6 #include <vector>
7 #include "bignum.h"
8 #include "key.h"
9
10 static const char* pszBase58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
11
(315 . 4)(316 . 32)
13 }
14 };
15
16 /** A base58-encoded secret key */
17 class CBitcoinSecret : public CBase58Data
18 {
19 public:
20 void SetSecret(const CSecret& vchSecret)
21 {
22 assert(vchSecret.size() == 32);
23 SetData(128, &vchSecret[0], vchSecret.size());
24 }
25
26 CSecret GetSecret()
27 {
28 CSecret vchSecret;
29 vchSecret.resize(32);
30 memcpy(&vchSecret[0], &vchData[0], 32);
31 return vchSecret;
32 }
33
34 CBitcoinSecret(const CSecret& vchSecret)
35 {
36 SetSecret(vchSecret);
37 }
38
39 CBitcoinSecret()
40 {
41 }
42 };
43
44 #endif