code: func IsPushOnlyScript(script []byte) bool {
  	pops, err := parseScript(script)
  	if err != nil {
  		return false
  	}
  	return isPushOnly(pops)
  }
docs: // IsPushOnlyScript returns whether or not the passed script only pushes data.
  //
  // False will be returned when the script does not parse.