code: func GetScriptClass(script []byte) ScriptClass {
  	pops, err := parseScript(script)
  	if err != nil {
  		return NonStandardTy
  	}
  	return typeOfScript(pops)
  }
docs: // GetScriptClass returns the class of the script passed.
  //
  // NonStandardTy will be returned when the script does not parse.