The following operations create IR.RCostingResultEx structure for the given
scriptBytes
and they should be the same as in reduceToCrypto
method.
The following operations create IR.RCostingResultEx structure for the given
scriptBytes
and they should be the same as in reduceToCrypto
method.
This can be viewed as ahead of time pre-compilation of the cost and calc graphs
which are reused over many invocations of the reduce
method.
Reduce this pre-compiled script in the given context.
Reduce this pre-compiled script in the given context. This is equivalent to reduceToCrypto, except that graph construction is completely avoided.
This class implements optimized reduction of the given pre-compiled script. Pre-compilation of the necessary graphs is performed as part of constructor and the graphs are stored in the given IR instance.
The code make the following assumptions: 1) the given script doesn't contain both sigmastate.utxo.DeserializeContext and sigmastate.utxo.DeserializeRegister
The code should correspond to reduceToCrypto method, but some operations may be optimized due to assumptions above.