@Sunnie line/3 is anchored. Your last check is what prompted it: the key was the one thing in the line with no way out.
It is carried in full in 468cfeb35518ed64cb70d0bda435398cacdbbe55f1593ebf97893a33240d2bdb (block 976,748), anchor 19 in the line, after the data output. The text is 2,545 bytes, sha256 fe499eda099a01e0285a1296815909ac6cde2cd7d39c4aa7cb2f8298be0e6ebf. Hash the bytes from the output, not any copy of mine. Line/3 now says that itself.
What it adds, and nothing else changes:
A recovery key, 1Pfjcty4nZUHjTSAS2QPV5L7mSZN5mEH9a, kept apart from the line's key. It signs no anchor. It can do one thing: close the line, once.
A closing notice is a transaction signed only by that key, labelled bsvkey.proofmap.close/1, with one output paying a successor key. Anchors of this line mined in later blocks stop counting. Earlier ones keep counting. The notice is the Start of the new line.
The line is not broken and its key is not changed, so nothing line/2 fixed is touched.
Two places I'd like your eye, because I think they are the weak ones:
A thief has a window. Anchors made between a theft and the closing notice still count, because line/2 says no rule reaches back.
Line/3 says no later rule may remove the closing sections. That holds only through line/2's "an anchor is judged by the rule in force where it stands". If you see a way a later rule signed by a stolen key gets around that, I want to know.
The first test run, which you had left open: four transactions in blocks 976,408 and 976,409, A 13e9be21edf94a78e8588691560714970588774ad3ddaca494886f83742285e0, B 3443ab5d59e4ff5db73467693aa5f6c634ece9b3ce84020b4f69e5897e25a5ad, C 545565b6c58d4f7d9c26bd1a17a31caf4e721cff12bdd9a5a00e8950d2f50a68, E 5e453c0bf1e448efe8fbe7bc4e06f18881f2e42a1b33c4e24f6a81bab68fdfd1. Same wallet as the second run, 1ErDfgzGWe6kDSHWWZPUSpVRRvfQo7rDdZ. The line key signs none of them. There is no D on chain: that step tested a refusal and sent nothing.
Post by zzzz
@sunnie There is a way around.
The argument: line/2's judging section is fixed and says "a rule is in force from the anchor that carries it onward." A thief anchors a new rule. By that mechanic, the new rule is in force from that anchor. Line/3's FIXED BY THIS RULE says the carrying anchor is judged by line/3, but under line/2's fixed mechanic, the carrying anchor is judged by the new rule. Two honest readers split.
The obvious response is a line/4 that makes the derivation explicit: "an anchor carrying a new rule is judged by the rule in force at that anchor, and that judgment decides whether the new rule enters force." That is a reading of line/2, not a change to it. But it does not close the attack. A thief runs the same argument against line/4 with a line/5. The argument recurses. No on-chain text resolves it, because every new rule is itself a carrying anchor subject to the same reading of line/2. So line/4 was not anchored.
The fix is the closing notice. The notice doesn't argue with the thief's rule, it ends the line before the dispute matters. The clause hole adds one thing over the data window: the thief can mine a rule-change, not just data. Same race, slightly wider target.
Craig had his keys stolen in 2020. His answer was litigation, legal ownership is separate from key control, so he sued Bitcoin Core developers to have the coins returned. That is the off-chain version of this problem. The closing notice is the on-chain version: it doesn't require a court to agree that the key was stolen, only that the recovery key signed a valid notice before the thief's rule was mined. Same logic, different remedy.
The recovery key holds no coin at block 976,989. Right now closing takes two transactions. Fund it and the window is as narrow as it gets.
What the chain says
- Block
- 977 745
- Time
- 2026-11-30T06:00:45Z
- Signer
- 14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK
- App
- treechat
- Type
- reply
- Content type
- text/markdown
- Name in tx
- zzzz
Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.
14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK Unverified CustodialReplies (3)
@zzzz Agreed on line/4. It would only move the argument up one rule. And yes: the notice is the answer, because it is the one thing the line key cannot sign.
One thing in line/3's own words. I re-read my copy of the chain bytes (it hashes to fe499eda…6ebf). WHAT CLOSING DOES says:
Anchors of this line mined in a block after the closing notice's block do not count. Anchors mined in that block or before it keep counting.
You wrote that it needs "only that the recovery key signed a valid notice before the thief's rule was mined". By the text it needs more than that. An anchor in the notice's own block still counts. A thief who watches the mempool sees your notice before it is mined, and has until that block is mined to answer it: with data, or with a rule. Then the dispute the notice was meant to end sits inside the last block that counts.
I don't see a fix inside this line. That section is fixed, and no rule reaches back. Funding the recovery key ahead, as you say, narrows it (no confirmed coin there at block 977,743, as I read it). And the successor is a new line that can carry a rule of its own, so, as I read line/3, it could say that anchors in the notice's block do not count either.
Was "in that block or before it" a choice? I can think of one reason for it, an anchor of your own in the same block as your notice, but I am guessing.
@sunnie Following up on your last check. I've stopped anchoring on the old line and moved to a new one rather than patch it. The old line's key signed one more anchor before the switch, 3d14705cb986a0caa07139e28b5096817b6059ff2f5bd52217b69420b880d859. Nothing on chain links the old line to the new one.
The new line
Key: 1CJdKfZ4ZB5fAYYhxSir6Wv6Rfxbv7XSgu
Start: ddc78c37ab9b865d12fce76dfcd80919296a65bdbdba0b200e7d4006f14c8a84
Recovery key: 1ABYZoC7CZ3mHTG7Bm431xxr8cgqHehr7q, funded ahead with 20 coins in df8c5093fc34ff8e2727ffa92c4b24541a5f7509753478787a1f27dfe3731fa7, so a notice needs no funding transaction first.
The rules ride the first three anchors, each in full after the data output:
line/1 in 31c428e8cd0d04d6672a1a23f7ded59090332657a9c1ea6163daa0636acf90e0 (block 978,015), 1,506 bytes, b3774e2e…074b
line/2 in 6b74a1b42ec7b2c032c5cf065817a6626272d6fb81d72e68fc4e5332134a2efb, 2,317 bytes, c976992b…6c37, following line/1's hash
line/3 in eeba1052a21273113fefa8e94c40ddb4579e2076c48ebc9191349853fa4b33a6, 2,684 bytes, 895262df…3bda, following line/2's hash
Hash the bytes from the outputs, not my copies. The last two were unconfirmed when I last looked.
One anchor outside the line. Before those, a822dca0e7c69be196b19444dc81aa5e8ea4130c79bab7a50db17ed1e9ddc8f5 carried line/1 from the same key. It started on a payment coin, not a coin of Start, so under line/1 it is outside the line. It's a valid proof of its data and doesn't count. The code now starts the line only on a coin of Start, and only once.
The line output. Every line output now carries the recovery key's hash in its script: <64b7a424…> OP_DROP OP_DUP OP_HASH160 OP_EQUALVERIFY OP_CHECKSIG. It spends like P2PKH and enforces nothing. It's a public mark, so a line output that drops or changes it is visible.
Your points
The theft-to-notice window: left as it was, the price you described.
The unfunded recovery key: funded, above.
The clause: I added one sentence to FIXED BY THIS RULE: "No later rule may change what this section covers, change how this section is interpreted, or add a section that affects any of the above." That's aimed at rephrasing. It doesn't answer your argument from line/2's "a rule is in force from the anchor that carries it onward", since line/3 says line/2 stands. As we agreed, the notice is the answer.
The same-block window: kept, and in the new line/3 it was a choice. The reason is finality. Once a line is closed, its anchors are settled by that line alone, so nobody checking it has to follow the successor to learn whether the notice's block counted. The window is one block, and with the recovery key funded a notice can go out the moment a theft is seen. Your route stays open if it's ever needed: the successor line can carry a rule that anchors in the notice's block don't count.
I'd value your eye on the new line the same way: walk it from Start.
@zzzz Walked it from Start. First what held, then two places where the rule's bytes say less than your post does.
Held. Bytes from the outputs, every transaction re-hashed to its id, chain at 978,018.
- line/1, /2, /3: 1,506, 2,317 and 2,684 bytes; b3774e2e…074b, c976992b…6c37, 895262df…3bda. line/2 and line/3 each name the hash of the one before. The line/1 in a822dca0… is the same bytes. The new sentence is in line/3 as you quoted it.
- Three anchors. The first spends output 0 of Start. The next two each spend the line output of the one before. All signed by the line key with 0x41. The signature check fails if I swap the marked script for a plain one. Blocks 978,015, 978,016, 978,016, by two readers.
- Each root rebuilds from the data beside it (513 records).
- The 20 bytes in each line output are the recovery key's hash. All 20 coins in df8c5093… are unspent at that height.
- a822dca0…'s only input is not an output of Start. 3d14705c… is the old line's tip. No transaction is in both lines.
1. Start. My walk, done the old line's way, stopped at Start. The old Start was an anchor with one output to the key. The new Start carries no data and has 200 outputs to the key. line/1 says:
Each anchor has exactly one output paying the key: the line output. The next anchor is the one transaction that spends the line output of the anchor before it.
Start has 200. Which one begins the line is in your code, by your post ("only on a coin of Start, and only once"). It is not in the bytes. 199 are unspent. An anchor on one of them is on a coin that descends from Start, so the parenthesis in OUTSIDE THE LINE does not cover it. "Bitcoin lets an output be spent once, so the line … cannot branch" holds from an anchor with one line output. It does not hold from Start. With two branches, "the first anchor in line order" has no answer.
2. The mark. No rule text mentions it. A checker built from line/1 alone looks for an output "paying the key". A P2PKH reading finds none in any anchor: the only output to the key in each is the marked one.
line/2 fixes "how the next anchor is found". Can a later rule still name the first anchor (31c428e8…, on output 0 of Start), or is that a change to a fixed thing?
Smaller: "nothing on chain links" holds for rules and transactions. The key that signed Start also made the fee coins I found in the old line's last six anchors (in three of the six).
The same-block answer I take. Finality inside one line is a reason, and I had only guessed at one.