Toby Sharp joined Brink engineers to present Hornet, an executable specification for Bitcoin consensus.
In his presentation, he discussed:
- “The code is the spec”
- How Hornet differs from libbitcoinkernel
- Properties of a good specification
- The 35 semantic rules that define block validity
- A declarative C++ implementation of the rules
- A custom UTXO database designed for Bitcoin
- Approaches to block validation
- Ideas of a domain specific language (DSL) for consensus
- Differential and adversarial testing
- Q&A with the audience
This discussion was recorded on June 12, 2026.
About Brink
Brink is a Bitcoin research and development centre, founded in 2020 to support independent open source protocol developers and mentor new contributors. If you or your organization is interested in supporting open source Bitcoin development, feel free to email us, donate@brink.dev.
Developers interested in the grant program can apply now.
Keep in touch
Subscribe to the Brink newsletter for future blog posts.

