When you send Tk 500 through bKash, nothing physical moves. A database at the company subtracts 500 from one row and adds 500 to another, and everyone trusts that database because a licensed company runs it and a regulator watches it. Now suppose there is no such company. A hundred people who have never met want to keep one shared record of who owns what, and none of them trusts the others.
How do they stop one person from spending the same taka twice? How do they stop a clerk from quietly rewriting last month's page? In 2008 an unknown person, writing as Satoshi Nakamoto, described a way. The idea underneath it, the blockchain, now turns up in papers from BCS to bank IT-officer tests, as a one-line MCQ and as a full written essay.
This chapter takes the idea apart and rebuilds it with running code. By the end you'll be able to explain the double-spending problem and why a shared ledger needs agreement, and build a chain of hash-linked blocks and show exactly how tampering is caught. You'll open a block and name every part of its header, build a Merkle tree and prove one transaction belongs to a block, and mine a block yourself.
You'll work out Bitcoin's halving schedule and unit arithmetic, follow a UTXO payment with its change and fee, and compare proof of work with proof of stake and other consensus methods. You'll say what a 51% attack can and cannot do, tell public from private and consortium chains, read a smart contract, and write the exam answers: "Write about blockchain", "five benefits", and the bank comparison.
We go in eight parts: why the idea exists; the hash chain; what is inside a block; mining; Bitcoin's money; consensus beyond mining, and the 51% attack; kinds of blockchain and smart contracts; and finally banking, Bangladesh and the answer frames.