Blockchain Concepts Explained, Energy Usage and NFTs

Pav-Blockchain-Overview

Blockchain Concepts Explained, Energy Usage and NFTs

This guide is a walkthrough of important blockchain concepts and events. We’ll start off by explaining some essential blockchain terminology and key players, and then break down energy usage costs of blockchain transactions, which has become the topic of interest leading up to what’s become known as the “NFT Controversy”.

Table of Contents

Essential Blockchain Terminology

Blockchain Wallets

A “blockchain wallet” is basically just a unique 256-bit number (that’s a big number!), and operates based on the digital signature tools of a “Secret Key” and an “Address”.

  • Secret Key (AKA Private Key, AKA “WIF”): Pick a random number from 0 to 2^256. If truly random, there’s a 0% chance in practice that anyone else will ever pick the same number as you.
  • Address (aka Public Key): We do some math to produce a new number from the private one. This math is (practically) impossible to reverse, so you can safely share this number as a unique ID for yourself. Cryptocurrencies will use your address to identify the owner of each account / balance.

This mathematical magic can turn the secret key into something analogous to a physical object, like a forge-proof stamp.

Digital Signatures

Using your Secret Key, you can produce a “Signature” for a particular file or block of data.

Someone else can compare the signature, the file, and your Public-key/Address, and check if the signature is correct or not. It’s (practically) impossible to forge a digital signature (except for by taking physical possession of the secret key, which is often stored in a special hardware device the size of a USB thumb-drive).

This technology is widely used for secure software updates, reputation and security on app stores, and secure internet (HTTPS).

Blockchain

A blockchain is much like a traditional database, or spreadsheet, but can be updated by multiple people. Individual changes (e.g. “add 1 to row number 6”) are grouped together into a “block” of changes for sharing between different users who are hosting the database.

There are rules to how the data can be changed — e.g. “if moving money from one row to another, the user who owns the row that is sending the money must sign the transaction“. When receiving a block of changes, everyone must check that these fixed rules were followed (and if not, that entire block is discarded).

Blockchain in Action: Concepts & Players

Bitcoin: The First Generation of Blockchain

A "Proof of Work" Model

If anyone in the world could make changes at any time, the system would be flooded with so many new blocks that it would be impossible to synchronise and agree on the order that blocks should be applied, and impossible to agree on the balance of each account.

So, Bitcoin’s big invention was to apply “Proof of Work” to deliberately slow the network down. A rule is added to the system so that when receiving a new block, you should discarded it unless it comes attached with a proof for an arbitrary puzzle that is known to take a long time to solve. The puzzle difficulty is tuned over time, so that on average, a new (valid) block will only turn up once every few minutes or so, which gives everyone a chance to check it and agree on the current state of things.

This was an amazing proof of concept at the time (there’s no authority but consensus is reached globally!) but in the long run has turned out to require an almost inconceivable amount of useless work to be done. This has made a lot of people very angry and has been widely regarded as a bad move.

Mining

To encourage people to contribute to the Bitcoin network by processing transactions and checking if blocks are correct, the concept of “mining” was added. Every time someone solves the arbitrary puzzle to produces a new block of valid transactions, they get to invent a small amount of new Bitcoin currency and give it to themselves. This eventually incentivized industrial-scale “bitcoin mines”.

Mining has a similar economic effect to inflation, where the newly increased supply of the currency is equivalent to devaluing everyone else’s accounts by a small percentage. So in effect, everyone who holds Bitcoin is indirectly paying the miners for this operation.

Transaction Fees

The bulk of a miner’s income comes from the mining bonus, but they also gain a small amount from transaction fees. The main driver of high transaction fees is that these “Proof of Work” networks are incredibly slow — typically processing about one transaction per second, globally. Each miner can only accept so many transactions, so in busy periods, they only accept ones where the users have volunteered to pay higher fees (think Uber surge pricing). Users then end up bidding against each other to ensure their transactions actually get processed.

Ethereum: The Second Generation of Blockchain

"Proof of Work" with Extra Functionality

Bitcoin was a simple spreadsheet where each row contains a user’s Address, and a balance of “money” (bitcoins). The only transactions possible are moving “money” between different addresses.

