mratsim / constantine

Constantine: modular, high-performance, zero-dependency cryptography stack for verifiable computation, proof systems and blockchain protocols.
Other
391 stars 43 forks source link

R1CS parser continuation #388

Closed Vindaar closed 3 months ago

Vindaar commented 3 months ago

This PR continues on from #327.

I tried to stick very closely to the binary layout of the files in the definition of the R1CS object. We could restructure it to be such that it has different types for different sections explicitly. But given the description of the file format, this is more honest.

Still have to:

Vindaar commented 3 months ago

I've added the test case from https://github.com/iden3/r1csfile/blob/master/test/r1csfile.js using the file from here: https://github.com/iden3/r1csfile/tree/master/test/testutils