Function to use when serializing a public key, to print it using base58.
Serializer that serializes a list of pubkeys as an array of base58 strings.