decode the public key during registration to make sure it's usable
add a test for a bad public key in the registration message