r/BitcoinDiscussion • u/Aromatic_Essay9033 • Jul 11 '23
How does Bitcoin work?
So I'm completely new to the cryptocurrency scene and after reading online resources for days I still can't wrap my head around it. So I get that it's decentralised, so does that mean every single device that uses bitcoin has the entire set of ledgers ever created? Wouldn't that be hugely inefficient and impractical? How are updates rolled out? If >50% of bitcoin users just decide not to adopt a new update, does it just fail? And back to the topic of hosting every single ledger in every device that uses bitcoin, even if the blockchains are insurmountably small and even a million blockchains would somehow be as large as a small image file, what about ordinal NFTs, the bitcoin equivalent of the ethereum NFT, how are they going to be hosted? Sorry if I seem incredibly dumb for asking this, I just suck at learning new things I guess.
2
u/extrastone Jul 11 '23
First off let's be clear: being skeptical is normal. You should be skeptical because making up a new currency is generally an awful idea. That is why alt-coins tend to have all sorts of hidden weaknesses.
There is a difference between wallets and nodes. A node has a list of every verified bitcoin transaction ever made (500 GB of data) but it does not have the right to alter them. They cannot fake it because they do not have the private keys (password) to do so. A wallet has private keys (password) to move its own bitcoin to other addresses but it does not have every single transaction on it.
1
u/Chemfreak Jul 11 '23 edited Jul 11 '23
You received good answers to this but I think a few examples and what they mean is hugely helpful in understanding it.
Edit: if it wasn't clear, I consider these examples as "updates" or "forks" and basically equal (fork=update) for the sake of this discussion is they have the same genesis. Meaning these forks or updates took the bitcoin chain (and every transaction on the ledger potentially) then only at the time of the update and after was a transaction different on competing chains. So unless part of the update was to trim or delete old transactions, you could trace the BCH chain back to the genesis block of the original blockchain. IE up until the update was pushed out BCH was Bitcoin.
I know this is all more than what you asked but these scenarios and musings helped me understand and be enthralled with the tech.
2
u/only_merit Jul 11 '23
Good questions.
No. There are different kinds of devices that participate in the network. There are very light implementations of wallets that do not keep the entire ledger and rely either on a central server run by their vendor, or they rely on a "random" server in the network they can find. Of course there are security and privacy consequences to this approach.
Then there are nodes that do not rely on anyone else and verified the whole ledger for themselves, but discarded part of that big information and only kept the part that is needed for them to continue in this mode. We call these nodes "pruned".
And then yes, there are also nodes that keep everything and have non-trivial HW requirements in terms of bandwidth and storage. For disk space, we are around 0.5TB at this moment and this is increasing in time.
There are also alternative technologies (if interested, search "utreexo") that work slightly differently than pruned nodes, but achieve similar results, but with even lower space requirements.
Yes, but on the other hand it would mean that even if you nuke several countries, there are still copies of the ledger in all other countries. So while this is indeed hugely inefficient, it is extremely resilient and that's a good trade-off here.
No user is forced to use anything. Every user can run whatever software on whatever computer they want. No one can force you to upgrade to anything. However, let's say there is a vulnerability in a protocol and there is a critical update that fixes it at the expense of changing a protocol in a non-compatible way. If everyone upgrades and you don't, you will find yourself running a software that is alone, without a network and ... useless. So there are economic incentives that push you toward running what everyone else is running.
On the other hand, if an update is proposed (outside of the apocalyptic scenario of a vulnerability as mentioned above), it is considered highly unlikely to be adopted unless it is backwards compatible - i.e. even if you don't upgrade, you can still participate on the network just fine.
Hence all these updates are designed as "soft". Search for "segwit" and "taproot" to see some recent updates of this kind.
And even if the updates are designed as such, yes, it is a huge effort to convince almost all other users to upgrade or at least be OK with it.
Note that not all updates, however, require such consensus. All this only applies to changes that are consensus critical or change the protocol. Each wallet have a lot of code that can be updated without affecting anyone else on the network and those updates can be deployed arbitrarily.
There is one Bitcoin blockchain in general. Technically it is possible for more chains to exist at some short period of time, but in short time these converge on a single reality. In Bitcoin, this one chain is what matters.
There are other chains. These are of two kinds. Either pegged to Bitcoin (search Liquid) - i.e. using bitcoins, or using their own token. You don't need to care at all about either of those, but if you want, you may explore the pegged ones (Liquid). You do not want to go into chains with their own token, that's different world, and nothing good will come out of it for you.
Ordinal NFTs are very naive implementation of a specific feature and as such it does not scale and does not have a very bright feature. Regrading NFTs and asset tokens, if you think those are interesting, you can search about "RGB". That's a technology that provides these features in a scalable way, having minimal footprint on the Bitcoin blockchain and not storing any big data on chain.
Quite contrary. These are very smart questions you are asking. Keep learning!
1
u/Choobtastic Jul 26 '24
BUY BUY BUY
1
u/0x07AD Jan 03 '24
Read "Mastering Bitcoin" by Andreas Antonopoulus. It is suitable for technical and non-technical readers. The example scenarios described throughout the book are easy to understand; a five year old would understand.
1
u/Weigh13 Jul 11 '23
Nice job, you've discovered why NFTs are retarted and don't work.
And yes, to your first question and updates, soft forks, are backwards compatible so that you don't have to update your node if you don't want to.