Protocol Specification · Five Core Contracts

Mechanism Design

AUDT Protocol separates fixed-cap ERC20Votes token accounting, EIP-712 attestation verification & revocation, multi-asset bounty escrow, bounded-slash refutation staking with arbiter liveness timeouts, and role-separated timelock governance into five zero-dependency Solidity 0.8.28 contracts.

Fixed Supply Cap
100,000,000 AUDTERC20Votes · EIP-2612 · 0 mint()
Bounty Escrow Assets
Multi-Asset ERC-20AUDT · USDC · WETH allowlist
Refutation Bounds
50% Max SlashSnapshotted + TimedOut escape hatch
Governance Delay
>= 48h Mainnet FloorProposer · Executor · Safe Canceller

End-to-End Coordination Flow

From multi-asset commit bounty to verified proof and bounded refutation

Every state transition is cryptographically bound to exact repository and Git commit hashes, with automatic proof revocation, permissionless bounty reopening, and zero off-chain discretionary custody.

STEP 01 · ESCROW

Sponsor Funds Multi-Asset Bounty

Maintainer locks allowlisted ERC-20 funds (AUDT, USDC, or WETH) in AuditBountyEscrow via createBountyWithToken keyed to (targetHash, minScore, deadline).

STEP 02 · ATTEST

Auditeur Signs AuditProofV1

Auditeur audits the exact commit independently and signs an 8-field AuditProofV1 EIP-712 payload under HopperAuditProof v1.

STEP 03 · VERIFY

Bridge Verifies & Mirrors

AttestationBridge verifies ECDSA signature, attestor authority, and proofId uniqueness, optionally mirrors to a live IEAS registry, and gates bounty claims & dispute-window release.

STEP 04 · CHALLENGE

Refutation Revokes & Protects Liveness

Challengers post bonds in RefutationStake (50% max snapshotted slash). Successful refutation auto-calls AttestationBridge.revokeProof() and unlocks reopenRefutedBounty(); stalled disputes refund both sides via claimArbiterTimeout().

Contract-by-Contract Specification

Core Smart Contracts

All five contracts remain testnet candidates pending independent external audit and foundation legal formation.

AudtToken — Fixed-Cap ERC-20 with ERC20Votes & EIP-2612 Permit

Immutable Supply

Zero-dependency Solidity 0.8.28 ERC-20 with EIP-2612 gasless permit, self-burn, and OpenZeppelin-compatible checkpointed voting delegation (ERC20Votes / ERC-6372 clock()). The full 100,000,000 AUDT supply is minted once inside the deployment constructor with zero post-deploy minting path.

  • Hard cap of 100,000,000 AUDT (100_000_000e18); no post-deployment mint() selector exists anywhere in bytecode.
  • Checkpointed voting power (ERC20Votes / ERC-6372 block-number clock()) via delegate(), delegateBySig(), getVotes(), getPastVotes(), and getPastTotalSupply().
  • Zero transfer fees, zero transfer tax, zero freeze, zero blacklist, and zero privileged balance clawback.
  • Self-burn (burn / burnFrom) only by the token holder or explicit allowance, monotonically reducing totalSupply and supply checkpoints.

AttestationBridge — EIP-712 Proof Verifier, Revocation Registry & Optional EAS Mirror

HopperAuditProof v1

Verifies ECDSA signatures over 8-field HopperAuditProof v1 (AuditProofV1) typed data from authorized Auditeur signers, enforces replay protection, tracks irreversible refutedProofs via revokeProof wired directly to RefutationStake, and optionally mirrors both attestations and revocations into a live IEAS registry.

  • Verifies EIP-712 domain separation (name, version, chainId, verifyingContract) and EIP-2 low-s canonical ECDSA signature recovery.
  • Prevents double-registration via proofId = keccak256(abi.encode(proof)) replay guards (usedProofs) and immutable AttestationRecord storage.
  • Wires revokeProof(proofId, evidenceHash) directly to RefutationStake (setRefutationContract) or governance owner so refutedProofs[proofId] irreversibly flips isProofActive() and isVerified() to false.
  • Supports optional live Ethereum Attestation Service mirroring via IEAS.attest() / IEAS.revoke() (easRegistry, easSchemaUid, easUidByProof) protected by ReentrancyGuard.

AuditBountyEscrow — Multi-Asset Open-Source Audit Bounty Escrow

Multi-Asset Allowlist

