Series, volume 4

[Bitcoin Refresher Course]
Q&A format for easy understanding! (Part 1)

My name is Mirumi, and I run a blog called "Mirume" (https://mirumi.me). My main profession is software engineering, and I spend my days either programming or writing blog posts. For some time, I will be contributing articles on a wide range of topics, primarily focusing on IT technology. Please treat me kindly.

In January 2024, a "Bitcoin spot ETF" investment product was approved in the United States. This signifies that cryptocurrencies have finally achieved an equivalent status to traditional financial products, which is truly a long-awaited achievement for the cryptocurrency industry.

In Japan, there are currently no similar investment products available, but this trend is almost certain to become stronger in the future. This means that an era is coming where many people will be investing (indirectly) in cryptocurrencies like Bitcoin. If that happens, wouldn't you want to understand a little more about this "so-called Bitcoin," which some people have been dismissing as just something that "a few people are making noise about"?

Therefore, in this issue and the next, we decided to present information about Bitcoin in a question-and-answer format over two parts. In this article, we will introduce the basic concepts, and in the next installment, we will focus on more technically detailed content.

By the way, although it may seem belated, I work as an engineer in the cryptography industry. I regularly interact with blockchain and DeFi technologies, and I also invest in and trade, primarily focusing on Bitcoin. If you have any comments about this article or any questions, please feel free to visit my X account or blog!

Therefore, in this issue and the next, we decided to present information about Bitcoin in a question-and-answer format over two parts. In this article, we will introduce the basic concepts, and in the next installment, we will focus on more technically detailed content.

Q: What makes it so popular?

A: As of the time this article was written, a single Bitcoin is priced at nearly 7 million yen. While it's difficult to fully explain the reason for this, I can present some commonly cited factors (along with recent developments) here:

・There are reasons why it is called a "cryptocurrency," including its robust security features
・ Its value as a scarce resource stems from the limited number of copies issued
・ The existence of mechanisms that cause relative value to increase over certain periods
・Not influenced by the central government or central bank
・ Not affected by geopolitical risks

If I were to summarize it very broadly, Bitcoin could be described as "a resource with high value, like gold or platinum, that is protected by strong security and functions as an electronic payment system not controlled by anyone."... perhaps.

Q: What is blockchain?

A: The core concept of Bitcoin is the blockchain, which is often referred to as a distributed ledger in Japanese. The blockchain actually has a very simple structure, so let's first take a look at Figure 1.

1. Diagram of blockchain technology

A blockchain consists of "blocks," each containing 1 or more "transactions." These blocks are linked together in a chain. A transaction represents a single Bitcoin transaction, and all transactions that have ever occurred worldwide are recorded here. There is only 1 existing Bitcoin blockchain in the world, and this is precisely why it is referred to as the ledger of transactions.

And the very mechanism by which this blockchain is generated is intrinsically linked to all of the following elements that define Bitcoin:

Those who take on the demanding task of recording information in a ledger will be rewarded with Bitcoin (this is mining)
The system is designed in such a way that it is practically impossible for anyone with malicious intent to arbitrarily modify or delete the records (this is where cryptography comes into play)
The system automatically proves that the contents of the ledger have not been tampered with and are indeed approved worldwide (cryptography is used here as well)

While it is certainly true that Bitcoin consists of multiple elements, these elements do not exist independently. Each one is perfectly integrated with the others, and everything is meticulously organized without any waste. It is here that I feel Bitcoin's greatest appeal lies.

Another important point about blockchain is that it can sometimes branch. Even if the rules are followed, it can split and grow in different directions. The question then becomes, "How do we determine which is the 'official' chain?" This is actually quite simple: only the longest chain at any given time is considered valid. The administrators of the ledger constantly evaluate "which of the branching chains is legitimate," and ultimately, only the one that has grown the longest (meaning it has been deemed legitimate by a majority) survives.

Q: Where is encryption used?

A: First, I would like to explain a fundamental point: similar cryptographic technologies are widely used in virtually all aspects of modern IT. Bitcoin is no exception, and furthermore, it's important to note that there are actually no newly proposed cryptographic methods within Bitcoin itself. In fact, this innovative invention was achieved by simply combining existing technologies that were already available.

Here's an example of the cryptography used with Bitcoin:

・ Hash function: Also known as a digest function, it converts any input into a fixed-length data string without duplicates
• Public-key cryptography: One of the most popular cryptographic methods used today
・ Digital signature: This serves to prove that data has not been tampered with and that it originates from a specific individual
・ Elliptic Curve Cryptography: This is used to generate key pairs for public-key cryptography

In this chapter, we will discuss hash functions to continue our explanation of blockchain technology. Other cryptographic methods will be covered in a future issue, so please wait for that.

Hash functions are one of the most fundamental concepts in cryptography, and they are also very common in everyday software development. I wrote an article about hash functions for this series in Vol. 2 (October 2023 issue), which served as a sort of groundwork for this issue, although not explicitly stated. Please refer to that article for more details.

The process of hashing is completely irreversible. This means that it is impossible to determine the original state based solely on the calculated result. However, verifying whether "hashing a particular data results in a specific outcome" is easy. It only requires performing the same hash calculation once.

Here lies the core of blockchain technology. Please refer to Figure 2.

2. An image of how hashing is used in blockchain technology

Blockchain technology is essentially a chain of hashes.

A block contains the hash of a previous block, and the next block includes that previous hash result and then hashes it further, which is then included in the subsequent block... This process repeats.

In this state, if you modify the content of a single block, all subsequent hash results will change. A hash is a summarized representation of data, and the hash of a particular block incorporates all previous hashes.

In other words, if someone tries to invalidate their paid data by rewriting only a specific block, the change will quickly propagate to all blocks, revealing the fraud. Of course, no other ledger administrators would approve such a modification, so individual manipulations will no longer be possible.

In this way, blockchain technology is built upon the fundamental security of cryptography.

Q: Where do Bitcoin and blockchain actually exist?

A: Bitcoin and blockchain are often described as "decentralized." Given this, one might imagine that they don't exist on servers managed by a single entity. But then, where exactly do they reside?

The answer, if I were to put it in words, would be something like "within everyone's computers around the world, or on the networks that connect them."

Anyone can become a Bitcoin ledger administrator. To get started, simply install blockchain management software (often referred to as nodes or clients) on your computer and download the actual blockchain data; once that's done, you're ready.

The key point at this stage is that the communication does not go through a specific server managed by someone, but directly between users who are also running nodes (see Figure 3).

3. It does not require a central administrator; instead, blockchain nodes communicate directly with each other

This is a communication method called P2P, which allows devices at the edges of a network to communicate directly with each other without requiring any central administrator. Think of it as "instead of playing online games over the internet, connecting directly to your friends using a communication cable." You can imagine a situation where users running Bitcoin nodes share the blockchain among themselves.

Let's consider a scenario where a node responsible for ledger management generates a new block.

Each node downloads the blockchain and keeps a local copy, but this is essentially just a local copy. If someone makes changes, those changes must be reflected in the master data. For example, if a new block is generated, information about "this block has been added" needs to be directly communicated to other nodes.

Other nodes that receive the change information will verify whether the data is valid. Once a certain amount of approval is obtained, the block is considered "accepted" and becomes part of the blockchain. These nodes constantly repeat the processes of "sending, receiving, and verifying," which means that Bitcoin transactions are operating 24/7.

I hope I've conveyed the nuance that Bitcoin and blockchain aren't "somewhere out there," but rather are "simultaneously shared by everyone."

Q: What is mining?

A: Mining is the process performed by nodes (called miners) that are responsible for managing the ledger. This process involves an enormous amount of hash calculations. Let's take a closer look at what that means, step by step.

First, let's consider the requirements necessary for blockchain to operate under a decentralized model.

・ There should be a mechanism that explicitly grants the right to connect new blocks
・One of the minors must understand and agree that certain rights have been granted to another minor
There are motivations for Minor to continue this activity

Only when all of these conditions are met simultaneously can a blockchain continue to operate in a decentralized manner. Bitcoin achieves this by combining a "reward system" and "cryptography."

The right to write the next block is given to "the person who finds a value that, when hashed, results in a value less than or equal to a certain threshold." Remembering the property of hash functions, which states that "it's easy to compute but impossible to reverse," you should understand that finding this solution requires nothing more than exhaustive trial and error. There are no shortcuts. The only way is to have computers perform calculations relentlessly.

The miner who successfully completes this treasure hunt generates a new block, and at this time, they are allowed to include a transaction that gives them newly generated bitcoins. In other words, it's a reward for their hard work. This is a privilege granted only to miners, and it serves as a motivation for people around the world to engage in mining.

Please also note that the reward system for miners also serves as a mechanism for issuing currency. The issuance of Bitcoin can only occur through mining and cannot happen through any other means. This is an excellent system for controlling the circulation of currency, and it also incorporates mechanisms to prevent the value of the currency from decreasing (a process known as halving, which will not be discussed in detail here).

Meanwhile, why do other miners so readily admit that they lost in the treasure hunt? Even if someone broadcasts a successful transaction, it would be better to simply ignore it. However, this doesn't happen. It is clear that following the rules and quickly moving on to the next mining process is more beneficial than sulking after just one unsuccessful attempt.

Remember that blockchains can sometimes fork. What happens if a chain is created that doesn't connect to valid blocks, or if it arbitrarily connects invalid blocks? Of course, other nodes will not extend such a chain. Ultimately, this would result in a chain that is not considered a valid "Bitcoin" chain, and the user would not receive the benefits of their fraudulent or self-serving actions (see Figure 4).

4. A chain extended arbitrarily will not be recognized by other nodes

In this way, miners contribute "computational power" and demonstrate to the entire community that they have successfully completed specific tasks according to the rules.

Each miner diligently repeats this process in order to earn Bitcoin as a reward, and as a result, it contributes to the advancement of the entire blockchain. Isn't that wonderful?

To be continued in the next issue!

In this issue, we touched upon the basic concepts of Bitcoin. The next issue will feature content designed to further deepen your understanding of Bitcoin. Please look forward to it!

(Written by Miru)

(Featured in the Spring issue of Up&Coming '24)



Previous page
    
Index
    
Next page

Up&Coming

LOADING