Extracted credit conservation for single-issuer VOLE-ACT #
This module proves an extracted-model reduction step for credit conservation in single-issuer VOLE-ACT. The game, both parts of the argument and the reductions are original to this library. The source draft leaves the protocol's security reductions open ([ZPS26], Security Considerations / Proof status).
The protocol data follow the draft. A token certifies Tag(Com(nf, ctx, t, r), x) ([ZPS26],
Overview and Protocol Specification / Parameters / Tag). Issuance certifies Tag(c, 0) for a
commitment c to (nf, ctx, T) (Protocol Specification / Initial Issuance). A spend reveals nf,
debits d and commits to the change state as c'; the issuer then certifies Tag(c', x') for a
refund x' it grants. The spend relation checks that the input state was certified (V1), that c'
opens to the change state (V2), and that t + x = t' + d over the integers (V3). The caller
rejects a nullifier it has already recorded (Protocol Specification / Spending and Spend Response).
Here the commitment is any function com : Nullifier → Context → ℕ → Opening → Commitment, the
tag is any tag : Commitment → ℕ → Target, and the certifier is any
S : Signature.Scheme PK SK Target Sig. Targets use the two-stage encoder Credit.target com tag,
and semantic notes reuse Credit.Note. The KP800 and MQ instantiations are the intended uses and
are not formalized here. The game is a permissive modeling choice. It omits the range checks (V4,
and T ≥ 1 at issuance), and every amount T, debit d and refund x' comes from the
adversary's request. In the draft, T is agreed out of band and is the issuer's own input, and the
issuer chooses x'. The bounds below hold for this game as stated. IssuerBridge
(CslibFrontier/Crypto/Protocols/AnonymousToken/IssuerBridge.lean) transfers them without
probability loss to a stateful, probabilistic draft-style issuer with issuer-agreed initial
balances, issuer-chosen refunds, and range rejections.
In the extracted model, every request carries the witness that a knowledge extractor for its
VOLEitH proof would output, next to its public statement, and the issuer checks the relation on
that witness directly. The knowledge-extraction error of the VOLEitH proof system, zero-knowledge,
random-oracle or ideal-permutation arguments for Tag and Com, Keccak, the UOV instantiation,
multi-issuer selection and runtime bounds are all outside this module. The results are therefore
a reduction step toward credit conservation, not a credit-conservation theorem for the
unextracted protocol.
Part I (spentDebit_le_of_certified) is the deterministic accounting core. Take any list of
requests, in any order, in which every spend satisfies the balance equation t + x = t' + d (V3),
spent (ctx, nf) pairs are pairwise distinct, and every spend's input note is the output note of
some request in the list. Then ∑ d ≤ ∑ T + ∑ x' in every context. Part I involves no
commitment function, tag function or signature scheme, and no commitment-binding premise.
Part II is the adaptive game. extractedConservationExperiment runs the adversary against an
issuer oracle built on ProbOracleComp.runLogWith. The issuer signs tag c 0 or tag c' x' from
public data only and rejects a reused (ctx, nf) against its log. The adversary wins if, in a
context it names at the end, debits exceed issued credit plus refunds. The explicit reduction
noteForger simulates the issuer with a semantic signing oracle. When the adversary wins, Part I
yields a spend whose input note was never certified, so noteForger wins
Cslib.Crypto.AnonymousToken.extractedExperiment
(extractedConservationExperiment_succProbability_le_extractedExperiment). Composing with
extracted_succProbability_le bounds the game by the EUF-CMA success of targetForger plus the
probability that the forger's run contains a target collision (bindingExperiment), each with
coefficient one (extractedConservationExperiment_succProbability_le). As in Basic, the EUF-CMA
term is for chosen targets, so it need not be small for a raw UOV map. For tag = Prod.mk, the
target-collision term is in turn bounded by the binding game of a keyless
Cslib.Crypto.Commitment.Scheme, one whose verifier, under every key, accepts exactly when
com nf ctx t o = c (bindingExperiment_prod_mk_le_commitment). Keyed commitments, whose
verifier depends on the key, are out of scope.
The totals here do not reuse Credit.Ledger. The ledger is a sequential state invariant, while
Part I is a statement about an unordered transcript and does not depend on execution order.
Main definitions #
IssueRequest,SpendRequest,Request: extracted-witness issuance and spend requests, withSpendRequest.inputNote,SpendRequest.inputPayload,Request.outputPayload, and the publicRequest.signedMessage.acceptLocal,hasSpentNullifier,acceptRequest,validTrace: per-request checks (V1, V2, V3) and stateful nullifier uniqueness across an oldest-first accepted trace.issuedAmount,spentDebit,grantedRefund: context-scoped credit totals.findNoteForgery: explicit post-run search for a spend whose inputCredit.Noteis not among the accepted output notes.extractedIssuerOracle,ExtractedAdversary,ExtractedConservationExecution,runExtractedConservation,extractedConservationAccept,extractedConservationExperiment: the extracted credit-conservation game.noteForgerHandler,noteForger: explicit simulation reduction toExtractedForger.commitmentBindingReduction: fortag = Prod.mk, explicit reduction from target collisions to a double opening ofcom.
Main results #
acceptLocal_of_validTrace,balance_of_validTrace,nodup_spends_of_validTrace: invariants of accepted traces.spentDebit_le_of_certified: deterministic, order-independent accounting core (∑ d ≤ ∑ T + ∑ x').noteForger_queryBound:noteForgerqueries the signing oracle at most once per request of the adversary; withtargetForger_queryBoundthe same holds fortargetForgeronnoteForger.runExtractedConservation_log_length_le: aq-query adversary logs at mostqaccepted requests.extractedConservationExperiment_succProbability_le_extractedExperiment: the game is bounded byextractedExperiment S (Credit.target com tag) (noteForger com tag S A).extractedConservationExperiment_succProbability_le: the game is bounded by the EUF-CMA success oftargetForgerplus the target-collision probability onnoteForger.checkBindingWitness_prod_mk_iff: fortag = Prod.mk, a target binding witness is equivalent to equal refunds, distinct(nullifier, ctx, credit)triples, and equal commitments.bindingExperiment_prod_mk_le_commitment,extractedConservationExperiment_succProbability_le_prod_mk: fortag = Prod.mk, the target-collision term is bounded by the binding of a keyless commitment scheme.
References #
- VOLE-ACT, Overview (
#overview), Protocol Specification / Parameters / Tag (#tag), Initial Issuance (#issuance) and Spending (#spending), and Security Considerations / Proof status (#proof-status).
Requests, payloads, and acceptance checks #
An extracted issuance request (issue ctx T c with witness (nf, r)).
An extracted spend request (spend ctx nf d x' c' with witness (t, r, x, s, nf', t', r')).
- ctx : Context
Issuance context
ctxshared by input and change tokens. - nullifier : Nullifier
Revealed nullifier
nfof the spent token. - debit : ℕ
Amount
ddebited by this spend. - refund : ℕ
Refund
x'granted by the issuer on the change token. - changeCommitment : Commitment
Commitment
c'to the change token. - oldCredit : ℕ
Extracted committed balance
tof the input token. - oldOpening : Opening
Extracted opening randomness
rof the input token. - oldRefund : ℕ
Extracted prior refund
xcarried by the input token. - signature : Sig
Extracted certification signature
sonCredit.target com tag inputNote oldOpening. - newNullifier : Nullifier
Extracted nullifier
nf'of the change token. - newCredit : ℕ
Extracted committed balance
t'of the change token. - newOpening : Opening
Extracted opening randomness
r'of the change token.
An adversary request to the extracted single-issuer VOLE-ACT oracle.
- issue {Nullifier Context Opening Commitment Sig : Type} (req : IssueRequest Nullifier Context Opening Commitment) : Request Nullifier Context Opening Commitment Sig
- spend {Nullifier Context Opening Commitment Sig : Type} (req : SpendRequest Nullifier Context Opening Commitment Sig) : Request Nullifier Context Opening Commitment Sig
The issuance context targeted by a request.
The target message signed by the real issuer when req is accepted: tag c 0 for
issuance, tag c' x' for spend. Notice this depends only on the public commitment and refund.
The semantic input Credit.Note consumed by a spend request.
The semantic input payload (inputNote, oldOpening) certified by req.signature.
The semantic output payload created by an accepted request: (⟨nf, ctx, T, 0⟩, r) for
issuance and (⟨nf', ctx, t', x'⟩, r') for spend.
Per-request validity checks, independent of prior spent nullifiers:
for issuance, com nf ctx T r = c; for spend, (V1) verification on
Credit.target com tag inputNote oldOpening, (V2) change commitment opening
com nf' ctx t' r' = c', and (V3) natural-number balance conservation t + x = t' + d (no
modular wraparound). The draft's (V4) range bounds are omitted here and enforced in
Cslib.Crypto.AnonymousToken.IssuerBridge (acceptDraftIssue, acceptDraftSpendPre).
Whether (ctx, nf) already appears as the spent nullifier of an accepted spend in reqs.
The draft keeps nullifier records per issuer key and issuance context ([ZPS26], Protocol
Specification / Spend Response); with the single issuer key here, that scope is (ctx, nf).
Full issuer acceptance check for req given pk and accepted prefix accepted.
Check that an oldest-first request trace reqs is sequentially accepted starting from the
already-accepted prefix accepted.
Check that an oldest-first request trace reqs is sequentially accepted from empty history.
Accounting quantities and forgery search #
All spend requests in reqs, preserving order.
All issuance requests in reqs targeting context ctx.
All spend requests in reqs targeting context ctx.
Total issued credit ∑ T across accepted issuances in context ctx.
Total debited credit ∑ d across accepted spends in context ctx.
Total granted refunds ∑ x' across accepted spends in context ctx.
Search reqs for the first spend whose input Credit.Note never appears as an output note of
any request in reqs, returning the semantic forgery witness ⟨s.inputPayload, s.signature⟩.
Part I: Deterministic accounting core #
Every request in a validTrace satisfies its local check (acceptLocal).
Spend (ctx, nullifier) pairs are pairwise distinct across a validTrace.
Every spend in a trace accepted by validTrace satisfies the (V3) balance equation, the
first premise of spentDebit_le_of_certified.
Extracted-model accounting step, original to this library: for any request list reqs
(in any order) in which every spend satisfies the balance equation t + x = t' + d (the (V3)
check of acceptLocal), spent (ctx, nullifier) pairs are pairwise distinct, and every spend's
semantic input Credit.Note matches some request's output Credit.Note, total debited credit in
every context ctx is at most total issued credit plus total granted refunds in ctx. This step is
deterministic. No commitment, tag, signature, or opening check enters it, so it needs no
commitment-binding or signature premise.
findNoteForgery reqs = none iff every spend in reqs uses a certified input note.
If findNoteForgery reqs = some tok, then tok is the payload/signature pair of some spend
in reqs whose input note never appeared among the output notes in reqs.
Part II: Adaptive game, reduction to AnonymousToken, and probability bound #
The log-reading issuer oracle passed to ProbOracleComp.runLogWith: if req is accepted
given pk and the previously logged accepted requests, return
some (some <$> S.sign sk (req.signedMessage tag)); otherwise return none, in which case
runLogWith answers default (here none : Option Sig) and does not log the request.
An adaptive adversary in the extracted VOLE-ACT credit-conservation game: given pk, it
queries the extracted issuer oracle and outputs the context ctx* it claims is violated.
The public key, target context, and accepted transcript of a credit-conservation run.
- publicKey : PK
Public verification key sampled by the experiment.
- targetCtx : Context
Target context
ctx*output by the adversary. Accepted requests paired with their issued
some σreplies, oldest first.
Execute A against the extracted VOLE-ACT issuer.
Acceptance predicate of the credit-conservation game: under run.targetCtx, total spend
debits strictly exceed total issued credit plus total granted refunds.
The extracted VOLE-ACT credit-conservation experiment, original to this library (the source
draft states no security game): the adversary submits requests whose witnesses are given in the
clear, and wins if the accepted transcript overspends run.targetCtx. The error of extracting
those witnesses from VOLEitH proofs is outside this model.
Stateful simulation handler used by noteForger: forwards each accepted request's
req.outputPayload to the external semantic signing oracle once while recording accepted requests;
rejected requests make no oracle query and return none.
Explicit semantic-forgery reduction noteForger from ExtractedAdversary to
ExtractedForger PK (Credit.Note Nullifier Context) Opening Sig: simulates the VOLE-ACT issuer
via noteForgerHandler and outputs the first spend whose input Credit.Note never appeared among
accepted output notes. The Inhabited instances only supply a default token for the branch where
no such spend exists; there the conservation game is lost by spentDebit_le_of_certified, so the
default does not affect the bound.
noteForger makes at most q semantic-signing queries whenever A makes at most q
issuer requests. No runtime bound or fair-coin efficiency follows from this oracle-call bound
alone.
A q-query adversary logs at most q accepted requests in runExtractedConservation.
Extracted-model reduction step, original to this library; it couples the
credit-conservation game to Cslib.Crypto.AnonymousToken.extractedExperiment. Any adversary
winning the extracted VOLE-ACT credit-conservation game yields a winning semantic forgery via
noteForger with at least the same probability.
Extracted-model reduction step, original to this library; this is not a credit-conservation
theorem for the unextracted protocol. Every winning adversary against the extracted
credit-conservation game yields either a target existential forgery via
targetForger (Credit.target com tag) (noteForger com tag S A) or a target collision in the
forger's run, measured by bindingExperiment S (Credit.target com tag) (noteForger com tag S A);
both terms have coefficient one. For tag = Prod.mk the second term is bounded by commitment
binding in bindingExperiment_prod_mk_le_commitment. The error of extracting witnesses from
VOLEitH proofs is outside this model.
With Target = Commitment × ℕ and tag := Prod.mk, the identity encoding of (c, x) that
abstracts the draft's Tag step, a valid target binding witness for Credit.target com Prod.mk
is equivalent to equal refunds, distinct (nullifier, ctx, credit) triples, and equal com
evaluations.
Convert a binding witness for Credit.target com Prod.mk into a commitment binding
collision over (nullifier, context, credit) triples.
noteBindingCollision on a found witness. With no witness it returns a trivial pair that
opens com default default 0 default twice to the same message, which is never a collision.
Extracted-model reduction step, original to this library: runs bindingReduction for
Credit.target com Prod.mk on noteForger, ignoring the commitment key. A witness with payloads
(⟨nf₀, ctx₀, t₀, _⟩, r₀) and (⟨nf₁, ctx₁, t₁, _⟩, r₁) becomes the pair of openings of
com nf₀ ctx₀ t₀ r₀ to (nf₀, ctx₀, t₀) under r₀ and to (nf₁, ctx₁, t₁) under r₁. With no
witness, the output opens com default default 0 default twice to the same message, which is
never a collision.
Unfolding specification for commitmentBindingReduction at any key k.
Extracted-model reduction step, original to this library: the target-binding success
probability of noteForger under Credit.target com Prod.mk is at most the commitment-binding
success probability of commitmentBindingReduction against a keyless scheme CS, one whose
verifier accepts exactly when com nf ctx t o = c under every key (hverify). The reduction
ignores the commitment key, so keyed commitments are out of scope.
Extracted-model reduction step, original to this library: at tag = Prod.mk, any adversary
winning the extracted credit-conservation game yields either a target forgery via targetForger
or a commitment binding collision via commitmentBindingReduction, for a keyless scheme CS whose
verifier accepts exactly when com nf ctx t o = c under every key (hverify).