banner
CKB 中文

CKB 中文

CKB 是理想的比特币 Layer 2

Beyond Loot: Exploring the Infinite Possibilities of the Spore DOB-0 Protocol

Recently, a Spore DOB-0 protocol on Spore GitHub has caught my great interest.

Spore is a universal digital object creation protocol deployed on the CKB blockchain. It supports various content types such as images, links, videos, audio, text, and code (such as Lua scripts and Markdown), and the generated Digital Objects (DOB) are not only tamper-proof but also fully stored on the chain.

The Spore DOB-0 protocol is the first protocol built on top of Spore and is more application-layer oriented, similar to the difference between the HTTP and TCP protocols. According to the description, this Spore DOB-0 protocol aims to create a flexible DNA byte rendering process, which is essentially an introduction on how to parse the DNA of a Spore DOB. Although the content of this protocol is brief, its potential is immeasurable.

Implementation of the Spore DOB-0 Protocol#

The Spore DOB-0 protocol sets a new standard for the "text" content type, which is to store the most important thing of a DOB, the DNA, in the Cell of the CKB blockchain instead of plain text. Then, the Decoder on the chain decodes the DNA based on the Pattern, and finally, the front-end renders and displays the DOB to the user.

Specifically:

cover

  1. When users forge a DOB, the on-chain contract reads the current block height and Cell ID, and performs a hash calculation on them, resulting in the DNA of the DOB.
  2. The Decoder deployed on the CKB blockchain decodes the DNA according to the Pattern defined by the creator or artist. The Pattern is a sequence of bytes, which can be binary numbers, strings, or any other format. Its format is determined by the Decoder and needs to be defined and uploaded by the creator or artist before users forge the DOB. The Pattern defines which bytes represent what attributes, how to assign values, and specifies the location of the Decoder's code, etc.
  3. Finally, the front-end (wallet, browser, trading platform, etc.) renders and displays the DOB based on the content decoded by the Decoder.

From the above process, we can see that creators and artists need to create Patterns and Clusters in advance. In the Pattern, creators and artists define and assign various attributes of the DOB. Therefore, the Pattern is like a codebook that determines how the Decoder decodes the DNA of the DOB.

It is reported that to lower the entry barrier and facilitate operations, the development team will later introduce a tool that allows creators and artists to create a Cluster Cell on the chain directly with a pre-defined Pattern, just like filling in the blanks. A Cluster is similar to the concept of a Collection, but more flexible and independent than a Collection. By creating a Cluster and filling in the corresponding ID in the DOB, creators can forge Spore DOBs belonging to that Cluster. Therefore, the Cluster can also be seen as the directory index of Spore DOBs.

For protocol developers, they need to deploy the Decoder contract on the CKB blockchain and make its address public in advance. The Decoder acts as a decipherer or decrypter, and its main responsibility is to decode the information expressed by the DNA string according to the "codebook" (the Pattern mentioned above). As CKB is a permissionless public chain, in the foreseeable future, as more and more DOBs adopt the Spore DOB-0 protocol standard, more and more developers will deploy various Decoders and even customize Decoders for specific projects, providing choices for creators and artists.

For users, as long as they know the Cluster ID announced by the creator or artist and fill in the ID when forging a DOB, they can easily forge Spore DOBs belonging to that Cluster. It is simple and easy to operate.

Originating from Loot, Beyond Loot#

The inspiration for the Spore DOB-0 protocol comes from Loot. Loot is randomly generated adventurer equipment stored on the Ethereum blockchain. It consists of only a few lines of text, without numbers, images, or any other information intentionally omitted, allowing others to interpret and use them in any way.

Loot includes the attribute pool, which is the Pattern, written in the contract. The Decoder and Pattern are tightly coupled, so one Loot contract can only correspond to one Loot NFT theme. The Spore DOB-0 protocol decouples the Pattern and Decoder, further enhancing composability. With the same set of Decoders combined with different Patterns, completely different DOB themes can be created.

