DEV Community

Francis
Francis

Posted on

Let's Buy a Pizza: I Have Crypto

Image description

For the uninitiated not all cryptocurrencies are Bitcoin or Ethereum. Ethereum was created to solve perceived problems in Bitcoin; with any technology there will be advancements. Devs and the mining community are always working to solve Bitcoins various problems: one being energy consumption when processing a transaction and the other being swiftness of the network.

Thus, we can buy a pizza pronto.

Verifying

Verifying a transaction is critical to cryptocurrencies: this is what allows us to get our pizza. Transactions can be verified by Proof of stake (PoS) or Proof of work (PoW).

PoS works by participants putting their cryptocurrencies up for collateral with the express intent to approve transactions e.g., Tezos, Polygon.

PoW consumes “some” energy to do some fancy calculations in a race to be first while we wait X minutes to get our pizza, e.g., Bitcoin, Ethereum, Litecoin.

The nature of cryptocurrencies is that they are decentralized, so if your government offers cryptocurrencies, it's no longer decentralized, right? We can get a pizza if a centralized authority is responsible for verifying transactions but is this the crypto dream?

Cryptocurrencies were made to be decentralized so determining how to verify my pizza purchase can be kind of difficult. A problem that everyone, that includes Bitcoin, is trying to solve, without burning down half the amazon rainforest.

PoW and PoS both are trying to add a new block of transactions into the ledger, but do their ends justify the means? I mean I still get a pizza either way, right?

When the Bitcoin network was small PoW made sense, but it’s not an environmentally scalable solution as the amount of energy it takes could make us a lifetime supply of pizza. Some people think that's a problem. Alternatively, PoS is faster and consumes less energy. It uses 99% less energy than PoW.

PoW

In a PoW network every computer is trying to be the first to calculate the solution to a formula allowing them to add their transactions to the blockchain. For their efforts they get rewarded with a new Bitcoin.

This deters bad actors because they would need a lot of energy and money to validate a bad transaction. To secure this network a few polar bears need to move to Hawaii; we all make sacrifices. Since PoW is a race to be the fastest it’s a bit more decentralized than PoS.

PoS

The foundation of PoS is staking, they use validators which means the more crypto they put the more influence they have over the network. Validators stake a certain amount of crypto behind a block they want added to the chain.

Validators can stake their crypto allowing them voting rights to prove legitimate transactions. For their efforts they get back newly created crypto for making the network faster. Having validators approve a transaction is faster than expensive gas guzzling computers doing the proof of work.

There is a problem here, if a validator with the most money gets chosen how is this decentralized?

PoS thought of a solution, validators that misbehave do face consequences. Validators have an economic incentive to do the right thing and if they don’t, they get slashed. Which means when you are bad, they take some of your crypto away, if someone adds to your block their crypto also gets cut too. Doesn’t pay to be bad.

Conclusion

Bitcoin miners set out to resolve its environmental crisis by moving more than 50% of its energy to renewable energy in response to the environmental concerns critics highlighted.

I can get my pizza with both methods but one network answers to the fastest computers at the cost of consuming way more energy than we can justify, while the other adds blocks to the ledger by putting your money where your mouth is.

Stay Connected!!

Follow Francis on | Twitter| Portfolio| OpenSea|

Top comments (0)