Validate `publicKey` and `privateKey` arguments.
Validate
publicKeyandprivateKeyarguments.