Browse Source
don't try to decode invalid encoded ext keys
pull/4/head
Jonas Schnelli
9 years ago
committed by
Jack Grigg
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with
4 additions and
1 deletions
-
src/base58.h
|
|
@ -171,7 +171,10 @@ public: |
|
|
|
|
|
|
|
K GetKey() { |
|
|
|
K ret; |
|
|
|
if (vchData.size() == Size) { |
|
|
|
//if base58 encouded data not holds a ext key, return a !IsValid() key
|
|
|
|
ret.Decode(&vchData[0]); |
|
|
|
} |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|