Polynomial-time reduction witnesses for anonymous tokens and VOLE-ACT #
This module provides uniform strict-PPT / oracle-PPT word-level realizations and runtime
certificates for the extracted-model reductions in CslibFrontier.Crypto.Protocols.AnonymousToken
(tracked under #7068):
Cslib.Crypto.AnonymousToken.targetForgerWord(Basic.targetForger),Cslib.Crypto.AnonymousToken.bindingReductionWord(Basic.bindingReduction),Cslib.Crypto.AnonymousToken.Conservation.noteForgerWord(Conservation.noteForger), andCslib.Crypto.AnonymousToken.Conservation.commitmentBindingReductionWord(Conservation.commitmentBindingReduction).
Each reduction is certified directly against IsPPTOn / IsOraclePPTOn / IsPPT / IsOraclePPT
with truncated adaptive oracle replies (IsOraclePPTOn.query_take) and proved equal in PMF law
to its typed extracted-model counterpart when instantiated on a WordSignatureScheme and a
polynomial-time target / commitment function. Combining WordSignatureScheme.EUFCMA and
CollisionResistant yields asymptotic word-level unforgeability and extracted credit conservation
without introducing any new hardness assumptions or leaking ComputableTidily / IsTidy.
This module stays within the extracted-witness asymptotic word model; the single-issuer draft
bridge (including issuer V4 range and policy enforcement) lives in IssuerBridgePolyTime,
while VOLEitH witness extraction, zero-knowledge, and RandomTarget.reduceRedemptions remain
separate (#7068).
Because word-level adversaries (WordExtractedForgerOf, WordExtractedAdversary) emit arbitrary
bit strings w : List Bool as oracle queries, both reductions (targetForgerWordOf,
noteForgerHandlerWord) and their corresponding word games (extractedTokenWordGame,
extractedConservationWordGame, via .toTyped) process every query as the typed value returned
by its total Decoder (payloadDecoderOf D, wordRequestDecoder), rather than rejecting
malformed query words as parse errors under a PartialDecoder. Because these total decoders
still parse pieces of the input (e.g., pair components or the leading tag bit selecting issue
vs. spend before decoding the tail), the resulting typed value can depend on the malformed input.
Encodings and total decoders #
Encoding of a bit-string binding witness.
Total decoder for encWordPair.
Total decoder for encPayloadOf encM given a total decoder for encM.
Total decoder for encWordPayload.
Word-level extracted forgers and targetForgerWord #
A word-level extracted forger receives (n, pkParam) and queries the word payload channel
((), encPayloadOf encM payload) for bit-string signatures, returning a Token.
Restrict a word-level extracted forger at verification key spk and auxiliary parameter ck
encoded via encWordPair (spk, ck).
Interpret a word-level extracted forger as a typed ExtractedForger by processing every
query as the Payload returned by the total decoder payloadDecoderOf D, rather than rejecting
malformed query words (PartialDecoder), matching the oracle view simulated inside
targetForgerWordOf.
Generic word-level target-forgery reduction corresponding to targetForger: runs A on
encWordPair (spk, ck), decodes each payload query with payloadDecoderOf D, forwards
target n ck payload.message payload.opening to the signing oracle with reply truncation
sigBound, and outputs (target n ck tok.payload.message tok.payload.opening, tok.signature).
targetForgerWordOf is uniform strict oracle PPT on (n, (spk, ck)) whenever A,
sigBound, and target are polynomial-time.
Word-level target-forgery reduction corresponding to targetForger: specializes
targetForgerWordOf Decoder.bits.
targetForgerWord is uniform strict oracle PPT on (n, (spk, ck)) whenever A, sigBound,
and target are polynomial-time.
At every security parameter n and public parameter ck, targetForgerWord matches the typed
Basic.targetForger reduction inside EUFCMA, provided sigBound bounds supported signature
lengths of S.
bindingReductionWord and asymptotic extracted-token security #
Word-level logged execution corresponding to runExtracted: generates keys ← S.keyGen n,
runs A on encWordPair (keys.1, ck) against S.sign keys.2 after decoding each request with
payloadDecoderOf D, and records every semantic payload query and reply.
runExtractedWord is uniform strict PPT in (n, ck) whenever target and A are
efficient.
runExtractedWord agrees in PMF law with Basic.runExtracted on S.toScheme n and
WordExtractedForgerOf.toTyped.
Finding a binding witness in a transcript runs in plain polynomial time.
Word-level binding reduction corresponding to Basic.bindingReduction: executes
runExtractedWord and searches the transcript for a target collision with the output payload.
bindingReductionWord is uniform strict PPT in (n, ck).
bindingReductionWord has the exact PMF law of Basic.bindingReduction on S.toScheme n
and WordExtractedForgerOf.toTyped.
Key-sampling EUF-CMA wrapper around targetForgerWord for wordPayloadTarget H.
sampledTargetForger is uniform strict oracle PPT whenever sigBound, H, and A are
efficient.
Collision finder extracted from bindingReductionWord by mapping some w to its two distinct
encoded payloads (encWordPayload w.first, encWordPayload w.second).
targetCollisionFinder is uniform strict PPT whenever H and A are efficient.
Word-level extracted anonymous-token game: sample ck ← BitString.sampleList n, run
runExtractedWord with wordPayloadTarget H, and accept when extractedAccept holds. Every
bit-string oracle query from A is processed as the Payload returned by the total decoder
payloadDecoderOf Decoder.bits (WordExtractedForgerOf.toTyped Decoder.bits), rather than
rejecting malformed query words (PartialDecoder).
extractedTokenWordGame has the exact PMF law of sampling ck ← BitString.sampleList n
and running extractedExperiment on (A.atKey ck).toTyped Decoder.bits n.
Word-level unforgeability of extracted anonymous tokens: assuming only S.EUFCMA,
CollisionResistant H, and efficient H and A (with the signature length bound obtained
internally from S.toSignatureScheme.exists_sign_length_bound), any oracle-PPT adversary has
negligible winning probability in extractedTokenWordGame.
Extracted VOLE-ACT conservation: noteForgerWord #
Binary-credit encoding of semantic Credit.Notes with bit-string nullifiers and contexts.
Equivalence between Request and the sum IssueRequest ⊕ SpendRequest.
Inputs (nullifier, context, credit, opening) supplied to note commitment functions.
Nullifier of the note being committed.
Issuance context of the note being committed.
- credit : ℕ
Credit balance committed in the note.
Opening randomness of the commitment.
Total decoder for encNotePayload.
wordTag is injective as a function of (commitment, refund).
wordTag is computable in polynomial time under encTagPair.
Lift a WordSignatureScheme at security parameter n via tag to a typed scheme signing
(commitment, refund) pairs.
Interpret a word-level conservation adversary as a typed ExtractedAdversary at (n, ck)
by processing every word query as the Request returned by the total decoder wordRequestDecoder,
rather than rejecting malformed query words (PartialDecoder), matching the oracle view simulated
inside noteForgerHandlerWord.
Extracting Request.outputPayload from a bit-string Request is computable in plain
polynomial time.
Dependent case elimination on a computed Request runs in plain polynomial time whenever both
the .issue and .spend branches do.
Conservation.hasSpentNullifier on bit-string logs and (ctx, nf) pairs runs in plain
polynomial time.
Conservation.acceptRequest over bit-string parameters, request log, and decoded request
is computable in plain polynomial time.
Conservation.findNoteForgery on bit-string accepted request logs runs in plain
polynomial time.
Parameterized stateful handler for word-level note-forgery reductions: decodes each
Request, checks accept, queries the external note signing oracle with sigBound-truncation on
computed target length, and records accepted requests.
noteForgerHandlerWordOf is uniform strict oracle PPT whenever sigBound, accept, and
target are computable in polynomial time.
Every transition of noteForgerHandlerWordOf increases encRequestLog by at most one decoded
request plus framing overhead.
Generic execution phase for word-level note-forgery reductions, running A n keys under
handler n keys.
Generic word-level note-forgery reduction extracting the first uncertified spend note after
noteForgerRunOf handler A.
noteForgerWordOf handler is uniform strict oracle PPT whenever handler is uniform strict
oracle PPT with linear request-log growth per call.
Stateful handler used by noteForgerWord: decodes each Request, checks acceptRequest
against pairScheme S tag, queries the external note signing oracle with sigBound-truncation on
accepted requests, and records accepted requests.
Word-level semantic note-forgery reduction corresponding to Conservation.noteForger: runs
A against noteForgerHandlerWord and extracts the first uncertified spend note via
findNoteForgery.
noteForgerWord is uniform strict oracle PPT whenever sigBound, com, tag, and A are
efficient.
Under runExtractedWord, noteForgerWord agrees in PMF law with Conservation.noteForger
on pairScheme S tag n and WordExtractedAdversary.toTyped, provided sigBound bounds supported
signature lengths of S.
Extracted VOLE-ACT conservation: commitmentBindingReductionWord and headline #
Two-stage target mapping a semantic Credit.Note and opening via com and tag.
Word-level commitment-binding reduction corresponding to
Conservation.commitmentBindingReduction: runs bindingReductionWord on noteForgerWord under
noteTarget com tag and maps any resulting witness via
Conservation.noteBindingCollisionOrTrivial.
commitmentBindingReductionWord is uniform strict PPT in (n, ck) whenever sigBound,
com, tag, and A are efficient.
commitmentBindingReductionWord has the exact PMF law of
Conservation.commitmentBindingReduction at (com n ck) and pairScheme S tag n, provided
sigBound bounds signature lengths of S and tag is injective.
At every security parameter n and public parameter ck, wrapping noteForgerWord inside
targetForgerWordOf creditNoteDecoder sigBound (noteTarget com tag) matches S.eufCmaExperiment
of Basic.targetForger on Conservation.noteForger, provided sigBound bounds signature lengths
of S and tag is injective.
Keyed hash-based note commitment applying H ck to the framed ComInput word
encComInput ⟨nullifier, ctx, credit, opening⟩.
wordNoteCom H is computable in plain polynomial time whenever H is.
Key-sampling EUF-CMA wrapper around noteForgerWord using wordNoteCom H and wordTag.
sampledConservationForger is uniform strict oracle PPT whenever sigBound, H, and A are
efficient.
Maps a commitment binding collision (m₀, r₀, m₁, r₁) to the framed ComInput word pair
(encComInput ..., encComInput ...) for wordNoteCom.
noteCollisionToPair is computable in polynomial time.
Collision finder extracted from commitmentBindingReductionWord by mapping each commitment
binding collision (c, m₀, r₀, m₁, r₁) via noteCollisionToPair.
noteCollisionFinder is uniform strict PPT whenever sigBound, H, and A are
efficient.
Word-level extracted VOLE-ACT credit-conservation game: sample ck ← BitString.sampleList n
and run Conservation.extractedConservationExperiment with wordNoteCom H n ck,
pairScheme S wordTag n, and A.toTyped n ck. Every bit-string oracle query from A is
processed as the Request returned by the total decoder wordRequestDecoder
(WordExtractedAdversary.toTyped), rather than rejecting malformed words (PartialDecoder).
Word-level credit conservation in the extracted VOLE-ACT model: assuming only S.EUFCMA,
CollisionResistant H, and efficient H and A (with the signature length bound obtained
internally from S.toSignatureScheme.exists_sign_length_bound), any oracle-PPT adversary has
negligible probability of violating credit conservation in extractedConservationWordGame.