Cregis Research: Interpreting the past and present of BRC-20

1. BRC-20 background and development history

With the rapid development of blockchain technology, various cryptocurrencies and token protocols are emerging. While Ethereum’s ERC-20 token protocol became the industry standard, the Bitcoin community also ushered in the experimental BRC-20 token standard. **The BRC-20 standard adopts a simple and safe design concept to realize the deployment, minting and transfer of tokens. Based on the Bitcoin network, BRC-20 realizes the issuance and management of tokens by recording data on Satoshis. **This article will introduce the principle and application of BRC-20, as well as its advantages and disadvantages, in order to provide readers with a comprehensive and in-depth understanding.

For a long time, people have felt that the Bitcoin ecosystem is not scalable compared to Ethereum, because except for transfer transactions, almost no data can be stored on the block. The reason why BRC-20 has exploded recently is that it is a token standard based on Bitcoin, which introduces NFT and other tokens into the Bitcoin ecosystem.

Important Milestones:

In January 2020, Bitcoin Core developer Pieter Wuille released BIP 341 and BIP 342 Bitcoin Improvement Proposals, bringing possibilities to the Bitcoin ecosystem.

In June 2022, Casey Rodarmor made a technical extension and expansion of Tap in BIP342, and proposed new Bitcoin improvement schemes ordinal (ordinal number) and inion (inscription), which mainly realized the function of storing data on the Bitcoin chain.

In March 2023, Domodata conducted an ERC-20 experiment. Through the Ordinal protocol and inions function, it stored json data on the Bitcoin chain to prove the status of the token balance under the chain, and realized the function of issuing tokens to the Bitcoin ecosystem in a disguised form.

Domodata (BRC-20 author) believes that the BRC-20 standard is just an interesting experiment, showing us that it is possible to prove the state of off-chain token balances by creating on-chain inscriptions. He feels that this is just an attempt, and the BRC-20 standard should not be considered the only standard. At the same time, he encourages people in the Bitcoin community to work together to patch and optimize the standard, and the author of BRC-20 also believes that issuing assets on Bitcoin currently exists. with a better plan.

2. Pre-knowledge of BRC-20

BRC-20 is a token standard based on the Ordinal protocol. The Ordinal protocol is an extension protocol for the Bitcoin network that allows data to be inscribed on Bitcoin Satoshi. Based on the Ordinal protocol, BRC-20 can realize the issuance, transfer and transaction of tokens.

The principle of BRC-20 is relatively complicated, and it is necessary to understand some concepts on the Bitcoin network, such as Satoshis, Ordinal, Inion, and Taproot upgrades. Among them, Satoshi is the smallest unit of the Bitcoin network. Ordinal theory numbers each Satoshi, and Inion engraves data on each Satoshi. The technology related to Taproot upgrade is the mechanism to control these Inions. Together, these concepts constitute the operational logic of the BRC-20 standard.

(1) Satoshis (Cong)

Satoshis are not bitcoins, but the smallest unit of bitcoins. One bitcoin can be divided into 100 million satoshis.

(2) Ordinal (serial number)

