Author: Pignard

Review: 0xmiddle

Source: Content Association - Investment Research

What is the first principle?

First principle thinking refers to returning to the most basic conditions of things, breaking them down into their elements for deconstruction and analysis, and thus finding the best path to achieve the goal. This principle originated from the ancient Greek philosopher Aristotle and became known to the public due to Elon Musk's admiration. This principle also has something in common with the "Tao" in Eastern philosophy.

In 2014, Elon Musk spoke about his first principles approach to decision making in his graduation speech at the University of Southern California’s business school:

"Maybe you've heard me say that you should think about things from a physics perspective, which is the first principle. That is, don't reason by analogy. You break things down to the most basic elements you can imagine, and then you start reasoning from there. This is a good way to determine whether something makes sense. This kind of thinking is not easy, and you may not be able to think this way about everything because it takes a lot of effort. But if you want to create new knowledge, then this is the best way to think. This framework was proposed and developed by physicists, and they used it to find counterintuitive things, such as quantum mechanics. So it's a very effective and powerful method. In any case, you must do it this way as much as possible."

Musk took the vacuum capsule high-speed rail as an example. If you use comparative thinking or empirical thinking to design new train products, most people's idea is to improve the existing functions, make the power stronger, and the fluid mechanics better. However, if you use the first principles to analyze product demand, you have to go back to the essential purpose of transportation: transporting more goods from point A to point B. This is the original purpose of manufacturing trains and other transportation tools. It is not necessary to use traction to achieve upgrades. Supported by the first principles, Musk proposed to use the mode of magnetic levitation plus low vacuum to create a vacuum capsule high-speed rail.

First principles in blockchain

So what are the first principles of blockchain?

Dr. Xiao Feng said in his speech at the closing ceremony of the 2024 Hong Kong Web3 Carnival: The first principle of blockchain is a new accounting method.

"Blockchain, which came out in 2009, is a distributed ledger (DLT). It records digital value and network value, and it is no longer recorded in a private ledger, but in an open and transparent global public ledger. Everyone records together, and all stakeholders record in one ledger. This is the first principle of blockchain, a transparent and open "global public ledger". All Web3 innovations are based on the first principle. "

The author agrees with Dr. Xiao Feng’s point of view and further elaborates on the essence of blockchain based on this point of view.

The three words "blockchain" can be broken down into block + chain. Since the first principle of blockchain is a way of accounting, are blocks and chains really necessary?

Before answering this question, let us first look at why Bitcoin, as a distributed ledger, needs blocks and chains.

In Bitcoin, a block is a digital record containing a set of transaction information, which can be understood as a page in the ledger. A hash value can be calculated using a hash function. The characteristic of this hash value is that as long as the content of the block changes slightly, the hash value will become different. Each block contains the hash value of the previous block. It can be understood that the first line of the N+1th block must be written with the hash calculated by the Nth block, thus forming an unalterable chain structure.

In Bitcoin, the mechanism for synchronizing ledgers is the PoW consensus mechanism. When transactions occur in the Bitcoin network, these transactions are placed in the memory pool (mempool). Then, miners select a group of transactions from the memory pool and try to form a new block. To do this, miners need to find a specific value in the random number and combine this specific value with the block data to generate a hash value that meets the network difficulty target. This process is called "mining". Whoever calculates the qualified hash value first obtains the right to record the account, that is, the mining is successful. The difficulty target is a dynamic value that is adjusted every 2016 blocks (approximately every two weeks) to keep the average block time of Bitcoin at around 10 minutes.

Blocks and chains are the basic structure of Bitcoin, and PoW is the consensus mechanism of Bitcoin. The combination of the two realizes the decentralized accounting function of Bitcoin. However, from the essence of blockchain, as long as decentralized accounting can be achieved, accounting can be non-block (such as single transaction consensus) and the ledger can also be a non-chain structure (such as DAG). Therefore, blocks and chains are not necessary, but the three words blockchain have been deeply rooted in people's minds and have become a synonym for decentralized ledgers represented by Bitcoin, Ethereum, and Solana.

After all, Bitcoin is a product of 2009. With the continuous development of blockchain research, although most blockchains still follow the traditional block + chain structure, some blockchains designed based on first principles have also emerged. They start from the most fundamental decentralized accounting problem and have unique data structures and consensus. This article takes Sui and Arweave AO as examples.

Sui: The Way of Water

Sui is a Layer1 redesigned and built based on first principles. The main team came from Facebook's (later renamed Meta) disbanded Diem and Novi projects. Sui's name comes from the Japanese word for water, and the influence of water can also be seen in its brand image.

Sui uses Sui Move to write its smart contracts, which adopts an object-based data model where all transactions take objects as input and produce new or modified objects as output, allowing independent objects to process transactions in parallel.

In Sui Move, each smart contract is a module, which consists of functions and structure definitions. Structures are instantiated in functions and can be passed to other modules through function calls. Structure instances are stored at runtime as objects. There are three different types of objects in Sui, namely owner objects, shared objects, and unchangeable objects.

