Generative Cryptography
AI research loops for generating new secure cryptography protocols.
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:
- Using cryptography. If AI agents can generate protocols or choose the right libraries, they can engage in custom cryptographic interactions on demand — interactions that are impractical today because secure protocol design and implementation require costly research and engineering.
- Improving cryptography. If we had datasets of formalized cryptography and the right harnesses for verifying what AI generates, then we could create AI research loops that propose optimizations, improve constructions, reduce communication complexity, and prove tighter bounds.
- Inventing cryptography. AI could be used to explore new assumptions and attempt long-standing open problems such as iO. At the same time, new AI settings may surface cryptographic needs we do not yet know we have — giving rise to a new field of emergent cryptography.
The call to action for this memo is:
- Build datasets, benchmarks, and evaluation harnesses for cryptographic research loops.
- Attempt the impossible: point the loop at solving hard problems in cryptography, what if we could point it to indistinguishability obfuscation (iO)?.
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.
| Direction | What the AI does | Example |
|---|---|---|
| Using cryptography | Picks or synthesizes protocols on the fly during agent interactions | Two agents run an MPC instead of sharing calendars |
| Improving cryptography | Optimizes existing constructions, implementations, and hardware | Faster SNARK provers, better circuits, hash speedups |
| Inventing cryptography | Solves open problems from assumptions and formal specifications | New 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.
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:
- Public-key cryptography — secure communication without shared secrets.
- Zero-knowledge proofs — proving without revealing.
- Fully homomorphic encryption — computing on encrypted data.
- Multi-party computation — joint computation without sharing inputs.
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:
- Near-term. Cryptography becomes invisible infrastructure for AI. Just as people use TLS in the browser without understanding key exchange, agents invoke MPC, ZK, signatures, and threshold schemes automatically whenever appropriate. Encryption today is a narrow capability; agents should have the whole spectrum.
- Medium-term. AI synthesizes cryptographic protocols on demand. Given a trust problem and a specification, it produces a secure protocol, a proof, and an implementation fast enough to be part of a normal agent interaction.
- Long-term. The research loop continuously invents new cryptography — in a way we deem safe — every time an agent society surfaces an emergent trust requirement.
- The stretch. The AI generalizes from digital communication to physical interactions: zero-knowledge proofs and interactive proofs for physical processes, verifiable protocols for the physical world. There is a subfield to bootstrap here — call it nature crypto — but that deserves its own post.
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.
- 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.
- 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.
- Build harnesses for research loops. The scaffolding that lets a model propose, prove, check, and iterate unattended — the auto-research infrastructure itself.
- 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.
Useful links
- AI Grinding for Fun and Cryptanalysis — An autonomous cryptanalysis workflow in which agents generate, test, and refine reproducible attacks; the authors report failures in eight published constructions.
- The Proximity Prize — A research rewards program where AI agents compete to improve cryptographic soundness bounds with machine-checked proofs.
- Discovering cryptographic weaknesses with Claude — Anthropic’s account of using Claude Mythos Preview to find weaknesses in cryptographic algorithms.
- zkGolf — A competition to build cheaper zero-knowledge circuits while proving their correctness against a specification in Lean 4.
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.