code: func GetBytesProposalResponsePayload(hash []byte, response *peer.Response, result []byte, event []byte, ccid *peer.ChaincodeID) ([]byte, error) {
  	cAct := &peer.ChaincodeAction{
  		Events: event, Results: result,
  		Response:    response,
  		ChaincodeId: ccid,
  	}
  	cActBytes, err := proto.Marshal(cAct)
  	if err != nil {
  		return nil, errors.Wrap(err, "error marshaling ChaincodeAction")
  	}
  
  	prp := &peer.ProposalResponsePayload{
  		Extension:    cActBytes,
  		ProposalHash: hash,
  	}
  	prpBytes, err := proto.Marshal(prp)
  	return prpBytes, errors.Wrap(err, "error marshaling ProposalResponsePayload")
  }
docs: // GetBytesProposalResponsePayload gets proposal response payload