key marshalling + b58 encoding
fixed pin json marshal