Add error handling to DecodeExtPubKey/DecodeExtKey and make sure return value is checked (via [[nodiscard]]).
Prior to this commit:
$ cat > test.cpp
…
int main(void) {
CExtPubKey key = DecodeExtPubKey("foo");
std::cout << key.nChild << "\n";
}
^D
$ g++ -o test test.cpp
$ ./test
109452364
$ ./test
-1789494196
$ ./test
-1568076724
$ ./test
1483189324
$ ./test
-1168606132