1296
Please Stop (jlai.lu)
submitted 6 months ago by ElCanut@jlai.lu to c/lemmyshitpost@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] excitingburp@lemmy.world 13 points 6 months ago* (last edited 6 months ago)

The cryptography has much simpler algebraic analogues - what we are looking for is a "one-way function". This means a mathematical symbol that only works on the left side of the equals. The simplest one is the remainder of a division. For example if I told you that I had a remainder of 5 after dividing by 20, you wouldn't know if the original numerator was 25, 45, 65, 85, and so on. This operator is called mod (modulus). Even if you don't know what value I started with, It's not hard to guess what possible numerators could be with modulus. That's where the cryptography comes into play: a cryptographic hash is designed so that it's practically impossible to guess the original numerator. We'll stick with the modulus for explanatory purposes, but imagine that you can't list off possible numerators like I did.

Now we can invent a puzzle for a computer to solve. We'll start off with the same values as before, but - again - we are disallowing easy guesses. This forces us to check 1 mod 20, 2 mod 20, 3 mod 20, 4 mod 20, 5 mod 20 and so on. Eventually we'll hit 25 mod 20 giving us the solution to X mod 20 = 25. Now you can go back to the person that gave you the puzzle and prove that you've done 25 steps of work to arrive at a solution (or have made a lucky 1/25 guess). This is called "proof of work". A cryptographic has consists of a certain number of bits, such as 256 bits - this means a series of 1' s and 0's 256 long. The puzzle presented to the computer is "find the numerator that results in the first 50 bits being zero" (the more bits are required to be zero, the longer it will take to find the answer). Because of the incredibly slim chance of guessing the correct numerator, it doesn't really matter if the computer counts up (like we did with modulus) or guesses. So, in practice, everybody trying to find the solution starts at a random number and starts counting, or trying other random numbers, until someone wins the jackpot. It's basically a lottery, but the correct numbers have to be discovered instead of being dropped out of a glass ball at the end of the week. Once a computer finds a solution, everybody else playing the game can check their numerator as [probabilistic] proof that they have done work.

Now we can use this lottery to create a blockchain. We start with 5 things: a globally agreed on solution we are looking for (789), an initial block (which is just a number - lets say 12345), Bob's account #5 of $100, and Sally's account #6 of $200, and a huge amount of players of the above game. Sally wants to transfer $20 to Bob, so she says to all the players: "I'm #6 and want to give #5 $20. There's a $1 prize for finding a new block for me." All the players make a new denominator, by placing the numbers next to eachother - so 12345 6 200 5 100 20 1 - or just 1234562005100201. All the players start trying to find the number that will result in 789. Eventually someone finds 1234562005100990 after a lot of work/guesses. Everybody checks their work 1234562005100990 mod 1234562005100201 = 789. The winning player receives their prize, and now everybody has a new block to start from: 1234562005100201 1234562005100990. Next time someone wants to send some money they will use 12345620051002011234562005100990 as the initial block instead of 12345. Hence, we have set up a chain starting with:

12345 -> 12345620051002011234562005100990 -> ...

There's your block...chain. Anybody can independently verify that the work has been done by checking the answers. It's incredibly elegant but, as we've seen, incredibly destructive.

[-] daltotron@lemmy.world 2 points 6 months ago

Good explanation. I am extremely bad at math, I never made it past kind of, high school algebra, and I still can't do basic math very well, but this explained it pretty well, thank you. So, someone has to start a transaction before mining can start, if that's how it works?

[-] excitingburp@lemmy.world 1 points 6 months ago

I'm Bitcoin there is a built-in reward to keep things moving forward even if there are no transactions. Different coins do different things.

[-] Knock_Knock_Lemmy_In@lemmy.world 2 points 6 months ago

PoW is destructive. Blockchain doesn't have to be PoW.

Hash linked list part was good.

You missed out public key cryptography which is also key to blockchain.

this post was submitted on 09 Mar 2024
1296 points (94.1% liked)

Lemmy Shitpost

26174 readers
3412 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 1 year ago
MODERATORS