Check whether this private key is valid.
Declared in <key.h>
<key.h>
bool IsValid() const;
true if the key holds valid key material.