Documentation

CslibFrontier.Crypto.Computational.IndexedSignature.Double

Doubling the capacity of an indexed signature scheme #

Two independent instances of an indexed signature scheme S of capacity at least 1 combine into an indexed signature scheme S.double hcap of constant capacity 2: key generation samples two independent key pairs (k₀, k₁) from S.keyGen n, index 0 signs and verifies at index 0 under k₀, index 1 signs and verifies at index 0 under k₁, and verification rejects every index u ≥ 2.

This is the q = 2 case of the q-key construction in [BS23], Section 14.6.1, construction (14.4) (generalized from one-time signatures to any indexed scheme with 1 ≤ S.capacity n, with randomized signing and arbitrary-length messages as in IndexedSignatureScheme). By the plug-and-pray reduction ([BS23], Section 14.6.1, referring to Exercise 13.2), doubleForger plants its challenge verification key at a uniform slot b ∈ {false, true}, generates the other key pair locally, forwards queries at slot b.toNat to its indexed signing oracle at index 0, and answers queries at the unplanted slot locally. Every valid forgery against S.double hcap lands on u = 0 or u = 1 and hits the planted slot with probability 1 / 2, losing at most a factor of 2 (succProbability_indexedEufCmaGame_double_le, IndexedSignatureScheme.IndexedEUFCMA.double).

In particular, doubling upgrades any capacity-1 indexed signature scheme to the 2 ≤ capacity n hypothesis of IndexedSignatureScheme.IndexedEUFCMA.exists_eufCMA_of_oneWay.

Both results are steps toward construction (14.4) (printed p. 597) and Exercise 13.2 (printed p. 575), not those results: the source takes any number q of keys, with loss q, and only q = 2 is formalized here (#5293).

Main definitions #

Main results #

References #

The capacity-2 doubled scheme #

Sample two independent key pairs (k₀, k₁) from S.keyGen n and bundle their public and secret halves with encPair encBits encBits.

Sign msg at index u ∈ {0, 1} using index 0 of the u-th secret key, returning [] when u ≥ 2.

Verify (u, msg, sig) under bundled public keys (pk₀, pk₁): accept only at u = 0 under pk₀ or at u = 1 under pk₁, always at inner index 0.

Capacity-2 doubling combinator ([BS23], Section 14.6.1, construction (14.4) at q = 2): combine two independent instances of S (with ∀ n, 1 ≤ S.capacity n) into an IndexedSignatureScheme of capacity 2.

@[simp]

Plug-and-pray reduction #

Bundle a challenge verification key vk at slot b.toNat (false ↦ 0, true ↦ 1) with a locally generated public key otherPk at the complementary slot.

Stateful signing handler for doubleForger: maintains the outer query log signed of pairs (u, msg) with u < 2. When a fresh index u < 2 is queried:

  • if u = b.toNat, forward (0, msg) to the external S-signing oracle and truncate the reply to bound n msg.length bits;
  • otherwise, sign (0, msg) locally under otherSk.

Fixed-slot reduction from (S.double hcap) to S at slot b : Bool.

Plug-and-pray reduction ([BS23], Section 14.6.1, Exercise 13.2): sample a fair slot b ← ProbComp.uniform Bool and run doubleForgerAt.

Exact simulation at each slot #

theorem Cslib.Crypto.IndexedSignatureScheme.succProbability_indexedEufCmaGame_double_le {S : IndexedSignatureScheme} (hcap : ∀ (n : ℕ), 1 ≤ S.capacity n) {bound : ℕ → ℕ → ℕ} {n : ℕ} (hbound : ∀ keys ∈ (S.keyGen n).eval.support, ∀ (msg σ : List Bool), σ ∈ (S.sign keys.2 0 msg).eval.support → σ.length ≤ bound n msg.length) (adversary : IndexedForger) :

Plug-and-pray bound with loss 2 for S.double hcap: a step toward the q-key bound behind [BS23], construction (14.4) and Exercise 13.2, not the cited result, which takes any number q of keys with loss q, where this fixes q = 2 (#5293).

For every indexed forger adversary and every security parameter n, when bound n L covers the length of every supported S-signature at index 0 on an L-bit message, the forging probability against S.double hcap is at most 2 times the forging probability of S.doubleForger against S.

Strict oracle-PPT efficiency of doubleForger #

Security preservation #

If S is indexed EUF-CMA secure with ∀ n, 1 ≤ S.capacity n, then so is the capacity-2 scheme S.double hcap: a step toward [BS23], construction (14.4), not the cited result, since it fixes q = 2 where the source takes any q (#5293).

The source gives construction (14.4) from a one-time signature (Section 14.6.1, printed p. 597) and proves it secure by the plug-and-pray argument of Exercise 13.2 (printed p. 575). Here the base scheme is any indexed scheme of capacity at least 1, used at index 0.