Skip to content

op-challenger: Challenge invalid ZK games#18442

Merged
ajsutton merged 4 commits intodevelopfrom
aj/support-zk-game-type
Dec 2, 2025
Merged

op-challenger: Challenge invalid ZK games#18442
ajsutton merged 4 commits intodevelopfrom
aj/support-zk-game-type

Conversation

@ajsutton
Copy link
Copy Markdown
Contributor

@ajsutton ajsutton commented Dec 1, 2025

Description

Adds initial support for the optimistic ZK game type to op-challenger. Currently it only challenges games but doesn't resolve them or claim bonds back.

Notably it also doesn't check the proposal was safe according to the safe head db. It will still challenge if the proposed root doesn't match the canonical one, but there may be proposals made too early that could be successfully challenged but are not. While they could be challenged, since the proposal is correct there's no reason for the challenger to do so and avoids needing the safe head db.

Tests

Added unit tests. Acceptance tests can't be added until we can actually deploy the optimistic ZK game contracts.

Additional context

Builds on #18441

Metadata

#18433

@ajsutton ajsutton requested review from a team and stevennevins and removed request for a team December 1, 2025 03:47
@ajsutton ajsutton requested review from a team and axelKingsley and removed request for a team December 1, 2025 21:30
@ajsutton ajsutton force-pushed the aj/support-zk-game-type branch from ea4d839 to 195ad4a Compare December 1, 2025 21:30
@ajsutton ajsutton force-pushed the aj/support-zk-game-type branch from 195ad4a to 378b340 Compare December 2, 2025 00:43
@ajsutton ajsutton force-pushed the aj/support-zk-game-type branch from 378b340 to 3d62d52 Compare December 2, 2025 01:33
Base automatically changed from aj/generic-player to develop December 2, 2025 02:11
@ajsutton ajsutton force-pushed the aj/support-zk-game-type branch from 3d62d52 to 0447f09 Compare December 2, 2025 02:36
Comment thread op-challenger/config/config.go
Comment thread op-challenger/game/fault/contracts/optimisticzkdisputegame.go
Comment thread op-challenger/game/zk/actor.go
Comment thread op-challenger/game/zk/register.go Outdated
@ajsutton ajsutton added this pull request to the merge queue Dec 2, 2025
Merged via the queue into develop with commit 8560d3f Dec 2, 2025
82 checks passed
@ajsutton ajsutton deleted the aj/support-zk-game-type branch December 2, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants