Table of Contents
The honest challenger is an agent interacting in the Fault Dispute Game (FDG) that supports honest claims and disputes false claims. An honest challenger strives to ensure a correct, truthful, game resolution. The honest challenger is also rational as any deviation from its behavior will result in negative outcomes. This document specifies the expected behavior of an honest challenger.
The Honest Challenger has two primary duties:
- Support valid root claims in Fault Dispute Games.
- Dispute invalid root claims in Fault Dispute Games.
The honest challenger polls the DisputeGameFactory
contract for new and on-going Fault
Dispute Games.
For verifying the legitimacy of claims, it relies on a synced, trusted rollup node
as well as a trace provider (ex: Cannon).
The trace provider must be configured with the ABSOLUTE_PRESTATE
of the FDG being interacted with to generate the traces needed to make truthful claims.
When a FaultDisputeGame
is created, the honest challenger has two possible correct responses
to its root claim:
- Attack if they disagree with the root claim. The root claim commits to the entire execution trace, so the first move here is to attack with the ClaimHash at the midpoint instruction within their execution trace.
- Do Nothing if they agree with the root claim. They do nothing because if the root claim is left un-countered, the game resolves to their agreement. NOTE: The honest challenger will still track this game in order to defend any subsequent claims made against the root claim - in effect, "playing the game".
For every claim made in a dispute game with a game tree
depth in the range of [1, MAX_DEPTH]
, the honest challenger processes them and performs
a response.
To determine the appropriate response, the challenger first needs to know which team it belongs to. This determines the set of claims it should respond to in the FDG. If the agent determines itself to be a Defender, which aims to support the root claim, then it must dispute claims positioned at odd depths in the game tree. Otherwise, it disputes claims positioned at even depths in the game tree. This means an honest challenger only responds to claims made by the opposing team.
The next step is to determine whether the claim has a valid commitment (i.e. ClaimHash
).
If the ClaimHash
matches the honest challenger's at the same trace index, then we
disagree with the claim's stance by moving to defend.
Otherwise, the claim is attacked.
The following pseudocode illustrates the response logic.
class Team(Enum):
DEFENDER = 0
CHALLENGER = 1
class Claim:
position: uint64
claim_hash: ClaimHash
MAX_TRACE = 2**MAX_GAME_DEPTH
def respond(claim: Claim, chal: Team, chal_trace: List[ClaimHash, MAX_TRACE]):
if depth(claim.position) % 2 != chal.value:
if chal_trace[trace_index(claim.position)] == claim.claim_hash:
defend()
else:
attack()
else: pass # no response
In attack or defense, the honest challenger submit a ClaimHash
corresponding to the
state identified by the trace index of their response position.
The honest challenger responds to claims as soon as possible to avoid the clock of its counter-claim from expiring.
At the max depth of the game, claims represent commitments to the state of the fault proof VM
at a single instruction step interval.
Because the game can no longer bisect further, when the honest challenger has a valid move
against these claims (valid defined by the response in Counter Claims),
the only option for an honest challenger is to execute a VM step on-chain to disprove the claim at MAX_GAME_DEPTH
.
Similar to the above section, the honest challenger will issue an
attack step when in response to such claims with
invalid ClaimHash
commitments. Otherwise, it issues a defense step.
When the chess clock of a FaultDisputeGame
team
runs out, the game can be resolved.
The honest challenger does this by calling the resolve
function on the
FaultDisputeGame
contract.
The FaultDisputeGame
does not put a time cap on resolution - because of the liveness
assumption on honest challengers and the bonds attached to the claims they’ve countered,
challengers are economically incentivized to resolve the game promptly to capture the bonds.