Fix how the private key is checked prior to verifying a signature