fix and extend CBitcoinExtKeyBase template

- fix Decode call (req. only one param)
- add constructor for base58c->CExtKey
This commit is contained in:
Jonas Schnelli 2015-07-23 16:14:17 +02:00 committed by Jack Grigg
parent 8550bcfeca
commit 53bcf8379a
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 5 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public:
K GetKey() {
K ret;
ret.Decode(&vchData[0], &vchData[Size]);
ret.Decode(&vchData[0]);
return ret;
}
@ -179,6 +179,10 @@ public:
SetKey(key);
}
CBitcoinExtKeyBase(const std::string& strBase58c) {
SetString(strBase58c.c_str(), Params().Base58Prefix(Type).size());
}
CBitcoinExtKeyBase() {}
};