Skip to content

Instantly share code, notes, and snippets.

@kushti
Created August 9, 2023 18:42
Show Gist options
  • Save kushti/ffe32bfec6ff0a1611922145137fd022 to your computer and use it in GitHub Desktop.
Save kushti/ffe32bfec6ff0a1611922145137fd022 to your computer and use it in GitHub Desktop.
phoenix.ergotree
ErgoTree(16,WrappedArray(IntConstant(1), IntConstant(0), IntConstant(1), IntConstant(0), IntConstant(0), LongConstant(1), LongConstant(0), LongConstant(1000), IntConstant(2), ConstantNode(Coll(-62,41,-52,18,-61,-101,120,-5,-103,-33,58,-128,51,40,-14,-71,-74,-25,-2,66,-80,-46,95,54,-45,-4,9,32,121,-50,-116,1),Coll[SByte$])),Right(BlockValue(WrappedArray(ValDef(1,WrappedArray(),MethodCall(Self$(167),SMethod(SBox,tokens,(SBox) => Coll[(Coll[SByte$],SLong$)],8,FixedCost(JitCost(15)),MethodIRInfo(Some(<function1>),None,None),Some(OperationInfo(Some(PropertyCall$(219)),Secondary tokens,ArrayBuffer(ArgInfo(this,this instance)))),None),WrappedArray(),Map())), ValDef(2,WrappedArray(),ByIndex(ValUse(1,Coll[(Coll[SByte$],SLong$)]),ConstantPlaceholder(0,SInt$),None)), ValDef(3,WrappedArray(),SelectField(ValUse(2,(Coll[SByte$],SLong$)),2)), ValDef(4,WrappedArray(),ByIndex(Outputs$(165),ConstantPlaceholder(1,SInt$),None)), ValDef(5,WrappedArray(),MethodCall(ValUse(4,SBox),SMethod(SBox,tokens,(SBox) => Coll[(Coll[SByte$],SLong$)],8,FixedCost(JitCost(15)),MethodIRInfo(Some(<function1>),None,None),Some(OperationInfo(Some(PropertyCall$(219)),Secondary tokens,ArrayBuffer(ArgInfo(this,this instance)))),None),WrappedArray(),Map())), ValDef(6,WrappedArray(),ByIndex(ValUse(5,Coll[(Coll[SByte$],SLong$)]),ConstantPlaceholder(2,SInt$),None)), ValDef(7,WrappedArray(),SelectField(ValUse(6,(Coll[SByte$],SLong$)),2)), ValDef(8,WrappedArray(),Minus(ValUse(3,SLong$), ValUse(7,SLong$))), ValDef(9,WrappedArray(),ExtractAmount(ValUse(4,SBox))), ValDef(10,WrappedArray(),Upcast(ExtractAmount(Self$(167)),SBigInt$)), ValDef(11,WrappedArray(),OptionGet(ExtractRegisterAs(Self$(167),R5,Option[SLong$]))), ValDef(12,WrappedArray(),Upcast(ValUse(11,SLong$),SBigInt$)), ValDef(13,WrappedArray(),OptionGet(ExtractRegisterAs(Self$(167),R4,Option[SLong$]))), ValDef(14,WrappedArray(),Divide(Multiply(ValUse(10,SBigInt$), ValUse(12,SBigInt$)), Upcast(Minus(ValUse(13,SLong$), ValUse(3,SLong$)),SBigInt$))), ValDef(15,WrappedArray(),OptionGet(ExtractRegisterAs(Self$(167),R6,Option[SLong$]))), ValDef(16,WrappedArray(),OptionGet(ExtractRegisterAs(Self$(167),R7,Option[SLong$]))), ValDef(17,WrappedArray(),OptionGet(ExtractRegisterAs(Self$(167),R8,Option[SLong$]))), ValDef(18,WrappedArray(),AND(ConcreteCollection(WrappedArray(GE(ValUse(9,SLong$),ValUse(15,SLong$)), EQ(ExtractScriptBytes(ValUse(4,SBox)),ExtractScriptBytes(Self$(167))), AND(ConcreteCollection(WrappedArray(EQ(ByIndex(ValUse(5,Coll[(Coll[SByte$],SLong$)]),ConstantPlaceholder(3,SInt$),None),ByIndex(ValUse(1,Coll[(Coll[SByte$],SLong$)]),ConstantPlaceholder(4,SInt$),None)), EQ(SelectField(ValUse(6,(Coll[SByte$],SLong$)),1),SelectField(ValUse(2,(Coll[SByte$],SLong$)),1)), GE(ValUse(7,SLong$),ConstantPlaceholder(5,SLong$))),SBoolean)), AND(ConcreteCollection(WrappedArray(EQ(OptionGet(ExtractRegisterAs(ValUse(4,SBox),R4,Option[SLong$])),ValUse(13,SLong$)), EQ(OptionGet(ExtractRegisterAs(ValUse(4,SBox),R5,Option[SLong$])),ValUse(11,SLong$)), EQ(OptionGet(ExtractRegisterAs(ValUse(4,SBox),R6,Option[SLong$])),ValUse(15,SLong$)), EQ(OptionGet(ExtractRegisterAs(ValUse(4,SBox),R7,Option[SLong$])),ValUse(16,SLong$)), EQ(OptionGet(ExtractRegisterAs(ValUse(4,SBox),R8,Option[SLong$])),ValUse(17,SLong$))),SBoolean))),SBoolean)))),If(GT(ValUse(8,SLong$),ConstantPlaceholder(6,SLong$)),BoolToSigmaProp(AND(ConcreteCollection(WrappedArray(ValUse(18,SBoolean), GE(Upcast(ValUse(9,SLong$),SBigInt$),Plus(ValUse(10,SBigInt$), Divide(Multiply(Upcast(ValUse(8,SLong$),SBigInt$), ValUse(14,SBigInt$)), ValUse(12,SBigInt$))))),SBoolean))),BlockValue(WrappedArray(ValDef(19,WrappedArray(),Divide(Multiply(Upcast(Minus(ValUse(7,SLong$), ValUse(3,SLong$)),SBigInt$), ValUse(14,SBigInt$)), ValUse(12,SBigInt$))), ValDef(20,WrappedArray(),ConstantPlaceholder(7,SLong$)), ValDef(21,WrappedArray(),Divide(Multiply(ValUse(19,SBigInt$), Upcast(ValUse(16,SLong$),SBigInt$)), Upcast(ValUse(20,SLong$),SBigInt$))), ValDef(22,WrappedArray(),ByIndex(Outputs$(165),ConstantPlaceholder(8,SInt$),None))),BoolToSigmaProp(AND(ConcreteCollection(WrappedArray(ValUse(18,SBoolean), GE(Upcast(ValUse(9,SLong$),SBigInt$),Minus(Minus(ValUse(10,SBigInt$), Minus(Minus(ValUse(19,SBigInt$), Divide(Multiply(ValUse(19,SBigInt$), Upcast(ValUse(17,SLong$),SBigInt$)), Upcast(ValUse(20,SLong$),SBigInt$))), ValUse(21,SBigInt$))), ValUse(21,SBigInt$))), AND(ConcreteCollection(WrappedArray(EQ(Upcast(ExtractAmount(ValUse(22,SBox)),SBigInt$),ValUse(21,SBigInt$)), EQ(CalcBlake2b256(ExtractScriptBytes(ValUse(22,SBox))),ConstantPlaceholder(9,Coll[SByte$]))),SBoolean))),SBoolean))))))),0,[B@934b52f,None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment