Genome
For the Zoo Keeper Genesis campaign, we extend the standard zNFT metadata by integrating a campaign-specific genome as an additional attribute. While the standard metadata does not include the genome, the Zoo Keeper Genesis campaign appends it to the attributes array to uniquely capture the token’s genetic blueprint.
Example additional attribute for genome:
This additional attribute enables future dynamic functionalities such as breeding mechanics.
High-Level Overview
The encoding process is designed to be both efficient and secure. In broad strokes, the process works as follows:
-
Version Byte:
The first byte of the genome represents the schema version. This allows us to upgrade the encoding process in the future without breaking compatibility. -
Species Byte:
The next byte encodes the "Species" trait, a required attribute that forms the basis of the character's identity. -
Rarity Pair:
Following the species, a dedicated pair of bytes encodes the rarity information of the zNFT. -
Additional Trait Pairs:
The remaining 7-10 traits are encoded as pairs of bytes (each pair consisting of a trait ID and its corresponding value ID).
Together, these components are combined to form a single hexadecimal string that uniquely identifies the genetic blueprint of each zNFT.
Genome Structure Diagram
Below is a simplified diagram that visualizes the genome layout:
01 · 09 · 0103 · 0602 · 0a00 · 0b03 · ...
01: Version Byte
09: Species Trait
0103: Rarity Pair
Other traits
Note: The additional traits include various attributes that further define the token’s unique characteristics. While the precise encoding algorithm is proprietary, this high-level overview provides insight into how we create a compact, yet powerful, genetic blueprint for each Zoo Keeper Genesis zNFT.
Integration into NFT Metadata
Once the genome is generated, it is seamlessly integrated into the NFT’s metadata as a campaign-specific attribute.
This extra layer of data not only distinguishes Zoo Keeper Genesis tokens from standard zNFTs but also lays the groundwork for dynamic future functionalities like evolution and breeding.
Summary
The Genome Encoding process is a key innovation in the Zoo Keeper Genesis campaign. By converting detailed token traits into a unique, encoded string, we ensure that each NFT possesses a verifiable and immutable genetic identity. This process underpins the campaign’s long-term vision of interactive, evolving digital collectibles.
For further details on how the genome integrates with the overall minting and metadata processes, please refer to the Minting Process page.