What is blockchain?

Dacey Rankins
Member
Ingresó: 2023-09-14 20:10:55
2023-10-20 10:59:37

What You'll Learn
 
What technology is the cryptocurrency based on?
 
How Blockchain Works
 
Why Cryptocurrency Transactions Are Reliable
What You'll Learn
 
Understand how mining farms work
 
Distinguish between types of blockchains
In the previous lesson, we figured out the basics and learned about Bitcoin, the main digital asset in the cryptocurrency world. At the same time, both Bitcoin and other coins (for example, Ethereum) are based on blockchain technology.

Compared to machines, bitcoin and other currencies are brands, but blockchain is the engine. So let's take a look under the hood and try to figure out what gears are driving the alternative financial system.
What is blockchain?
Blockchain (translated as "chain of blocks") is a continuous sequential chain of blocks containing information built according to certain rules. In essence, a block is a unit of information on a blockchain.

The connection between the blocks is provided not only by numbering (block 3 follows block 2), but also by the fact that each block contains information about both itself and the previous block.
What's in the blocks themselves? They record various transactions, such as a transfer from one bitcoin address to another. But that's not all. The transactions that make up the blocks can contain not only the transfer of value (for example, bitcoin), but also the transfer of data.

Thus, blockchain is a technology for storing, processing, and transferring data and value. The difference from a simple database (a server in the basement of a company) is that a blockchain is stored on many computers.
Many people confuse cryptocurrency and blockchain. There can be many cryptocurrencies, but each of them is based on some kind of blockchain

A change in the database occurs for all network participants (e.g., miners) that support a particular blockchain. But only if they all agree to the changes. Such agreement is called consensus.

The term "blockchain" first appeared as the name of a database (like Oracle or MySQL) of the Bitcoin system, but since then, blockchain has become a common technology, which is most often identified with a ledger (list) of cryptocurrency transactions.
To put it simply, the blockchain scheme is as follows:

1. John wants to send money to Dirk.

2. The transaction is recorded in a block.

3. The block becomes visible to all network participants.

4. Network participants (miners) confirm the transaction.

5. The block is recorded in the ledger and becomes part of the blockchain.

6. Dirk gets money.

What is a hash?
A hash is the result of encrypting some data. This can be thought of as squeezing or packing a tent into a cover. That is, a hash is a derivative of all the information contained in a block.

There are various encryption standards for obtaining hash sums – for example, Bitcoin runs on the SHA256 standard.

It's important to note that the word "encryption" is used for simplicity. It would be more accurate to say "hashing" because a hash, unlike a cipher, cannot be reverted to its original state using a key.
The whole point of hashing is that if you change at least one byte of information in the first block, the hash of that block will be different. And since the hash of the second block contains the original hash of the first block, it is impossible to change the first block without changing the second block. And so on. In this way, the immutability of the entered data in the blockchain is achieved.

Who does the hashing?
So, the information in the blocks is stored in encrypted form. Its processing is carried out by miners, who, with the help of their equipment, ensure secure data transmission.

Mining is the process of issuing new blocks, building a chain. Miners perform hashing, that is, encrypt data and match the hash to the block. These are complex mathematical operations that require significant computing power. Miners receive a reward for the next block and fees that users pay for transactions.
Any person or company that buys and installs special equipment can become a miner. It can be both special hashing equipment (bitcoin mining) and video cards (ethereum mining).

Theoretically, any technique capable of performing the simplest calculations can mine. There are even known hackers who, a few years ago, connected to refrigerators through smart home systems and mined coins on them while the owners were sleeping.
Don't rush to the fridge, this story is a thing of the past. Every year, the calculations for mining become more and more complicated, so you will not earn much on the operation of your white friend or the video card from your old laptop.

If earlier it was possible to easily equip a mining farm on your balcony or in the basement in the country, now, along with the increase in the complexity of calculations and the rise in the price of cryptocurrencies, the cost of mining has also increased. It's all about the cost of electricity — now you need your own hydroelectric power plant to make money. Or a wholesale contract with a manufacturer.
By the way, not only private investors or companies, but also entire states are engaged in mining. For example, El Salvador uses the energy of a volcano to mine bitcoins

Let's take a look at the work of mining using the example of El Salvador. A geothermal plant is being built on the volcano, due to the high temperature, it converts water into steam, which enters a turbine generator and generates electricity. As a result, mining equipment performs calculations on green energy.
Due to the fact that El Salvador has many volcanoes and water, electricity is cheap. Well, the cheaper the electricity, the more profitable mining is. The country has also legalized the circulation of cryptocurrencies and keeps part of its reserves in bitcoin.

Therefore, large miners are trying to do business in those countries where they can buy kilowatts for pennies, as well as legalize their business. We'll talk more about regulation in the sixth lesson.
How Transactions Are Carried Out
So, miners are network participants who process transactions and make money from it. And how do transactions technically get into a block?

Let's say you have a wallet (electronic, of course) with 1 BTC. You want to transfer 0.5 BTC to a friend. First, the transaction goes to the so-called mempool, which is the transaction queue of all users on the network. Not all transactions can be included in the next block: the block volume is limited.