Ethereum took this system and added the ability for users to write programs for it — much like how adding Javascript in a web browser changed the web from static pages to allowing actual apps, like YouTube or Google docs. This allows people to develop apps that are not hosted in any specific place, but can complete tasks securely with global consensus on the outcomes.

Ethereum 2.0

Transitioning to "Proof of Stake"

Ethereum uses the same consensus mechanism as Bitcoin, where semi-industrial “mines” run hundreds of computers, competing against each other to complete the puzzle first, so they can get the mining reward.

As this is incredibly inefficient, they have been slowly moving to adopt “Proof of Stake” instead of “Proof of Work”. In this system, instead of solving an arbitrarily hard problem, miners are chosen at random in a lottery mechanism, with the number of tickets equivalent to the amount of “money” (Ethereum tokens) that each miner has placed into escrow (aka “staked”).

This is not an ideal democracy, as your chance of gaining a mining reward is linearly proportional to your amount of capital… but, that’s still an improvement on the previous system. Bitcoin and Eth1.0 mining has large “economy of scale” effects, where industrial mining is much more efficient than home mining, gaining a super-linear proportion of rewards based on their capital.

Also, this system is still competitive, with large numbers of people being incentivised to add as many nodes as possible to the network, which again hurts efficiency and limits speed.

Delegated Proof of Stake Blockchain Projects

The Third Generation of Blockchain

Ethereum 2.0 will supposedly require 1% of the energy that Eth1.0 currently uses, however, even that is still an almost unimaginable amount of energy! This is because there are still over 10k “miners” running computers that are competing against each other in that lottery – and the act of mining is still siphoning “money” from regular developers and users to these large capital holders.

So, several other blockchains use different variations of “Proof of Stake”. A popular one is “delegated proof of stake” where mining and the lottery system can be removed entirely. Instead, only the number of computers that are actually required to run the network are required to be active – as few as a dozen servers – and these slots are chosen via an election (again though: with votes based on capital).

Instead of competing for rewards, this small number of nodes cooperates to create an efficient schedule of when each PC will be in the role of “block producer”, and they are funded only through transaction fees instead of large mining rewards.

The parameters of the system itself (such as how high/low the transaction fees are) can be voted on by the user-base, and to create a stable ecosystem, hopefully different users who are aiming to be elected to host a processing node, should compete on price to keep fees low enough to only barely be profitable.

Phantasma

When we (GOATi Entertainment) decided to experiment with some of this technology, we picked a fairly small project – Phantasma – that had a vision of an efficient and sustainable system like this, and were still in early development. This meant we could hopefully help guide the development to stay on that vision.

So far, transactions on the Phantasma network are remaining at cost price — lower than a fraction of a cent each (cheap enough that we can cover that cost and can hide all blockchain details from the users of our Apps). Meanwhile, simple Ethereum transactions can range from $5 up to $100 — sometimes over a million times more expensive than cost price, because the network is so slow and inefficient that people have to competitively bid to get their transactions processed.

Not only is this kind of modern network more efficient (using literally a billion times less electricity) it’s also much faster due to the cooperative scheduling. The performance target for the Phantasma network is to cope with 5000 transactions per second, compared to the typical 1-per-second on “Proof of Work” networks.

Phantasma is not the only network of this kind — there are literally hundreds of similar blockchain systems being developed that make use of more modern research than the 1st and 2nd generation blockchains used.

Energy Usage

Bitcoin vs Ethereum

  • Bitcoin’s energy use is estimated at 115.84TWh ($5.8Bn worth @ 5c/kWh)
  • Ethereum’s energy use is estimated at 48.37TWh ($4.8Bn worth @ 10c/kWh)

Bitcoin’s estimated electricity price is lower (5c vs 10c) due to higher industrialization of mining.

References: DigiconomistCambridge Bitcoin Electricity Consumption Index (CBECI)

vs Phantasma

My estimate of Phantasma’s energy use is 0.00000548TWh ($548 worth @ 10c/kWh).

That’s the planned 10-node ring, with each node requiring one quarter (e.g. 2 of 8 CPU cores rented as a virtual server) of a 500W server rack, utilized at half power load.

