code: func isSupportedScriptType(class ScriptClass) bool {
  	switch class {
  	case PubKeyHashTy, WitnessV0PubKeyHashTy, ScriptHashTy,
  		WitnessV0ScriptHashTy:
  		return true
  	default:
  		return false
  	}
  }
docs: // isSupportedScriptType determines whether the script type is supported by the
  // PkScript struct.