scaling trustcommunity

Generative Cryptography

AI research loops for generating new secure cryptography protocols.

Nicola Greco · July 6, 2026 · 10 min read

An opinion piece by Nicola Greco, written as part of ARIA’s Scaling Trust programme. Originally published on Nicola’s blog and reposted here for the community.


Cryptography is unusually well suited to AI research loops. Its problems can be stated formally, its solutions can be checked mechanically, and its progress has historically been bottlenecked by a small number of experts with years of context. If AI can reason about cryptography, we should be able to point a model in a loop, and watch it optimize, discover, and eventually invent.

I call the field of research of AI-generated cryptography Generative Cryptography.

The thesis for Generative Cryptography in short:

The call to action for this memo is:

Three directions

What could we unlock if AI were great at writing cryptography? The possibilities fall into three broad directions: using cryptography in new interactions, improving existing systems, and inventing new primitives. The table below summarizes each direction; the sections that follow explore them in turn.

DirectionWhat the AI doesExample
Using cryptographyPicks or synthesizes protocols on the fly during agent interactionsTwo agents run an MPC instead of sharing calendars
Improving cryptographyOptimizes existing constructions, implementations, and hardwareFaster SNARK provers, better circuits, hash speedups
Inventing cryptographySolves open problems from assumptions and formal specificationsNew primitives; iO as the holy grail

Using cryptography

Imagine two AI agents that want to schedule a call, but their security policies forbid sharing calendars. A human team stuck in this position gives up or leaks information. Agents don’t have to: they can decide, mid-interaction, to engage in a multi-party computation — either picking a protocol from an existing library or generating one on the spot.

Supercognition is a capability unique to AI. In the ARIA Scaling Trust programme thesis, we called this an AI advantage: “agents can engage in new secure interactions that would not be possible for humans or more traditional computer programs. Such interactions can open up new market equilibria, new forms of coordination and ultimately new value creation.”

Writing a bespoke cryptographic protocol takes humans too long to do adaptively, in the middle of an interaction. For an agent, protocol selection and synthesis can become just another step in a negotiation.

This matters beyond making existing interactions faster. Secure, programmable agreements between agents could lower the cost of finding counterparties, negotiating terms, and enforcing outcomes; make entirely new classes of contracts viable; and allow coordination to remain pluralistic rather than pass through a few central intermediaries. Because contracts underpin so much of economic and social life, reducing these frictions at machine scale could change which markets and institutions are possible — an idea explored in Coasean Bargaining at Scale.

Improving cryptography

Fields like SNARKs have improved by orders of magnitude over the past decadeMy previous team at Protocol Labs played a major role in reducing SNARK proving time, spending several million dollars on engineering time toward this work. Generative cryptography is likely to turn much of that engineering effort into compute cost, making this kind of progress far cheaper. — but every one of those improvements was the outcome of scarce, expensive engineering hours: new constructions, refinements to existing ones, hardware speedups for hash functions, better circuits, tighter implementations.

If AI can reason about cryptography, then we can create AI research loops. Point a model at each deployed cryptographic protocol — its theory, its implementation, its hardware path — and let it grind: prove an optimization sound, benchmark it, keep it or discard it, repeat. None of this requires new science; it requires the loop.Related work

AI Grinding for Fun and Cryptanalysis — an autonomous workflow producing reproducible attacks and exact witnesses.

The Proximity Prize — agents improving cryptographic soundness bounds with machine-checked proofs.

Discovering cryptographic weaknesses with Claude — Anthropic’s account of Claude Mythos Preview finding weaknesses in cryptographic algorithms.

zkGolf — cheaper zero-knowledge circuits proved correct in Lean 4.

Illustrative autoresearch run Groth16 proof generation
3.0×higher throughput
4070100130160015304560proofs / min · higher is betterbatch inversionparallel MSMreuse FFT twiddles48146
An example of the loop compounding small, verified gains. Every dot is a candidate implementation; the line moves only when a change makes proving faster without breaking correctness. Values are illustrative.

Inventing cryptography

If we have a well-specified protocol — ideally formalized in Lean — an AI can propose improvements and verify each one against the specification. This is likely to produce gains across the field, but it is still optimization. The deeper question is whether AI can make scientific breakthroughs: can it invent new cryptography?

There are at least three forms this invention could take.

