This change introduces a script which can parse a json output file from the optimization problem and convert it into public and private input (pepper format) required for the main trade execution snark.
It's currently not passing the main snark, because there are still some rounding errors, which we need to address in the solver itself (e.g. while buyVolume ≈ sellVolume, we have to make sure sellVolume >= buyVolume, to avoid a fractional reserve)
After we have a small valid output format, I'll add an e2e test to the main verification snark, that uses this script and tests the main snark e2e.
This change introduces a script which can parse a json output file from the optimization problem and convert it into public and private input (pepper format) required for the main trade execution snark.
It's currently not passing the main snark, because there are still some rounding errors, which we need to address in the solver itself (e.g. while buyVolume ≈ sellVolume, we have to make sure sellVolume >= buyVolume, to avoid a fractional reserve)
After we have a small valid output format, I'll add an e2e test to the main verification snark, that uses this script and tests the main snark e2e.