Improve the interface of ReadPrivateKey.