The order of precedence is determined by the fee that users are willing to pay. This can be compared to individual apps for calling a taxi: the more money you charge for the ride, the faster you will leave.
What about the commission
Different blockchains have their own nuances, but in most cases, users decide for themselves how much they are willing to pay for a transfer. Therefore, those who are willing to pay more will be the first to get into the block. The rest will have to wait for the next block.

For example, in the Bitcoin network, a new block is formed approximately every 10-15 minutes. Accordingly, if the sender of the transaction sets too low a fee, then he can wait several hours before his operation hits the block and is executed.
As a rule, the commission in blockchain networks does not depend on the amount of value sent. So, if you transfer bitcoins for an amount equivalent to $100, you can pay the same fee as a large investor who transfers bitcoins worth $100 million. For example, in 2020, a $1 billion transaction was recorded, for which the user paid only $80 in fees.

Who is responsible for security?
For example, imagine the following fairy-tale situation: some crooked programmer decided to make some extra money. He connected to the blockchain, created a fake block about transferring money to his wallet, and sent it to the network. Who's going to stop him?

As you remember, blockchain is a distributed ledger, that is, data about previous transactions is stored on many devices at once. If there is no information about our crook's transactions anywhere but his own device, then the fake block will simply be rejected by the network.
As such, each block has to go through a verification procedure where the network looks for proof of the legitimacy of the operation and comes to a consensus. And who is looking for this evidence?

In addition to miners, there are also nodes (nodes) in the blockchain network, which are computers that contain the entire history of the blockchain, that is, they store a complete copy of all operations. Nodes are not necessarily mining devices. Conversely, not all mining devices necessarily hold the full history of the blockchain.

The specific way it works depends on the blockchain's consensus algorithm. There are two main ones.
1. Proof of Work
Many secure blockchains, such as Bitcoin, use the Proof-of-Work consensus protocol, in which miners need to solve complex hash search problems in order to create blocks. These protocols consume a large amount of computing power and power, which reduces bandwidth and increases network latency.
2. Proof of Ownership
In addition to proof-of-work, there is also the so-called proof-of-stake, abbreviated as PoS. Examples of such networks are Ethereum, Cardano, and others. In these networks, blocks are formed not by miners, but by validators or nodes (nodes). Validators (network participants who are engaged in verification) hold coins on their balance, due to which they guarantee their decency.

Decency, in this case, means their willingness to form transactions correctly, that is, not to transfer coins from address to address that do not exist.
Validator coins act as collateral. If the validator violates the rules, he will lose part of his stake (coins lying on the node). The more stake a particular validator has, the more often he mines a new block and earns commissions.

In such networks, security is more difficult to ensure, since it is enough to buy tokens and run a node to control the network, that is, this is purely economic protection.

And in the case of Proof-of-Work, you need someone to produce the equipment, then you need to buy it, install it, and pay for electricity.
At a glance
 
Blockchain is a distributed database.
 
The security of data transmission in the blockchain is ensured by encryption.
 
There are two main types of blockchain: the first is based on computation, and the second is based on a high share of ownership of the network's product.

Dacey Rankins
Member
Ingresó: 2023-09-14 20:10:55
2023-10-20 11:02:36

What You'll Learn

  1.  
    Strengths of Blockchain
  2.  
    Areas of application of blockchain technology
  3.  
    How Ethereum Works

What You'll Learn

  1.  
    Evaluate cryptocurrencies in terms of their strengths and weaknesses
  2.  
    Understand how smart contracts work

Very often, you can hear from the mouths of various industry experts that cryptocurrencies have a number of advantages over traditional means of payment. But why isn't cryptocurrency still widely used? Or is it used? Let's find out.

The main advantages of blockchain as a technology are:

Key Benefits

1. Immutability of the entered data.

2. Distribution among network participants.

3. The decentralized nature of the work algorithm management.

4. Data transparency.

All these properties make blockchain a unique technology in terms of security. This is also called lack of trust (there is no need for trust).

1. Immutability

