Merkle puzzles

Merkle’s Puzzles is a key-agreement protocol in the random oracle model with a parameter , in which the honest parties make oracle queries and any eavesdropper recovering the key with constant probability makes queries — Mer78.

Syntax

A random-oracle key-agreement protocol is a pair of interactive oracle algorithms with access to a uniformly random function . On input they exchange messages over a public channel, the sequence of messages being the transcript , and output keys ; write . The protocol has query complexity if each of and makes at most queries to — standard.

Merkle’s puzzles with parameter , for a function , uses and key space . Each party queries at random points and sends the answers; a point both parties queried is the key.

\begin{algorithm}
\algname{Algorithm}
\caption{$\langle A^H(1^\secpar), B^H(1^\secpar) \rangle$}
\begin{algorithmic}
\State $A$: sample distinct $x_1, \ldots, x_n \getsr [n^2]$; send $(H(x_1), \ldots, H(x_n))$
\State $B$: sample distinct $y_1, \ldots, y_n \getsr [n^2]$; send $(H(y_1), \ldots, H(y_n))$
\Comment{the two messages may be sent simultaneously}
\State let $(i, j)$ be the lexicographically first pair with $H(x_i) = H(y_j)$
\If{no such pair exists}
\Return $k_A = k_B = \bot$
\EndIf
\Return $k_A = x_i$; $k_B = y_j$
\end{algorithmic}
\end{algorithm}

Here is a uniformly random sequence of distinct points, and so is ; each party makes exactly queries. This random-oracle form abstracts the puzzles of Mer78, which are ciphertexts (see Variations) — standard.

Properties

Correctness

A random-oracle key-agreement protocol is -correct if for all ,

over and the coins of and . If is injective, Merkle’s puzzles agrees exactly when the two sets of points intersect, which fails with probability . fails to be injective with probability at most , so Merkle’s puzzles is -correct, and for the bound is — standard.

Security

The eavesdropper sees the transcript, queries and outputs a guess for ‘s key, as in the one-way security game of key exchange; security is measured by the number of its queries, not by its running time.

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{ka}}_{\Pi,\calA}(\secpar)$}
\begin{algorithmic}
\State $H \getsr \Funcs(\calD, \calR)$
\State $(\tau, k_A, k_B) \gets \langle A^H(1^\secpar), B^H(1^\secpar) \rangle$
\State $k \gets \calA^H(1^\secpar, \tau)$
\Comment{$\calA$ makes at most $q$ queries to $H$}
\Return $[k = k_A \ne \bot]$
\end{algorithmic}
\end{algorithm}

A random-oracle key-agreement protocol is -secure if for every making at most queries to , with no bound on its running time,

Merkle’s puzzles is -secure for every , so an eavesdropper that recovers the key with constant probability makes queries, while the honest parties make each — standard; the protocol and its quadratic gap are from Mer78. The joint distribution of the parties’ points and is unchanged by relabelling the points of with a permutation , mapping each point to and to ; such a relabelling leaves the transcript unchanged, and if fixes the points queried so far, also the eavesdropper’s answers. Conditioned on the transcript, on those answers and on the key not having been queried yet, the key is therefore uniform over the points not yet queried. The eavesdropper finds it among its queries with probability at most , and otherwise guesses it with probability at most , for a total of at most — standard.

As an object, Merkle’s puzzles denotes this protocol for every such : it is -correct and -secure for every — standard.

Variations

Merkle’s original formulation

In Mer78 the puzzles are ciphertexts rather than oracle answers. One party sends puzzles, each an encryption of a puzzle identifier and a session key under a key from a space of size about ; the other picks one puzzle at random, breaks it by exhaustive search, and returns its identifier in the clear, and both parties use the session key it contains. The honest parties do work, while an eavesdropper, who does not know which puzzle was picked, expects to break about puzzles, for work quadratic in — Mer78.

Other results

  • Let be a random-oracle key-agreement protocol of query complexity with . For every there is an eavesdropper that makes queries and outputs with probability at least , so the quadratic gap of Merkle’s puzzles is optimal (No reduction from ROM to KE) — BM09. This improves the eavesdropper of IR89, which makes queries for the larger of and the number of rounds — BM09. Both eavesdroppers are bounded in queries, not in computation.
  • For protocols whose honest parties’ queries are uniformly random, or which run in two rounds with non-adaptive queries, secrecy against an eavesdropper making roughly queries requires bits of communication, as in Merkle’s puzzles — HMO+19.

Participates in

Produces Merkle puzzles