Signature verification, fix keypair constructor, cleanup.

The semantics here is that copying the return value is to be avoided.