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

Function SerializeRootCircuit

ecgo/irwg/serialize.go:68–75  ·  view source on GitHub ↗
(c *RootCircuit)

Source from the content-addressed store, hash-verified

66}
67
68func SerializeRootCircuit(c *RootCircuit) []byte {
69 o := &utils.OutputBuf{}
70 o.AppendUint64(field.GetFieldId(c.Field))
71 o.AppendUint64(uint64(c.NumPublicInputs))
72 o.AppendUint64(uint64(c.ExpectedNumOutputZeroes))
73 serializeRootCircuit(o, c, c.Field)
74 return o.Bytes()
75}
76
77func (c *RootCircuit) Serialize() []byte {
78 return SerializeRootCircuit(c)

Callers 1

SerializeMethod · 0.70

Calls 4

AppendUint64Method · 0.95
BytesMethod · 0.95
GetFieldIdFunction · 0.92
serializeRootCircuitFunction · 0.70

Tested by

no test coverage detected