Ordinal number theory is a protocol for assigning serial numbers to satoshis (bitcoin's smallest subdivision) and tracking those satoshis as transactions are spent. These serial numbers are very large numbers, such as this 804766073970493. Each satoshi, which is ¹⁄₁₀₀₀₀₀₀₀₀ of one bitcoin, has a serial number.

ord is an open source project (this project includes several parts, one is the ordinal scheme to improve Bitcoin, and the other is the ord tool developed with rust, which integrates the functions of index, block browser and command line wallet. Later we It will explain how to burn your own inscriptions through the ord toolkit.

Cregis Research: Interpreting the past and present of BRC-20

(3) inion (inscription)

**The Ordinal protocol implements extended functionality by assigning a unique number to each satoshi and adding notes. This process is called inscription (inion), which is to give derivative meaning to Satoshi. ** Annotation means that the content of the inscription is written in the transaction witnesses (witnesses), so that Satoshi can write any type of content. It is safer to limit the size of the inscription content to less than 3.9M, because the content of the inscription is included in the transaction, so the larger the content, the higher the transaction fee for the inscription transaction.

Cregis Research: Interpreting the past and present of BRC-20

We can create our own Inions by downloading Bitcoin Core and ord.

#install ord --proto '=https' --tlsv1.2 -fsLS | bash -s #Print ord version number ord --version

Create bitcoin core wallet

ord wallet create

Get wallet address

ord wallet receive #View pending transactions ord wallet transactions #Create Inions (inscriptions) ord wallet inscribe --fee-rate FEE_RATE FILE

send inscription

ord wallet send --fee-rate<FEE_RATE>

<INION_ID> (4) BIP341 and BIP342

BIP341 and BIP342 are two proposals related to Bitcoin improvements. The full name of BIP is Bitcoin Improvement Proposal (Bitcoin Improvement Proposal), which is used to describe new features, processes or specifications of the Bitcoin protocol, client or environment. BIP341 and BIP342 are related to the Taproot upgrade, the main purpose is to improve the privacy and scalability of Bitcoin, rather than directly used to write data to the blockchain, but the Taproot upgrade can use Bitcoin scripts and transfer to the blockchain through transactions. The cost is written into the data, laying a technical foundation for the brc-20 standard.

  • **BIP341: **Segregated Witness (segregated witness) output, this proposal defines a new output type that implements the Taproot function. This allows Taproot-enabled transactions to coexist in a block with other types of transactions while maintaining backwards compatibility. BIP341 provides detailed descriptions and specifications for new output types.
  • **BIP342:**Tap, this proposal describes the scripting language inside Taproot, called Tap. Tap is based on Bitcoin's existing scripting language and has been extended and optimized. BIP342 defines the syntax, operating environment and execution rules of Tap. These improvements make it more efficient and private to execute complex smart contracts on the Bitcoin network.

Conventionally we can use the OP_RETURN opcode to append a small piece of data (up to 80 bytes) to the transaction output, thus permanently writing the data into the Bitcoin blockchain. If we need to store more data, we need to use the method of data segmentation, create multiple transactions containing OP_RETURN, and write a piece of data to each small block, this method will greatly increase the transaction fee.

When BIP341 and 342 come out, we can use P2WSH (Pay-to-Witness--Hash), P2WSH is part of Segregated Witness (Segregated Witness), which allows you to create a Bitcoin address that represents Witness-(witness script ), to spend funds from this address, an input that satisfies the script's unlocking conditions must be provided. The specific process is as follows:

  1. Create a witness script that contains the data you want to store. You can embed data in scripts using the OP_PUSHDATA opcode.

  2. Calculate the hash value (SHA-256) of the witness script.

  3. Create a P2WSH address using the hash value. 4. Create a Bitcoin transaction to send funds to the P2WSH address.

  4. Broadcast the transaction to the Bitcoin network.

When we conduct a transaction, the unlocking script is separated from the transaction body and stored in the Witness (witness data). With this technology we can store arbitrary data up to 4MB in the Witness part of any bit block. This constitutes the upper limit of 4MB for any Bitcoin Inions (inscriptions).

3. The technical principle of BRC-20

Based on the BRC-20 standard of the ordinal inscription, Satoshis (Satoshi) is used to store and manage various information of tokens, such as token name, symbol, total amount, etc., and the information is encoded in JSON format and written into Satoshis (Satoshi) Among them, inscriptions (inions) are formed one by one. Finally, by summarizing the activities of all inions (inions), the balance status of the BRC-20 pass can be found, thereby realizing the deployment, minting and transfer of tokens.

Cregis Research: Interpreting the past and present of BRC-20

BRC-20 is an experimental token standard based on Bitcoin. The core idea is to create, mint and transfer BRC-20 tokens through ordinal theory to realize asset management on the Bitcoin blockchain. The experiment mainly includes the following aspects:

Cregis Research: Interpreting the past and present of BRC-20

Deploy: To create a BRC-20 pass, you need to set pass parameters, such as token symbol, maximum supply and minting limit, etc. The deployment process is only used to initialize the BRC-20 and does not affect the state.

{ "p": "brc-20", "on": "deploy", "tick": "ordi", "max": "21000000", "lim": "1000" } ***************Notes*********\ ******* "p": "brc-20": specifies the protocol as BRC-20, which helps other systems to identify and process BRC-20 events. "op": "deploy": Specifies that the operation type is deployment. "tick": "ordi": Specifies the 4-letter identifier of the token. Here, "ordi" is used as an example in the demo document. Its maximum supply has been reached. "max": "21000000": Set the maximum token supply to 21,000,000. "lim": "1000": Sets the minting limit per ordinal to 1000.

Minting (Mint): Use the minting function to mint a certain number of BRC-20 tokens. The minting operation provides the corresponding balance to the original owner of the minting function. If the token has a minting limit, please make sure that the limit is not exceeded.

{ "p": "brc-20", "on": "mint", "tick": "ordi", "amt": "1000" } ***************Notes*********\ ******* "p": "brc-20": specifies the protocol as BRC-20, which helps other systems to identify and process BRC-20 events. "op": "mint": Specifies that the operation type is mint. "tick": "ordi": Specify the 4-letter identifier of the token, here we use "ordi" as an example. "amt": "1000": Set the number of minted tokens to 1000.

Transfer: Transfer a certain amount of BRC-20 tokens through the transfer function. A transfer operation deducts tokens from the sender's balance and adds them to the receiver's balance. The transfer function only takes effect on the first transfer.

{ "p": "brc-20", "on": "transfer", "tick": "ordi", "amt": "100" } ***************Notes*********\ ******* "p": "brc-20": specifies the protocol as BRC-20, which helps other systems to identify and process BRC-20 events. "op": "transfer": Specifies that the operation type is transfer. "tick": "ordi": Specify the 4-letter identifier of the token, here we use "ordi" as an example. "amt": "100": Set the number of tokens transferred to 100.

Status tracking: We create on-chain inscriptions (inions) and store BRC-20-compliant json data in them, which can prove the status of off-chain token deployment, minting, and transfer. The balance status of BRC-20 tokens can be found by summarizing the activity of all inions on the chain.

Cregis Research: Interpreting the past and present of BRC-20

4. Application and operation of BRC-20

(1) How to create a BRC-20 wallet

Cregis Research: Interpreting the past and present of BRC-20

  1. Download and create a wallet: ordinalswallet.com 2. Click on your wallet profile. 3. Click "Receive". 4. Copy the wallet address. 5. Go to any exchange that supports taproot and withdraw some BTC to this address. (Binance, Bybit, etc.)

(2) How to buy BRC-20 tokens

Cregis Research: Interpreting the past and present of BRC-20

  1. Click on the BRC20 tab and select any token from the list. (Take $PEPE as an example) 2. Now check the number of tokens, the price of each token. Click "Buy Now". 3. Confirm the password. 4. Click "Buy Now" and confirm the transaction.

(3) How to mint your own BRC-20 tokens

Cregis Research: Interpreting the past and present of BRC-20

  1. Go to the "Inscriptions" section. 2. Select "BRC-20", enter the token abbreviation (4 letters) and quantity, and click "Submit". 3. Select the network fee and click "Inscription".

(4) How to mint other tokens for free

Cregis Research: Interpreting the past and present of BRC-20

  1. Go to the BRC-20 list and see the progress bar under each token supply. (If the progress bar is not 100%, then you can mint the token). 2. Click Token >> Check Details >> Mint. 3. Set Fee >> Inscription. 4. Confirm the transaction.

5. Risks of BRC-20

(1) Deviating from the principle of decentralization

The issuance and usage mechanism of BRC-20 tokens results in a certain degree of centralization. This is because BRC-20 tokens need to rely on specific platforms and exchanges for issuance, trading and management, and these platforms and exchanges often have more resources and power. This is contrary to the core spirit of Bitcoin decentralization, because the goal of Bitcoin is to achieve a decentralized, fair and open currency system.

(2) Lack of fairness and security

Inscriptions on BRC-20 tokens may lead to unfairness on a first-come, first-served basis. This is because on the Bitcoin network, miners can choose to process the transactions they want to process, and the first-come, first-served mechanism of the inscription of BRC-20 tokens makes miners more inclined to process transactions that pay higher fees, and ignore other transactions. This may result in some users being excluded because they cannot afford high transaction fees. In addition, BRC-20 tokens are less secure than the Bitcoin network itself, as it relies on second-layer technology on top of the Bitcoin network, which may have security loopholes and risks.

(3) Risk

BRC-20 tokens may trigger MEV strategic attacks called time-bandit attacks. This is because the transaction and application of BRC-20 tokens on the Bitcoin network may give miners the opportunity to exploit the MEV (Miner Extractable Value) strategic attack to seek benefits by manipulating the order of transactions. This negatively affects the overall security and reliability of the network. In addition, BRC-20 tokens may also pose the risk of a regulatory crackdown on Bitcoin. This is because the issuance and trading of BRC-20 tokens may involve some illegal activities, such as money laundering, financial fraud, etc., causing governments and regulators to worry about the entire Bitcoin network and take measures to suppress it.

6. BRC-20 Investment Suggestions

Although the BRC-20 protocol is currently in the experimental stage, the BRC-20 protocol provides a new token implementation method for the Bitcoin community. The emergence of the BRC-20 protocol will help promote the innovation of the Bitcoin ecosystem and attract more Developers and users join the Bitcoin community. In the future, as the Bitcoin community optimizes and improves the BRC-20 protocol, it will play a greater role in the cryptocurrency field.

Some of the current challenges. **First of all, compared with Ethereum's ERC-20, BRC-20 cannot interact with smart contracts, and cannot perform automated operations, such as automatic transfers or dividends. **This limits the application potential of BRC-20 in certain scenarios. Its application in decentralized finance (DeFi) and other application scenarios may be limited. In addition, since the BRC-20 protocol is still in the experimental stage, its scalability and compatibility still need to be further explored. **

As an experiment based on the Ordinal protocol, BRC-20 is essentially an application experiment of the Ordinal protocol, which provides us with new ideas. Investors should have a long-term perspective when investing. There may be more optimizations and innovations based on the Ordinal protocol in the future, and investors should pay attention to these development trends to make more informed investment decisions.

View Original
The content is for reference only, not a solicitation or offer. No investment, tax, or legal advice provided. See Disclaimer for more risks disclosure.
  • Reward
  • Comment
  • Share
Comment
0/400
No comments