Documentation

CslibFrontier.Crypto.Protocols.AnonymousToken.RandomTarget

Extracted single-issuer redemptions and a random-target one-more game #

An extracted redemption supplies the certifying witness already. Public message labels are embedded injectively into a finite vector of challenge slots. A valid token for message m certifies the target at its slot; different slots may contain equal target values. The attacker has the raw chosen-target certification oracle, with every call counted, including repeats and failed answers. The experiment accepts more than the configured budget of valid tokens with distinct semantic messages after at most that budget of oracle calls.

reduceRedemptions runs the same attacker and retains its first budget + 1 tokens, translating messages to slots and witnesses to preimage claims. Injectivity of the public labels preserves distinctness. This pure postprocessing preserves every query bound, and every accepting redemption run yields an accepting one-more run, giving a success bound with coefficient one. The target sampler remains explicit. In the ideal UOV instance it is an independent uniform vector, and optional preimages retain the real failure probability of the supplied finite signer.

This is an original finite extracted single-issuer composition step; uniform polynomial-time certification (reduceRedemptionsWord) is provided in CslibFrontier.Crypto.Protocols.AnonymousToken.RandomTargetPolyTime. It does not realize the public slot labels by a random oracle, extract witnesses from redemption proofs, or hide an issuer. The complete multi-issuer VOLE-IHAT proof and those extraction and random-oracle obligations remain issue #7068.

Main definitions #

Main results #

References #

def Cslib.Crypto.AnonymousToken.extractedRedemptionAccept {PK SK Message Target Sig : Type} {N : ℕ} [DecidableEq Message] (S : Signature.Scheme PK SK Target Sig) (pk : PK) (targets : Fin N → Target) (slot : Message ↪ Fin N) (budget : ℕ) (out : List (Token Message Unit Sig)) (log : List (Target × Sig)) :

The extracted fixed-budget redemption test. Distinctness concerns semantic messages; target values may collide. Every answered raw oracle query contributes to the budget.

def Cslib.Crypto.AnonymousToken.extractedRedemptionExperiment {PK SK Message Target Sig : Type} {N : ℕ} [DecidableEq Message] (S : Signature.Scheme PK SK Target Sig) (targets : PK → ProbComp (Fin N → Target)) (slot : Message ↪ Fin N) (budget : ℕ) (A : PK → (Fin N → Target) → ProbOracleComp (fun (x : Target) => Sig) (List (Token Message Unit Sig))) :

The single-issuer experiment with already extracted witnesses and explicit public target slots. It supplies the raw chosen-target oracle and retains its exact answer distribution.

def Cslib.Crypto.AnonymousToken.reduceRedemptions {PK Message Target Sig : Type} {N : ℕ} (slot : Message ↪ Fin N) (budget : ℕ) (A : PK → (Fin N → Target) → ProbOracleComp (fun (x : Target) => Sig) (List (Token Message Unit Sig))) (pk : PK) (targets : Fin N → Target) :
ProbOracleComp (fun (x : Target) => Sig) (List (Signature.PreimageClaim N Sig))

Keep the first budget + 1 extracted tokens and translate their messages to challenge slots. This reduction makes exactly the original attacker's oracle calls.

theorem Cslib.Crypto.AnonymousToken.reduceRedemptions_queryBound {PK Message Target Sig : Type} {N : ℕ} (slot : Message ↪ Fin N) (budget : ℕ) (A : PK → (Fin N → Target) → ProbOracleComp (fun (x : Target) => Sig) (List (Token Message Unit Sig))) (pk : PK) (targets : Fin N → Target) {queries : ℕ} (h : (A pk targets).IsQueryBounded queries) :
(reduceRedemptions slot budget A pk targets).IsQueryBounded queries

The reduction's output processing adds no calls, for any bound on the original program.

theorem Cslib.Crypto.AnonymousToken.extractedRedemption_succProbability_le {PK SK Message Target Sig : Type} {N : ℕ} [DecidableEq Message] (S : Signature.Scheme PK SK Target Sig) (targets : PK → ProbComp (Fin N → Target)) (slot : Message ↪ Fin N) (budget : ℕ) (A : PK → (Fin N → Target) → ProbOracleComp (fun (x : Target) => Sig) (List (Token Message Unit Sig))) :

This finite extracted single-issuer step loses no success probability. It is not the full VOLE-IHAT security theorem: the attacker already supplies witnesses and the slot assignment is given. No correctness, hardness, or efficiency hypothesis is imposed on the signer.