Escrows governance-allowlisted ERC-20 bounty pools (AUDT by default plus standard assets such as USDC or WETH via createBountyWithToken) bound to an exact targetHash, minimum score threshold, and deadline — guarded against refuted proofs with permissionless reopening.

  • Multi-asset ERC-20 allowlist (AUDT allowlisted at deploy; USDC / WETH / other standard non-rebasing tokens managed via setAllowedToken).
  • Refuted-proof guard blocks claimBounty(), releaseBounty(), and resolveDispute(approve) whenever AttestationBridge.refutedProofs[proofId] is true.
  • Permissionless reopenRefutedBounty(bountyId) returns any claimed bounty backed by a newly refuted proof to Open so funds can never strand.
  • Configurable dispute window (1m..30d), ReentrancyGuard, SafeERC20-style checks, and pull-based post-deadline refunds (refundContribution).

RefutationStake — Bounded-Slash Refutation Staking with Arbiter Liveness Escape Hatch

50% Max Slash · TimedOut

Enables verifiers to stake AUDT on recorded (proofId, findingHash) claims and challengers to post bonds contesting erroneous audits — enforcing a 50% hard slash cap snapshotted per claim, automatic AttestationBridge revocation, and a permissionless claimArbiterTimeout liveness escape hatch.

  • Bounded 50% hard slashing ceiling (MAX_SLASH_BPS = 5000) snapshotted per claim at stake creation so governance changes never alter in-flight stakes.
  • Successful refutation (resolveChallenge(id, false)) automatically calls AttestationBridge.revokeProof(proofId, evidenceHash), permanently invalidating the proof on-chain.
  • Permissionless claimArbiterTimeout(claimId) liveness escape hatch (arbiterTimeout 1h..90d, default 14d) transitions stalled challenges to TimedOut and refunds both verifier stake and challenger bond in full so funds can never freeze.
  • Strict pull-based withdrawals (withdrawableBalances + withdraw()) with exact AUDT conservation across Active, Challenged, Upheld, Slashed, and TimedOut states.

AudtTimelock — Role-Separated Transparent Governance Timelock

>= 48h Mainnet Floor

Transparent timelock controller enforcing strict proposer / executor / canceller (Safe Guardian) role separation and an immutable 48-hour minimum execution delay on Ethereum Mainnet (chainId 1) and Base Mainnet (chainId 8453).

  • Strict three-role separation: proposer queues calls (two-step proposeProposer / acceptProposer), executor executes ready calls after ETA (address(0) enables permissionless open execution), and canceller (Safe Guardian) can cancel queued calls without queuing or executing.
  • Immutable mainnet delay floor: MAINNET_MIN_DELAY = 48 hours (172,800s) enforced directly in bytecode on chainIds 1 and 8453 (max delay 30 days, grace period 14 days).
  • All role and delay updates (setDelay, proposeProposer, setExecutor, setCanceller) require timelocked self-governance (onlySelf).
  • Scoped strictly to protocol coordination parameters — holds zero custody over user bounty escrows or AudtToken supply.

Authority Minimization

Immutable protocol laws vs. timelock-governed parameters

Governance cannot rewrite monetary policy, raise slashing past 50%, or confiscate escrowed assets. Mutable surfaces are strictly bounded and exposed through role-separated AudtTimelock.

SurfaceMutabilityAuthoritySafety Guarantee
AudtToken 100M cap, transfers & ERC20VotesImmutableNone (constructor-fixed)Zero minting, zero transfer tax, zero freeze, zero blacklist, ERC-6372 block clock forever.
AttestationBridge EIP-712 & revocation monotonicityImmutableContract bytecodeReplay guards, EIP-2 low-s recovery, and permanent refutedProofs flags cannot be weakened.
AuditBountyEscrow active multi-asset depositsNon-CustodialDeterministic settlement onlyRefuted proofs cannot release; permissionless reopenRefutedBounty & post-deadline refunds.
RefutationStake 50% max slash & arbiter timeoutBounded TimelockAudtTimelockSnapshotted per claim; claimArbiterTimeout() guarantees funds never freeze if arbiter stalls.
Authorized attestors, token allowlist & optional IEAS mirrorTimelockedAudtTimelockQueued by proposer with >= 48h mainnet delay; Safe Guardian canceller may cancel during delay.
AudtTimelock roles & execution delaySelf-GovernedonlySelfTwo-step proposer transfer; open executor when address(0); 48h mainnet delay floor immutable.