Loot only has one dimension in terms of random number generation, which is generating a random number and using it for all attribute pools. When forging a DOB using the Spore DOB-0 protocol, a DNA string is generated, and different attribute pools in the Pattern use specific segments of the DNA as random numbers, providing a wider range of randomness.

Furthermore, in terms of overall design philosophy, Spore DOB is obviously more aesthetically pleasing than Loot.

Firstly, forging a DOB requires obtaining CKB tokens as "raw materials", and melting a DOB allows the retrieval of the occupied CKB. This gives DOBs a physical and spiritual aspect, as well as the concept of life and death.

Secondly, the world consists of time and space. PoW is essentially a decentralized clock, and a Cell is a space that can store any content type. The combination of PoW and Cell allows the CKB blockchain to build a decentralized universe. In this decentralized universe, when a DOB is born, it performs a hash calculation on time and space (block height and Cell ID), and the result is its "birth chart" (DNA). Therefore, there is a certain randomness in forging a DOB using the Spore DOB-0 protocol, which echoes the randomness in the birth process of living organisms in real life.

One characteristic of a hash function is collision resistance, which means that changing a single character in the input information will produce a completely different hash value. This ensures that each DOB has a unique DNA, just like the DNA of each living organism in the real world.

The Chinese meaning of the word "Cell" is "细胞" (xì bāo), which contains DNA and the most important information of an organism. By cultivating cells, we can eventually obtain a living organism, which can continue to mate, reproduce, and evolve. DOB forged using the Spore DOB-0 protocol has great flexibility and composability. Users can enrich the content expressed by the DNA according to their preferences and showcase it in the community through various means such as painting, modeling, music, and textual descriptions. They can even integrate AI models in the front-end, allowing DOBs to evolve continuously with the iterations of the AI models.

Spore has many advantages over Loot, such as the ability to transfer DOBs on-chain without transaction fees (miner fees), and each DOB is backed by CKB tokens, etc. It is recommended to read the previous article "Understanding the Spore Digital Object Creation Protocol on the CKB Blockchain" and refer to the Spore documentation, which will not be further introduced here.

Future Vision of the Spore DOB-0 Protocol#

DeFi Lego blocks have made everyone realize the powerfulness of "composability". Different DeFi protocols are used in combination, integrated layer by layer, consolidating and expanding the boundaries and heights of the DeFi world. The Spore DOB-0 protocol separates Pattern, DNA, and Decoder in its design, which brings flexibility and composability, providing unlimited possibilities for future ecological development.

"From one, comes two; from two, comes three; and from three, comes everything." Since the DNA only contains the most important attributes of a DOB and is highly abstract, DOBs forged based on the Spore DOB-0 protocol are the "one", and anyone else can continuously construct, improve, enrich, and supplement this "one" and create secondary and tertiary creations based on DOBs. For example, people who like images can feed the decoding result of the DOB DNA to AI drawing tools like Midjourney to generate images in various styles. People who like film and television can feed the decoding result of the DOB DNA to AI video tools like Sora to recreate the DOB in film and television works. People who like literature can set the DOB as a character in a novel, and so on.

Furthermore, DOBs forged using the Spore DOB-0 protocol have openness and scalability. Other blockchain projects can reference these DOBs (Cell is a referable storage unit). For example, a full-chain game or a GameFi project can directly reference DOBs as the underlying database for role, weapon, equipment, and other item information in the game project. Moreover, the same set of DOBs can be used in different games, overcoming the limitations of traditional Web2 games where items, weapons, etc., cannot be used across games.

In conclusion, the openness, flexibility, composability, and scalability of the Spore DOB-0 protocol provide infinite imagination and possibilities for building various things. No one can accurately predict what will happen in the future, but the ecological development based on the Spore DOB-0 protocol is definitely worth looking forward to.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.