Signature verification, fix keypair constructor, cleanup.

Is that only done for the purpose of the test?