Draft issuer bridge and carry-bit boundary for single-issuer VOLE-ACT #
Cslib.Crypto.AnonymousToken.Conservation analyzes a permissive extracted game in which the
adversary supplies the initial balance T and the spend refund x' directly, and range checks
(V4, plus T ≥ 1) are omitted. In the draft specification ([ZPS26], Protocol
Specification), T is agreed out of band via the issuer's issuance policy (T ∈ [1..2^(8*L)]),
x' is chosen by the issuer in SpendResponse, and range checks are enforced (T_init ≠ 0 at
issuance; t', x, d < 2^(8*L) in SpendRelation (V4), t < 2^(8*L) from witness size, and
d, x' < 2^(8*L) in SpendResponse) with rejection replies.
This module formalizes that stateful, probabilistic draft-style issuer within the extracted-witness
model and proves an exact, zero-loss simulation reduction (bridgeAdversary,
eval_extractedDraftConservationExperiment_eq) into Conservation.extractedConservationExperiment.
Because Conservation's bound already holds for the permissive issuer and the conservation win
predicate depends only on the log of accepted requests, the range checks, T ≥ 1 guard, and
ticket single-use serve faithfulness to the draft rather than tightening the inequality; composing
with Conservation directly transfers the concrete EUF-CMA and target/keyless-commitment binding
bounds to extractedDraftConservationExperiment, while bridgeAdversary_queryBound preserves query
budgets.
This draft-style game, the ticket-allocation device (agreeIssue/consumed), and the simulation
reduction are original to this library. Modeling choices relative to the draft pseudocode:
IssuerPolicyis fixed beforekeyGenand has no access to(pk, sk).- Out-of-band issuance agreement is modeled by
.agreeIssuereturning a sequential ticket index, and.issueenforcesamt < boundalongside1 ≤ amt(representing the draft's input-domain boundT_init < 2^(8*L)). acceptDraftSpendPreenforces(V1)–(V4)and nullifier freshness before invokingpolicy.chooseRefund(matching the draft's Overview order rather thanSpendResponseinput order):policy.chooseRefundis not called whenacceptDraftSpendPrefails, whereas whenpolicy.chooseRefundreturnsnoneorrefund ≥ bound, the spend is rejected after the policy runs and retains its updatedpolicyState.- A spend's
ctxis read fromDraftSpendRequest.ctxand matched against the certified input note, allowing multi-context requests under one oracle.
This bridge stays in the extracted-witness model and bounds oracle queries rather than runtime:
VOLEitH proof extraction, zero-knowledge, random-oracle or ideal-permutation arguments for Com
and Tag, and multi-issuer selection remain tracked under #7068; the certified uniform strict
oracle-PPT realization bridgeAdversaryWord and its word-level game theorem live in
IssuerBridgePolyTime.
It also establishes the standalone arithmetic carry-bit boundary explaining why (V3) uses full
integer equality rather than equality modulo 2 ^ w: for w-bit sums < 2 ^ (w + 1) (as implied
by (V4) < 2 ^ w), equality holds if and only if modular equality modulo 2 ^ w holds together
with matching top carry bit Nat.testBit · w (eq_iff_mod_eq_and_testBit_eq), and any modular
collision between sums under 2 * bound forces an exact bound-credit wraparound discrepancy
(wraparound_gap_of_mod_eq_ne).
Main definitions #
IssuerPolicy: stateful, probabilistic key-independent issuer policy supplying agreed issuance amounts and spend refunds from public spend metadata only.IssueAgreement,SpendReply,AgreedTicket,DraftIssueRequest,DraftSpendRequest,DraftQuery,draftReply,IssuerState: draft-style queries, named replies, and stateful issuer bookkeeping, without adversary-chosenTorx'.draftIssuerOracle(with client transition lawsrun_draftIssuerOracle_agreeIssue,run_draftIssuerOracle_issue,run_draftIssuerOracle_spend),DraftAdversary,ExtractedDraftConservationExecution,runExtractedDraftConservation,extractedDraftConservationAccept,extractedDraftConservationExperiment: draft-style stateful issuer oracle and extracted conservation game with range and policy rejections.agreeIssueTransition,commitDraftIssue,acceptedSpendRefund,commitDraftSpend: reusable draft-transition helpers shared with sibling issuer games.bridgeAdversary(with verification cost weightdraftVerifyCost): explicit simulation reduction toConservation.ExtractedAdversary.
Main results #
bridgeAdversary_verifyCostBounded,bridgeAdversary_queryBound:bridgeAdversarypreserves sharp verification-query budgets (draftVerifyCost, charging0to.agreeIssue) and total query budgets (≤ q).simulate_bridgeAdversary_eq_of_forall: invariance ofbridgeAdversaryunder oracle filtering whenever every forwarded request satisfies a decidable predicateP.eval_extractedDraftConservationExperiment_eq: exact zero-loss distribution equality betweenextractedDraftConservationExperimentandConservation.extractedConservationExperimentonbridgeAdversary.extractedDraftConservationExperiment_succProbability_le,extractedDraftConservationExperiment_succProbability_le_prod_mk: concrete EUF-CMA plus binding bounds against the draft-style issuer.eq_iff_mod_eq_and_testBit_eq,wraparound_gap_of_mod_eq_ne: exact carry-bit equivalence andbound-credit wraparound separation under(V4)range limits.
References #
- VOLE-ACT, Protocol Specification / Parameters (
#parameters), Initial Issuance (#issuance), and Spending (#spending).
Issuer policy, draft-style requests, and range checks #
Stateful, probabilistic policy driving a draft-style issuer: fixed independently of the
certification keys (pk, sk), agreeIssue chooses (or declines) the initial credit balance T
during out-of-band issuance agreement, and chooseRefund chooses (or declines) the spend refund
x' from public spend metadata (ctx, nf, d, c') without seeing private witnesses.
- init : ProbComp PolicyState
Initial private state of the issuer policy.
Stateful, probabilistic initial-balance agreement (
T_init) for context and hint.Stateful, probabilistic refund selection (
x') given public spend request data.
An extracted draft-style issuance submission referencing an agreed ticket (a library-specific
representation of out-of-band T_init agreement). Neither ctx nor amount is chosen in this
message; both come from the issuer's ticket.
- ticket : ℕ
Identifier returned by an earlier
.agreeIssuequery. - commitment : Commitment
Commitment
cto(nullifier, ctx, T)underopening. - nullifier : Nullifier
Extracted nullifier
nf. - opening : Opening
Extracted opening randomness
r.
An extracted draft-style spend submission: identical to Conservation.SpendRequest except that
the refund x' is omitted because the issuer chooses it in SpendResponse.
- ctx : Context
Issuance context
ctxshared by input and change tokens. - nullifier : Nullifier
Revealed nullifier
nfof the spent token. - debit : ℕ
Amount
ddebited by this spend. - 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
son the input state. - 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.
Promote a DraftSpendRequest to Conservation.SpendRequest using issuer-chosen refund.
Check upper bounds < bound on the client-supplied debit d, extracted witness balance t
(bounded implicitly by the draft's witness field 2^(8*L)), and (V4) fields x, t'
([ZPS26], SpendRelation V4 and SpendResponse step 2).
Queries admitted by the draft-style extracted issuer oracle: out-of-band issuance agreement, issuance submission, and spend submission.
- agreeIssue {Nullifier Context Opening Commitment Sig IssueHint : Type} (ctx : Context) (hint : IssueHint) : DraftQuery Nullifier Context Opening Commitment Sig IssueHint
Negotiate an initial balance
Tunderctxwith policy hinthint. - issue {Nullifier Context Opening Commitment Sig IssueHint : Type} (req : DraftIssueRequest Nullifier Opening Commitment) : DraftQuery Nullifier Context Opening Commitment Sig IssueHint
Submit an issuance commitment and extracted opening for an agreed ticket.
- spend {Nullifier Context Opening Commitment Sig IssueHint : Type} (req : DraftSpendRequest Nullifier Context Opening Commitment Sig) : DraftQuery Nullifier Context Opening Commitment Sig IssueHint
Submit a spend request and extracted witness; the issuer supplies any refund
x'.
Out-of-band issuance agreement reply returning the sequential ticket index and agreed balance
T.
Spend reply returning the issuer-chosen refund x' and certification signature on
Tag(c', x').
- refund : ℕ
Refund
x'chosen by the issuer policy. - signature : Sig
Issuer certification signature on the change token.
Reply type of each DraftQuery: Option IssueAgreement for .agreeIssue, Option Sig for
.issue, and Option (SpendReply Sig) for .spend.
Private state of the draft-style issuer: policy state, issued agreement tickets, consumed
ticket indices, and accepted Conservation.Request log (oldest first).
- policyState : PolicyState
Current private state of the issuer policy.
- pending : List (AgreedTicket Context)
Agreed issuance tickets indexed by allocation order.
Ticket indices already redeemed by an accepted
.issuecall.- accepted : List (Conservation.Request Nullifier Context Opening Commitment Sig)
Accepted requests recorded in
Conservation.Requestformat, oldest first.
Validate a .issue submission for draftIssuerOracle and bridgeAdversary (via internal
bridgeHandler) against st.pending, single-use st.consumed, 1 ≤ amt (T_init ≠ 0 in
IssueResponse), amt < bound (the draft's [1..2^(8*L)] input domain), and the IssueRelation
commitment check. Returns none on rejection without modifying state.
Pre-refund validity check for .spend, called by draftIssuerOracle and bridgeAdversary
(via internal bridgeHandler) before policy.chooseRefund: enforces (V4) < bound on
d, t, x, t', (V1)–(V3), and spent-nullifier uniqueness against st.accepted.
Apply an agreeIssue policy decision amt? under ctx, returning none when declined or a
sequential ticket IssueAgreement appended to st.pending while updating st.policyState.
Commit an accepted .issue request creq with signature σ, marking ticket consumed and
appending creq to st.accepted.
Commit an accepted .spend request creq with refund refund and signature σ, appending
creq to st.accepted.
Draft-style stateful issuer oracle implementing out-of-band T agreement, issuer-chosen x',
T ≥ 1 and < bound (V4) range checks, (V1)–(V3), and nullifier-uniqueness rejections.
Rejected .issue calls leave st.consumed and st.policyState unchanged; .spend calls failing
acceptDraftSpendPre return none without calling policy.chooseRefund, whereas chooseRefund
returning none or refund ≥ bound updates policyState before returning none.
Transition law of draftIssuerOracle on .agreeIssue: samples policy.agreeIssue and, on
some amt, allocates the next sequential ticket under ctx.
Transition law of draftIssuerOracle on .issue: validates via acceptDraftIssue, signs the
accepted request, marks the ticket consumed, and appends to st.accepted.
Transition law of draftIssuerOracle on .spend: skips policy.chooseRefund when
acceptDraftSpendPre fails, otherwise samples the policy, rejects none or refund ≥ bound
retaining the updated policyState, and otherwise signs and logs the spend request.
An adaptive adversary interacting with the draft-style issuer oracle and returning a target
context ctx*.
The public key, target context, and accepted request log of an extracted draft conservation execution.
- publicKey : PK
Public verification key sampled by the experiment.
- targetCtx : Context
Target context
ctx*output by the adversary. - accepted : List (Conservation.Request Nullifier Context Opening Commitment Sig)
Accepted requests recorded in
Conservation.Requestformat, oldest first.
Execute A against the draft-style stateful issuer in the extracted-witness model.
Acceptance predicate of the extracted draft conservation game, delegating directly to
Conservation.extractedConservationAccept.
Extracted draft-style VOLE-ACT credit-conservation experiment ([ZPS26], Protocol
Specification). Unlike Conservation.extractedConservationExperiment, initial amounts T are
agreed via policy.agreeIssue, spend refunds x' are chosen by policy.chooseRefund, and (V4)
plus 1 ≤ T < bound range checks are enforced with none rejection replies. Because this game is
still in the extracted-witness model, extraction from VOLEitH proofs, zero-knowledge, RO/ideal-
permutation arguments, and runtime efficiency certificates remain outside this model (#7068).
Simulation reduction to Conservation #
Explicit simulation reduction from DraftAdversary to Conservation.ExtractedAdversary.
Encapsulates policy, ticket tracking, and (V4) range rejections while forwarding only accepted
issuances and spends to Conservation.extractedIssuerOracle. Query bounds are proved in
bridgeAdversary_queryBound; the certified uniform strict oracle-PPT bit-string realization
bridgeAdversaryWord and its PMF law equality live in IssuerBridgePolyTime (#7068).
Query cost charging 0 to .agreeIssue (which makes no Conservation oracle call) and 1
to .issue and .spend.
bridgeAdversary makes at most q Conservation queries whenever A has draftVerifyCost
budget q, charging 0 to .agreeIssue calls.
bridgeAdversary makes at most q queries to the Conservation oracle whenever A makes
at most q draft-oracle queries (no runtime or polynomial-time certificate is claimed here; #7068).
Filtering bridgeAdversary's Conservation oracle calls through a decidable predicate P is a
no-op whenever every request emitted by acceptDraftIssue or acceptDraftSpendPre +
acceptedSpendRefund satisfies P.
Every request produced by acceptDraftIssue passes Conservation.acceptRequest.
Any request satisfying acceptDraftSpendPre passes Conservation.acceptRequest for every
refund.
Exact simulation equality in the extracted-witness model: the draft-style conservation
experiment has the exact same Boolean distribution as
Conservation.extractedConservationExperiment on bridgeAdversary, with zero probability loss.
This bridges Conservation.extractedConservationExperiment's permissive game to the draft's
stateful issuer within the extracted-witness model (extraction, zero-knowledge, RO/ideal-permutation
realization, and PPT runtime certificates remain outside this model, #7068).
Concrete extracted-model bound for the draft-style issuer: winning
extractedDraftConservationExperiment yields either a targetForger existential forgery against
S or a target collision in noteForger's run, each with coefficient one. Not a
credit-conservation theorem for the unextracted protocol; VOLEitH extraction, zero-knowledge,
RO/ideal-permutation realization, and PPT machine witnesses remain outside this model (#7068).
Concrete extracted-model keyless-commitment specialization at tag = Prod.mk: winning
extractedDraftConservationExperiment yields either a targetForger EUF-CMA forgery against S
or a binding collision for a keyless commitment scheme CS whose verifier accepts exactly when
com nf ctx t o = c under every key (hverify), via Conservation.commitmentBindingReduction,
each with coefficient one. VOLEitH extraction, zero-knowledge, RO/ideal-permutation realization,
and PPT machine witnesses remain outside this model (#7068).
Carry-bit vs modular arithmetic boundary under (V4) #
Arithmetic carry-bit boundary for sums < 2 ^ (w + 1) (in particular t + x and t' + d
under w-bit (V4) bounds < 2 ^ w, where the draft sets w = 8 * L): integer equality
a = b holds if and only if modular equality modulo 2 ^ w holds together with equality of the
(w + 1)-st carry bit Nat.testBit · w ([ZPS26], Spending V3 and V4).
Under (V4) bounds < bound, any pair of sums (t + x) and (t' + d) that agree modulo
bound yet violate integer (V3) (t + x ≠ t' + d) differs by an exact bound-credit wraparound
(t' + d = t + x + bound ∨ t + x = t' + d + bound).