search
Homeweb3.0Discussion of the principles and technical details of the Ordinal inscription protocol

php editor Baicao will analyze the principles and technical details of the Ordinal inscription protocol in detail. The Ordinal inscription protocol is an encryption protocol used to protect data transmission. It uses advanced encryption algorithms and authentication mechanisms to ensure the security and integrity of data during transmission. This article will introduce the basic principles of the Ordinal inscription protocol, including core technologies such as key exchange, encryption algorithms, and message authentication codes, and deeply explore its application in network communications. Whether you are a beginner or a professional, reading this article will help you gain a deeper understanding of the Ordinal protocol.

BTC’s block structure

Blockchain is a multi-user accounting technology, which can also be called a distributed database. It organizes records into blocks in chronological order and expands the ledger.

Discussion of the principles and technical details of the Ordinal inscription protocol

We used excel to make a table to illustrate how the blockchain works. An excel file represents a blockchain, in which each separate table represents a block. The blocks are in chronological order from 560331, 560332. to the latest 560336. 560336 will package the latest transactions in the block. The main part of the block is the most common double-entry accounting method in the accounting field. The address on one side is recorded as debit (debit), which is inputs from, and the address on the other side is recorded as credit (credit), which is outputs to. Value corresponds to the number of BTC in the corresponding address. The number of Inputs coins will be greater than the number of Outputs coins, and the difference is the transfer fee at the user level and the handling fee obtained by the miners (bookkeepers). The block header will obtain the height of the previous block, the hash value of the previous block, the creation time (timestamp) of this block, and a random number. So as a decentralized accounting technology, who will grab the accounting rights of the next block? It relies on this random number and its corresponding hash value. Miners with computing power perform a hash calculation on the random number of the current block. The miner who first obtains the hash value that meets the conditions has the accounting rights of the next block and wins the block reward and transfer fee. Finally, there is the script area, which can be used for some extended applications. For example, the script op_return can be used as a postscript column. It should be noted that in the actual block, the script area is attached to the input and output information, rather than really being a separate area. For example, the script attached to the input is an unlocking script (ScriptSig), which requires the wallet address for private key signature authorization to allow transfer, while the script attached to the output is a locking script (ScriptPubKey), which is used to set the unlocking conditions for receiving the BTC (generally The condition is "only those with the corresponding private key can consume").

Discussion of the principles and technical details of the Ordinal inscription protocol

Discussion of the principles and technical details of the Ordinal inscription protocol

The original input and output data structure tables show the accompanying parameters of the transaction information. Among them, the unlocking script (ScriptSig) is part of the private key authorization and is also called "witness data".

Segregated Witness and Taproot

While the Bitcoin network has been running for over 10 years without significant incidents, transaction costs have repeatedly spiked to highs that are no longer feasible. As a result, Bitcoin developers have been discussing how to best scale the network to handle growing transaction volumes in the future.

In 2017, the Bitcoin development community was divided into two factions. One faction supported the SegWit function of soft forks, and the other advocated directly expanding the block size, known as the "big block" faction. The split sparked heated debate.

We mentioned above that the unlocking script needs to use private key authorization to generate "witness data", so can this witness data be separated from the block, thereby increasing the capacity of each block in disguise? What about the number of transactions? Segregated Witness was officially activated in August 2017. Its implementation is to divide all transaction data into two parts, one part is the basic information of the transaction (Transaction Data), the other part is the signature information of the transaction (Witness Data), and save the signature information in a new data structure , is in a new block called "segregated witness (witness)" and is transmitted separately from the original transaction.

Discussion of the principles and technical details of the Ordinal inscription protocol

Technically, the implementation of SegWit means that transactions no longer need to include witness data (it will not occupy the 1MB space originally arranged by Bitcoin for blocks). Instead, at the end of a block, an additional separate space is created for witness data. It supports arbitrary data transfers and has a discounted "block weight" that cleverly keeps large amounts of data within Bitcoin's block size limits to avoid the need for a hard fork. In this way, the upper limit of the transaction data size of Bitcoin transactions is increased, while the transaction fee of signature data is reduced. Before the SegWit upgrade, the upper limit of Bitcoin's capacity was 1MB. After SegWit, although the upper limit of pure transactions was still 1M, the size of the Segregated Witness space reached 4MB.

Taproot was implemented in November 2021 and consists of 3 different Bitcoin Improvement Proposals (BIPs), including: Taproot, Tapscript and its new digital signature scheme called "Schnorr Signature". Taproot is designed to bring many benefits to Bitcoin users, such as increased transaction privacy and lower transaction fees. It will also allow Bitcoin to perform more complex transactions, thereby broadening application scenarios (some new opcodes have been added).

These updates are a key enabler for Ordinals NFT, which stores NFT data in a spend script in the Taproot script path (witness data space). This upgrade makes it easier to structure and store arbitrary witness data, laying the foundation for the "ord" standard. As data requirements are relaxed, it is assumed that a transaction can fill an entire block with its transaction and witness data - reaching the 4MB block size (witness data space) limit - greatly expanding the types of media that can be placed on the chain. .

Some people may ask, since some strings are put in the script, are there no restrictions on these strings? What if these scripts are actually executed? If you put the content casually, will there be an error code that refuses to produce a block? This brings up the OP_FALSE instruction. OP_FALSE (also represented as "0" in Bitcoin Script) ensures that the execution path in the scripting language never enters the OP_IF branch and remains unexecuted. It acts as a placeholder or no operation (No Operation) in the script, similar to a "comment" in a high-level language, to ensure that subsequent code is not executed.

