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
parent 633fe10869
commit 7cb1f9f7eb

View file

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