introduce decryptPrivateKey() method which also checks if the result is a valid private key to avoid additional checks on various places