Signature verification, fix keypair constructor, cleanup.