Issue71 contact key serialization

Closes #71. Please review.
Shouldn't signature get checked for null, too?