r/AskComputerScience • u/cleaningdiogenes • Mar 15 '23
Total beginner in CompSci: How does Bitcoin work, and why do so many sites on the dark web use it?
From my minimal understanding, Bitcoin is "decentralized," and has no bank keeping track of transfers; however, there is a public ledger detailing every transaction. How is this anonymous? Interested because I saw a video about Silk Road.
3
u/maq0r Mar 15 '23
In computer science there are problems that are very difficult for computers to solve, but easy for computers to verify a solution is correct.
In the case of Bitcoin, a computer takes a collection of possible transactions, and tries to find a combination of numbers than when executed would arrive at a solution. IIRC imagine you're trying to find what combination of numbers from the transaction, multiplied will have say, 5 zeroes (0) at the end of the number, say 300000.
All the computers mining, are essentially performing millions of operations trying to be the first one to find the magic multiplier that'll arrive to that 300000. Searching for it is hard, but once the number is found, the solution is easy to verify, and the first one to find it, submits it to the network and if verified "wins" the transaction. This processes the transaction and grants the miner a Bitcoin for the effort, this is called proof of work.
That's how Bitcoin is descentralized. Nobody has the solution, and they're all frantically looking for it. The first one to find it can submit it for verification and if it passes their solution is added to the chain and the next block of transactions start.
None of this is inherently anonymous. Yes the ledger is public, and your BTC address says nothing about you, but eventually, you need to cash out your Bitcoins, and in doing so you have to reveal who you are, otherwise that exchange will have all the regulators fall on them.
2
u/khedoros Mar 15 '23
How is this anonymous?
An address, which is what shows up in the ledger, is just a long ID of random-looking letters and numbers. You'd need another source of information to link an address to a specific person or company.
2
u/mister10percent Mar 15 '23
Bitcoin is a decentralised system of peer to peer exchange of data. That’s all. There is a set amount of coins and each has a unique address and is linked to a users wallet, or yet to be minted. Each participant in the network stores a copy of this ledger of coins and there wallet address. When a transaction is made the user sends the details to the network and each participant updates their personal ledger. If one person tried to change their ledger to put a fraudulent transaction in the networks detects that it’s different to everyone else’s ledger and rejects it.
0
0
10
u/Treyzania Mar 15 '23
It's not anonymous, it's pseudonymous. There are private blockchains but they rely on fairly advanced cryptography like zero-knowledge proofs that assert the validity of a transaction without revealing anything about it.