Discussion of the principles and technical details of the Ordinal inscription protocol

UTXO transfer model

The above is the detailed content of Discussion of the principles and technical details of the Ordinal inscription protocol. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:脚本之家. If there is any infringement, please contact admin@php.cn delete
Top 10 Bitcoin trading platforms app BTC exchange rankingsTop 10 Bitcoin trading platforms app BTC exchange rankingsApr 22, 2025 pm 02:48 PM

The top ten Bitcoin trading platforms include: 1. OKX, 2. Binance, 3. gate.io, 4. Huobi, 5. Coinbase, 6. KuCoin, 7. Kraken, 8. Bitfinex, 9. Bybit, 10. Bitstamp. These apps provide real-time market trends, technical analysis and price reminders to help users monitor market dynamics in real time and make informed investment decisions.

Top 10 digital virtual currency trading app rankings Top 10 digital currency exchange rankings in 2025Top 10 digital virtual currency trading app rankings Top 10 digital currency exchange rankings in 2025Apr 22, 2025 pm 02:45 PM

The top ten digital currency exchanges are: 1. OKX, 2. Binance, 3. gate.io, 4. Coinbase, 5. Kraken, 6. Huobi, 7. KuCoin, 8. Bitfinex, 9. Bitstamp, 10. Poloniex. These exchanges are selected based on factors such as transaction volume, user experience and security, and all provide a variety of digital currency trading services and an efficient trading experience.

Top 10 virtual currency app trading platforms Recommended The latest ranking of the top 10 virtual currency exchangesTop 10 virtual currency app trading platforms Recommended The latest ranking of the top 10 virtual currency exchangesApr 22, 2025 pm 02:42 PM

The top ten virtual currency app trading platforms are: 1. Binance, 2. OKX, 3. gate.io, 4. Coinbase, 5. Kraken, 6. Huobi, 7. KuCoin, 8. Bybit, 9. Bitfinex, 10. Bittrex, these platforms were selected for their excellent performance in user experience, security, handling fees and transaction volume.

Top 10 Global Virtual Currency Exchange Rankings Top 10 Latest Virtual Currency APPs in 2025Top 10 Global Virtual Currency Exchange Rankings Top 10 Latest Virtual Currency APPs in 2025Apr 22, 2025 pm 02:39 PM

Top 10 global virtual currency exchanges rankings: 1. OKX, 2. Binance, 3. Gate.io, 4. Huobi, 5. Coinbase, 6. Kraken, 7. Bitfinex, 8. KuCoin, 9. Bybit, 10. Bitstamp, these platforms provide real-time market trends, technical analysis tools and user-friendly interfaces to help investors conduct effective market analysis and trading decisions.

Ranking of the top ten free virtual currency app exchanges. Recommended digital currency trading platform rankings in 2025Ranking of the top ten free virtual currency app exchanges. Recommended digital currency trading platform rankings in 2025Apr 22, 2025 pm 02:36 PM

The top ten free viewing software apps recommended include: 1. OKX, 2. Binance, 3. gate.io, 4. Huobi, 5. Coinbase, 6. KuCoin, 7. Kraken, 8. Bitfinex, 9. Bybit, 10. Bitstamp. These apps provide real-time market trends, technical analysis and price reminders to help users monitor market dynamics in real time and make informed investment decisions.

Top 10 virtual currency app exchanges rankings The latest list of top 10 virtual currency exchangesTop 10 virtual currency app exchanges rankings The latest list of top 10 virtual currency exchangesApr 22, 2025 pm 02:33 PM

Top 10 virtual currency app exchanges: 1. OKX, 2. Binance, 3. Gate.io, 4. Huobi, 5. Coinbase, 6. Kraken, 7. Bitfinex, 8. KuCoin, 9. Bybit, 10. Bitstamp, these platforms provide real-time market trends, technical analysis tools and user-friendly interfaces to help investors conduct effective market analysis and trading decisions.

Reliable and easy-to-use virtual currency exchange app recommendations The latest ranking of the top ten exchanges in the currency circleReliable and easy-to-use virtual currency exchange app recommendations The latest ranking of the top ten exchanges in the currency circleApr 22, 2025 pm 01:21 PM

The reliable and easy-to-use virtual currency exchange apps are: 1. Binance, 2. OKX, 3. Gate.io, 4. Coinbase, 5. Kraken, 6. Huobi Global, 7. Bitfinex, 8. KuCoin, 9. Bittrex, 10. Poloniex. These platforms were selected as the best for their transaction volume, user experience and security, and all offer registration, verification, deposit, withdrawal and transaction operations.

What are the easy-to-use and safe digital currency trading apps? The latest ranking of the top ten virtual currency trading platforms in 2025What are the easy-to-use and safe digital currency trading apps? The latest ranking of the top ten virtual currency trading platforms in 2025Apr 22, 2025 pm 01:18 PM

Easy to use and safe digital currency trading apps include: 1. OKX, suitable for professional traders and institutional users; 2. Binance, the world's largest trading volume, and local compliance needs to be confirmed; 3. Gate.io, suitable for niche token trading; 4. Kraken, an old exchange, suitable for European and American users; 5. Coinbase, suitable for novices; 6. Bybit, good derivative trading experience; 7. Bitget, outstanding order trading system; 8. KuCoin, suitable for exploring potential projects; 9. HTX, need to pay attention to brand transformation, etc.

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.