Guardrails

Trust-minimized guardrails for Axiom

Axiom V2 is currently governed by three administrative roles. Although Axiom itself only holds user funds to accept payment for query fulfillment, the protocol has some administrative functions to:

  • Protect against catastrophic outcomes for downstream applications in case of an exploit.

  • Allow upgrades stay in sync with future changes to Ethereum.

The contracts AxiomV2Core, AxiomV2Query, AxiomV2Prover, AxiomV2HeaderVerifier, AxiomResultStore, and implement UUPS Upgradeability, freezing, and unfreezing functionality, controlled by the AxiomAccess contract. The relevant roles are:

  • TIMELOCK_ROLE: All upgrades, including upgrades of the underlying SNARK verifier addresses, are controlled by a OpenZeppelin TimelockController controlled by a Gnosis SAFE multisig (Axiom Timelock multisig).

  • GUARDIAN_ROLE: This role allows for immediate freezing of critical functions like AxiomV2Core block hash updates and AxiomV2Query query initiation and fulfillment. The freeze functionality is intended to be used in the event of an unforeseen ZK circuit bug. This role is held by a Gnosis SAFE multisig (Axiom Guardian multisig) with a lower threshold than the Axiom Timelock multisig.

  • UNFREEZE_ROLE: This role allows for immediate unfreezing of contracts. It is held by a Gnosis SAFE multisig.

  • PROVER_ROLE: This role is used only for AxiomV2Prover and is given to accounts which are permissioned to prove in the Axiom system.

We further documents the capabilities and limitations of these roles below to provide transparency about their security implications.

Freezing

If a vulnerability is found in the Axiom smart contracts or ZK circuits, the GUARDIAN_ROLE, which is held by a Gnosis SAFE multisig (Axiom Guardian multisig), will use

function freezeAll() external onlyRole(GUARDIAN_ROLE)

to pause all update functionality to the Axiom ZK circuits, including:

  • Updates to the cache of historic block hashes in AxiomV2Core

  • Submission of new queries into AxiomV2Query

  • Fulfillment of queries into AxiomV2Query

By pausing updates to the contracts, this safety mechanism provides time for any potential issues to be mitigated. It is intended to be used only in the event of an exploit. As the protocol matures, we intend to remove this mechanism.

The contract can be unfrozen, after the issues in question have been mitigated, by the UNFREEZE_ROLE using

function unfreezeAll() external onlyRole(UNFREEZE_ROLE)

Upgrades

The AxiomV2Core and AxiomV2Query contracts are currently upgradeable via the OpenZeppelin UUPSUpgradeable pattern and have upgradeable verifiers for ZK proofs of historic block hashes and query results. These upgrades are permissioned to the TIMELOCK_ROLE, which is assigned to an OpenZeppelin Timelock controller (AxiomTimelock) controlled by a Gnosis SAFE multisig. The timelock delay is set to 1 week on Mainnet and 10 minutes on Testnet.

The upgrade functionality is intended to be used for three purposes:

  • Recovery from any vulnerabilities or exploits found in Axiom.

  • To upgrade the Axiom ZK circuits to match protocol upgrades to Ethereum.

  • To introduce new optimizations or extensions to the Axiom query format.

As the protocol matures, we intend to expand the set of multisig holders and perform non-mandatory upgrades infrequently.

Last updated