Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

LAS14

(14,758 posts)
86. The use of blockchain in Crypto
Wed Dec 11, 2024, 11:03 AM
Wednesday

I started watching this video and got inspired to dig on my own. I went to ChatGPT and got the best answers to my questions I've ever seen. In the foggy past I was a programmer, hence my references to ancient programming languages. (Note. I'd actually typed "PowerPoint" instead of "PowerBuilder" myself, but I left that part in because the answer was also interesting.

**********************

Explain blockchain to a person who only understands Basic+ and PoweBuilder
ChatGPT said:
ChatGPT
Sure! Let me break down blockchain in a way that's simple, using concepts you might already be familiar with.

Think of Blockchain Like a Digital Notebook
Imagine you have a notebook (this is your blockchain) that records important things. Every time someone does something that needs to be remembered—like a transaction—it gets written down in this notebook.

Blocks = Pages in the Notebook
In the blockchain, every "block" is like a page in the notebook. Each page contains a list of things that happened, like transactions. These things are recorded in a specific order.

On one page, you might have someone sending money to someone else.
The next page might have another transaction, and so on.
Blockchain = A Chain of Pages
Now, imagine you connect each page (block) in a chain. Each page not only has its own information but also refers to the page before it. So if anyone wants to change something on a previous page, they'd have to change every page after it, which is nearly impossible. This keeps everything secure.

Everyone Has a Copy
Instead of just one person controlling this notebook, everyone who is part of the system has their own copy of it. If someone tries to cheat and change something on their copy, the others will notice and not agree with the change. This is like everyone checking each other's slides in a PowerPoint presentation and agreeing that all the information is correct before moving forward.

Security
To make sure that only the right people can add new pages to the notebook (or add new blocks to the blockchain), we use a system that requires people to solve very complex math problems. This is like a lock on the notebook, ensuring only the authorized person can write the next page.

Powerpoint Analogy
In PowerPoint, imagine if every slide (block) had a list of things happening, and after creating a slide, it couldn't be changed without affecting all the slides before it. The whole group of slides (the blockchain) would be a secure presentation where every slide has a reference to the one before it, ensuring everything stays in order.

So in summary, blockchain is like a notebook or PowerPoint where:

Each page (block) records something important.
Each page links to the one before it, creating a chain.
Everyone has a copy, so it's hard to cheat.
Special math problems make sure only authorized people can add pages.
Does that help?


You said:
Yes, pretty good. Except you changed "PowerBuilder" (a programming language) in my prompt to "PowerPoint."
ChatGPT said:
ChatGPT
Ah, I see! Thanks for pointing that out. Let's now explain blockchain in terms of PowerBuilder instead of PowerPoint.

Think of Blockchain Like a PowerBuilder Application
PowerBuilder is a tool used to build applications that manage data. You might use PowerBuilder to create programs that handle information in databases. Now, let's imagine you are creating a database system with PowerBuilder, and this system needs to securely store data, track changes, and make sure no one can tamper with the data.

Blockchain = A Database with Special Rules
In the blockchain, instead of just storing data like a regular database, we use a special type of database that records data in blocks (which are like records) and links them together in a chain. Every time new data is added, a new "block" is created, which contains information about transactions, or events, that happened.

Blocks = Data Records in PowerBuilder
In PowerBuilder, you might create a data window or table that stores individual records. In the blockchain, each "block" is like a new data record or entry in a PowerBuilder database. It contains the details of a specific event, such as a transfer of data or money.

Example: You have a table that logs transactions, and each record has information like who sent money, who received it, and the amount.
In the blockchain, these records are grouped together in a block.
Chain = Linked Records (Data Integrity)
In PowerBuilder, you might set up a system where every new record references previous ones to ensure that they are all connected in the right order. In blockchain, each block contains a reference to the previous block, linking them together in a chain.

This is like when you set up foreign keys or references between tables in PowerBuilder to make sure the data is linked correctly.
If someone tried to change a block, it would break the link, and everyone else would know that something was wrong.
Blockchain = Everyone Having a Copy of the Database
Instead of having just one central database where the data is stored, with blockchain, everyone in the system has their own copy of the entire chain of blocks (the blockchain). This is like multiple users having access to the same PowerBuilder application, where each one has a copy of the database.

If someone tries to change something in their version of the database (blockchain), the others will notice the change and reject it, because their copies don’t match.
Security and Validation = PowerBuilder's Data Validation
When you create an application in PowerBuilder, you might have checks to validate data before it is saved (e.g., ensuring that data is correct or follows a rule). In blockchain, before a new block is added to the chain, there are checks (like solving complex math problems) to ensure the data is valid.

Think of it like running a validation script in PowerBuilder to make sure everything is correct before a record is added to the database.
Summary with PowerBuilder Analogy:
Blockchain is like a PowerBuilder database that stores data in blocks.
Each block is like a new record in a PowerBuilder data table, containing important information.
Blocks are linked together like related records in a database, and altering one would affect the others.
Everyone has a copy of the blockchain (like users having access to the PowerBuilder app with their own database), so no one can cheat or change data without being detected.
The system uses validation checks (similar to PowerBuilder’s validation) to ensure the data is correct before it is added.
I hope this version better aligns with PowerBuilder! Let me know if you'd like to dive deeper into any part of it.


