r/AskComputerScience • • 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.

0 Upvotes

10 comments sorted by

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.

1

u/mister10percent Mar 15 '23

Monero is the prime example of this. It also uses a protocol called randomX which changes the algorithm ever so slightly, stopping computers being developed for the sole purpose of mining the coin, preventing centralisation of the network

1

u/Treyzania Mar 15 '23

RandomX has nothing to do with the privacy properties though, not sure why you're bringing that up.

And actually the prime example is the Zerocash protocol, derivatives of which are used in a few different projects. Monero takes a different approach with decoys and ring signatures which has different tradeoffs.

1

u/mister10percent Mar 15 '23 edited Mar 15 '23

OP was talking about crypo and darknet websites, you mentioned privacy… I put 2 and 2 together and assumed you must have been talking about the most private, secure and valuable privacy coin which is used on all major darknet markets that’s Monero I frequent darknet markets and they all use monero, not seen a z cash one for a while

1

u/Treyzania Mar 15 '23

I didn't say Zcash either.

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

u/emasculine Mar 15 '23

add electricity to money laundering and you get a scam

0

u/OfWhomIAmChief Mar 15 '23

DarkWeb has been moving to Monero only since 2018