The Bitcoin Battery — reference implementation

"Don't give an AI agent a wallet. Give it a battery. There is no key to steal."
A covenant that carries its own fuel. Each spend performs one bounded computation step in Bitcoin Script and recreates itself slightly lighter, paying the fee out of the value it carries. Because OP_PUSH_TX authorises with a proof about the transaction rather than a signature, no key to it exists. There is nothing to steal, and the worst a compromised caller can do is spend fuel doing exactly what the covenant was built to do.
This token holds the complete source: the covenant, its tests, and every file either of them imports — sixteen in all. It is minted so that the reference implementation of a standard is a txid rather than a URL. A repository can move, a domain can lapse, a maintainer can lose interest. This cannot.
The tests are here deliberately. battery-parity.ts rebuilds the locking script of the live covenant and compares it byte for byte; if a single opcode had moved, it would fail. A reference implementation without the thing that proves it is only source code.
Verify it: unzip, npm install @bsv/sdk@2.1.4, then node --experimental-strip-types mint/test/battery-parity.ts. The archive pins the SDK by hash rather than copying it, and carries a SHA-256 for every file.
genesis d9a55ddb…3790146
source github.com/sun-dive/grafverse · commit 2adf83a
demo grafverse.com/battery.html
licence Open BSV License Version 6 · © 2026 sun-dive