Consensys / go-corset

A (partial) port of the Corset tool into Go.
Apache License 2.0
2 stars 0 forks source link

Support Trace Schema for Reading #244

Open DavePearce opened 2 months ago

DavePearce commented 2 months ago

The goal here is (roughly speaking) allow reading trace data in conjunction with schema information. In particular, to maxmise space reductions for bytes and bit columns. That is, when reading a trace column with a width of 2 bytes but a schema type of :u8, the column data is automatically truncated accordingly. This should be particularly useful for bit columns.

DavePearce commented 2 months ago

This is less of an issue since many aspects were fixed at the source. However, for columns which take less than a u8 then it still applies. And there are a lot of these.

DavePearce commented 2 months ago

Roughly, then the plan would be:

Potentially, this process could all be wrapped up into some notion of trace builder. The building process can fail in various ways, such as if there are missing input columns or duplicates, etc. Also, if a field element doesn't match the input field (depending upon the mode of operation).