You said:
How does the authorized person solve the very complicated mathematical problem? How does the authorized person even find out what the problem is?
ChatGPT said:
ChatGPT
Great questions! Let me explain how an authorized person (often called a miner or validator) solves the complicated mathematical problem in the blockchain. This process is called Proof of Work (in Bitcoin, for example) or other consensus mechanisms in different blockchains.

How Does the Authorized Person Find Out What the Problem Is?
The "problem" is not something a person needs to find; it's automatically generated as part of the blockchain's structure. Here's how it works:

Blockchain Nodes: There are many nodes (computers) that participate in the blockchain network. Each node is a copy of the blockchain, and all nodes are involved in verifying and adding new blocks.

Creating a New Block: When a new block of transactions is ready to be added to the blockchain, a mathematical problem is created. This problem involves finding a specific number that, when combined with the contents of the block, meets certain criteria. This process is called mining.

The Problem = Hashing Puzzle:

The "problem" is essentially a hashing puzzle. A hash is a special kind of cryptographic function that takes an input (in this case, the data in the block) and transforms it into a fixed-length string of characters (the hash).
The mining problem is to find a specific hash that meets a predefined condition. For example, in Bitcoin, the condition is that the hash must start with a certain number of zeros. The only way to find the right hash is through trial and error.
How Do They Solve the Problem (Mathematical Puzzle)?
Hashing the Data: The miner takes the contents of the block (including the previous block’s hash, transactions, and some additional data) and applies a cryptographic hash function (like SHA-256 for Bitcoin) to it. This gives them a string of numbers and letters.

Finding the Right Hash: The miner has to keep changing a small part of the data in the block, called the nonce (a random number), and re-hash the block until the result meets the condition. For Bitcoin, the goal is to find a hash that starts with a certain number of zeros.

Example: Suppose the block's data produces the hash "abc123", but it doesn’t meet the condition (e.g., it doesn’t start with four zeros). The miner changes the nonce, re-hashes the block, and gets "xyz456". The process continues until they find a hash that satisfies the condition.
Proof of Work: Once the miner finds the correct hash, it’s considered proof of work. This proves that the miner has spent computational power (work) to find the solution. This process is energy-intensive because it requires trying many different nonce values to find the right one.

Broadcasting the Solution: Once a miner finds the correct hash, they broadcast the solution to the rest of the network. The other nodes in the network verify that the hash meets the condition and, if they agree, the new block is added to the blockchain.

Why Is This Secure?
Difficulty and Time: The reason the puzzle is so difficult is that the miner doesn't know which nonce will work, so they must try many possibilities, which takes time and computational resources. This makes it hard for anyone to cheat and change the blockchain, because changing even one block would require redoing the proof of work for all the following blocks.

Cryptographic Security: The cryptographic hash functions are designed so that it is impossible to reverse-engineer the hash and figure out the correct data without trying many possibilities. This is what makes the system secure.

So, to summarize:
The problem is generated automatically when a new block is being created. It’s a hash-based puzzle that requires finding a value (nonce) that, when combined with the block’s data, creates a hash that meets certain conditions.
The authorized person (miner) doesn’t know the solution in advance but uses their computer to try different possibilities until they find the correct answer. This process takes time and computing power.
Once the correct solution is found, the miner broadcasts it to the network, and everyone agrees that the new block is valid, adding it to the blockchain.
This process of solving the mathematical problem ensures that new blocks are added securely and that the blockchain remains tamper-proof.

Recommendations

0 members have recommended this reply (displayed in chronological order):

