Runes Protocol is about to be launched. Analyze its principles, distribution rules and estimated costs from a technical perspective

avatar
Trustless Labs
5 months ago
This article is approximately 1788 words,and reading the entire article takes about 3 minutes
What should you know about Runes Protocol? What are the hot spots?

Original author: Trustless Labs

There are less than 3 days left until block 840,000, the BTC halving event. This also means that the Runes protocol, which the entire BTC ecosystem has been waiting for, is about to be launched. As the largest fair launch in the BTC ecosystem, although it may face huge pressure from competition, it is still the largest and most public alpha opportunity in the crypto world.

Although platforms such as OKX Wallet and Unisat have already provided public etching platforms, if you want to get more chips in the competition, running your own Bitcoin full node and index, and understanding the relevant principles of Runes operation, so as to optimize it in a targeted manner will bring certain advantages.

In this article, Trustless Labs will introduce the Runes protocol from three aspects: technical implementation, distribution rules, and estimated costs.

Runes protocol is an asset protocol deployed by Casey, the founder of Ordinals, on the Bitcoin network to issue homogeneous tokens. The fundamentals of Runes are that it has inherited the legitimacy of the Ordinals protocol and has become the next window for fair distribution of assets on the BTC chain. The Ordinals community needs to rely on Runes to fight for the pricing power of BTC ecosystem token assets. Casey even called for suicide if the market value of Runes ecosystem was less than 1 billion US dollars one month after its launch...

It can be expected that after the halving, the Runes protocol will bring very active on-chain interactions. Hot topics to watch include but are not limited to:

  • Caseys hard-coded genesis rune in the Runes protocol;

  • Runes token airdrops corresponding to NFTs such as RSIC and Runestone;

  • Community-led deployment and fomo of the Runes token;

principle

The BRC 20 method is called engraving, which is to write the token data into the signature of the isolated witness and bind the data to a specific satoshi. In essence, this is to use BTC as storage space, and the transfer is completely dependent on the BRC 20 index ledger under the chain. In order to ensure the legality of the transaction, the BRC 20 transfer must first make the corresponding token transferable through engraving, and then transfer the corresponding engraved UTXO through a second transaction to complete the transfer.

The atomics method is called coloring. The balance of ARC 20 is represented by the number of satoshis under a UTXO, strictly following the correspondence of 1 token = 1 sats. Therefore, the transfer of Arc 20 can be completely processed as a general transaction by the BTC network. The index is relatively simple and can use the native features of BTC.

The Runes method is called etching. The balance of a Runes is bound to a UTXO. The data on the balance, token symbol, and other information are recorded in the OP-RETURN of the transaction. OP-RETURN can be regarded as a note of the transaction (maximum 80 bytes). The json contained in its data marks how many Runes tokens are represented by the utxo under the BTC transaction. The Runes indexer is required to identify these tokens.

In short, Runes is bound to BTC UTXO, or BTC UTXO is regarded as a pointer to the Runes token, and OP-RETURN is the assignment statement of the pointer.

When the Runes token is transferred, the UTXO representing the Runes token needs to be used as input, the amount of the transfer is written in the OP-RETURN, and the specified utxo is used as the first output. The set number of Runes tokens will be transferred to the target address of utxo 1, and the remaining Runes tokens will be automatically bound to other utxo such as utxo 2 in sequence. Utxo 1 can be output to someone elses address, and utxo 2 can be output to yourself as change, thus completing a Runes transfer. At the same time, Runes also comes with a burn function, which can declare the destruction of tokens.

Unlike BRC 20, which only uses BTC to store transfer records, Runes tokens are strictly UTXO-bound, allowing them to apply the various benefits that come with BTC UTXO; this method is similar to ARC 20, but the difference is that Runes utxo can represent any number of tokens, while the number of ARC 20 is strictly related to the number of sats contained in the bound UTXO (difficult to split); but at the same time, ARC 20 is less dependent on the indexer, and the legitimacy of Runes token transfers still requires the records of the Ord index ledger.

struct Runestone {
edicts : Vec<Edict>,
etching: Option<Etching>,
mint: Option<RuneId>,
pointer: Option<u 32>,
}
struct Edict {
id: RuneId
amount: u 128,
output: u 32,
}

The flexibility of JSON data under OP-RETURN allows batch transfer of Runes tokens in one operation, including transferring different types of Rune assets such as RuneA and RuneB in the same Bitcoin transaction.

Distribution rules

Under the initial distribution process of Runes tokens, token deployers first need to define their token information and distribution rules.

Token information This includes the smallest split unit, asset name, name separator, symbol, etc. It should be noted that the name of the Runes asset has no limit on length and includes • This type of separator may be more complicated, so be sure to identify it when minting new assets.

struct Etching {
divisibility: Option<u 8>,
premine: Option<u 128>,
rune: Option<Rune>,
spacers: Option<u 32>,
symbol: Option<char>,
terms: Option<Terms>,
}

In the distribution rules section, Runes allows deployers to pre-allocate tokens to themselves, so be careful to identify whether it is a fair launch. This feature can be used for the distribution of assets such as Runestone and Rsic.

Under the Terms data of the distribution rules, there are data such as the limit on the number of tokens that can be mined at a time, the total number of tokens that can be mined, and the start and end blocks of minting. Here, the total number of mints can be set to unlimited, with a limited time and unlimited quantity, which is the case for the rune No. 0 UNCOMMON•GOODS deployed by casey.

