Signature verification, fix keypair constructor, cleanup.

And what do you think about the bool flag? I don't like bool flags where it is not absolutely immediate how the value is to be interpreted (often the negation also makes perfect sense). If you think otherwise, then it's fine.