(o *utils.OutputBuf, c *Circuit, field field.Field)
| 63 | } |
| 64 | |
| 65 | func serializeCircuit(o *utils.OutputBuf, c *Circuit, field field.Field) { |
| 66 | o.AppendUint64(uint64(len(c.Instructions))) |
| 67 | for _, i := range c.Instructions { |
| 68 | serializeInstruction(o, &i, field) |
| 69 | } |
| 70 | o.AppendUint64(uint64(len(c.Constraints))) |
| 71 | for _, i := range c.Constraints { |
| 72 | o.AppendUint8(uint8(i.Typ)) |
| 73 | o.AppendUint64(uint64(i.Var)) |
| 74 | } |
| 75 | o.AppendIntSlice(c.Outputs) |
| 76 | o.AppendUint64(uint64(c.NumInputs)) |
| 77 | } |
| 78 | |
| 79 | func serializeRootCircuit(o *utils.OutputBuf, c *RootCircuit, field field.Field) { |
| 80 | o.AppendUint64(uint64(c.NumPublicInputs)) |
no test coverage detected