ERC-8428 ERC-721 lineage registry

Draft · NFTs & multi-token · created 2026-09-25

An extension standard that records an immutable sex, birth timestamp, and up to two parent references on an ERC-721 token, enabling lineage (pedigree) to be tracked subject to owner approval.

Why it is needed

Pedigree registry applications need common rules for reading ancestry, distinguishing cases with no parent, and determining who is authorized to record that relationship. However, with token metadata that varies by application, wallets, registries, and indexers cannot verify or exchange lineage information in a mutually compatible way. Nor can they be forced to follow the same storage structure when policies differ by breed. Without this standard, each project records parent-child relationships under its own rules, making it hard for outsiders to verify who holds registration rights and whether the registration order actually forms a lineage graph free of contradictions. The registry does not prove biological truth or the physical identity of an individual, but it must at least guarantee that approved claims and chronological order are always internally consistent.

What to implement

In depth

Core records and invariants

Each record (Node) has isMale and birthTimestamp as permanently immutable values. birthTimestamp is a signed int64 in Unix seconds, with dates before 1970 represented as negative numbers, and missing values are not represented by any reserved value. Token ID 0 cannot be minted, and IDs are not reused after burning or merging. A parent slot of 0 means no parent is recorded in that slot, and the two slots are independently optional. Each nonzero parent reference must be a living token in the same registry, the sire must have isMale==true, the dam must have isMale==false, and the parent's birth timestamp must be strictly earlier than the child's. These conditions must hold after every graph change, and if validation fails, the entire operation is atomically reverted.

The parent registration authorization model

Each newly designated parent requires an authorization check at the time of registration or attachment. Authorization is recognized only if the caller is the parent's current owner, holds individual approval (parentageLinkageApproval) for that token, or holds blanket approval (generalParentageLinkageApproval) from the owner. ERC-721 token approval or operator approval does not by itself constitute parent-use authorization. Individual approval expires when ownership changes or the token is burned, and it is not revived even if the token returns to the previous owner. Blanket approval, by contrast, is tied to the owner who granted it, so it applies again if that owner later reacquires the token. canUseAsParent returns the combined effective authorization across all of these paths.

Distinguishing query functions from existence checks

isMale, birthTimestampOf, getParents, and getNode return values only for live tokens and revert for tokens that do not exist. nodeExists returns true only for live tokens; 0, unminted IDs, burned IDs, and IDs that vanished through merging are all false. getNodesBatch returns two arrays (nodes, found) that preserve input order, with nonexistent IDs marked by a node whose fields are all zero and found=false. For example, a female founder individual with a birth timestamp of 0 will have node fields that all look like zero, but found is true, so consumers must not infer existence from field values alone.

Events and indexing reconstruction rules

NodeRegistered fires on creation, and if even one parent is recorded, ParentageLinked fires alongside it. Every subsequent operation that changes a parent pointer (including late attachment, a survivor adopting parents through a merge, or a child being reassigned through a merge) must re-emit ParentageLinked carrying the full parent pair, including any slot that did not change. Burning removes the node and its parent links from the graph, but no separate ParentageLinked deletion event is required to announce this. Indexers must process events by overwriting prior records with the latest full pair rather than simply appending, so that no duplicate or stale edges remain.

Four optional extensions

The Offspring extension provides reverse descendant lookup through getOffspring and offspringCount. The Late Parentage extension lets attachParentage fill only slots that were left empty after registration; a slot that is already filled cannot be overwritten, even for the same ID. The Mergeable extension merges duplicate records that share the same sex and are not in an ancestor-descendant relationship: the survivor adopts the duplicate's parents, the duplicate's offspring are reassigned to the survivor, the duplicate is then burned, and the forwarding path can be looked up through mergedInto. The procedure for initiating a merge and obtaining consent, however, is left to each implementation. The Burnable extension permits burning only leaf tokens that have no offspring. All four interfaces are optional, and support is checked through ERC-165's supportsInterface with each one's interface ID (Offspring 0x698afb25, Late Parentage 0x311f6e23, Mergeable 0x4205c309, Burnable 0x42966c68).

Rationale for preventing cycles

Every child-to-parent edge must strictly decrease toward an earlier, immutable birth timestamp. A cycle would require some timestamp to be smaller than itself, a contradiction, so the graph is guaranteed to remain acyclic regardless of the numeric size of token IDs or the order of registration. The same logic applies even when an ancestor is registered after its descendant and is later connected through late attachment. In merges, the same acyclicity is preserved by requiring that the survivor's birth timestamp not be later than the duplicate's, and that any adopted parent satisfy the survivor's sex and chronological-order constraints.

Scope of application and limits of backwards compatibility

All parent references must point only to tokens within the same contract; cross-contract or cross-chain parent references, proof-of-evidence authentication, and representation of unknown sex are outside the scope of this standard. Registration access policy and the signature of the registration function itself are also left to the implementation. The existing semantics of ERC-721 ownership, transfer, and approval are preserved unchanged, and ordinary ERC-721 applications that know nothing about lineage can still interact with the tokens. However, an existing ERC-721 contract that did not support this extension does not automatically gain lineage functionality, and this document does not specify storage migration or upgrade procedures either.

Current status of the proposal

This proposal was written on September 25, 2026, and its current status is Draft. It is still in community discussion and review, so its detailed rules or interfaces may change, or the proposal itself may stall without further progress.

Things to watch out for

Original ERC · ← ERCs