bitcoin/bitcoin — pull request #5224 by sipa (2014-11-06 09:19:57+00:00)
Title: Add sanity check after key generation

Add a sanity check to prevent cosmic rays from flipping a bit in the generated public key, or bugs in the elliptic curve code. This is simply done by signing a (randomized) message, and verifying the result.