Documentation

CslibFrontier.Crypto.Protocols.AnonymousToken.ComposedVOLEACT

Composed unextracted-ROM VOLE-ACT-MQ credit conservation #

Composes the straight-line leaf_hash::shake VOLEitH extraction reduction for the draft-style anonymous-token issuer (DraftROBridge.romUnextractedDraftConservationExperiment) with the (V4)-range-bounded structured one-more claw-freeness and G-collision reduction for VOLE-ACT-MQ (ACTMQ.actMQConservation_succProbability_le) via IssuerBridge.bridgeAdversary.

Because acceptDraftIssue and acceptDraftSpendPre (together with acceptedSpendRefund) already enforce ACTMQ.requestInRange bound on every forwarded issuance or spend request, bridgeAdversary is invariant under ACTMQ.rangeBoundedAdversary bound (rangeBoundedAdversary_bridgeAdversary_eq). Composing DraftROBridge.unextractedDraftConservationExperiment_succProbability_le_extracted, IssuerBridge.eval_extractedDraftConservationExperiment_eq, and ACTMQ.actMQConservation_succProbability_le transfers any overspending attack in the unextracted classical-ROM draft game to ACTMQ.clawExperiment, ACTMQ.gCollisionExperiment, ACTMQ.invalidReplyExperiment (vanishing under Signature.Scheme.Correct), and voleithKSBound.

Scope and model boundaries #

Main results #

References #

theorem Cslib.Crypto.AnonymousToken.requestInRange_of_acceptDraftIssue {PolicyState Nullifier Context Opening Commitment Sig : Type} [DecidableEq Commitment] (com : Nullifier → Context → ℕ → Opening → Commitment) (bound : ℕ) (req : IssuerBridge.DraftIssueRequest Nullifier Opening Commitment) (st : IssuerBridge.IssuerState Nullifier Context Opening Commitment Sig PolicyState) {creq : Conservation.Request Nullifier Context Opening Commitment Sig} (h : IssuerBridge.acceptDraftIssue com bound req st = some creq) :

Every Conservation.Request emitted by acceptDraftIssue satisfies ACTMQ.requestInRange. Note 1 ≤ agreed.amount ∧ agreed.amount < bound ensures 0 < bound automatically.

theorem Cslib.Crypto.AnonymousToken.requestInRange_of_acceptDraftSpendPre {PolicyState Nullifier Context Opening Commitment PK SK Sig Target : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Commitment] (com : Nullifier → Context → ℕ → Opening → Commitment) (tag : Commitment → ℕ → Target) (S : Signature.Scheme PK SK Target Sig) (bound : ℕ) (pk : PK) (st : IssuerBridge.IssuerState Nullifier Context Opening Commitment Sig PolicyState) (req : IssuerBridge.DraftSpendRequest Nullifier Context Opening Commitment Sig) (refund : ℕ) (hpre : IssuerBridge.acceptDraftSpendPre com tag S bound pk st req = true) (href : refund < bound) :

Every Conservation.Request.spend emitted by acceptDraftSpendPre with refund < bound satisfies ACTMQ.requestInRange.

theorem Cslib.Crypto.AnonymousToken.rangeBoundedAdversary_bridgeAdversary_eq {PolicyState Nullifier Context Opening Commitment PK SK Sig Target IssueHint : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Commitment] (com : Nullifier → Context → ℕ → Opening → Commitment) (tag : Commitment → ℕ → Target) (S : Signature.Scheme PK SK Target Sig) (policy : IssuerBridge.IssuerPolicy PolicyState Context Nullifier Commitment IssueHint) (bound : ℕ) (A : IssuerBridge.DraftAdversary Nullifier Context Opening Commitment PK Sig IssueHint) :
ACTMQ.rangeBoundedAdversary bound (IssuerBridge.bridgeAdversary com tag S policy bound A) = IssuerBridge.bridgeAdversary com tag S policy bound A

Enforcing ACTMQ.requestInRange bound on IssuerBridge.bridgeAdversary is an exact no-op because acceptDraftIssue and acceptDraftSpendPre + acceptedSpendRefund already enforce all < bound range checks before forwarding a request.

theorem Cslib.Crypto.AnonymousToken.eval_extractedDraftConservationExperiment_eq_actMQ {PolicyState Nullifier Context Opening Commitment PK SK Sig Target IssueHint : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Commitment] (com : Nullifier → Context → ℕ → Opening → Commitment) (tag : Commitment → ℕ → Target) (S : Signature.Scheme PK SK Target Sig) (policy : IssuerBridge.IssuerPolicy PolicyState Context Nullifier Commitment IssueHint) (bound : ℕ) (A : IssuerBridge.DraftAdversary Nullifier Context Opening Commitment PK Sig IssueHint) :

Exact zero-loss law equality between IssuerBridge.extractedDraftConservationExperiment and ACTMQ.actMQConservationExperiment on bridgeAdversary.

