packageethutilimport("fmt""strings""github.com/obscuren/mutan""github.com/obscuren/mutan/backends")// General compile functionfuncCompile(scriptstring,silentbool)(ret[]byte,errerror){iflen(script)>2{compiler:=mutan.NewCompiler(backend.NewEthereumBackend())compiler.Silent=silentbyteCode,errors:=compiler.Compile(strings.NewReader(script))iflen(errors)>0{varerrsstringfor_,er:=rangeerrors{ifer!=nil{errs+=er.Error()}}returnnil,fmt.Errorf("%v",errs)}returnbyteCode,nil}returnnil,nil}