[Transfer] "Understanding of AVM and Some Possible Imaginations"

This article refers to the Chinese version of Wizz, link: https://docs.wizz.cash/wizz-wallet/v/zh/avm-bai-pi-shu-zhong-wen-ban...

When Bitcoin was first born, it was used as a store of value, and other functions such as exchange medium and transmission operation code were relatively minor.

Due to some historical reasons, in order to maintain the purity of Bitcoin's value storage, some simple logical functions that could have been performed were disabled.

With the birth of the ordinals protocol, this ban began to slowly loosen.

People are not satisfied with the creation of the Bitcoin chain as just a store of value. Is there a place that can be trusted more than the Bitcoin chain? Once Pandora's box is opened, it can never be closed again.

The ordinals protocol quickly took root in the fertile land of the Bitcoin chain, and gave birth to very interesting protocols such as brc20, arc20, and runes. With the development of ordinals and these protocols, a new ecology has been formed-Bit Ecology.

Since Bitchain still has restrictions on opcodes, the current Bit ecosystem is an overlay protocol built on Bitchain - creating and managing digital assets through Bitcoin transactions, while the overlay protocol indexer tracks and manages the life cycle of digital assets by reading data directly from special Bitcoin transactions.

The current Bitchain protocol can only meet the basic functions of the asset protocol: creation and issuance, transfer query, and destruction.

The financial instruments in the real world are dazzling, and fellow Bitchain surfers are not satisfied with the current basic functions. People are eager for more convenient and trustworthy technologies and applications.

AVM is the light that the current Bit ecosystem expects the most.

AVM attempts to propose a solution that allows the existing Bit protocol to meet some advanced functions, such as: pledge, lending, payment system, etc.

The simplified execution order is as follows:

1. Upload

1. Construct a transaction and write the code logic to be executed in the constructed transaction.

2. Upload the transaction containing the code logic to the RPC node. After the node recognizes the code logic that meets the requirements, it will be marked with the index and uploaded to the chain normally.

3. The on-chain confirmation is completed and the code logic is uploaded.

II. Execution

1. Add a pure isolated code environment that can run complex logic outside the BitChain.

2. Construct a transaction, use the previously uploaded code logic name in the transaction, and upload it to the chain normally.

3. When the RPC node broadcasts, it recognizes that the transaction calls the previous code, and then runs the logic in the code environment, changes some parameters, completes the code logic operation, and then uploads it to the chain.

4. After the chain confirmation is completed, the code logic execution is completed.

The maintenance method of the pure isolated code environment is similar to the current RPC node. Everyone can run their own environment in a distributed manner and verify the results.

It has to be said that this is an attempt to save the original functions of the BitChain to the maximum extent and the complex logic execution.

After the successful implementation of this solution exploration, it will not only be limited to the atom protocol, but the entire Bit ecosystem will take a step forward in exploration.

Original link: https://x.com/qingshan857/status/1796137063303319790

#atomicals #Quark