code: func GetBytesResponse(res *peer.Response) ([]byte, error) {
  	resBytes, err := proto.Marshal(res)
  	return resBytes, errors.Wrap(err, "error marshaling Response")
  }
docs: // GetBytesResponse gets the bytes of Response