BitXcoin

Technical overview

BitXcoin is Bitcoin Core with a different proof of work. This page describes the design as it stands on the development testnet. Sections marked as planned describe work that is specified but not yet merged.

This is a working document for an unaudited system. Parameters and formats will change before any public network.

Consensus parameters

ParameterValueInherited from Bitcoin
Maximum supply21,000,000Yes
Block subsidy50, halving every 210,000 blocksYes
Target spacing600 secondsYes
Coinbase maturity100 blocksYes
Block weight limit4,000,000 WU, of which 650,000 reserved for the PoUW proofLimit yes, reservation new
SegWitActive from genesisRule yes, timing new
Difficulty adjustmentPer block, weighted moving averageNo
Work functionNoisy int8 matrix multiplication, N = 4096No
P2P port28333No

Proof of useful work

The miner multiplies two matrices A and B. To make sure the miner actually performs the multiplication, and cannot reuse old work or pick inputs that make it trivial, random low-rank noise is added before multiplying and removed afterwards.

Noise bound to the block and the inputs

(EL, ER, FL, FR) = XOF( seed ‖ H(A) ‖ H(B) )
E = EL·ER,   F = FL·FR   (rank r)    A′ = A + E,   B′ = B + F

The seed comes from the previous block, so it cannot be predicted in advance. Because the noise also depends on A and B, a miner cannot choose inputs that cancel it out.

Blockwise transcript

The product C′ = A′·B′ is computed in tiles. Every partial sum of every tile is part of the transcript:

C′(ℓ)i,j = C′(ℓ−1)i,j + A′i,ℓ · B′ℓ,j

Recovering the exact result

C = C′ − ( (A·FL)·FR + EL·(ER·B′) )  = A·B

Removing the noise costs O(n²·r), small next to the O(n³) multiplication, so the researcher receives the exact product of their own matrices.

Tickets and difficulty

Each intermediate tile is hashed into a lottery ticket. A block is valid when a ticket falls below the target, just as a Bitcoin block hash must:

ticket = SHA256( seed ‖ i ‖ j ‖ ℓ ‖ C′(ℓ)i,j )   <   target

The proof is bound to the block through a commitment in the coinbase. Any change to the block, the proof or the payload invalidates it.

Difficulty is adjusted every block from a weighted average of recent solve times (window of 60 blocks, target 600 s), with a 15-minute limit on future timestamps.

Verification cost

Nodes don't redo the multiplication. They recompute only the tile behind the winning ticket.

Full multiplication4096³ = 68,719,476,736 multiply-adds
One verified tile (worst case)64 × 64 × 4096 = 16,777,216 multiply-adds
Share of the work re-checked0.0244%
Measured verify time29.6 ms, one CPU thread
Proof size573,447 bytes: 64 rows of A, 64 columns of B, Merkle paths
Proof storage at 600 sabout 30.1 GB per year

Jobs and result checking

Registered research groups publish jobs: two matrices identified by their SHA-256 hashes, plus their dimensions. The protocol assigns jobs to miners from data the miner cannot influence, so miners cannot hand-pick easy inputs. When no jobs are waiting, miners fall back to random matrices.

A researcher who receives a result checks it with Freivalds' algorithm, choosing a random vector r over a large prime field:

accept  ⇔  C·r = A·(B·r)    (mod p,  p = 261 − 1)

That costs about 3n² operations, roughly 1,365 times less than the multiplication at n = 4096. The chance of accepting a wrong result is at most 1/p per round. If a result is shown to be wrong within the 100-block coinbase maturity window, the block reward is burned (planned).

Header proof of work (planned)

For headers-first sync to stay safe, a header alone must prove that real work was spent. BitXcoin headers will commit to the proof digest and also have to meet a separate SHA-256d target, adjusted independently, so that faking a chain of headers costs a fixed share of the honest mining cost.

Bitcoin anchoring (planned)

Every 36 blocks (about six hours), a fingerprint of a BitXcoin block is written into a Bitcoin transaction as a 40-byte OP_RETURN: a 4-byte tag, the block height and the block hash. Once that transaction has 6 Bitcoin confirmations, BitXcoin nodes refuse any reorganisation that would remove the anchored block.

Anchors are signed by a published group of independent notaries using one shared threshold key, so that an attacker cannot anchor a secretly mined chain first. Notaries cannot create blocks or change transactions. If they stop, the chain keeps running on proof of work alone. Anchoring is temporary and will be retired on a published schedule as hashpower grows.

Security model and known limitations

References