(rc *irsource.RootCircuit)
| 9 | ) |
| 10 | |
| 11 | func Compile(rc *irsource.RootCircuit) (*irwg.RootCircuit, *layered.RootCircuit, error) { |
| 12 | s := irsource.SerializeRootCircuit(rc) |
| 13 | irWgSer, lcSer, err := wrapper.CompileWithRustLib(s, field.GetFieldId(rc.Field)) |
| 14 | if err != nil { |
| 15 | return nil, nil, err |
| 16 | } |
| 17 | irWg := irwg.DeserializeRootCircuit(irWgSer) |
| 18 | lc := layered.DeserializeRootCircuit(lcSer) |
| 19 | return irWg, lc, nil |
| 20 | } |
| 21 | |
| 22 | func ProveFile(circuitFilename string, witnessBytes []byte) []byte { |
| 23 | return wrapper.ProveCircuitFile(circuitFilename, witnessBytes, layered.DetectFieldIdFromFile(circuitFilename)) |
no test coverage detected