Browse Source

fix and extend CBitcoinExtKeyBase template

- fix Decode call (req. only one param)
- add constructor for base58c->CExtKey
pull/4/head
Jonas Schnelli 9 years ago
committed by Jack Grigg
parent
commit
53bcf8379a
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 6
      src/base58.h

6
src/base58.h

@ -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() {}
};

Loading…
Cancel
Save