Pubkey hash calculation was incorrect

The public key is not retrieved as a string and a new xiasecurity
function provides a hash after stripping the BEGIN PUBLIC KEY and END
PUBLIC KEY delimiters and newlines.