Browse Source

don't try to decode invalid encoded ext keys

0.13
Jonas Schnelli 10 years ago
parent
commit
6f8b6d339b
  1. 5
      src/base58.h

5
src/base58.h

@ -146,7 +146,10 @@ public: @@ -146,7 +146,10 @@ public:
K GetKey() {
K ret;
ret.Decode(&vchData[0]);
if (vchData.size() == Size) {
//if base58 encouded data not holds a ext key, return a !IsValid() key
ret.Decode(&vchData[0]);
}
return ret;
}

Loading…
Cancel
Save