[{"data":1,"prerenderedAt":714},["ShallowReactive",2],{"post-\u002Fblog\u002F2026-11-24-v12-1-0-chain-fork-id":3},{"id":4,"title":5,"body":6,"date":702,"description":703,"extension":704,"kind":705,"meta":706,"navigation":707,"ogImage":708,"path":709,"seo":710,"stem":711,"summary":712,"__hash__":713},"blog\u002Fblog\u002F2026-11-24-v12-1-0-chain-fork-id.md","Lotus v12.1.0 commits every signature to the chain",{"type":7,"value":8,"toc":686},"minimark",[9,18,23,79,83,86,93,101,192,198,202,205,208,212,215,302,312,318,324,328,331,334,338,341,346,371,374,378,392,523,530,549,563,567,570,573,577,588,596,601,605,611,615,621,656,669,673,676,682],[10,11,12,13,17],"p",{},"Lotus v12.1.0, released 23 November, carries one consensus change: replay protection that commits every signature to this chain and no other. It activates at median time past ",[14,15,16],"code",{},"1797886200",", 21 December 2026, 20:50 UTC, the 2nd Kings boundary. Until then a v12.1.0 node validates exactly like a v12.0.x one. Past it, the two versions enforce different signature rules, and a network running both splits at the gate. That makes this a required upgrade rather than a routine release, and the deadline is the solstice.",[19,20,22],"h2",{"id":21},"the-change-on-one-screen","The change on one screen",[24,25,26,37,55,73],"ul",{},[27,28,29,33,34,36],"li",{},[30,31,32],"strong",{},"Activates:"," median time past ",[14,35,16],{},", 21 December 2026, 20:50 UTC. Testnet crosses 21 days early, on 30 November.",[27,38,39,42,43,46,47,50,51,54],{},[30,40,41],{},"Changes:"," every signature (legacy, BIP143, ",[14,44,45],{},"SIGHASH_LOTUS",", and taproot) commits ",[14,48,49],{},"CHAIN_FORK_ID = 0x4c4f54"," where it used to commit the shared value ",[14,52,53],{},"0xffdead",".",[27,56,57,60,61,64,65,68,69,72],{},[30,58,59],{},"Does not change:"," no new opcodes, no block-size or proof-of-work change, and no address-format change. Every path under ",[14,62,63],{},"src\u002F"," that differs between ",[14,66,67],{},"v12.0.2"," and ",[14,70,71],{},"v12.1.0"," serves this change, its signing surfaces, or its tests.",[27,74,75,78],{},[30,76,77],{},"Who acts:"," node operators, wallet developers, and exchanges and custodians each have one action before the gate. Holders have none.",[19,80,82],{"id":81},"a-marker-not-a-name","A marker, not a name",[10,84,85],{},"Replay protection writes a chain’s name into every signature, so the same signed transaction cannot be presented anywhere else. A signature is the only proof that the holder of coins authorized their spend; this makes that proof good on one chain only. It works like a cheque drawn on a named bank: identical handwriting, different institution, refused.",[10,87,88,89,92],{},"In the code, the name is a fork value, a spare 24-bit number inside the signature type. Once median time past (the chain’s agreed clock, the middle timestamp of the last eleven blocks) crosses the activation time, ",[14,90,91],{},"SignatureHash"," rewrites that value, so a signature made after the boundary differs from one made before it. lotusd has carried this rewrite for years, and it is the same arithmetic every ABC-derived chain ships. The commit that replaces it:",[94,95],"commit",{"repo":96,"hash":97,"subject":98,"additions":99,"deletions":100},"LotusiaStewardship\u002Flotusd","5463ed8ce9b556dca0721e4e26b4299333eeac3e","consensus: add the Lotus chain fork id for 2nd Kings replay protection (DEV-328) (#45)",142,89,[102,103,108],"pre",{"className":104,"code":105,"language":106,"meta":107,"style":107},"language-diff shiki shiki-themes github-dark-dimmed","     if (flags & SCRIPT_ENABLE_REPLAY_PROTECTION) {\n-        \u002F\u002F Legacy chain's value for fork id must be of the form 0xffxxxx.\n-        \u002F\u002F By xoring with 0xdead, we ensure that the value will be different\n-        \u002F\u002F from the original one, even if it already starts with 0xff.\n-        uint32_t newForkValue = sigHashType.getForkValue() ^ 0xdead;\n-        sigHashType = sigHashType.withForkValue(0xff0000 | newForkValue);\n+        \u002F\u002F Commit the signature to this chain's fork id. Signatures made for\n+        \u002F\u002F another chain (including one using the old 0xffdead transform) are\n+        \u002F\u002F invalid here, and signatures made here are invalid there.\n+        sigHashType = sigHashType.withForkValue(CHAIN_FORK_ID);\n     }\n","diff","",[14,109,110,119,128,135,142,149,156,165,172,179,186],{"__ignoreMap":107},[111,112,115],"span",{"class":113,"line":114},"line",1,[111,116,118],{"class":117},"s1ain","     if (flags & SCRIPT_ENABLE_REPLAY_PROTECTION) {\n",[111,120,124],{"class":121,"line":123},[113,106,122],"remove",2,[111,125,127],{"class":126},"sPm-O","-        \u002F\u002F Legacy chain's value for fork id must be of the form 0xffxxxx.\n",[111,129,132],{"class":130,"line":131},[113,106,122],3,[111,133,134],{"class":126},"-        \u002F\u002F By xoring with 0xdead, we ensure that the value will be different\n",[111,136,139],{"class":137,"line":138},[113,106,122],4,[111,140,141],{"class":126},"-        \u002F\u002F from the original one, even if it already starts with 0xff.\n",[111,143,146],{"class":144,"line":145},[113,106,122],5,[111,147,148],{"class":126},"-        uint32_t newForkValue = sigHashType.getForkValue() ^ 0xdead;\n",[111,150,153],{"class":151,"line":152},[113,106,122],6,[111,154,155],{"class":126},"-        sigHashType = sigHashType.withForkValue(0xff0000 | newForkValue);\n",[111,157,161],{"class":158,"line":160},[113,106,159],"add",7,[111,162,164],{"class":163},"sT8CT","+        \u002F\u002F Commit the signature to this chain's fork id. Signatures made for\n",[111,166,169],{"class":167,"line":168},[113,106,159],8,[111,170,171],{"class":163},"+        \u002F\u002F another chain (including one using the old 0xffdead transform) are\n",[111,173,176],{"class":174,"line":175},[113,106,159],9,[111,177,178],{"class":163},"+        \u002F\u002F invalid here, and signatures made here are invalid there.\n",[111,180,183],{"class":181,"line":182},[113,106,159],10,[111,184,185],{"class":163},"+        sigHashType = sigHashType.withForkValue(CHAIN_FORK_ID);\n",[111,187,189],{"class":113,"line":188},11,[111,190,191],{"class":117},"     }\n",[10,193,194,195,197],{},"The old transform fails in two ways. First, it is a marker, not a name: any two chains running the same code compute the same ",[14,196,53],{},", so the protection vanishes exactly when both sides upgrade onto the same release. Second, its activation came too late. The v12.0.x line set the switch to 1st Chronicles, in June 2027. The chains separate by design on 21 December, and a signature domain shared until June leaves every transaction in between replayable across both records.",[19,199,201],{"id":200},"why-the-date-moves-to-2nd-kings","Why the date moves to 2nd Kings",[10,203,204],{},"In the Winter Solstice post I said the fork-ID switch was deferred to 1st Chronicles. That was the right plan while this chain ran alone: replay protection separates chains that share a history, and until November there was nothing to separate from.",[10,206,207],{},"The unexpected split at height 1428771 changed the terms. A second record has run alongside this one ever since, and signatures stay valid on both of them until the gate. v12.1.0 restores the activation to 2nd Kings. The June date keeps its role as an epoch boundary and loses the replay-protection job.",[19,209,211],{"id":210},"what-changes-at-the-gate","What changes at the gate",[10,213,214],{},"The replacement is one constant:",[102,216,220],{"className":217,"code":218,"language":219,"meta":107,"style":107},"language-cpp shiki shiki-themes github-dark-dimmed","static constexpr uint32_t CHAIN_FORK_ID = 0x4c4f54; \u002F\u002F \"LOT\"\nstatic_assert(CHAIN_FORK_ID != 0, \"CHAIN_FORK_ID must be non-zero\");\nstatic_assert(CHAIN_FORK_ID \u003C= 0xffffff,\n              \"CHAIN_FORK_ID must fit in the 24-bit fork-value field\");\n","cpp",[14,221,222,254,278,295],{"__ignoreMap":107},[111,223,224,228,231,234,237,240,243,247,250],{"class":113,"line":114},[111,225,227],{"class":226},"scLw-","static",[111,229,230],{"class":226}," constexpr",[111,232,233],{"class":226}," uint32_t",[111,235,236],{"class":117}," CHAIN_FORK_ID ",[111,238,239],{"class":226},"=",[111,241,242],{"class":226}," 0x",[111,244,246],{"class":245},"sDGpf","4c4f54",[111,248,249],{"class":117},";",[111,251,253],{"class":252},"sVrTk"," \u002F\u002F \"LOT\"\n",[111,255,256,259,262,265,268,271,275],{"class":113,"line":123},[111,257,258],{"class":226},"static_assert",[111,260,261],{"class":117},"(CHAIN_FORK_ID ",[111,263,264],{"class":226},"!=",[111,266,267],{"class":245}," 0",[111,269,270],{"class":117},", ",[111,272,274],{"class":273},"sP_-H","\"CHAIN_FORK_ID must be non-zero\"",[111,276,277],{"class":117},");\n",[111,279,280,282,284,287,289,292],{"class":113,"line":131},[111,281,258],{"class":226},[111,283,261],{"class":117},[111,285,286],{"class":226},"\u003C=",[111,288,242],{"class":226},[111,290,291],{"class":245},"ffffff",[111,293,294],{"class":117},",\n",[111,296,297,300],{"class":113,"line":138},[111,298,299],{"class":273},"              \"CHAIN_FORK_ID must fit in the 24-bit fork-value field\"",[111,301,277],{"class":117},[10,303,304,307,308,311],{},[14,305,306],{},"0x4c4f54"," is ",[14,309,310],{},"LOT"," in ASCII. The chain’s own name now rides in the fork-value field of every signature this chain accepts, on all three signature formats and both taproot spend paths. The value is implicit in the signature and is not carried in the transaction, so transaction IDs do not change.",[10,313,314,315,317],{},"Before the gate, nothing moves. Fork value 0 validates as it always has, so mempools, wallets, and pending transactions work unchanged. After the gate, a node requires ",[14,316,306],{}," on every input, and a transaction signed before the boundary is rejected. Anything pending on 21 December must confirm before the gate or be re-signed.",[10,319,320,321,323],{},"The fork activates its own upgrade, Napoleon, at the same gate. It ships no transform, so it requires fork value 0 where this chain requires ",[14,322,306],{},". A signature is valid on exactly one side.",[19,325,327],{"id":326},"the-exposure-until-then","The exposure until then",[10,329,330],{},"Right now, a transaction spending a coin that existed before height 1428771 replays: signed once, valid on both chains. That is the one replay risk anyone can touch today, and it stays live until the gate.",[10,332,333],{},"From the gate, every signature this chain accepts is chain-bound, and the shared-txid ambiguity ends for new transactions. A txid shared between the two records remains meaningless either way, and explorers should treat it as nothing.",[19,335,337],{"id":336},"what-you-have-to-do","What you have to do",[10,339,340],{},"Holders have nothing to do. Everyone else has one action before 21 December.",[342,343,345],"h3",{"id":344},"node-operators","Node operators",[10,347,348,349,351,352,355,356,359,360,363,364,367,368,54],{},"Upgrade every node to v12.1.0, from the canonical daemon, ",[14,350,96],{},". There is no configuration: the activation default is ",[14,353,354],{},"secondKingsActivationTime",", and ",[14,357,358],{},"-replayprotectionactivationtime"," stays what it was, the testnet and regtest override. Confirm the version with ",[14,361,362],{},"lotus-cli getnetworkinfo","; ",[14,365,366],{},"subversion"," must report ",[14,369,370],{},"12.1.0",[10,372,373],{},"Testnet reaches the boundary on 30 November at 20:50 UTC, so a rehearsal window opens a week from now.",[342,375,377],{"id":376},"wallet-developers","Wallet developers",[10,379,380,383,384,387,388,391],{},[14,381,382],{},"xpi-ts@0.4.1"," is published and carries the same constant, exported as ",[14,385,386],{},"CHAIN_FORK_ID",". The default policy is ",[14,389,390],{},"auto",": sign fork value 0 until the activation has passed plus a margin, then the chain id.",[102,393,397],{"className":394,"code":395,"language":396,"meta":107,"style":107},"language-ts shiki shiki-themes github-dark-dimmed","export function chainForkIdAt(\n  unixSeconds: number = Math.floor(Date.now() \u002F 1000),\n  activationTime: number = REPLAY_PROTECTION_ACTIVATION_TIME,\n): ForkId {\n  return unixSeconds >= activationTime + REPLAY_PROTECTION_ACTIVATION_MARGIN\n    ? CHAIN_FORK_ID\n    : 0\n}\n","ts",[14,398,399,414,453,469,482,502,510,518],{"__ignoreMap":107},[111,400,401,404,407,411],{"class":113,"line":114},[111,402,403],{"class":226},"export",[111,405,406],{"class":226}," function",[111,408,410],{"class":409},"sLyBy"," chainForkIdAt",[111,412,413],{"class":117},"(\n",[111,415,416,420,423,426,429,432,435,438,441,444,447,450],{"class":113,"line":123},[111,417,419],{"class":418},"s7B5-","  unixSeconds",[111,421,422],{"class":226},":",[111,424,425],{"class":245}," number",[111,427,428],{"class":226}," =",[111,430,431],{"class":117}," Math.",[111,433,434],{"class":409},"floor",[111,436,437],{"class":117},"(Date.",[111,439,440],{"class":409},"now",[111,442,443],{"class":117},"() ",[111,445,446],{"class":226},"\u002F",[111,448,449],{"class":245}," 1000",[111,451,452],{"class":117},"),\n",[111,454,455,458,460,462,464,467],{"class":113,"line":131},[111,456,457],{"class":418},"  activationTime",[111,459,422],{"class":226},[111,461,425],{"class":245},[111,463,428],{"class":226},[111,465,466],{"class":245}," REPLAY_PROTECTION_ACTIVATION_TIME",[111,468,294],{"class":117},[111,470,471,474,476,479],{"class":113,"line":138},[111,472,473],{"class":117},")",[111,475,422],{"class":226},[111,477,478],{"class":418}," ForkId",[111,480,481],{"class":117}," {\n",[111,483,484,487,490,493,496,499],{"class":113,"line":145},[111,485,486],{"class":226},"  return",[111,488,489],{"class":117}," unixSeconds ",[111,491,492],{"class":226},">=",[111,494,495],{"class":117}," activationTime ",[111,497,498],{"class":226},"+",[111,500,501],{"class":245}," REPLAY_PROTECTION_ACTIVATION_MARGIN\n",[111,503,504,507],{"class":113,"line":152},[111,505,506],{"class":226},"    ?",[111,508,509],{"class":245}," CHAIN_FORK_ID\n",[111,511,512,515],{"class":113,"line":160},[111,513,514],{"class":226},"    :",[111,516,517],{"class":245}," 0\n",[111,519,520],{"class":113,"line":168},[111,521,522],{"class":117},"}\n",[10,524,525,526,529],{},"The margin exists because median time past trails the wall clock. On two-minute blocks it lags by roughly twelve minutes, and block-production jitter stretches that. Signing the new fork id before the median crosses produces transactions the network rejects, so the default stays on the safe side for thirty minutes. Callers who know a chain’s median time past, or who sign offline, pin the value instead: ",[14,527,528],{},"'auto'"," does not know about testnet’s earlier date.",[10,531,532,533,536,537,540,541,544,545,548],{},"Signers with no chain state read no clock. ",[14,534,535],{},"lotus-tx"," now takes ",[14,538,539],{},"-forkid=\u003Cid>",": ",[14,542,543],{},"-forkid=0x4c4f54"," commits the chain id, and the default ",[14,546,547],{},"-forkid=0"," preserves pre-activation behaviour. PSBT and hardware signers need the value configured out of band, because the transaction itself does not carry it.",[10,550,551,552,555,556,355,559,562],{},"Three legacy copies are out of scope for this epoch: ",[14,553,554],{},"bitcore-lib-xpi",", the bitcore vendored inside ",[14,557,558],{},"lotus-sdk",[14,560,561],{},"lotus-vase",". A signer that still commits fork value 0 stops working on Lotus at the gate, so move to a maintained wallet before 21 December.",[342,564,566],{"id":565},"exchanges-and-custodians","Exchanges and custodians",[10,568,569],{},"Update every signing surface before the gate, and re-sign anything still pending when it arrives. Between now and 21 December, deposits of pre-split coins replay: a withdrawal signed once can be broadcast again on the other chain and pay out twice from the same input.",[10,571,572],{},"The 2018 split between BCH and BSV shipped without replay protection; holders had to split their own coins by hand, because a transaction broadcast on one chain would also spend them on the other. The same caution applies to your withdrawals exactly as it applies to everyone else. After the gate, a signature made for Lotus is invalid everywhere else, and a transaction signed for another chain is invalid here.",[19,574,576],{"id":575},"the-port-to-the-original-repository","The port to the original repository",[10,578,579,580,583,584,587],{},"The same change has been proposed upstream. ",[14,581,582],{},"givelotus\u002Flotusd"," is the original project’s repository (the name on the domain is a separate story, recorded in the chain-split post), and its December line, ",[14,585,586],{},"lotusv1-dec2026",", carries the 12.7.1 upgrade:",[589,590],"pr",{"repo":582,"number":591,"title":592,"state":593,"additions":594,"deletions":595},"323","consensus: sign with the Lotus chain fork id from 2nd Kings (ported from LotusiaStewardship\u002Flotusd v12.1.0)","open",660,157,[10,597,598,599,54],{},"The PR ports this fork ID onto that line so both implementations enforce the same signature rules from the gate. It is open and unmerged; until it merges, the canonical daemon for this chain is ",[14,600,96],{},[19,602,604],{"id":603},"what-does-not-change","What does not change",[10,606,607,608,610],{},"The signature algorithms stay: legacy and BIP143 remain valid, and ",[14,609,45],{}," remains the only sighash taproot accepts. There are no chain-tagged outputs and no UTXO migration window; coins are not marked, holdings do not move, and only the act of signing changes. 1st Chronicles stays scheduled for 21 June 2027 as the epoch boundary; it no longer gates replay protection.",[19,612,614],{"id":613},"downloads","Downloads",[10,616,617,618,620],{},"Lotus ",[30,619,71],{},", unsigned builds:",[24,622,623,636,646],{},[27,624,625,628,629],{},[30,626,627],{},"Windows"," — ",[630,631,635],"a",{"href":632,"rel":633},"https:\u002F\u002Fgithub.com\u002FLotusiaStewardship\u002Flotusd\u002Freleases\u002Fdownload\u002Fv12.1.0\u002Flotus-12.1.0-win64-setup-unsigned.exe",[634],"nofollow","lotus-12.1.0-win64-setup-unsigned.exe",[27,637,638,628,641],{},[30,639,640],{},"macOS",[630,642,645],{"href":643,"rel":644},"https:\u002F\u002Fgithub.com\u002FLotusiaStewardship\u002Flotusd\u002Freleases\u002Fdownload\u002Fv12.1.0\u002Flotus-12.1.0-osx-unsigned.dmg",[634],"lotus-12.1.0-osx-unsigned.dmg",[27,647,648,628,651],{},[30,649,650],{},"Linux (x86_64)",[630,652,655],{"href":653,"rel":654},"https:\u002F\u002Fgithub.com\u002FLotusiaStewardship\u002Flotusd\u002Freleases\u002Fdownload\u002Fv12.1.0\u002Flotus-12.1.0-x86_64-linux-gnu.tar.gz",[634],"lotus-12.1.0-x86_64-linux-gnu.tar.gz",[10,657,658,659,664,665,668],{},"ARM and AArch64 builds, debug symbols and the source tarball are on the ",[630,660,663],{"href":661,"rel":662},"https:\u002F\u002Fgithub.com\u002FLotusiaStewardship\u002Flotusd\u002Freleases\u002Ftag\u002Fv12.1.0",[634],"release page",". Checksums are in ",[14,666,667],{},"SHA256SUMS"," on the same page. The builds are unsigned; your OS will warn on first launch.",[19,670,672],{"id":671},"next","Next",[10,674,675],{},"Testnet crosses the boundary on 30 November at 20:50 UTC; rehearse there first. Mainnet reaches the gate on 21 December at 20:50 UTC, where 2nd Kings activates on this chain and Napoleon on the fork. Then comes 1st Chronicles, on 21 June 2027, the next boundary and the next epoch.",[10,677,678,679,681],{},"A signature is a claim about who may accept it. From the solstice, every signature on this chain carries the chain’s name: ",[14,680,306],{}," spells LOT. The constant is public, the tests are in the tag, and the gate is four weeks out. Check your version today; the boundary checks it again on the solstice.",[683,684,685],"style",{},"html pre.shiki code .s1ain, html code.shiki .s1ain{--shiki-default:#ADBAC7}html pre.shiki code .sPm-O, html code.shiki .sPm-O{--shiki-default:#FF938A}html pre.shiki code .sT8CT, html code.shiki .sT8CT{--shiki-default:#8DDB8C}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .scLw-, html code.shiki .scLw-{--shiki-default:#F47067}html pre.shiki code .sDGpf, html code.shiki .sDGpf{--shiki-default:#6CB6FF}html pre.shiki code .sVrTk, html code.shiki .sVrTk{--shiki-default:#768390}html pre.shiki code .sP_-H, html code.shiki .sP_-H{--shiki-default:#96D0FF}html pre.shiki code .sLyBy, html code.shiki .sLyBy{--shiki-default:#DCBDFB}html pre.shiki code .s7B5-, html code.shiki .s7B5-{--shiki-default:#F69D50}",{"title":107,"searchDepth":123,"depth":123,"links":687},[688,689,690,691,692,693,698,699,700,701],{"id":21,"depth":123,"text":22},{"id":81,"depth":123,"text":82},{"id":200,"depth":123,"text":201},{"id":210,"depth":123,"text":211},{"id":326,"depth":123,"text":327},{"id":336,"depth":123,"text":337,"children":694},[695,696,697],{"id":344,"depth":131,"text":345},{"id":376,"depth":131,"text":377},{"id":565,"depth":131,"text":566},{"id":575,"depth":123,"text":576},{"id":603,"depth":123,"text":604},{"id":613,"depth":123,"text":614},{"id":671,"depth":123,"text":672},"2026-11-24","Lotus v12.1.0 makes a signature valid on this chain only; the upgrade is required before the 2nd Kings gate on 21 December.","md","announcement",{},true,"\u002Fog\u002F2026-11-24-v12-1-0-chain-fork-id.png","\u002Fblog\u002F2026-11-24-v12-1-0-chain-fork-id",{"title":5,"description":703},"blog\u002F2026-11-24-v12-1-0-chain-fork-id","Chain-specific replay protection activates at median time past 1797886200, 21 December 2026, 20:50 UTC. Node operators, wallet developers, and custodians each have one action before the gate; holders have none.","Hhxf8oh8fNxC2cj3Pr2UbcXjZghCD4_Yxyl1P9bEXno",1795499813665]