code: func toMessage(messages []*ReceivedMessage) []*Message {
  	msgs := make([]*Message, len(messages))
  	for i, msg := range messages {
  		msgs[i] = ToWhisperMessage(msg)
  	}
  	return msgs
  }
docs: // toMessage converts a set of messages to its RPC representation.