Bitcoin, from first principles.
Bitcoin, from every angle
Cryptography, the coin, the math, the market — each one live and playable. Jump in anywhere.
Somewhere, someone presses send. A heartbeat later that payment is tearing across the network — machine to machine — hunting for a seat in the next block.
One block, forming
Every square below is a real Bitcoin payment that just happened — landing live, this second, packing into the block being built right now.
These are real transactions streaming off the network as you watch. Each square is one payment: bigger = more data, and colour = how much money is moving — cool-blue for tiny amounts, warming through violet and amber to gold wherever real value flows. They pile into the next block until a miner seals it (~every 10 minutes) — then the whole thing flashes gold, settles, and a fresh block starts forming. This is money moving, live.
- each square is one real transaction that just landed on the network.
- size = data (virtual bytes) — more inputs and outputs takes more room.
- colour = the money moving — cool blue for tiny amounts, warming to gold for the biggest.
- a gold ring = a whale — a transaction moving 10+ BTC.
The order book
A price isn't a fact — it's an argument. This is the live tug-of-war between everyone trying to buy and everyone trying to sell, right now.
Every buyer posts the most they'll pay (a bid); every seller the least they'll take (an ask). The best bid and best ask almost touch — the tiny gap between them is the spread, and whichever side is stacked deeper is winning: that's the imbalance. Watch it move, live from a real exchange.
—
—
—
the taller each wall, the more BTC waiting — the gold ₿ numbers show how much
- the green wall is demand — cumulative bids stacking up as price falls. Taller = more buyers waiting.
- the coral wall is supply — cumulative asks as price rises. Where it's steep, sellers are thick.
- the gap in the middle is the spread — the cost of crossing from buyer to seller instantly.
- the imbalance bar shows which side holds more size near the price — a live read on pressure.
The book shows intentions, and intentions can be faked. Here's how the pros read what's really happening in the numbers above — the signals that separate noise from a real move. (Market education, not financial advice.)
For the fans who want the whole story — tap any question to open it up.
What an order book actually is ▸
Why the spread is the market's honesty test ▸
The hidden game — spoofing, absorption & icebergs ▸
How a single trade moves the whole price ▸
The honest oracle
No model reliably predicts Bitcoin's price — so this one doesn't pretend to. It builds a small, transparent edge on free public data, and reports it plainly, coin-flip baseline and all.
Under the hood it's a gradient-boosted forest of shallow decision trees reading 22 signals at once — price momentum, volatility, distance from the long moving averages, and the network's own on-chain pulse: hashrate, difficulty, active addresses, miner revenue, fees. Every day it answers one narrow question — over the next seven days, is the wind more likely at Bitcoin's back or in its face? The answer is a single call: LONG, or stand in cash. And every number below is out-of-sample — measured only on days the model had never seen.
Today's call
This is the live signal, straight from the oracle. It is not advice — it's a transparent experiment you can watch being right or wrong in real time.
The track record — measured, not promised
Anyone can draw a line that fits the past. The only number that matters is how a model does on days it has never touched. Here is exactly that: years of strictly out-of-sample calls, against the honest baselines of a coin flip and of simply buying and holding.
coin-flip = 50.0%
buy & hold = 1.16
buy & hold = −85%
Why you can trust the number — walk-forward
The easiest way to lie with a backtest is to let the model peek at the future. This one can't — three rules, enforced by the code itself:
- 1 · No lookahead. Every feature on a given day is built from data up to that day only — rolling windows and backward differences, never a value from the future.
- 2 · Only resolved labels. The model trains only on days whose 7-day outcome had already happened. It is never taught the answer to a question still open.
- 3 · Strictly unseen. Each prediction is made on a day after the last it trained on, and scored on the return that actually followed. No day is ever both a lesson and a test.
It retrains every day — here's exactly when
Bitcoin never sleeps, and neither does the data. Once a day, just after the network's UTC daily close — when blockchain.com finalizes yesterday's on-chain numbers — the oracle wakes, pulls the fresh day, and re-runs the entire walk-forward pipeline, 2009 to now. Today's call is trained on everything up to yesterday, and not one minute more.
Why gradient-boosted trees, and not a neural network?
What does "out-of-sample" actually protect you from?
Why seven days, and why only long-or-cash?
Bitcoin flow
Every coin's whole life is public. Paste a wallet and follow the money — where it came from, where it went, and how long it's been sitting still.
Bitcoin's ledger hides nothing: for any address you can see everything that ever came in, everything that went out, and — because coins are dateable — how long the balance has slept. Paste an address (or tap an example) and watch its story unfold.
A thousand payments, one fingerprint
A single block can carry thousands of transactions — yet the whole bundle is sealed by just 32 bytes. Change one payment, anywhere in the pile, and that tiny seal changes completely, in a way nobody can fake. This is the quiet structure that lets a phone verify a payment without ever downloading the blockchain.
It's called a Merkle tree, and the idea is beautiful: don't hash the transactions into one lump — hash them in pairs, then hash the pairs, then the pairs of pairs, climbing up until a single hash remains: the Merkle root. That root is stamped into the block and locked by mining. Below: build the tree and tamper with it, then prove a single payment is inside — using almost nothing.
The seal — and how it screams
Here are eight transactions. Each is hashed into a leaf; every pair of leaves is hashed together, and so on up to the root. Tap any payment to tamper with it — change who got paid — and watch its fingerprint, and every hash on the path above it, flip to red all the way to the root. One altered payment can't hide.
The proof — prove one, download almost nothing
Now the real magic. To convince someone that your transaction is in this block, you don't hand them all eight — you hand them a tiny branch: one sibling hash at each level. With those few hashes they re-climb the tree from your leaf and arrive at the exact root the block already published. Tap the payment you want to prove.
Why it scales like magic
The tree's power is the logarithm. Double the number of transactions and the proof grows by just one hash. Slide the block size up toward a million payments and watch the proof stay absurdly small.
log₂(1,000,000) ≈ 20. Verification cost barely moves while the block grows without limit. One 32-byte root at the top; a 20-hash ladder to reach any leaf. Enormous commitment, tiny proof.Where does the Merkle root actually live?
So how does a phone verify a payment without the whole chain?
Why hash in pairs instead of one big hash of everything?
What happens when there's an odd number of transactions?
What can a Merkle proof NOT tell you?
One number — and it's yours forever
A bitcoin isn't kept in your wallet. What your wallet holds is a single secret number, and the whole world agrees: whoever knows it, owns the coins. No bank, no password reset, no permission. Just math.
This is self-custody, and it runs on a pair of keys. A private key you never reveal, a public key anyone can see, and a one-way street between them that no computer can walk backwards. With it you can sign a payment so the entire network knows it came from you — and can prove nobody altered a single character. Everything below is real cryptography running in your browser right now. Roll a key, sign a message, then try to forge it.
The keypair
Press roll. Your browser picks a random 256-bit number — that's the private key. From it, one-way math derives a public key, and from that, your address. Easy to go down the ladder; impossible to climb back up. That impossibility is the whole game.
The signature
Now spend. Write what you want to say and sign it with your private key. Out comes a signature — a scramble that only your key could have produced for this exact message. Anyone can then check it against your public key and confirm it's genuine — without ever seeing your secret.
The forgery that can't happen
Here's the magic. Take the message you just signed and change one character — turn Bob into Rob, or 0.5 into 5.0. The signature was locked to the original down to the last letter, so the check instantly fails. This is why you can broadcast a payment across an open, hostile internet and nobody can tamper with a cent of it.
So a wallet doesn't actually hold coins?
How can the public key be public and still be safe?
Two keys? A padlock has one. Why the split?
How did two strangers ever agree on a secret in the open?
A = ga mod p and C = gc mod p — then each raises the other's number to their own secret. By a small miracle of modular arithmetic they both land on the same shared secret, while an eavesdropper who copied every message sent still cannot compute it. Point that same one-way math at proving identity instead of hiding messages and you get digital signatures — and Diffie–Hellman gets its own lens just below.Bitcoin uses "secp256k1" — what is this page using?
crypto.subtle), so the signing and verifying you see are 100% real with zero downloads. Bitcoin uses a sibling curve called secp256k1 — same idea, same one-way math, different constants chosen so the numbers are a touch faster to compute. The lesson is identical on either curve: a secret scalar, a public point, an unforgeable signature. When you graduate to a real wallet, it's the same three boxes on Act I's ladder.Isn't signing the same as encryption?
What is a seed phrase, then?
Two strangers. One secret. In full view.
Alice and Bob have never met. They shout numbers at each other across a crowded room where an eavesdropper writes down every word — and by the end, the two of them share a secret she cannot possibly know. This isn't a trick. It's the piece of mathematics that quietly secures almost everything you do online.
The whole miracle rests on one lopsided operation: a sum that is trivial to do forwards and hopeless to undo backwards. Build that operation with your own hands below, watch two people mint a shared key over an open wire, then try — and fail — to break it. By the end you won't just believe it works; you'll feel exactly why.
The one-way operation
Everything hinges on modular exponentiation: pick a base g, raise it to a power x, and keep only the remainder after dividing by a prime p — written gx mod p. Think of a clock with p hours: counting forward is easy, but landing on hour 14 tells you nothing about how far you walked. Drag the power and watch the result leap around the ring with no pattern at all — even though each leap is a single, cheap multiplication.
gx mod p, recovering the power x is the discrete logarithm problem — and after fifty years of trying, nobody has found a shortcut faster than searching. With p just twenty-three you could check all of them by hand; make p a few hundred digits and that same search outlives the universe. That gap is the hinge the entire exchange swings on.The exchange
Now the magic. g and p are public — everyone, eavesdropper included, knows them. Alice keeps a private power a; Bob keeps a private power b. Each sends the result of their one-way operation. Then each raises the number they received to their own secret — and they land on the same place. Change any dial and watch every number recompute.
Alice
Bob
Let the eavesdropper try
She has g, p, A, B in hand. Her only path to the secret is to crack one private power out of a public one — to solve gx mod p = A for x. Below, actually let her brute-force it. On a toy prime she wins in a blink. Switch to real scale and the same attack falls off a cliff.
Why do the two sides land on the exact same number?
g raised to the same product a·b, just in the opposite order — and multiplication doesn't care about order. So they inevitably meet at one value. The remainder-mod-p wrapping is applied at every step, but it never breaks the equality, because arithmetic mod p respects multiplication. Two roads, one destination, and the destination was never spoken aloud.What exactly is a discrete logarithm, and why is it hard?
10^x = 1000 you smoothly reason "x is 3," and if the target were 1001 you'd know x is a hair over 3. The order is preserved, so you can home in. A discrete logarithm asks the same question after everything has been folded through mod p:
given g, p, and y = g^x mod p, find x.
But the mod wrapping shreds the ordering — consecutive powers scatter all over the ring (you saw it in Act I). There's no "warmer / colder," no slope to follow, no way to bisect. The best general methods still take roughly the square root of p steps, which for a 256-bit prime is about 2¹²⁸ — a number so large that checking a trillion per second, on a billion machines, you'd finish long after every star has died. Easy to make, catastrophic to invert: that asymmetry is the raw material of modern cryptography.Is this the same math that protects Bitcoin?
mod p, where the one-way operation is exponentiation and the hard problem is the discrete logarithm. Bitcoin (and most of the modern web) swaps the playground of "numbers mod p" for the playground of points on an elliptic curve. There the one-way operation is adding a point to itself a secret number of times, and the hard problem is the elliptic-curve discrete logarithm — the same trapdoor, but so much stronger per digit that a 256-bit curve key rivals a 3000-bit classical one. Your Bitcoin private key is exactly the "secret power"; your public key is the point you reach; and the signature that proves a coin is yours is this identical asymmetry, pointed at proving authorship instead of sharing a secret.Why must the secret powers be random and never reused?
p possibilities — she checks the few thousand likely ones and walks straight in. Worse, in the signing cousin of this scheme, reusing the one-time random value across two different messages leaks the private key outright through simple algebra — two equations, one unknown, solved. This is why real systems draw secrets from a high-quality source of randomness for every operation. In cryptography, predictability is the vulnerability; a secret is only as strong as it is surprising.Could a future computer ever break it?
The lottery that seals every block
Right now, machines across the planet are playing this exact game about 700,000,000,000,000,000,000 times every second — and it still takes ten minutes to win once. This is, quite literally, what Bitcoin is doing.
Every block is locked by SHA-256 — a fingerprint machine. Feed it anything; it hands back 256 bits that look utterly random yet are perfectly repeatable, can't be run backwards, and can't be guessed ahead. Touch the three parts below and you'll feel why that turns mining into a lottery — and why that lottery is the single thing keeping Bitcoin honest. No prior knowledge needed; just play.
The fingerprint
Type anything. Watch its 256-bit fingerprint appear — each of the 256 squares is one bit, lit if it's a 1. The same words always give the same tapestry; a machine anywhere on Earth agrees to the last square.
The avalanche
Now change the tiniest thing — one letter — and watch. About half the 256 bits flip (≈128), scattered everywhere, no pattern. Each output bit behaves like an independent coin-flip, so any change — a letter, a capital, a space — reshuffles roughly half of them. This is the avalanche effect: there's no "warmer / colder" to follow toward a goal, only chaos — which is exactly why nobody can steer a fingerprint toward a value they want.
The lottery
To seal a block a miner must find a fingerprint that starts with a run of zeros — the top-left squares must all go dark. There's no formula; the only move is to change a number (the nonce) and try again… and again. Drag difficulty up by one and the target gets 16× rarer. Hit mine and feel the search.
- each of the 256 squares is one bit of the fingerprint — read left→right, top→bottom. Hue follows its row, so you can see where in the hash a bit lives.
- a dark square is a 0; a lit square is a 1.
- amber = a bit that just flipped from your last change (the avalanche).
- the gold frame is the target zone — in mining these squares must all be 0 to win.
The ledger nobody can rewrite
Every bank keeps its ledger locked in a vault and asks you to trust it. Bitcoin does the exact opposite — it hands the same ledger to thousands of strangers, in the open, and makes lying mathematically pointless. This is how.
A blockchain is just a list of blocks, and each block is stamped with the fingerprint of the one before it. That single trick chains them together: alter any past entry and every stamp after it shatters, in plain view of the whole world. And because thousands of machines each hold the same list — and only ever accept the version backed by the most work — to rewrite history you'd have to out-compute the entire planet, live, forever. Touch the blocks below and break it yourself.
How money is kept today — and how Bitcoin flips it
Your bank balance is a row in a private database that one company owns and edits. It works because you trust them to be honest, online, and fair. Bitcoin removes the trust entirely: one public ledger, copied everywhere, owned by no one, guarded by math.
The vault
- One master ledger, held privately by the institution.
- They can edit, freeze, or reverse any entry.
- You must trust them — and their security, and their solvency.
- Open 9–5, borders apply, a single point of failure.
- Your access can be revoked by one decision.
The network
- Every node holds a full copy of the same ledger.
- Entries are append-only — no edit, no reverse, ever.
- You trust math and majority, not any one party.
- 24/7, borderless, no single point to seize or shut.
- If you hold the key, no one can freeze you out.
The unrewritable ledger
Here's a tiny chain of four blocks, each already sealed (its fingerprint begins with three zeros — that's the proof-of-work). Each block carries the previous block's hash, so they're welded in order. Now tamper: change any block's data — turn Bob's 2.0 into 20.0 — and watch every block below it turn red. You just rewrote history, and the whole chain is screaming about it.
Why every miner must agree
Thousands of machines hold this chain. When two versions exist, the network follows one rule: accept the chain with the most accumulated work — the "heaviest" chain. An honest majority is always extending the real one. So your tampered chain isn't just broken; it's in a race it cannot win unless you personally out-hash the entire planet. Drag the attacker's share of the world's mining power:
And underneath all of it sits one piece of math — the reason a lie is astronomically expensive to write but trivial to catch.
What actually stops me spending the same coin twice?
What is "the math" behind a one-way function?
How do prev-hashes actually weld the blocks together?
hash(N) depends on hash(N-1), and hash(N+1) depends on hash(N), the fingerprints form an unbroken chain back to the very first block (the "genesis" block). Alter anything in block N and its hash changes, which invalidates the stamp inside N+1, which invalidates N+2… all the way to the tip. That's the cascade you triggered in Act II — tamper-evidence for free, from a single line of math.How is this different from a bank's database?
If it's all public, how is anything private?
The waiting room
Right now, tens of thousands of payments are bidding for one scarce thing — a seat in the next block. This is the auction that decides who gets in.
Bitcoin makes one block about every ten minutes, with room for roughly 4 million "weight units." Everyone waiting is in the mempool, and miners fill the block with the highest fee-per-byte first. So it's a live auction for space. Below is the real mempool right now — and you can drop your own transaction in and watch where it lands.
Drop your transaction in
Set the fee you're willing to pay. Watch which block you land in — and how long you'd wait. This is exactly the choice every wallet makes for you, every time you send.
- each card is one upcoming block (~4M units, ~10 min apart). The left-most is the next block.
- colour = the fee tier paid inside it — grey cheap, teal normal, amber priority, red urgent.
- the big number is that block's median fee (sat/vByte); below it, the fee range, tx count, and the miner's fee reward.
- the gold "you" tag shows the block your transaction would fall into at the fee you set.
The ten-minute heartbeat
No one is in charge, yet a new block lands roughly every ten minutes — this year, last year, a decade ago. Miners pour in and rush out, hardware gets a thousand times faster, whole countries ban and unban it — and still, ten minutes. How does a network with no conductor keep such steady time?
The trick is a thermostat with no owner. The more computing power races to find blocks, the faster they'd arrive — so every two weeks the network measures how fast it actually went and retunes the difficulty to drag the pace back to ten minutes. Nobody decides it; the rule runs itself on every machine. Play the thermostat, work the retarget math, then watch the real pulse ticking down to its next adjustment.
The thermostat with no owner
Block time depends on two things: how much hashpower is searching, and how hard the puzzle is set. Add miners and blocks come faster; raise the difficulty and they slow down. Crank the hashpower and watch the pace shoot past the ten-minute mark — then hit retarget and watch difficulty rise to chase it right back to centre.
The retarget, every 2016 blocks
Every 2016 blocks — about two weeks — the network does one sum. Those blocks should have taken exactly 20,160 minutes (2016 × 10). It compares that ideal to how long they really took and scales difficulty by the ratio. Slide the real average block time and watch the next difficulty jump compute itself.
The live pulse
Right now, the network is somewhere inside its current two-week window, running a little fast or a little slow, with the next retarget already taking shape. This is the real heartbeat, straight from the chain — the countdown to the moment difficulty next changes.
Why ten minutes — why not one, or sixty?
What actually is "hashrate"?
10²⁰ guesses every second, more than the number of grains of sand on Earth, each second. Hashrate is the raw muscle behind the chain — and the thing the difficulty is forever measuring itself against. More muscle would mean faster blocks, so difficulty rises to absorb it and hold the beat.Why retarget every 2016 blocks, not every block?
What if half the miners suddenly quit?
How does the network measure time with no trusted clock?
Twenty-one million. Never one more.
No president can print it, no bank can conjure it, no emergency can mint an extra coin into being. The supply was fixed at the very first block — and it has been counting down, exactly on schedule, ever since. Here is precisely where it stands, live, right now.
Every currency before this one shared a flaw: whoever ran it could always make more, and always eventually did. Bitcoin's answer is almost absurdly simple — write the entire issuance schedule into the code, forever. New coins arrive only as a mining reward, that reward halves every four years, and the halves add up to a hard ceiling of 21 million. Watch the schedule, feel the halving, and see how little is left to mine.
The schedule, carved in code
New bitcoin enters the world one block at a time, and the amount per block is not a policy anyone votes on — it's a formula. It starts at 50 BTC per block and is cut in half every 210,000 blocks (about four years). Drag through the decades and watch the curve rush up, then flatten hard against the ceiling — because most of the coins that will ever exist already do.
Why the halves add up to exactly 21 million
Here's the quiet piece of mathematics that makes the cap inevitable. Each four-year era mints half as many new coins as the one before: the first era creates 10.5 million, the next 5.25, then 2.625… Reveal them one by one and watch the running total climb — always halving the gap that remains, forever approaching a number it can never pass.
½ + ¼ + ⅛ + … can only ever reach 1.How little is left
Set against every dollar, peso, and pound — all of which can be, and are, printed at will — bitcoin's issuance is a closing door. Below is the live tally: how much has been mined, how little remains, and how slowly the last of it will trickle out over the next century.
Why 21 million — why that number?
What happens when the last bitcoin is mined?
Why does a halving happen every ~4 years?
210,000 × 10 minutes ≈ 4 years. It's not a calendar date — it's a block count, which is why the exact day drifts a little as mining speed wobbles, but always lands near the four-year mark. Each one roughly halves the rate of new supply overnight, which is why halvings are watched so closely.Could the 21 million cap ever be raised?
What makes it "the hardest money"?
Bitcoin, right now
The headlines shaping sentiment — pulled live from the outlets the market actually reads.