Skip to content

Commit 0a93541

Browse files
0xMimirdannywillems
authored andcommitted
Review fixes
1 parent cc44ef6 commit 0a93541

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

website/docs/developers/circuits.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,13 @@ Since these constraint capabilities are missing, the Mina rust nodes require
239239
externally generated circuit data. The following process describes how circuits
240240
are created and distributed using the original Mina codebase:
241241

242-
<!-- TODO:
243-
Update this when new mina release happens that contains code to export circuits
244-
And when command to export circuits is added
245-
And CI is updated to check for latest circuits
246-
-->
242+
:::warning Work in Progress
243+
244+
This should be updated when new mina release happens that contains code to
245+
export circuits, and when command to export circuits is added, and CI is updated
246+
to check for latest circuits
247+
248+
:::
247249

248250
1. Build mina <b>OCaml</b> node from source with commit after
249251
[`6961849`](https://github.com/MinaProtocol/mina/commit/6961849f17d564c39e7d45e01e3ddda9a09602a4)
@@ -252,15 +254,29 @@ are created and distributed using the original Mina codebase:
252254
- Launch the OCaml node which produces circuit cache data in
253255
`/tmp/coda_cache_dir`
254256
- The branch dumps the usual circuit data plus extra data specifically
255-
required by the Mina rust nodes
256-
- The process also dumps blocks for use in tests
257+
required by the Mina rust nodes, see
258+
[Circuit somponents](#circuit-components)
259+
- The process also dumps blocks for use in tests, see
260+
[Testing strategy](#testing-strategy)
257261
- Integration with mainline Mina would streamline future circuit generation
258262

259263
3. The generated circuit blobs are then:
260264
- Committed to the dedicated repository:
261265
https://github.com/o1-labs/circuit-blobs
262266
- Released as GitHub releases for versioning and distribution
263267

268+
### Circuit Components
269+
270+
Each circuit consists of multiple components that are loaded and cached
271+
independently:
272+
273+
- **Gates**: Circuit constraint definitions in JSON format (`*_gates.json`)
274+
- **Internal Variables**: Constraint variable mappings in binary format
275+
(`*_internal_vars.bin`)
276+
- **Rows Reverse**: Row-wise constraint data in binary format (`*_rows_rev.bin`)
277+
- **Verifier Indices**: Pre-computed verification data with SHA256 integrity
278+
checks
279+
264280
### Overview
265281

266282
Circuit constraints for the Mina Rust node are sourced from the

0 commit comments

Comments
 (0)