Skip to content

Commit 8e09fa5

Browse files
CopilotSteake
andcommitted
docs: Expand issue-44.md with comprehensive documentation per code review
Co-authored-by: Steake <530040+Steake@users.noreply.github.com>
1 parent d42ce2f commit 8e09fa5

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

docs/issue-44.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
1-
# Issue 44
1+
# Issue 44: Implement Real Groth16 Battle Circuit Constraints
22

3-
Work in progress by Emulated Coder.
3+
## Summary
44

5-
Ref: #44
5+
This issue tracks the implementation of the Groth16 battle circuit constraints for the Bitcell ZKP project. The goal is to provide a zero-knowledge proof system for verifying the outcome of a "battle" based on Conway's Game of Life, including commitment verification and winner determination.
6+
7+
## Implementation Plan
8+
9+
- Design and implement an R1CS (Rank-1 Constraint System) circuit that simulates the Game of Life for a given number of steps.
10+
- Verify player commitments to their initial states.
11+
- Determine the winner based on the final state after simulation.
12+
- Integrate the circuit with the Groth16 proving system.
13+
14+
## Status
15+
16+
The full implementation of the Groth16 battle circuit constraints is already present in [`crates/bitcell-zkp/src/battle_constraints.rs`](../crates/bitcell-zkp/src/battle_constraints.rs). This file contains:
17+
18+
- A complete R1CS constraint system for the battle circuit.
19+
- Logic for simulating Conway's Game of Life.
20+
- Commitment verification for player inputs.
21+
- Winner determination logic.
22+
23+
The implementation spans over 500 lines and is fully integrated with the rest of the project.
24+
25+
## References
26+
27+
- [Issue #44](https://github.com/Steake/BitCell/issues/44)
28+
- [`crates/bitcell-zkp/src/battle_constraints.rs`](../crates/bitcell-zkp/src/battle_constraints.rs)

0 commit comments

Comments
 (0)