DU is not the best place to ask RandiFan1290 Saturday #1
It's a rip-off Blue_Tires Saturday #10
well, I don't know who this "finance guy" is, but his history of the internet lapfog_1 Saturday #16
Need some clarification here. LAS14 Saturday #35
Excellent Post! One Minor Flaw. ProfessorGAC Saturday #52
It could be transmuted by a particle accelerator ThoughtCriminal Sunday #75
Fair Enough ProfessorGAC Sunday #77
It is the perfect currency for criminals (drug cartels, gun runners, human traffickers, rogue nation states, etc.) waterwatcher123 Saturday #54
Thanks!! This looks like the kind of thing I've been hunting for for years. LAS14 Saturday #32
They likely have a very large endowment Redleg Saturday #49
You warned me about asking on here. TNNurse Saturday #62
The use of blockchain in Crypto LAS14 Wednesday #86
It's a way to... 2naSalit Saturday #2
The way I understand it, bamagal62 Saturday #3
All money is 'made up'. Voltaire2 Saturday #14
That's the thing... BTC is NOT used as a token of exchange for anything other than money laundering by tha VAST majority Happy Hoosier Saturday #33
It is used, to a very limited extent, as an exchange token. Voltaire2 Saturday #38
Exactly. Happy Hoosier Saturday #44
I know that. Thx. bamagal62 Saturday #73
Made up money as opposed to the Drachma... Alephy Saturday #19
Your observation of it as a STORE of value is good one. Happy Hoosier Saturday #34
"Bitcoin is new" dawg Saturday #60
Yes, it is really, really new Alephy Saturday #63
Bitcoin is an antiquated energy-wasting protocol. If the world was ever serious ... dawg Saturday #66
Sure Alephy Saturday #67
It's the currency of the future ... dawg Saturday #69
My apologies Alephy Saturday #20
Not sure, but if I recall correctly, when you make a reply, the "powers" button below it becomes active for you Attilatheblond Saturday #53
Thank you very much Alephy Saturday #56
Just passing along what someone else showed me here Attilatheblond Saturday #71
It's made-up money, but its primary benefit is that it's untraceable. Lonestarblue Saturday #28
This message was self-deleted by its author Chin music Saturday #31
Scam, well known. Passages Saturday #4
Molly White does a great job of tracking this scam . . . hatrack Saturday #5
The perferred method of exchange for criminals the world over. paleotn Saturday #6
It's more like timeshares for the new millennium. Hugin Saturday #7
Crypto is an experiment in harnessing perception as wealth. Frasier Balzov Saturday #8
DU is probably the worst possible place to discuss BTC that I have seen. Years ago, a DU poster put up dozens of Celerity Saturday #9
I'll never trust any money I cannot physically touch Blue_Tires Saturday #13
Do you use debit and credit cards? Are you paid via EFTs? Celerity Saturday #17
I do use debit and credit cards, TNNurse Saturday #24
Actually blockchain - the tech behind bitcoins- Voltaire2 Saturday #39
Thank you for beautifully illustrating my point Blue_Tires Sunday #81
No, I did not illustrate your point at all, sorry. Celerity Sunday #82
Like I said before, you're only helping Elmer and Donnie Blue_Tires Sunday #84
I do not mine BTC or any other crypto currency, nor do I trade in BTC or any other crypto currency. Celerity Sunday #85
It's not strictly true that tulips can't endure. LisaM Saturday #37
Yes, but you are now introducing both labour and non-fungibility. Celerity Saturday #43
I appreciate your commentary on this topic Alephy Saturday #57
thanks Celerity Saturday #58
Precisely, I have been in and out of Bitcoin since it first JCMach1 Saturday #61
thank you, and OUCH! (the 30 deleted BTC) yikes Celerity Saturday #64
I was treating it as an experiment... So I try to laugh JCMach1 Saturday #65
well, at least you didn't spend 10,000 BTC on 2 pizzas................ (worth roughly 1 BILLION USD now) Celerity Saturday #68
Thank you all. TNNurse Saturday #11
It's closer to a ponzi scheme Blue_Tires Saturday #12
It's a great way to launder money, too. GoCubsGo Saturday #22
IMO, the rise of Bitcoin (and maybe other crypto) is being fueled by hopeium nitpicked Saturday #15
The answer is Yes. Wonder Why Saturday #18
Mostly yes. Voltaire2 Saturday #21
The European Tulip Price Collapse. Jacson6 Saturday #23
Fatally flawed analogy, and one that has been trotted out here continously long before I joined DU in mid-2018, as Celerity Saturday #40
Excellent comparison. Thank you for that. BannonsLiver Saturday #45
And the South Sea Company Amanita Pantherina Saturday #55
It's not quite. usonian Saturday #25
I never understood what it is. claudette Saturday #26
Crypto is electronic barter wrapped around a restrained supply of medallions bucolic_frolic Saturday #27
It's a game of hot potato Happy Hoosier Saturday #29
Crypto-gypto oasis Saturday #30
All currency not based an a physical commodity, but traded in markets are a scheme and a process of continual ... marble falls Saturday #36
Have bought and held BTC (only) for a couple years Wavelight Saturday #41
Well, I will be 80 in 5 years so I doubt that will be my concern. TNNurse Saturday #48
I regret my timidity with it... Mark.b2 Saturday #70
It's a threat to the environment. ... littlemissmartypants Saturday #42
Yes Blue Full Moon Saturday #46
Money laundering, tax evasion, medium for illegal purchases. DJ Synikus Makisimus Saturday #47
A speculative mania-- really an improved version of the Tulip mania andym Saturday #50
The big money return in crypto is::: keithbvadu2 Saturday #51
Very poor way to launder money as BTC has an open ledger JCMach1 Saturday #59
Many places take Bitcoin as payment..... Who accepts Trump crypto as payment? keithbvadu2 Saturday #72
I've never encountered one place that takes crypto. If I go to the grocery store I can't buy a gallon of milk with it. Vinca Sunday #78
I have a Visa debit card through Coinbase RandiFan1290 Sunday #79
And the worst part is ... AncientOfDays Saturday #74
Laundering Money ._. Sunday #76
Plot to crash economy and make US taxpayer pay for it. Kid Berwyn Sunday #80
Some fucking crypto is easier to track that others. Bitcoin leave a clear trail. Monero fucking does not. Very different SoFlaBro Sunday #83
Latest Discussions»General Discussion»So is Crypto a pyramid sc...»Reply #86