theorem Cslib.Crypto.AnonymousToken.unextractedDraftACTMQConservation_verifyQueryBound {PolicyState Nullifier Context Opening PK SK Sig Seed IV PreMsg Chal IssueHint Message Tail : Type} {d sdLen comLen rowLen : ℕ} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Message] [DecidableEq Tail] [AddCommGroup Message] [Inhabited Nullifier] [Inhabited Context] [Inhabited Opening] [Inhabited Sig] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (F : Opening → Message) (G : Opening → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (S : Signature.Scheme PK SK (Message × Tail) Sig) (policy : IssuerBridge.IssuerPolicy PolicyState Context Nullifier (Message × Tail) IssueHint) (checkRel : ROMDraftStmt PK Nullifier Context (Message × Tail) → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (bound : ℕ) (A : PK → ProbOracleComp (ROMDraftConservationSpec Nullifier Context (Message × Tail) d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig IssueHint) Context) {m_proof : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim romDraftVerifyCost fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg) => 0)) (A pk) m_proof) (pk : PK) :
(ACTMQ.clawReduction S (UOV.structuredTarget F G) (ACTMQ.actEmbed encodeState refundEmbed) (Conservation.noteForger (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S (IssuerBridge.bridgeAdversary (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S policy bound (extractedDraftAdversaryOfROM expand decWit chalToIdx checkRel bound A))) pk).IsQueryBounded m_proof

Sharp verification-query budget preservation for the composed ACTMQ.clawReduction adversary: m_proof proof-carrying .issue/.spend calls (ignoring .agreeIssue and RO queries) map to at most m_proof signing claims in clawExperiment.

theorem Cslib.Crypto.AnonymousToken.unextractedDraftACTMQConservation_queryBound {PolicyState Nullifier Context Opening PK SK Sig Seed IV PreMsg Chal IssueHint Message Tail : Type} {d sdLen comLen rowLen : ℕ} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Message] [DecidableEq Tail] [AddCommGroup Message] [Inhabited Nullifier] [Inhabited Context] [Inhabited Opening] [Inhabited Sig] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (F : Opening → Message) (G : Opening → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (S : Signature.Scheme PK SK (Message × Tail) Sig) (policy : IssuerBridge.IssuerPolicy PolicyState Context Nullifier (Message × Tail) IssueHint) (checkRel : ROMDraftStmt PK Nullifier Context (Message × Tail) → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (bound : ℕ) (A : PK → ProbOracleComp (ROMDraftConservationSpec Nullifier Context (Message × Tail) d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig IssueHint) Context) {m_all : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim romDraftAllQueryCost fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg) => 0)) (A pk) m_all) (pk : PK) :
(ACTMQ.clawReduction S (UOV.structuredTarget F G) (ACTMQ.actEmbed encodeState refundEmbed) (Conservation.noteForger (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S (IssuerBridge.bridgeAdversary (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S policy bound (extractedDraftAdversaryOfROM expand decWit chalToIdx checkRel bound A))) pk).IsQueryBounded m_all

Total DraftQuery budget preservation (m_all, including .agreeIssue) for the composed ACTMQ.clawReduction adversary.

theorem Cslib.Crypto.AnonymousToken.unextractedDraftACTMQConservation_succProbability_le {PolicyState Nullifier Context Opening PK SK Sig Seed IV PreMsg Chal IssueHint Message Tail : Type} {d sdLen comLen rowLen bound : ℕ} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Message] [DecidableEq Tail] [DecidableEq Opening] [AddCommGroup Message] [Inhabited Nullifier] [Inhabited Context] [Inhabited Opening] [Inhabited Sig] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [LawfulBEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg)] [LawfulBEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (F : Opening → Message) (G : Opening → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (hembed : Set.InjOn (ACTMQ.actEmbed encodeState refundEmbed) {note : Credit.Note Nullifier Context | ACTMQ.NoteInRange bound note}) (S : Signature.Scheme PK SK (Message × Tail) Sig) (policy : IssuerBridge.IssuerPolicy PolicyState Context Nullifier (Message × Tail) IssueHint) (checkRel : ROMDraftStmt PK Nullifier Context (Message × Tail) → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) {ε_rel : NNReal} (hSound : Protocols.VOLE.VOLEITHSoundnessError decWit chalToIdx (romDraftConservationRel (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S bound) checkRel ε_rel) (A : PK → ProbOracleComp (ROMDraftConservationSpec Nullifier Context (Message × Tail) d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig IssueHint) Context) {m_proof Q_leaf Q_FS : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim romDraftVerifyCost fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg) => 0)) (A pk) m_proof) (hleaf : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMDraftQuery Nullifier Context (Message × Tail) d comLen rowLen Seed IV PreMsg IssueHint) => 0) Protocols.VOLE.voleithLeafCost)) (A pk) Q_leaf) (hfs : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMDraftQuery Nullifier Context (Message × Tail) d comLen rowLen Seed IV PreMsg IssueHint) => 0) Protocols.VOLE.voleithFSCost)) (A pk) Q_FS) :
(romUnextractedDraftConservationExperiment expand chalToIdx (ACTMQ.actTag refundEmbed) checkRel S policy bound A).succProbability ≤ (ACTMQ.clawExperiment S (UOV.structuredTarget F G) (ACTMQ.clawReduction S (UOV.structuredTarget F G) (ACTMQ.actEmbed encodeState refundEmbed) (Conservation.noteForger (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S (IssuerBridge.bridgeAdversary (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S policy bound (extractedDraftAdversaryOfROM expand decWit chalToIdx checkRel bound A))))).succProbability + (ACTMQ.gCollisionExperiment G (ACTMQ.gCollisionReduction S (Credit.target (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed)) (Conservation.noteForger (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S (IssuerBridge.bridgeAdversary (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S policy bound (extractedDraftAdversaryOfROM expand decWit chalToIdx checkRel bound A))))).succProbability + (ACTMQ.invalidReplyExperiment S (Credit.target (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed)) (Conservation.noteForger (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S (IssuerBridge.bridgeAdversary (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S policy bound (extractedDraftAdversaryOfROM expand decWit chalToIdx checkRel bound A)))).succProbability + Protocols.VOLE.voleithKSBound d comLen (Q_leaf + m_proof * (2 ^ d - 1)) (Q_FS + m_proof) ε_rel

Composed unextracted classical-ROM VOLE-ACT-MQ credit conservation bound (original to this library): transfers overspending in romUnextractedDraftConservationExperiment over actCom and actTag to ACTMQ.clawExperiment, ACTMQ.gCollisionExperiment, ACTMQ.invalidReplyExperiment, and voleithKSBound, via bridgeAdversary and extractedDraftAdversaryOfROM, conditional on a sound verification predicate hSound (VOLEITHSoundnessError) and range-restricted injectivity hembed.

theorem Cslib.Crypto.AnonymousToken.unextractedDraftACTMQConservation_succProbability_le_of_correct {PolicyState Nullifier Context Opening PK SK Sig Seed IV PreMsg Chal IssueHint Message Tail : Type} {d sdLen comLen rowLen bound : ℕ} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Message] [DecidableEq Tail] [DecidableEq Opening] [AddCommGroup Message] [Inhabited Nullifier] [Inhabited Context] [Inhabited Opening] [Inhabited Sig] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [LawfulBEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg)] [LawfulBEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (F : Opening → Message) (G : Opening → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (hembed : Set.InjOn (ACTMQ.actEmbed encodeState refundEmbed) {note : Credit.Note Nullifier Context | ACTMQ.NoteInRange bound note}) (S : Signature.Scheme PK SK (Message × Tail) Sig) (hS : S.Correct) (policy : IssuerBridge.IssuerPolicy PolicyState Context Nullifier (Message × Tail) IssueHint) (checkRel : ROMDraftStmt PK Nullifier Context (Message × Tail) → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) {ε_rel : NNReal} (hSound : Protocols.VOLE.VOLEITHSoundnessError decWit chalToIdx (romDraftConservationRel (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S bound) checkRel ε_rel) (A : PK → ProbOracleComp (ROMDraftConservationSpec Nullifier Context (Message × Tail) d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig IssueHint) Context) {m_proof Q_leaf Q_FS : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim romDraftVerifyCost fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMDraftStmt PK Nullifier Context (Message × Tail)) IV PreMsg) => 0)) (A pk) m_proof) (hleaf : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMDraftQuery Nullifier Context (Message × Tail) d comLen rowLen Seed IV PreMsg IssueHint) => 0) Protocols.VOLE.voleithLeafCost)) (A pk) Q_leaf) (hfs : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMDraftQuery Nullifier Context (Message × Tail) d comLen rowLen Seed IV PreMsg IssueHint) => 0) Protocols.VOLE.voleithFSCost)) (A pk) Q_FS) :
(romUnextractedDraftConservationExperiment expand chalToIdx (ACTMQ.actTag refundEmbed) checkRel S policy bound A).succProbability ≤ (ACTMQ.clawExperiment S (UOV.structuredTarget F G) (ACTMQ.clawReduction S (UOV.structuredTarget F G) (ACTMQ.actEmbed encodeState refundEmbed) (Conservation.noteForger (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S (IssuerBridge.bridgeAdversary (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S policy bound (extractedDraftAdversaryOfROM expand decWit chalToIdx checkRel bound A))))).succProbability + (ACTMQ.gCollisionExperiment G (ACTMQ.gCollisionReduction S (Credit.target (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed)) (Conservation.noteForger (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S (IssuerBridge.bridgeAdversary (ACTMQ.actCom F G encodeState) (ACTMQ.actTag refundEmbed) S policy bound (extractedDraftAdversaryOfROM expand decWit chalToIdx checkRel bound A))))).succProbability + Protocols.VOLE.voleithKSBound d comLen (Q_leaf + m_proof * (2 ^ d - 1)) (Q_FS + m_proof) ε_rel

Specialization of unextractedDraftACTMQConservation_succProbability_le when S.Correct holds, eliminating ACTMQ.invalidReplyExperiment.