Research draft. Public challenge next.
A one-way function, wired like a fly's brain.
A real fruit fly's wiring, turned into a one-way function that existing chains could adopt. Unproven until it survives attack.
Loading the recording of the real computation.
Quantum-safe signatures need one ingredient.
The OP_CAT idea is simple. If Bitcoin scripts could glue data together, anyone could lock their own coins with a hash-based signature instead of today's elliptic-curve one.
Hash-based signatures have no curves and no lattices in them. They need a single thing: a function that is easy to run forward and practically impossible to run backward.
Today that function is SHA-256. OP_FLYBRAIN offers a second one, with its wiring taken from a real animal's brain.
Signals go in where a fly senses. The answer comes out where it moves.
The function is called FlyBrain-256. It turns 32 bytes into 32 bytes using the fly's wiring diagram. Nothing is simulated and nothing is random, so the same input gives the same output on any computer.
-
Load
16,557 sensory neurons
Your 256 bits are placed on the cells where signals enter a real fly, repeated until every sensory neuron holds one. Every other neuron starts at zero.
Shown here: two inputs one bit apart. The bright dots are the 65 sensory neurons where they differ.
-
Mix
158,262 neurons, 32 rounds
Each round, every neuron updates from the neurons wired into it. Excitatory inputs are combined one way, inhibitory inputs another. 2,406,105 real connections decide who listens to whom.
By round 32, 65,924 neurons disagree.
-
Read
1,316 descending neurons
The result is read off the cells that carry commands from the brain to the body, folded down to 256 bits.
The two runs end 135 of 256 bits apart. Outlined squares are the bits that differ.
new = old XOR excitatory inputs XOR (inhibitory group 1 AND inhibitory group 2) XOR round constant
What comes from the fly, and what does not
Every connection, its direction, and whether it excites or inhibits come from the fly. The XOR and AND rule does not. Real neurons fire past a threshold, which is easy to run backward, so it cannot be used for a lock.
The wiring is public
It has to be, or nobody could check a signature. The brain being hard to predict protects nothing. The only secret is your own random number.
One instruction, used where SHA-256 is used today.
<secret> OP_FLYBRAIN <published value> OP_EQUALVERIFY
It takes 32 bytes and returns 32 bytes. A hash-based signature is a few hundred of these lines, one for each bit being signed.
<secret A> OP_SHA256 <published A> OP_EQUALVERIFY
<secret B> OP_FLYBRAIN <published B> OP_EQUALVERIFY
The honest reason to want it is insurance. Demand two different secrets, one under each function, and a thief has to break both.
What each chain would have to agree to
- Bitcoin
- A soft fork that gives one unused tapscript opcode this meaning, the way BIP-347 does for
OP_CAT. It also needsOP_CATand P2MR to be active. - Solana
- A syscall activated by validators, next to the existing hash syscalls. Any existing program could then call it.
- Both
- Every node stores the same wiring table, about 12 MB, named in the rule by its fingerprint so nobody can swap it.
Run it in your browser.
This loads the real wiring table and computes FlyBrain-256 on your device. Nothing you type is sent anywhere.
2,406,105 connections between 158,262 neurons. It downloads once and stays on this page.
FlyBrain-256 value
The 256 output bits. Change one letter and run it again: about half should flip.
What we measured.
Built and tested on the real connectome file on 3 December 2026. These are sanity checks. Passing them does not make a function secure.
Flip one input bit. How much of the output changes?
A good function changes half. The fly wiring gets there in 3 rounds and a random rewiring of the same connections in 2. The brain's own structure is a small handicap, not an advantage, so the design runs 32 rounds.
Show the numbers
-
32 rounds
More than three times every minimum we measured: 3 rounds to scramble, 9 for the algebra, 9 hops to cross the brain.
-
3,200 of 3,200
Random inputs all gave different outputs, and every output bit came out balanced to within chance.
-
Signed and checked
A one-time signature built only from this function was accepted. The same signature on a different message was rejected.
-
1.75 s against 0.00017 s
Checking one signature in the reference code, against the same work with SHA-256. About 10,000 times slower.
Would it work? Straight answers.
-
Yes
Does it run, and can a signature be made and checked with it?
Built and measured on the real connectome.
-
Yes, on basic tests
Does it scramble its input the way a hash should?
These tests only catch designs that are obviously broken.
-
Test in progress
Is it secure enough to lock money?
No one has tried to break it yet. Trust in a function like this comes only from years of failed public attacks.
-
Still checking
Does the fly brain make it stronger?
A random rewiring of the same brain mixes one round faster.
-
On paper
Can it be added to existing wallets without a new vault?
It is one instruction that existing scripts and programs could call.
-
In progress
Would Bitcoin or Solana add it today?
It is about 10,000 times slower than SHA-256, needs a 12 MB table on every node, and has had no security review.
Nobody has broken it. Nobody has tried.
That is the whole problem, and it is the next step. Here is where we would start.
The wiring is clumpy
Brains are not random. One neuron here has 2,246 inputs while the typical one has 6, and one connection in ten runs both ways. An attacker would study exactly those features.
Parts of the machine do little
10.5% of neurons have no input at all, 6.3% are never reached from the inputs, and 41% only do the easy, reversible kind of mixing.
The hard step is thin
Each neuron does one AND per round. SHA-3 also uses a light step like this, but its layout was designed for the job and attacked in public for over fifteen years. This layout evolved for flying.
We made choices by hand
How the bits are loaded, how inhibitory inputs are paired, the constants, the read-out and the 32 rounds are ours. Nobody has reviewed them.
SHA-256 is not the part that is in danger
Quantum computers are not known to threaten SHA-256 the way they threaten elliptic curves. The only argument for a second function is insurance, and SHA-3 or BLAKE already offer that.
What's coming.
No dates yet. Each step waits for the one before it.
-
Reference code and tests
Done, 3 December 2026. Everything on this page comes from it.
-
Public spec and wiring table
So anyone can compute the same values.
-
Fast implementation
In C or Rust, to measure the true cost.
-
Open challenges
Weakened versions with fewer rounds, and an open invitation to break them.
-
Independent review
Cryptographers analyse it. We expect them to find problems.
-
Chain proposals
Only if it survives everything before it.
The honest odds of a chain adopting this are close to zero. The research is real either way, and the code is open to read.
Get the reference code