struct Terms {
amount: Option<u 128>,
cap: Option<u 128>,
height: (Option<u 64>, Option<u 64>),
offset: (Option<u 64>, Option<u 64>),
}

At the same time, the users spontaneous minting process needs to write the Runestone data type under OP-RETURN (not related to the rune NFT Runestone). A transaction can only be mined once, so if you want to get more chips, you need to divide it into multiple UTXOs under one address.

Runes will start at block 840000, and the ord index has been updated to the latest version 0.18.1. It now fully supports runes token query, etch (equivalent to Brc 20 deploy), mint and other functions. At the same time, Casey also said that a part of the Runes tokens will be deployed hard-coded into the ord indexer and activated at the halving block. These assets are completely fairly distributed and can be minted freely. Casey has mentioned names such as COMMUNISTRUNE, ANARCHISTRUNE, and CYPERPUNKRUNE. Now the creation rune named UNCOMMOM.GOODS can be seen in the index.

Runes asset names are restricted by the Ord index, 13-26 character names can be freely deployed after 840000 blocks, and 12 character names are gradually unlocked. Shorter names are unlocked every 17,500 blocks (about 120 days), so it takes 3 years to mint to 4 character tokens.

Although the extremely long names in the early days were not conducive to hype, fortunately, special symbols can be designed to represent assets. This symbol complies with the Unicode standard, so many emoji expressions can be written. Choosing a good emoji is also something you need to pay attention to when deploying memes.

Estimated costs

The current Runes protocol code has been basically finalized and has been running on the testnet for a while, so some cost predictions can be made. By running the ord index on signet, we can see that as many as 497 runes test tokens have been deployed on the signet testnet, and as many as 963 on the testnet testnet. At the same time, we have also conducted some experiments and tests on signet to measure the cost and progress of mint.

Signet Testnet Runes 0 ~ 9:

THESE•WILL•BE•WORTHLESS
GREG•GREG•GREG
CUBS•FIRST•RUNES•TOKEN
AMAZING•KODA•FART
SORA•PARTY•STARTS•FIVE•DOLLARS
WAKE•N•BAKE
RECURSIVE•ROBOTS•RUNES•TEST
FRENCH•WON
SATOSEA•XYZ

We have performed multiple mint and ord commands for runes tokens on the signet testnet:

$ ord --index-runes --bitcoin-rpc-password xxx --bitcoin-rpc-username xxx -s wallet mint --fee-rate 1 --rune HARRY•POTTER•OBAMA•SONIC•IO•INU
{
rune: HARRY•POTTER•OBAMA•SONIC•IO•INU,
pile: {
amount: 1000,
divisibility: 0,
symbol: 🧹
},
mint: 645829 bdaf 105 cce cc0 12629 a 3 bbb 6 e 9 dfcfe 9 2fa 09499 ea 54 b 8709 2c 9100946
}

The transaction is as follows: https://mempool.space/zh/signet/tx/645829bdaf105ccecc012629a3bbb6e9dfcfe92fa09499ea54b87092c9100946

Runes Protocol is about to be launched. Analyze its principles, distribution rules and estimated costs from a technical perspective

Specify destination as the address to receive Runes tokens:

$ ord --index-runes --bitcoin-rpc-password xxx --bitcoin-rpc-username xxx -s wallet mint --fee-rate 1 --rune MAOBY•THE•CUTEST•CAT --postage 1000 sat --destination tb 1 p 43 k 8 gxevpc 0x 3 hthv 9 dm 33589 gecn 8 mr 4 rk l3 03 js 3 gtvmpehltqg 2 mmc 4
{
rune: MAOBY•THE•CUTEST•CAT,
pile: {
amount: 100,
divisibility: 0,
symbol: 🐈
},
mint: 32125 d 247 a 282 ebf 53 b 89 3a 17 f 3 c 2c 99 a 774774923 3d c 010 bd 9 ae 2934540 c 981
}

The transaction is as follows: https://mempool.space/zh/signet/tx/32125d247a282ebf53b893a 17 f 3 c 2c 99 a 774774923 3d c 010 bd 9 ae 2934540 c 981

Runes Protocol is about to be launched. Analyze its principles, distribution rules and estimated costs from a technical perspective

It can be seen that a mint transaction consumes about 230 vB in size. Referring to the market heat to speculate the fomo sentiment, if the feerate is 300-1000 sats/vB in extreme cases, the cost of minting one piece is about 0.0023-0.00069 BTC (150 u-50 u). At the same time, ord supports specifying the destination address, so the utxo can be split and batch minted to the target address concurrently.

If fomo sentiment is high after the halving, and there are 3,000 transactions in each block for Runes mint transactions in the early stage, and the average feerate is 200 sats/vb, the mint of Runes tokens consumes about 198.72 BTC of gas cost per day, which can provide some reference for calculating the early fomo chip market value.

Original article, author:Trustless Labs。Reprint/Content Collaboration/For Reporting, Please Contact report@odaily.email;Illegal reprinting must be punished by law.

ODAILY reminds readers to establish correct monetary and investment concepts, rationally view blockchain, and effectively improve risk awareness; We can actively report and report any illegal or criminal clues discovered to relevant departments.

Recommended Reading
Editor’s Picks