Signature verification, fix keypair constructor, cleanup.

I agree. These are interim interfaces for legacy code. I would like to get functionality committed and reviewed before refactoring the codebase (esp for this code).