Sui has no blocks, transactions are verified individually, and whether a transaction passes Sui's sorting and consensus mechanism depends on whether the objects in the transaction are shared or non-shared.

If the transaction does not involve a shared object, it is called a simple transaction. Sui uses the lightweight algorithm of Byzantine Consistent Broadcast, which refers to the design concept of FastPay. The client broadcasts the transaction to all Sui validators, collects the validators' equity-weighted votes, generates a certificate, and then broadcasts the certificate back to the validators. The validators who receive the certificate can directly execute the transaction.

If the transaction involves a shared object, it is called a complex transaction. Sui uses the Narwhal & Bullshark consensus mechanism. Narwhal is a mempool module responsible for ensuring the availability of transactions. Narwhal operates based on rounds, and each round is divided into two steps, namely the distribution of transactions (synchronizing transactions to other nodes) and the verification of transactions (collecting votes from other nodes on transactions). After multiple rounds, the transactions will form a directed acyclic graph (DAG). Bullshark is a consensus module responsible for sorting transactions in the DAG in Narwhal.

Sui uses DAG for transaction propagation and consensus, which reduces transaction latency and network overhead during communication. At the same time, in order to maintain the integrity and order of historical information, Sui sorts transactions into checkpoints in a separate process, and the checkpoints are linked to each other in a linear manner, providing a structure similar to traditional blockchain for storing and accessing historical data.

But in fact, Sui’s data structure is completely different from traditional blockchains. The transactions that Sui groups into checkpoints have been finalized, while traditional blockchains group transactions that have not yet been finalized into blocks.

Arweave AO: The Way of the Void

Water has no fixed shape, but it is tangible after all. Just like Sui still retains the consensus mechanism in the traditional blockchain, and finally organizes the transaction data into the block + chain structure of the traditional blockchain. AO completely subverts the paradigm of the traditional blockchain, with no blocks, no chains, and no consensus. Compared with water, AO is closer to the sky (Sora in Japanese) in symbolic meaning.

AO is a distributed, decentralized, actor-oriented computing system based on Arweave. The first principle it is based on is not to build a decentralized ledger, but to build a decentralized computing system. It is roughly similar to the relationship between an application and an operating system.

The computing system can be divided into three problems: storage, computing, and communication. Web2 has very mature solutions for all of them. The hard part is decentralization. One idea is to build a decentralized storage network, a decentralized computing network, and a decentralized communication network. This is exactly the idea of ​​the decentralized technical architecture of computing, storage, and communication proposed by Gavin Wood, the co-founder of Ethereum in 2014. Ethereum (smart contracts) is responsible for decentralized computing, Swarm is responsible for decentralized storage, and Whisper is responsible for decentralized communication.

AO also consists of three units:

  • Messenger Unit: responsible for message communication, passing messages to computing units and coordinating to calculate output results;

  • Scheduler Unit: responsible for scheduling and message sorting, and uploading messages to Arweave;

  • Compute Unit: Responsible for processing calculations and uploading calculation results to Arweave.

A process on an AO consists of a group of units, each of which can be used as a horizontally scalable subnet to execute a large number of transactions at the same time, thereby achieving high-performance computing, but each unit is not a decentralized network. In fact, in the entire AO architecture, the only truly decentralized thing is Arweave, the underlying storage network.

The process on AO has the property of verifiability by uploading its holographic data to Arweave - because anyone can restore the process on AO through the holographic data. This is actually a storage consensus paradigm (SCP), that is, as long as the storage is immutable, the transactions above are traceable, then no matter where the application is calculated, the same result will be obtained.

AO does not have a consensus mechanism, but through SCP, the computing layer is separated from the storage layer, making the storage layer permanently decentralized, while the computing layer maintains the traditional computing layer model. Therefore, there is no type of restriction on the computing scalability on AO. Not only can blockchain ledger services with EVM, WASM or Move virtual machines as the core be implemented, but even any existing Web2 services can be rebuilt into a decentralized version on AO.

Summarize

The first principles are to think about the essence of things from the perspective of physics, and then design from the essence up layer by layer. Although Sui and Arweave AO are both blockchains designed based on the first principles, their essences are different, so they have designed completely different architectures.

The essence of Sui is a decentralized ledger service, which is benchmarked against high-performance Layer1 such as Solana. Therefore, Sui has designed an object-oriented data model around "faster ledger service", a dual consensus mechanism, and parallel execution of transactions based on state access, which improves scalability while reducing latency and costs. This allows developers to quickly and cost-effectively develop applications based on Sui Move smart contracts.

The essence of Arweave AO is a decentralized computing system, or decentralized cloud service, which is the infrastructure for running ledger services. Therefore, AO proposed SCP around the "verifiable distributed computing system", that is, computing off-chain and storing on-chain to achieve the interconnection and collaboration of large-scale parallel computers. The user experience is almost the same as traditional cloud services, but behind it is a decentralized computing system.