code: func (t *Transaction) ContainsPvtWrites() bool {
  	for _, ns := range t.RWSet.NsRwSets {
  		for _, coll := range ns.CollHashedRwSets {
  			if coll.PvtRwSetHash != nil {
  				return true
  			}
  		}
  	}
  	return false
  }
docs: // ContainsPvtWrites returns true if this transaction is not limited to affecting the public data only