Skip to content

Implement Zero-Knowledge Proof (ZKP) Circuits for Consensus Verification #40

@Steake

Description

@Steake

Part of Epic: #71 - RC1: Zero-Knowledge & Observability


Goal: Replace stubbed ZKP code with real Groth16-based circuits for battle outcome and state transitions.

Requirements:

  • Implement Groth16Proof struct with real proof verification
  • Real constraints for CA evolution and state transition
  • Update BattleCircuit, StateCircuit code for proof generation and verification

Files:

  • crates/bitcell-zkp/src/lib.rs
  • crates/bitcell-zkp/src/battle_circuit.rs
  • crates/bitcell-zkp/src/state_circuit.rs

Acceptance Criteria:

  • Valid battles and transitions result in cryptographically verified proofs
  • No reliance on stub checks for consensus

See [todo_now.md](https://github.com/Steake/BitCell/blob/master/todo_now. md) for audit findings.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions