diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-07-23 16:14:17 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-07-23 16:32:21 +0200 |
commit | 7cb1f9f7eb8162a792b4b87bba99fa21c682582e (patch) | |
tree | e2c1abe84e002264ea6c08bacc9aab3378f3ec90 /src/base58.h | |
parent | 633fe10869abe89d32d657c2ae8944daa97e4f22 (diff) |
fix and extend CBitcoinExtKeyBase template
- fix Decode call (req. only one param)
- add constructor for base58c->CExtKey
Diffstat (limited to 'src/base58.h')
-rw-r--r-- | src/base58.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/base58.h b/src/base58.h index 787979c827..d535491bb0 100644 --- a/src/base58.h +++ b/src/base58.h @@ -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() {} }; |