{"base":{"id":"cs11-12","subject":"Computer systems","title":"Digital currency and blockchain","scene":"mix","steps":[{"use":"cs11","mode":"chain","eyebrow":"A chain of blocks","title":"Linked by hashes","body":"Each block holds transactions and the previous block's hash. Tamper with a block and watch the chain break.","actions":[{"id":"tamper","label":"Tamper with block 2"},{"id":"fix","label":"Restore"}]},{"use":"sys10","mode":"encrypt","eyebrow":"Cryptography","title":"Keys and ciphers","body":"Digital currencies rely on cryptography for secure ownership.","actions":[{"id":"sym","label":"Symmetric"},{"id":"asym","label":"Asymmetric"}]},{"use":"sys10","mode":"checksum","eyebrow":"Checking integrity","title":"Hashes and checksums","body":"A hash works like a super-checksum: any change gives a different value.","actions":[{"id":"send","label":"Send"},{"id":"flip","label":"Flip a bit"}]},{"use":"cs11","mode":"quiz","look":"chain","eyebrow":"Check yourself","title":"Tamper-proof","body":"Why is it hard to change an old transaction in a blockchain?","question":"Choose the best answer.","options":["The data is encrypted with a password","Every later block's hash would no longer match, and other copies would reject it","Blocks are stored on paper"],"answer":1,"right":"Correct.","wrong":"Not quite."}],"more":[{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Trace","title":"Adding a block","body":"collect transactions → include previous hash → calculate new hash → broadcast","code":true},{"tag":"Explain","title":"No central bank","body":"many copies of the ledger; no single owner","code":true},{"tag":"Risk","title":"Lost keys","body":"losing a private key can mean losing access to coins forever","code":true},{"tag":"Uses","title":"Beyond money","body":"tracking food supply chains, certificates, voting trials","code":true}]},{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"Blockchain in detail","items":[{"tag":"Digital currency","title":"Money as data","body":"Currency that exists only electronically, such as bank balances or cryptocurrencies."},{"tag":"Blockchain","title":"Distributed ledger","body":"A record of transactions copied across many computers."},{"tag":"Hash","title":"Fingerprint","body":"A fixed-length value calculated from data; changing the data changes the hash."},{"tag":"Linking","title":"Previous hash","body":"Each block stores the previous block's hash."},{"tag":"Consensus","title":"Agreement","body":"Network computers agree which blocks are valid."},{"tag":"Pros and cons","title":"Impact","body":"Transparent and hard to tamper with; but some designs use lots of energy, prices can swing wildly and scams exist."}]},{"type":"cards","id":"mistakes","eyebrow":"Common mistakes","title":"Watch out for these","items":[{"tag":"Mistake","title":"Thinking blockchain means Bitcoin only","body":"Blockchain is the technology; Bitcoin is one use."},{"tag":"Mistake","title":"Saying it is impossible to hack","body":"The ledger is hard to change, but wallets and exchanges can be attacked."},{"tag":"Mistake","title":"Confusing hashing and encryption","body":"Hashing is one-way; encryption can be reversed with a key."}]},{"type":"cards","id":"deeper","eyebrow":"Go deeper","title":"More than the lesson","items":[{"tag":"History","title":"Bitcoin","body":"Bitcoin was described in 2008 by someone using the name Satoshi Nakamoto; the first block was created in January 2009."},{"tag":"Energy","title":"Proof of work vs stake","body":"Some blockchains switched from energy-hungry \"proof of work\" to \"proof of stake\", cutting energy use dramatically."}]},{"type":"cards","id":"challenge","eyebrow":"Challenge yourself","title":"Stretch your brain","intro":"Try each one on paper before opening the card.","items":[{"tag":"Challenge","title":"Explain","body":"Why does every computer keep a copy of the ledger?\n\nAnswer: so no single party controls it and tampering on one copy is detected by comparison."},{"tag":"Challenge","title":"Evaluate","body":"Give one advantage and one disadvantage of digital currency for travellers.\n\nAnswer: fast international transfers; value can change quickly and some places don't accept it."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Try it yourself","items":[{"title":"Paper blockchain","time":"20 minutes","need":["Paper slips","A simple \"hash\" rule (e.g. sum of letter positions mod 100)"],"steps":["Write a transaction on slip 1 and compute its hash.","On slip 2 write the previous hash plus a new transaction; compute.","Change slip 1 and see slip 2's stored hash no longer matches."],"why":"You model how hashes link blocks.","safety":"None."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Eight more questions","questions":[{"question":"A blockchain is…","options":["a type of virus","a spreadsheet only","a distributed ledger"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Each block stores…","options":["the previous block's hash","a password","nothing"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"Changing old data in a block…","options":["is easy","breaks the chain of hashes","improves it"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"A hash is…","options":["an encryption key","a file name","a fixed-length fingerprint of data"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Bitcoin is an example of…","options":["a cryptocurrency","a bank","an operating system"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"A risk of cryptocurrency:","options":["it never changes","price volatility","it is paper"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Hashing is…","options":["reversible with a key","compression","one-way"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Consensus means…","options":["network computers agree on valid blocks","one bank decides","no one checks"],"answer":0,"right":"Correct.","wrong":"Not quite."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can…","items":["define digital currency","explain how blockchain links blocks with hashes","explain why blockchain is tamper-evident","evaluate benefits and risks of digital currency"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"Digital currency","meaning":"Money that exists only electronically."},{"word":"Blockchain","meaning":"A chain of linked blocks of transactions."},{"word":"Hash","meaning":"A fingerprint value calculated from data."},{"word":"Ledger","meaning":"A record of transactions."},{"word":"Consensus","meaning":"Agreement across a network."}]},{"type":"sources","id":"sources","title":"Sources","items":["Satoshi Nakamoto (2008), \"Bitcoin: A Peer-to-Peer Electronic Cash System\"","Ethereum Foundation: the Merge","Bank of England: what is cryptocurrency?","NIST: Blockchain Technology Overview (NISTIR 8202)"]}]},"overlay":null}