Skip to content

AIP-0008 — Verification Reward

Stage: Proposed. No opcode, wire bytes or activation height assigned.

A verification reward would let accounts that recompute a committed set of records receive a rule-defined share of an owner-funded asset pool as protocol state, without the pool passing through an application's ledger.

fund(pool, ruleHash) → poolId; claim(poolId, round, verifyHash); settle by rule at the round boundary; confirmed withdraw.

Purpose

AiBTC defines an application-level rule, aibtc-verify@V1, for paying verification rewards from a pool funded by its owner's on-chain deposit. The rule text is fixed, fingerprinted with SHA-256 and timestamped on Bitcoin before the pool is funded; every settlement is a public record that cites that fingerprint. Under that rule, claims and payouts are entries in the application's Smart Covenant ledger.

This proposal asks whether the same rule shape can be executed by indexers, so that funding, claims and payouts are protocol state that any indexer derives from Bitcoin alone.

It would not create a new asset, set a price, or promise a return. It would not prove that an AI model performed the verification: the result is a deterministic hash, and a script produces the same value as a model.

Format direction

  • fund: explicit owner authorization input, asset locator, amount, the SHA-256 of an immutable rule text, and the rule's parameters (release ratio per round, share unit) either explicit or bound through that hash. poolId derives from the confirmed funding with specified domain separation and byte order.
  • claim: explicit claimant authorization input, poolId, a round reference, and the 32-byte verification hash. One claim per account per round.
  • withdraw: explicit owner authorization input and poolId; removes the unreleased remainder. An unconfirmed withdrawal does not change what a round may release.
  • Settlement has no instruction. At the round boundary every indexer computes the release, the shares and the payouts from the rule and credits them.

A round reference must identify its record set by content, not by a mutable URL. The current 480-byte payload ceiling is a reference constraint for these fields, not a reason to shorten authorization identity.

Validation direction

Verify authorization and deterministic field bounds. Recompute the expected verification hash for the claimant's account from the round's record set and compare. Order claims by confirmed block position; ignore claims outside the round's open interval. Shares come from confirmed protocol balances at the round boundary, floored by the share unit; the release and each payout are exact integers with stated rounding, and remainders stay in the pool.

The record set is the hard part. Indexer consensus cannot depend on an application's interface. Either the records a claim covers are themselves derivable from Bitcoin (for example AIBRC instructions in a height interval, or a set committed by a published checkpoint as in AIP-0006 whose members are on-chain), or the claim must carry what is needed to check it. A claim that references data an indexer cannot obtain from Bitcoin must have one deterministic outcome on every indexer.

State changes

A pool registry (owner, asset, remaining amount, rule hash, generation), the per-round claim set, and the applied payouts. All of it must be included in versioned state hashing, snapshots and reorganization handling. Historical replay must retain the rule in force for each round.

Open questions

Which record sets can be verified from Bitcoin alone, and how a round is delimited by height. Where rewards come from: an owner-funded pool as above, or a reserve declared at deployment. Anti-spam economics: the miner fee is the cost of a claim, and whether that is enough. Whether balances held through an application count toward shares. How this composes with AIP-0001 (an Agent claims with a delegated key), AIP-0005 (a claim as an attestation), AIP-0006 (a round as a checkpoint) and AIP-0007 (a payout as a conditional movement), and whether it should be a profile of those rather than a new instruction family. Retention cost of claim sets. A correct hash shows that the public inputs were obtained and hashed for that account; it does not show which checks were run.

Where this leads

Verification rewards are a first step: many holders and their AI models recompute a committed record set and say so in public. The next step this proposal points to is a network of independent indexers that apply the same rules, publish comparable checkpoints (AIP-0006) and give wallets and personal Agents a light proof of their own balance. A claim-and-payout rule executed by such indexers needs no application account in the middle.

Independent indexers are what makes L1 asset state decentralized in the first place, and the other proposals in this directory are rules those indexers would execute. That network is also a precondition for any later work on privacy for L1 assets. State is publicly recomputable today because amounts are in the clear. If amounts were replaced by commitments and proofs, a single indexer judging them would have to be trusted by everyone; several independent indexers validating and comparing results would not. Distributed indexing is necessary for that direction, not sufficient: no privacy construction is selected or proposed here.