Solving open problems

The most concrete form starts with a definition and a set of assumptions that are already fixed. The problem is well specified; what is missing is the construction. The AI is asked to find that construction and prove that it satisfies the definition. This is different from improving an existing protocol: there may be no known protocol to optimize.

There are several ways this could happen. Models may simply become more capable: they could absorb the body of cryptographic knowledge from papers written in natural language and develop stronger reasoning. Alternatively, we can build better infrastructure for cryptographic invention by creating large datasets of cryptography formalized in Lean and better harnesses for running and evaluating research loops.

North star: iO

A north-star problem for AI research loops in cryptography is indistinguishability obfuscation. iO is the primitive from which nearly everything else can be built, and yet every known construction is impractical, resting on strong assumptions and astronomical overheads.

Some of the best minds in cryptography have tried to make iO practical, but the field is constrained by how few people can work on it. The number of cryptography researchers is small; the number with the background to work on iO is smaller; and the number actively doing so is smaller still. My intuition is that fewer than ten people are actively working on iO at any given time.

A capable research loop could change the odds simply by putting many more “simulated cryptographers” on the problem. Even without a dramatic leap in intelligence, the breadth of parallel exploration might uncover a construction, reduction, or optimization that a very small research community has overlooked.

If in five years we look back at this post and iO has been solved, I would be very glad.

Proposing new assumptions

Designing and judging assumptions may remain among the hardest parts of cryptography to automate. If proof generation and iterative optimization become largely machine-driven, assumptions may remain a place for human cryptographers to work in a more traditional scientific mode.A deeper form of invention is to propose new cryptographic assumptions. An AI might identify a new mathematical problem, formulate its hardness precisely, and use it as the foundation for new constructions. This is harder to evaluate than solving a problem under assumptions we already accept. A construction and its proof can be checked mechanically; the truth of a hardness assumption cannot.

We can search for attacks, connect a new assumption to established ones through reductions, and study how it behaves across parameters, but no verifier can certify that an efficient attack will never be found. New assumptions earn confidence through scrutiny and time. An AI that generates them therefore needs a different evaluation loop — one built around sustained cryptanalysis, not only proof checking.

Writing new definitions

The most open-ended form of invention is to discover the question itself. A new cryptographic definition captures a capability that should exist and the security properties it should satisfy. Historically, major breakthroughs began with needs that existing cryptography could not express:

For example, experiments like Agentic Economic Zones aren’t just benchmarks for agents but generators of cryptographic demand.AI settings may create needs we do not yet know we have. Once thousands or millions of autonomous agents negotiate, delegate authority, preserve privacy, and optimize trust against one another, they may encounter coordination problems for which today’s definitions are the wrong abstraction.

I call this research direction emergent cryptography: new definitions and primitives arising from the security and coordination problems of AI systems themselves. Here AI is not only searching for a construction from a specification; it is helping surface and formalize the specification worth solving.

What success looks like

There is a hierarchy of goals here, spanning decades:

Call to action

In practice, these are some of the directions that may be most critical to work on now. At ARIA, through the Scaling Trust programme, we are also funding work across some of them.

  1. Create datasets for cryptography. The field’s knowledge, formalized — constructions, assumptions, and proofs in Lean or similar — is the substrate every research loop will run on.
  2. Build benchmarks and evaluations. We cannot tell whether the loop is improving without measuring it: suites of cryptographic problems, from re-deriving known protocols to open questions.
  3. Build harnesses for research loops. The scaffolding that lets a model propose, prove, check, and iterate unattended — the auto-research infrastructure itself.
  4. Attempt the impossible. Point the loop at iO.

Previous talk/ideas

Some of the ideas in this talk are outdated, but the talk was the seed for the ideas in this post.

Get in touch

If you’re building cryptographic datasets, formalizing cryptography in Lean, working on auto-research harnesses — or you want to point a research loop at iO — DM @iamnotnicola on X.

Acknowledgements

Many of these ideas grew out of writing the ARIA Scaling Trust programme thesis, a process that began in summer 2025, and from a talk I gave at Devconnect in November 2025, “What if AI agents could write cryptography?”

This was written by Nicola Greco with support from AI and many conversations with Kobi Gurkan, Alex Obadia, Ran Canetti, Wei Dai, and Giacomo Fenzi.