Extracted certified-state credit accounting #
An ACT state carries a nullifier, a context, a committed credit t, and an issuer-granted refund
x. Its effective balance is t + x; spending d replaces it with committed credit
t + x - d and a newly granted refund ([ZPS26], Overview and Spending). target composes
commitment of (nullifier, context, credit) with certification of its refund. It can be supplied
directly to the structured-target experiment and explicit reductions in AnonymousToken.Basic.
The ledger here is extracted certified-state bookkeeping: it knows the semantic states issued
by the authority. Its spend operation looks up the presented state, checks the range, atomically
records the spent nullifier, and adds the successor. spend_conserves proves exact conservation
of issued credit, paid credit, and the sum of remaining certificates. Repeated nullifiers need
not be fresh on issuance: they strand certificates, since every subsequent spend with that
nullifier is rejected. Counting stranded certificates only overestimates redeemable credit.
The arithmetic uses natural numbers; the protocol's upper bounds on credit are additional
restrictions on this ledger's permitted transitions.
This is an original accounting step, not a public implementation of the private ACT verifier.
Relating a real adaptive proof transcript to this extracted ledger requires witness extraction
and semantic certification; the explicit certification reduction is in Basic, while the
full VOLE/random-oracle extraction and runtime certificates remain tracked in issue #7068.
Main definitions #
Note,Note.balance,target: semantic ACT credit state, effective balance, and two-stage commitment/tag target encoder.Ledger,Ledger.empty,Ledger.outstanding,Ledger.Conserves,Ledger.fund,Ledger.spend: extracted-state credit ledger, conservation predicate, and atomic transitions.
Main results #
Ledger.empty_conserves: the initial empty ledger conserves credit.Ledger.fund_conserves: granting a state adds exactly its effective balance to the budget.Ledger.spend_conserves: accepted spending adds only the newly granted refund to the budget.Ledger.spend_eq_none_of_spent: even a different state with a used nullifier cannot be spent.Ledger.Conserves.paid_le_granted: every conserving ledger has paid at most the granted credit.
References #
- VOLE-ACT, Overview (
#overview), Tag (#tag), and Spending (#spending).
The complete semantic ACT state, including the separately granted refund.
- nullifier : Nullifier
The identifier checked against the spent-nullifier set.
- context : Context
The application context bound into the state.
- credit : ℕ
Credit committed by the holder before the current refund is granted.
- refund : ℕ
Additional credit granted by the issuer and certified with the commitment.
The amount a certified state authorizes, including its refund.
Compose the ACT commitment and refund-binding target encoder. A commitment need not accept
the refund as part of its message: tag binds that separately granted amount to the commitment.
Bookkeeping after extraction: issued states not yet consumed, all spent nullifiers, and the total granted and paid amounts. Several available states may share a nullifier.
The ledger before any funding or spending.
Total credit in remaining certificates. A certificate with a spent nullifier is included; such a certificate cannot be redeemed, so this is an upper bound on redeemable credit.
All granted credit is either paid or still represented in a remaining certificate.
Instances For
Consume a known certified state once and create its change state. The nullifier check and the update occur in the same transition. An issuer may choose any new nullifier; choosing one already spent creates a stranded state rather than authorizing a replay.
The empty ledger has no unpaid or granted credit.
Registering funding preserves conservation, including when its nullifier was already used.
An accepted spend preserves credit exactly: the old state finances the debit and its change;
only the new issuer refund is added to the total grant. Membership and range checks are executed
by spend, rather than supplied as assumptions about the adversary.
A spent nullifier is rejected even if the ledger contains another certificate with that nullifier, or the issuer later funds such a certificate.