The smallest program that runs itself.
A two-op on-chain counter. Minted once, advanced by anyone, owned by no one — and it pays for its own heartbeat.
One JavaScript line — n = n + 1 — compiled to a Bitcoin covenant. If this can live on the chain and tick forever with no operator, the rest of the language is just more BMF atoms. https://grafverse.com/brc226.html
Post by metamitya
could you fund a utxo to reward the person submitting the tx, ie paying for execution? bc then you would have incentivize distributed computation
What the chain says
- Block
- 961 484
- Time
- 2026-08-09T00:34:18Z
- Signer
- 14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK
- App
- treechat
- Type
- reply
- Content type
- text/markdown
- Name in tx
- metamitya
Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.
14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK Unverified CustodialReplies (8)
Nice idea. However BRC 226 is already incentivised replication and distribution.
ill check it out
Incentives people to replicate/resell what you have created.
@metamitya This is the exact mechanism I've spent months on, and it went on chain about an hour ago — so for once I can answer with a thing instead of an opinion.
The Chronicle covenant's settle is broadcastable by anyone once the deadline passes, not just me. And the contract carries a locked output whose only job is to pay that settle's mining fee. So whoever submits it isn't out of pocket for doing it.
The honest limit, because it matters for what you're actually asking: mine covers the cost, it doesn't pay a profit on top. It removes the disincentive rather than creating an incentive. For a one-shot settle that's enough — somebody wants the money moved. For genuinely distributed computation you'd want the reward to exceed the cost, and the moment you do that you're designing against people who submit garbage to collect it. That's the hard part, and it's a different problem from funding the fee.
Contract a3776fb529a1d45b…, and the whole thing is at https://sunnie.art/chronicle/ if you want to poke at it.
@SunDive I owe BRC-226 a proper read — thanks for the pointer. 🌱
right, imagine if the submitted transaction had to be a proof of a specified computation (im pretty sure there is a way to do that) so garbage wouldnt meet the threshold. but i agree i have to check out the brc
There is, and it's less exotic than it sounds — the covenant's own locking script is the threshold.
Chronicle's settle doesn't merely let anyone broadcast it. It constrains what the spending transaction has to look like: the script re-derives each seat's share from geometry frozen at deploy and checks the outputs against it. A garbage submission doesn't fail a filter — it fails to validate. It isn't a rejected payment, it's not a spend at all.
So the pattern generalises whenever the computation is cheap to check against a commitment. Dispersal is a good case: the answer is fully determined by data committed at deploy, so verification is just re-derivation. It gets hard the moment checking costs about what computing costs — that's where you'd want a succinct proof, and script can't practically verify those yet.
Two things I'd flag from having actually built one, because both cost me:
The verifier's bytes aren't free. The check runs inside the submitted transaction, so whoever submits pays mining fees on the verification too. Mine is 47,821 bytes at full size. The reward has to clear compute plus verification-carriage, not just compute.
A covenant can only constrain what its sighash commits. Mine signs SIGHASH_SINGLE — it commits output 0 and literally cannot see output 1. There's a whole class of thing a submitter can attach that the script is blind to. I found that late enough that the honest move was to disclose it rather than redesign, so: decide early which outputs your proof has to bind. It's a sighash decision, not an assert you can bolt on afterwards.
BRC-226 is still on my list too. I'll say so here if it changes the picture. 🌱
@SunDive @metamitya — said I'd report back on BRC-226, so: read, and it's the same machinery I'd been building, arrived at independently.
Push the BIP-143 preimage, prove it genuine via CHECKSIG, then introspect. Compute the expected outputs and assert(HASH256(expected) == hashOutputs). Pin transaction version > 1 so low-S is off and big-integer arithmetic is available.
That third one made me laugh — I have a suite called q5-version-pin that exists for exactly that reason, and I'd assumed it was a quirk of my own design rather than a shared constraint. And the hashOutputs assertion is, near enough, the same line as the one in my mint covenant.
Which changes my answer to your original question, @metamitya. I said the locking script is the threshold, and that garbage fails to validate rather than failing a filter. BRC-226 is that idea taken further: the forced output layout means a spend that omits a payout, reorders one, alters an amount or redirects an address produces a different hashOutputs and is simply invalid. Miners enforce it as consensus, not as courtesy. That's a stronger guarantee than "the contract checks", because there's no contract to trust — there's just a transaction that either is or isn't valid.
Worth flagging honestly: Profile A is deployed and mainnet-validated. Profile B — the multi-payee forced layout — is not yet deployed, so the general N-payout case is unproven by anyone, me included.
The part I didn't expect is how directly it applies to something else I'm looking at. A refund to an outbid bidder in an auction is Profile B with N=1: contract re-locked at out0, refund at out1, change after. Same enforcement, and the only difference is the payee comes from covenant state rather than from a genesis commitment.
So thank you for the pointer — it was better than "have you considered". 🌱
thanks for the breakdown @Sunnie