The data that has already been entered into the block is unchanged after the majority of the network participants have retained this block. The appearance of subsequent blocks reinforces this immutability. However, there are ways to attack data spoofing (for example, if someone takes over more than 51% of the network's computing power).

It is important to remember that if some of the participants in the network believe that one thing is true, and some believe that the other is true, then these are already two different networks. A similar thing happened with the Bitcoin and Ethereum networks, when some miners broke away and organized their own blockchains (Bitcoin Cash and Ethereum Classic).

2. Distribution

Distributed data means that if some computers go offline, burn down, or are stolen, the rest of the participants will have their own instance of the database, and everyone who uses that data will simply connect to those participants who are active and continue to maintain the network.

This is fundamentally different from the centralized systems we're all used to, where there are one or more servers on which information is stored. Whoever controls the servers can change or delete data without our consent and without the knowledge of other participants.

3. Decentralization

The third very important feature is decentralization, that is, the absence of a single blockchain control center. For example, all nodes in the Bitcoin network work according to the same algorithm. If it is necessary to change the algorithm (rules), then it should be done by the majority of participants. There is no leader who can order a change in the system.

4. Transparency

In public blockchains, all data can be viewed by any other participant. For example, if someone knows your address on the Bitcoin network, they will be able to see your transactions: from, when, where, and how much you sent. Thanks to this, the money sent will not be lost on the way and you will not have to call support and find out where the transfer went.

If you want to maintain complete anonymity, then you should use special services — mixers (transfers are mixed in a common pot and only then sent to the recipient).

What are the challenges?

All blockchain networks are different, but there are difficulties that any of them faces. These difficulties are due to the unique properties of the technology. There are three main challenges for the development of a blockchain network – the so-called scalability trilemma. For the first time, Vitalik Buterin, the creator of the Ethereum blockchain, wrote about this in detail.

Schematic representation of the scalability trilemma

The three main components are:

1. Security.

2. Scalability.

3. Decentralization.

You can't achieve everything at once, you can only choose two components. Scalability is an important component that determines throughput, that is, how many transactions a network can handle per unit of time. To ensure high scalability, you have to sacrifice something.

Accordingly, depending on the characteristics chosen, each cryptocurrency may have its own application.

Blockchain Applications

Let's name several areas of application of blockchain technologies:

  1.  
    Payments;
  2.  
    financial products;
  3.  
    Voting;
  4.  
    registers of various objects;
  5.  
    logistics;
  6.  
    digital art;
  7.  
    ecology.

The technology has become widespread, even though it has only been around for a few years.

Of course, blockchain is most often used in payment services and financial products. Transfers of cryptocurrencies from one user to another are already a payment function. In countries such as Japan, Switzerland, Slovenia, Croatia, El Salvador, and many others, it is possible to pay for purchases with cryptocurrencies. In some US states, cryptocurrency can be used to pay taxes.

Financial products based on blockchain are also developing. For example, decentralized exchanges and analogues of banks, where you can make a deposit or take a loan.

Some countries are using blockchain, for example, to build real estate registries and voting systems. In most cases, these are still only pilot projects, but it is in such areas where transparency and immutability of data are needed that blockchain has great prospects. Another example of registers is accounting for the movement of carbon credits in environmental projects.

To see the full range of applications of blockchain technology, let's take a look at the popular blockchain platform Ethereum and the currency that circulates there, Ethereum. The whole point of this blockchain is that it is not only about the banal transfer of funds.

Ethereum is the first blockchain to enable the creation of smart contracts. The idea was born in 2013 by a young man named Vitalik Buterin, who was only 19 years old at the time.

What is Ethereum?

How is Ethereum different from Bitcoin? Smart contracts can be created on the Ethereum network. For ease of understanding, a smart contract can be represented as a computer program. It prescribes the conditions under which an action is performed.

Let's give you an example. Vasya believes that at noon on December 31 the temperature outside will be above zero, and Petya is sure that it will be below zero. They bet on $500 and write down the terms of the bet in the program. At the appointed time, the Ethereum network checks the weather and sends money to the winner.

How does a smart contract work?

A smart contract uploaded to the blockchain will work forever exactly according to the algorithm that was originally embedded in it. Changes in the smart contract will be visible to all network participants. This is fundamentally different from conventional programs on centralized servers, where the program can be changed secretly from users.

Unlike the Bitcoin network, where a new block is formed every 10-15 minutes, in Ethereum, a new block is generated every 10-15 seconds. There are also faster blockchains where blocks are issued in less than a second, but this does not yet prevent Ethereum from being the most used blockchain in the world.

On the Ethereum network, transaction fees are paid in the form of the Ethereum coins themselves, or Ethers. If I want to transfer tokens based on this blockchain, then I have to pay a fee in the form of ETH, the native coin of the Ethereum network. This is often also referred to as gas fees, which is how the creators of Ethereum called fees.

How New Blockchains Are Created

Of course, blockchains, like other software, are created by development teams. As we remember, Satoshi Nakamoto is considered to be the author of Bitcoin, but it is also likely that he did not create the network alone. To launch a blockchain, you need several participants who will become nodes, or nodes, and create their own wallets-addresses.

Who Creates the Blockchain

The answer is simple: programmers. Currently, blockchain development is attracting more and more specialists, and there are training programs for those who want to master this direction. Some blockchain networks, such as Cosmos, allow you to quickly create your own separate blockchain and connect it to a common network. There are also testnets where you can practice creating blockchain applications.

Companies that are engaged in blockchain development are interested in attracting new specialists, since there is a general shortage of IT personnel in the world, and the need for blockchain specialists continues to grow. This is facilitated by both increased investment in the industry and the growth in the number of blockchain use cases.

At a glance

  1.  
    Blockchain allows you to create a financial unit that will not depend on the decision-making center. This allows cryptocurrency holders to circumvent the oversight of government regulators.
  2.  
    Scalability, security, and decentralization are the three pillars of any blockchain. So far, there is no cryptocurrency that would be perfect in all three parameters.
  3.  
    Smart contracts allow you to create a program that will be executed using the power of the blockchain.
I recommend reading the following How Cryptocurrency Comes Into Being
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov