one interval. there are no tiers, no interval byte, and no per-interval difficulty. the target is 617 seconds (nForkIntervalTarget). the floor is the sequential delay, about 60 seconds of non-parallelisable work on the reference machine, enforced by computation rather than by a rule.
the delay is the floor because no amount of hashrate can shorten it, although a faster CPU does shorten it slightly: the step count is fixed, the wall-clock cost is not. that drift is the reason the delay should be re-measured before any hardware generation changes the duty cycle materially. blocks may be slower than 617 seconds and that is not a failure mode: reward and payload are proportional to the actual stamp delta, so a late block earns the elapsed time and its extra payload can clear a backlog.
from the second fork block onward, a block's timestamp must be strictly greater than its predecessor's, and at least one second greater in integer time. the first fork block is exempt from the monotonic rule because its predecessor is a parent block whose stamp may be up to two hours ahead of the fork's notion of time (nForkFutureLimit = 60, first-block transition rule).
the future bound is the node's own clock plus 60 seconds. there is no explicit past bound against the node's clock: the previous block's stamp is the lower bound.
the consequence is that height is an identifier, not a clock. every rule that needs a time basis uses MTP or aggregate seconds, including activation, the halving schedule, and any relative timelock.
the delay and the stamps catch different lies and neither substitutes for the other. the delay bounds production: no chain can be assembled faster than one sequential delay per block, whatever the timestamps say. the stamps bound claiming: a miner can produce a block in the minimum delay and then claim that it took longer, and the delay cannot see that, because the work was genuinely done.
two properties of the rule matter.
first, the future bound is absolute, measured against the accepting node's clock, and not relative to the parent. a relative bound of one minute per block would compound, and a miner could walk the chain clock forward by a minute every block forever. an absolute bound cannot be walked: the clock advances in real time, so the most a miner can hold ahead of it is a constant sixty seconds.
second, the payload limit and the reward both read a smoothed interval, defined in section 2.1, and not the block's own stamp. bending the stamp therefore buys almost nothing: the stamp is one sample in an exponential estimate with a gain of at most 0.25, so the full sixty second allowance moves the input by at most fifteen seconds and then decays. the timestamp rules still bound what can be claimed, but they are no longer the thing that limits the gain, because the gain has been designed out rather than fenced in.
monotonicity closes the other direction: a block may not be stamped earlier than its parent, so time cannot be walked backwards either, which would otherwise let a miner reset the delta and re-earn an interval it had already been paid for.
the incentive is bounded by a trade rather than by a wall. a miner who holds a block back to claim a larger delta earns more if it wins, but every second of holding is a second in which another miner can publish a shorter delta block and take the height. publishing now is a smaller settled reward; withholding is a larger contested one. the expected value of withholding is discounted by the probability of losing the race, and that probability rises with the delay, which is what keeps the strategy from dominating.
first seen is the primary rule: the first valid block at a height that a node has fully validated becomes its tip, and a later block at the same height does not replace it unless it is part of a longer chain.
no delta preference is specified, and this is deliberate. an earlier draft preferred the smaller delta when two blocks differed by more than the clock allowance, on the grounds that the longer one was evidence of withholding. that is no longer needed, because withholding buys neither reward nor payload: both read the smoothed interval in section 2.1, and the fast falling gain reprices a held-back stamp within a few blocks. what the preference would still do is reward under claiming, which is free, so a smallest delta wins rule would drift the chain towards the minimum delta and shrink the reward. first seen therefore remains the only rule.
the reward and the payload limit both read a smoothed interval, not the block's own stamp. the estimate is an exponential moving average with asymmetric gain:
es = es + a * (delta - e_s) a = alphafast if delta < es, else alpha_slow
with alpha_fast greater than alpha_slow. the estimate falls quickly when blocks speed up and rises slowly when they slow down.
the asymmetry mirrors the difficulty controller and exists for the same reason: a hashrate spike must be repriced immediately, so an attacker cannot harvest the old, longer interval while producing at double speed, while the recovery after a hashrate drop can be smooth because nobody is attacking. a symmetric window would pay the attacker the pre-attack rate for a full window, which is the harvest the asymmetry is there to close.
initial values for simulation: alphafast 0.25, alphaslow 0.05, a ratio of five against the controller's ten. these are parameters to be tuned, not constants to freeze. the ratio sets how fast a spike is repriced, the base gain sets how much the reward jitters, and they trade against each other. set them by measuring the harvest an attacker takes in the first blocks of a spike against the emission jitter they introduce.
a median is the wrong estimator at any gain: block intervals are roughly exponential, the median of an exponential is ln 2 times its mean, and a median based reward would undershoot the schedule by about thirty percent.
for the first fork blocks the raw delta seeds the estimate.
R(es) = S(aggregateseconds) * e_s / 600
e_s is the rolling mean in seconds, R is the coinbase subsidy for this block, and S is the block subsidy for the current halving epoch. halvings are counted in aggregate seconds: the epoch is aggregate_seconds / (600 * 210000), so two halvings are about four years apart in wall-clock time rather than in block count. aggregate_seconds is seeded at activation from the parent chain and advances by actual elapsed time.
e_s is uncapped. a sustained 1200 second interval pays twice the standard subsidy per block, which is deliberate: it pays miners for the time actually spent, and it removes any incentive to produce filler blocks to farm issuance.
the property this buys is the important one. emission per unit time is fixed by the protocol. hashrate can win a larger share of that emission, but it cannot make the emission run faster. on a block-counted chain a majority miner earns more subsidy per hour by producing more blocks; here it earns more only by taking share from someone else.
fees are not time-scaled. the subsidy is time-denominated, the fee market is per block, and the delay bounds how many blocks can be produced.
the stamp is no longer an economic lever. it is one sample in an exponential estimate whose gain is at most 0.25, so shifting it by the full sixty second allowance moves the input by at most fifteen seconds, and that influence decays geometrically with each following block. the timestamp rules in 1.1 still bound what can be claimed, but they are a validity fence rather than the thing that limits the gain.
what the miner chooses instead is the interval itself, by choosing when to mine. a slower chain pays more per block and carries more payload per block, and a faster one pays less, so the total emission and the total capacity per unit time are invariant. hashrate falling is the interesting case: blocks slow, the window rises, each block pays more and carries more, and revenue per unit of hashrate rises, which pulls hashrate back. that is a negative feedback loop with a stable point rather than a race.
the cost is lag, and it is two sided: about four blocks to follow a hashrate increase and about twenty to follow a decrease, at the initial gains. burst clearing is gone, because a slow period is absorbed over the following blocks rather than in one oversized one.
an estimator whose falling gain is faster than its rising gain is biased low under symmetric noise, exactly as the asymmetric difficulty controller settles below its setpoint. the rectification factor depends on the alpha ratio and on the interval distribution, so it has to be measured in simulation and then either corrected with a scalar or accepted deliberately.
accepting it means the emission runs slightly under the schedule even with entirely honest miners. that is the safe direction for a supply commitment: a chain that mints slightly less than promised is easier to defend than one that mints slightly more, and the error is bounded by the rectification factor rather than compounding.
the two knobs are the ratio and the base gain. the ratio sets how fast a spike is repriced, the gain sets the jitter, and they trade directly against each other. that is why neither is a constant to be chosen by argument.
W(es) = MAXFORKBLOCKSIZE * e_s / 600
the payload limit is the block size excluding the coinbase, and it reads the same smoothed interval as the reward. at a sustained 600 second interval it is the full one megabyte, 1,000,000 bytes. there is no weight class and no witness discount: one byte costs one byte, and the theoretical 1MB is what the code enforces rather than a 4MB weight ceiling that only looks like 1MB because of a multiplier. slower chains get proportionally more space per block and faster ones less, so capacity per unit time is invariant in the same way emission is.
smoothed rather than raw is the deliberate part. a raw delta would let a miner buy block space by claiming time, and the only defence against that would be a fork choice preference, which rewards under claiming instead. smoothing removes both problems at once.
what it costs is burst clearing: a block that arrives after a genuinely slow period no longer gets an oversized allowance to drain the backlog in one go, and the backlog clears over the following blocks as the window rises. that is the price of keeping a gameable number out of the consensus rules.
the delay must be non-parallelisable: no amount of hardware may compute it faster than the sequential step count allows. it must also be cheap to verify, because verification sits on the critical path of block propagation and of initial sync.
repeated squaring in the ideal class group of an imaginary quadratic order. elements are reduced binary quadratic forms, the group operation is composition followed by reduction, and the delay is the input squared T times. each squaring depends on the previous one, so the chain cannot be split across cores or machines.
T is chosen so the delay is about 60 seconds on the reference machine. the reference measurement belongs next to the parameter.
the discriminant is a public constant. its class number, which is the group order, is unknown to everyone. there is no modulus generated from secret primes, so there is no toxic waste, no ceremony and no participant who can shortcut the delay. this is why a class group is used instead of an RSA group, where the setup holders could collapse any delay into one exponentiation.
the security assumption is explicit: the delay is sequential only while computing the class number of the discriminant remains hard. a mathematical breakthrough or a quantum computer breaks it, and either would be a public event rather than a private backdoor.
Wesolowski proof. the prover publishes one group element, the verifier derives a Fiat-Shamir prime from the input, raises the proof to that prime and checks the identity. verification is milliseconds and does not grow with T. the proof is around a kilobyte.
the tree currently implements a 2^33 step long-division chain verified by recomputation. it is sequential and has no backdoor, but verification costs the same as production, about 52 seconds per block on Zen 2 at 6.04 ns per step. it does not meet 3.1 and must be replaced by 3.2 before launch. the long-division chain remains the fallback if the group arithmetic cannot be made fast enough or is not ready.
a PI controller with no derivative term.
error = 617 - e avg = EMA(error, alpha = 0.05) ki = kiup (5e6) if error > 0 else kidown (50e6) correction= (ki avg + kp error) / 1e6 denominator = clamp(1e6 + correction, 1e5, 1e7) nexttarget = previoustarget * 1e6 / denominator
kp is 10e6. the response is asymmetric on purpose: difficulty rises slowly when blocks are early (ki_up small, flood resistant) and falls quickly when they are late (ki_down ten times larger, fast recovery after hashrate leaves).
the first fork block uses its actual interval rather than a default, because its predecessor is a parent block and its spacing carries no information about the fork's hashrate.
there is no D term, so the EMA is the only smoothing and there is no damping from the rate of change. that is a deliberate simplification, and it is the parameter to revisit first if the loop oscillates.
the stall bound is the delay. once an attacker stops producing, the first honest block follows within one delay chain, about a minute, plus the DAA's recovery time. ki_down is deliberately ten times larger than ki_up so that recovery after hashrate leaves is fast.
the censorship bound is one block per delay. a majority miner can refuse to include a transaction, but it cannot accelerate block production to widen the exclusion, because the delay is the floor. the exclusion window is therefore measured in delays, not in the miner's hashpower.
a miner assembles a template, fixes the delay input, and runs the delay chain. the block cannot be hashed until the delay is finished, because the proof goes into the coinbase and the coinbase sets the merkle root, which sets the block hash. inserting the proof after a search would change the hash and invalidate every nonce already tried. production is therefore serial: delay, then proof, then proof of work.
that makes the delay dead time for hashing. at the 617 second target with a 60 second delay, about ten percent of the interval is spent with the hashpower idle, and the search window is the remainder. difficulty must be set so the expected search fills target - delay, and the DAA error term should be read the same way.
whether the template is frozen depends on what the delay input covers. if it covers the whole coinbase, the transaction set is fixed for the duration of the delay. if it covers only the previous block hash and the height, the template can be refreshed while the chain runs, but the proof must still be inserted before hashing can start.
the second is the one to specify, and it buys two things.
first, the template is assembled and refreshed during the delay, so the proof arrives into an otherwise ready block and grinding starts on the same tick. the mempool is not frozen for a minute, and transactions that arrive during the delay can still be included.
second, the delay does not strand hashrate. the machines are SHA256d, so for the length of the delay they can be pointed at another SHA256d chain and switched back when the proof is ready, provided the pool can schedule it and the switch costs less than the delay. that is not free money, but the ten percent idle figure is idle for this chain only.
the consequence to state plainly: a proof for (previous hash, height) is independent of the coinbase, so it can be reused across templates at the same height. the delay commits to position, not to contents.
starting late costs search time one for one, so miners will start the delay on header receipt rather than after full validation. that is the same incentive to build on an unvalidated parent that exists in any chain with propagation delay.
the delay cannot be skipped or bought. a miner's block rate is bounded by the delay.
withholding is not rewarded: aggregate seconds advance by real time, not by blocks withheld, so time spent sitting on a block is time not earning.
there is no interval selection and no arbitrage between tiers. that mechanism existed in an earlier design and is not part of this implementation.
standard bitcoin legacy (P2PKH, P2SH) and segwit (P2WPKH, P2WSH) transaction types are supported. witness versions 0 through 2 operate as on spamchain.
witness version: 3
output script: OP_0 <32-byte-witness-program> (as with segwit versioning)
the witness program is:
witness_program = SHA256d(schnorr_pubkey)
where SHA256d is SHA-256 applied twice, identical to bitcoin's HASH256 construction.
spend witness:
witness = <64-byte-schnorr-signature> <32-byte-schnorr-pubkey>
the pubkey is revealed only at spend time. the signature is a standard schnorr signature (64 bytes, no DER encoding). verification computes SHA256d(pubkey) == witness_program and validates the schnorr signature against the transaction.
quantum resistance: with a 60 second floor on block spacing, the exposure window for a quantum attack on the SHA256d layer is one block plus propagation, roughly 60 to 120 seconds. this is acceptable. the pubkey is only briefly exposed during spend.
witness version: 4
output script: OP_0 <32-byte-witness-program>
the witness program commits to a bulletproof range proof and a confidential amount.
properties:
block placement: P2BPCT transactions may be mined in any fork block. the earlier design restricted them to the slowest tiers; that rule was removed with the tier scheme and has no vehicle now, since every fork block has the same time-proportional payload limit.
what remains is a validation budget argument. block validation is dominated by signature and script checks, because the delay proof verifies in milliseconds, so the tens of milliseconds a CT costs are a rounding error. the constraint on confidential transactions is block weight and the serialisation limit, not validator CPU.
standard OP_RETURN with a maximum payload size to be determined. used for data anchoring.
an inherited UTXO is spendable on both chains — same outpoint, same key, same sighash rules. a fork transaction spending an inherited UTXO is valid on the parent chain. a parent transaction spending the same UTXO is valid on the fork. bidirectional replay, no exception. "visible but unspendable" inherited UTXOs is not implementable — if you hold the key, the parent chain still honors it.
every transaction signature on the fork commits to a fork identifier (FORK_ID) in the sighash preimage. a transaction whose signatures do not commit to FORK_ID is consensus-invalid on the fork.
on the parent chain, forkid-committing transactions are invalid because the fork's sighash commits to FORK_ID in the preimage. the parent node computes the preimage without FORK_ID; the signature fails to verify normally. invalidity is cryptographic (preimage mismatch), not an explicit rejection rule.
result: fork transactions cannot replay to the parent chain; parent transactions cannot replay to the fork; inherited UTXOs become safely spendable on the fork with no parent side effect.
the fork id is 0x424636f6 ("BF6o"). it is committed to the sighash preimage per signature type:
SigVersion::TAPROOT sighash (BIP341). FORK_ID is appended as an additional preimage field before the final hash.FORK_ID is hashed into the preimage.FORK_ID is hashed into the BIP143 preimage.FORK_ID is committed into the taproot sighash preimage.inherited parent-chain mempool transactions are all invalid on the fork — they do not commit to FORK_ID. a cold-start fork node's mempool is empty and fills only from fork-native broadcasts. imported parent mempool dumps are rejected. this is correct behaviour: inherited coins are spendable on the fork, but only with fork-native transactions.
the coinbase scriptSig is:
[height push] [OP_0] [extra nonce]
consensus requires the height prefix (BIP34). the OP_0 is written by the miner as a zero-length separator push. the extra nonce is whatever the miner puts after it; it is not part of consensus and is not covered by a signature.
the aggregate seconds are chain state, not a coinbase field. they are derived from the chain's own timestamps and seeded at activation from the parent chain, so there is nothing for a miner to commit to or lie about beyond the timestamps themselves.
the coinbase carries one OP_RETURN output:
OP_RETURN | LD (0x4c) | <Wesolowski proof, about 1 kilobyte>
the proof is over the chain computed from the previous block hash and the height. validation checks the proof against that input, which costs milliseconds and is independent of T. the output's weight is excluded from the payload limit along with the rest of the coinbase.
the proof must be inserted before the nonce search, because it changes the coinbase and therefore the merkle root and the block hash. it cannot be computed in parallel with the search.
a block with no proof, or a proof that does not verify, is invalid.
the current tree's 8 byte remainder is the interim format and is replaced along with the construction.
witness version 1 (taproot) outputs are invalid on the fork. nodes reject blocks containing taproot outputs.
taproot UTXOs from spamchain (pre-fork) may be spent into legacy, segwit, P2SPKH, or P2BPCT outputs. they cannot be spent into new taproot outputs. this ensures the UTXO set gradually purges taproot.
the primary reason is naked pre-spend pubkeys. a P2TR output is a tweaked public key in the clear, and it sits in the UTXO set from creation until spend, which can be years. a P2WPKH output is a hash, so the key appears only in the spending witness and the exposure window is one block. the ban keeps every output key committed rather than key exposed, which matters against a future quantum adversary that harvests keys first and attacks them later.
the secondary reason is auditability. taproot's script tree allows commitment structures that cannot be audited without the spender's cooperation, which is an information asymmetry against verifying the chain's total liabilities. script trees are a bilateralism (wood) without sovereignty (earth) problem.
what is not a reason, and should stop being stated as one: witness embedding. taproot lowers the friction but does not create the vector, because a P2WSH spend can carry a large stack element dropped by a single OP_DROP, and the 10,000 byte script limit bounds the number of elements, not their size. banning taproot does not eliminate inscriptions at the consensus layer. the witness vector has to be closed on its own terms, with witness bytes at parity and a consensus cap on witness weight per transaction.
lightning and ark function without taproot. P2SPKH carries Schnorr with a hash committed key, so MuSig, PTLCs and adaptor signatures survive, and legacy plus P2SPKH plus P2BPCT support all necessary channel constructions.
the fork launches as a testnet. the invitation to attack is open. spamchain mining pools are encouraged to attempt stall, reorg, and censorship attacks.
stall and capture are distinct attacks: stall means preventing honest block production; capture means controlling the chain's transaction flow with majority hashpower. the testnet criteria test survival of the honest chain under full-hashpower attack (stall resistance) and must additionally test reorg resistance: an adversary with massive hashpower attempting deep reorgs beyond the delay bound must fail within the bound. with the fork's native hashpower far below the adversary's, the sequential delay is the only thing standing between a shallow reorg and a deep one - this is the property the testnet must prove, not assert.
at fork point, the UTXO set and mempool are shared with spamchain. any UTXO valid on spamchain at the fork height is valid on the fork. any transaction valid on spamchain's mempool is valid on the fork's mempool (subject to the taproot output ban).
lightning channels and ark rounds that are valid on spamchain are also valid on the fork at the moment of the fork. channel opens and closes can be executed on the fork with a 60 second minimum block spacing, providing a material settlement speed improvement over ten minute blocks.
custodians and lightning service providers can transition without coordinating with each other - they simply submit transactions to both chains and whichever chain clears first wins.
at fork point, the UTXO set is identical on both chains. the only economic difference between the chains is the new coinbase rewards mined on each. the fork's new coinbases are the differentiator that gives the fork its own economic identity.
over time, coinbase outputs accumulate in the UTXO set. these outputs are native to the fork and do not exist on spamchain. they are the foundation of the fork's independent monetary base. every subsequent transaction that spends a fork coinbase output creates value that is unambiguously tied to the fork.
this is how the fork transitions from parasitic to sovereign: the initial shared UTXO set (borrowed economic gravity) is gradually diluted by new coinbase outputs (native economic gravity). once a majority of active UTXO value originates from fork coinbases, the fork's monetary base is self-sustaining and no longer dependent on spamchain's UTXO distribution.
over time, the UTXO sets diverge as:
the chains become non-fungible once the UTXO sets have diverged sufficiently and fork coinbases represent a meaningful fraction of active UTXO value.
the testnet is considered proven if it operates under the following conditions:
the following constants require specification through simulation or empirical testing:
| parameter | description |
|---|---|
| Kp, Kiup, Kidown | PI constants, global. current values 10e6, 5e6, 50e6 |
| EMA alpha | integral smoothing. current value 0.05 |
| reward estimate | asymmetric EMA over raw stamp deltas. alphafast 0.25, alphaslow 0.05 initially; both are simulation parameters |
| payload divisor | 600 seconds; payload limit = MAXFORKBLOCKSIZE * es / 600, where MAXFORKBLOCK_SIZE is 1,000,000 bytes |
| delay | class group VDF over a fixed public discriminant, T tuned for about 60 seconds per block on the reference machine; must not be shortened below the 60 second timestamp bound |
| delay verification | Wesolowski proof, milliseconds and independent of T. the long-division recomputation is the interim and does not meet 3.1 |
| DAA setpoint | 617 seconds. distinct from the 600 second divisor used by reward and payload |
| stall window target | max acceptable wall-clock between attack exit and first honest block (4.1) |
| reorg depth bound | maximum reorgable depth, bounded by the delay and measured by simulation (3) |
| tie-break rule | first-seen, then spamchain anchor ordering |
| anchor finality depth | X spamchain confirmations for settlement finality |
| censorship window target | max acceptable time from censorship to inclusion in an honest block (4.1) |
| OP_RETURN max payload | maximum OP_RETURN size |
| fork activation | MTP of a 101 block window plus 30000s bias >= 1792328400. the height path exists but is unused on mainnet |