MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / serializeRootCircuit

Function serializeRootCircuit

ecgo/irsource/serialize.go:79–87  ·  view source on GitHub ↗
(o *utils.OutputBuf, c *RootCircuit, field field.Field)

Source from the content-addressed store, hash-verified

77}
78
79func serializeRootCircuit(o *utils.OutputBuf, c *RootCircuit, field field.Field) {
80 o.AppendUint64(uint64(c.NumPublicInputs))
81 o.AppendUint64(uint64(c.ExpectedNumOutputZeroes))
82 o.AppendUint64(uint64(len(c.Circuits)))
83 for k, c := range c.Circuits {
84 o.AppendUint64(uint64(k))
85 serializeCircuit(o, c, field)
86 }
87}
88
89func SerializeRootCircuit(c *RootCircuit) []byte {
90 o := &utils.OutputBuf{}

Callers 1

SerializeRootCircuitFunction · 0.70

Calls 2

AppendUint64Method · 0.80
serializeCircuitFunction · 0.70

Tested by

no test coverage detected