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
| Parameter | Value | Inherited from Bitcoin |
|---|---|---|
| Maximum supply | 21,000,000 | Yes |
| Block subsidy | 50, halving every 210,000 blocks | Yes |
| Target spacing | 600 seconds | Yes |
| Coinbase maturity | 100 blocks | Yes |
| Block weight limit | 4,000,000 WU, of which 650,000 reserved for the PoUW proof | Limit yes, reservation new |
| SegWit | Active from genesis | Rule yes, timing new |
| Difficulty adjustment | Per block, weighted moving average | No |
| Work function | Noisy int8 matrix multiplication, N = 4096 | No |
| P2P port | 28333 | No |
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
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:
Recovering the exact result
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:
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 multiplication | 4096³ = 68,719,476,736 multiply-adds |
|---|---|
| One verified tile (worst case) | 64 × 64 × 4096 = 16,777,216 multiply-adds |
| Share of the work re-checked | 0.0244% |
| Measured verify time | 29.6 ms, one CPU thread |
| Proof size | 573,447 bytes: 64 rows of A, 64 columns of B, Merkle paths |
| Proof storage at 600 s | about 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:
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
- Everything outside the work function is Bitcoin Core: transactions, scripts, wallet, peer-to-peer networking.
- The soundness of matrix-multiplication proofs of useful work rests on published but unproven hardness assumptions.
- GPU hashpower can be rented. Until the network is large, majority attacks are cheaper than on Bitcoin. Anchoring is the mitigation.
- Header-level proof of work and per-peer limits on invalid proofs are being implemented.
- Input matrices are visible to miners. Only public data should be submitted for now.
- The code has not been independently audited.
References
- Satoshi Nakamoto, Bitcoin: A peer-to-peer electronic cash system, 2008.
- Ilan Komargodski and Omri Weinstein, Proofs of useful work from arbitrary matrix multiplication, arXiv:2504.09971.
- Rūsiņš Freivalds, probabilistic verification of matrix products, 1977.
- Bitcoin Core, MIT licence.