Some Calculations…

  • 500W * half load * 1/4 occupancy * 10 nodes = 625W
  • Annualized: 625W * 24hr * 365 days = 5,475kWh

A single Ethereum transaction is estimated to use 98kWh.

This means that Phantasma Chain is 2.8 BILLION times more efficient than Ethereum per transaction!

(0.035 mWh = 0.000000035kWh. 98kWh / 0.000000035kWh = 2,800,000,000)

Phantasma can process 5,000 transactions per second – so up about 157 billion transactions per year (per each 10-node ring deployed). 5,475kWh / 157680000000 = 0.035 milliwatt hours per transaction.

Let’s compare these transaction costs side by side, in terms of some common activities…

Netflix streaming is estimated (by the Shift Project) to use 0.8kWh, and boiling 1L of water in your electric kettle takes about 0.1 kWh:

One Ethereum transaction uses as much energy as ...
Watching Netflix for ...
5 Days
Boiling this many kettles ...
980
One Phantasma transaction uses as much energy as ...
Watching Netflix for ...
0.15 Milliseconds
Boiling this many kettles ...
0*

*It’s like turning a kettle on and then off immediately

Tokens and NFTs

Tokens

The Bitcoin network has one token (currency): Bitcoin. The Ethereum network has one built-in token (ETH), which is used for mining rewards and transaction fees, but due to it being programmable, app developers can create their own “tokens”.

Most of these tokens act like currency, in that you can just imagine them as a spreadsheet item containing a “balance” per row. These kinds of tokens are called “fungible” – meaning that balances of the token are interchangeable (If I give you $10 and you give me 2 x $5, it’s even).

NFTs

Ethereum (and other programmable blockchains) also allow other kinds of tokens to be created by applications. If a token does not act like a currency, then it is called non-fungible. This is more like a typical database row that could contain any information. It could contain the names of basketball players — If we trade the text “Michael Jordan” for the text “Andrew Gaze”, that’s not a simple mathematical equality any more, so it’s “non fungible”.

At this point, the system acts like a regular database (or file-system), but rows in that database (or files in that folder) can be locked so that only a particular user is allowed to modify them.

The NFT Controversy

In the past year, NFT’s moved beyond a tech jargon for “a row in a spreadsheet, but blockchain”, and took on a life of its own in a weird art-driven speculation bubble.

People were selling their art “as an NFT”, which meant putting something into an NFT (that’s “a row in a spreadsheet, but blockchain”), often a URL to the picture, and then charging huge amounts of money to transfer control of that “row in a spreadsheet” to another user. Does this transfer constitute licensing the artwork? Not really. Is there even a license agreement in place? Maybe. Money changed hands for something, but what exactly is it?  Unknown – no one has challenged it in court. Most places selling cryptoart leave it vague as to what rights are being transferred, and a few actually come with a EULA that specifically outlines that no rights are being transferred as part of the sale.

There is a popular screenshot going around that explains cryptoart like this:

Unfortunately, that’s a pretty accurate description of some of the ways that NFTs have been used recently!

There are wonderful sections of community supporting artists with new income streams… and there are people “selling” NFTs containing links to artwork that they didn’t create. It’s a messy space.

So now in 2021, this weird, sometimes honest but often ill-defined to outright-scammy speculation bubble, combined with the ecological impact of Bitcoin/Ethereum’s Proof-of-Work industrial-scale mining operations, have been described in a lot of articles, explaining that this phenomenon is what an NFT is. I’d like to get pedantic and point out that an NFT is just jargon for “a spreadsheet row with a permission system, in a community hosted database“, and that this phenomenon is what the highest-profile use for these spreadsheets has been for the past year is… but it may be too late for that nuance. Any mention of that tech jargon is met with instant hatred on social media now, not matter what you’re using it for.

If you take any discourse about NFTs and replace “NFT” with “a spreadsheet row”, it all starts to sound rather silly. That’s expected for a new buzzword in a controversial field… but it’s reached the point where a huge amount of the internet has been educated as to what “an NFT is” as a much higher level concept/phenomenon than what the original bit of jargon was limited to. So if you are working on a project that really does just use a spreadsheet row with a permission system, in a community hosted database, what should we call that now?

Comments are closed.