Introduction
In the search for post-quantum cryptographic primitives, expander graph cryptography has emerged as a compelling field. The security of these systems typically rests on the difficulty of the path-finding problem: given two nodes in a large, highly connected graph, find a path between them. While previous constructions like LPS Cayley graphs have been compromised, and Supersingular Isogeny Graphs are under intense scrutiny, there is a clear need for diverse mathematical foundations. This paper proposes a new candidate: the Markoff graph, derived from the Markoff equation: $$x_1^2 + x_2^2 + x_3^2 - 3x_1x_2x_3 = 0 \pmod p$$
The Markoff Hash Function
The proposed hash function operates by interpreting an input bit string as a sequence of instructions for a walk on the Markoff graph modulo a large prime $p$.
- Graph Construction: The vertices are the set of triples $(x_1, x_2, x_3)$ that satisfy the Markoff equation modulo $p$. The edges are defined by three involutions, $R_1, R_2, R_3$, which transform a triple by fixing two elements and changing the third (e.g., $R_3(x_1, x_2, x_3) = (x_1, x_2, 3x_1x_2 - x_3)$).
- Hashing Process: Starting from a canonical base point such as $(1, 1, 1)$, each bit of the input determines which involution to apply next. The final vertex reached after processing the entire input serves as the hash value.
Security and the BGS Algorithm
The security of the Markoff hash function depends on the hardness of finding a path between the starting point and the output vertex. The authors analyze the BGS algorithm (Bourgain, Gamburd, and Sarnak), originally developed to prove graph connectivity, as a potential attack vector.
A key structural insight is the concept of the "Cage". Most vertices in the Markoff graph belong to this large, well-connected component. The difficulty of the BGS algorithm lies in the "Opening" and "Middle Game" phases—moving a vertex from a low-order state into the cage. Once in the cage, the "End Game" of connecting two vertices is relatively straightforward.
Empirical Complexity Analysis
To evaluate the security margin, the authors performed extensive simulations using SageMath 9.1 on primes up to $100,000$. Their analysis suggests a heuristic complexity for the BGS algorithm of $O(p \log \log p)$.
Since the total number of vertices in the graph is approximately $O(p^2)$, an attack complexity of $O(p)$ represents a "square root" security level. For a target security level equivalent to SHA-256, the authors recommend using a prime $p \approx 2^{128}$. This would make the $O(p)$ path-finding attack computationally infeasible.
Conclusion and Future Directions
The Markoff hash function presents a promising new direction for graph-based cryptography. While the $O(p)$ complexity provides a strong heuristic security guarantee, several open questions remain. The "expander" property of these graphs, while strongly conjectured, has not been fully proven. Additionally, further research is required to characterize the distribution of short cycles to ensure robust collision resistance. For practical implementation, the authors suggest avoiding "smooth" primes (where $p^2 - 1$ has many small factors) to ensure optimal connectivity and path-finding difficulty.
Summary updated