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
event NodeRegistered(uint256 indexed tokenId, address indexed to, bool isMale, int64 birthTimestamp);: Emitted when a new token is created, recording the initial owner, sex, and birth timestamp.event ParentageLinked(uint256 indexed tokenId, uint256 indexed sireId, uint256 indexed damId);: Emitted whenever a token's parent pointers change, carrying the full parent pair including slots that were not changed.event ParentageLinkageApproved(uint256 indexed parentTokenId, address indexed linker, bool approved);: Emitted when the right to use a specific address as a parent for a specific parent token is granted or revoked.event GeneralParentageLinkageApprovalSet(address indexed owner, address indexed linker, bool approved);: Emitted when an owner sets blanket approval for a specific address to use all of the owner's tokens as parents.function approveParentageLinkage(uint256 parentTokenId, address linker, bool approved) external;: The owner of a parent token grants or revokes individual approval for a specific caller to use that token as a parent.function approveParentageLinkageBatch(uint256[] calldata parentTokenIds, address linker, bool approved) external;: Applies the same approval operation atomically to multiple parent tokens at once.function setGeneralParentageLinkageApproval(address linker, bool approved) external;: The caller sets a specific address's parent-use approval for all of the caller's tokens at once.function canUseAsParent(uint256 parentTokenId, address caller) external view returns (bool);: Returns whether the caller can use the given token as a parent, taking ownership, individual approval, and blanket approval all into account.function parentageLinkageApproval(uint256 parentTokenId, address linker) external view returns (bool);: Returns only whether individual approval exists for the token, excluding ownership or blanket approval.function generalParentageLinkageApproval(address ownerAddr, address linker) external view returns (bool);: Returns whether the given owner has granted blanket approval to the given address.function isMale(uint256 tokenId) external view returns (bool);: Returns whether the token's sex is male.function birthTimestampOf(uint256 tokenId) external view returns (int64);: Returns the token's birth timestamp as an integer in Unix seconds.function getParents(uint256 tokenId) external view returns (uint256 sireId, uint256 damId);: Returns the token's sire (father) and dam (mother) references.function getNode(uint256 tokenId) external view returns (Node memory);: Returns the full record of the token, including parent references, birth timestamp, and sex.function nodeExists(uint256 tokenId) external view returns (bool);: Returns whether the given token ID is a currently living record.function getNodesBatch(uint256[] calldata tokenIds) external view returns (Node[] memory nodes, bool[] memory found);: Returns the records and existence status of multiple token IDs at once, preserving input order.function getOffspring(uint256 tokenId) external view returns (uint256[] memory);: Returns all living descendant tokens that directly reference the given token as sire or dam.function offspringCount(uint256 tokenId) external view returns (uint256);: Returns the number of living descendants that reference the given token as a parent.event ChildParentageLinkageApproved(uint256 indexed childTokenId, address indexed linker, bool approved);: Emitted when, from the child token's side, a specific address is granted or revoked the right to attach a parent to that child later.function attachParentage(uint256 tokenId, uint256 sireId, uint256 damId) external;: Fills in a sire or dam only for parent slots that have been empty since registration.function approveChildParentageLinkage(uint256 childTokenId, address linker, bool approved) external;: The owner of a child token grants or revokes a specific address's right to perform late parent attachment on that child.function childParentageLinkageApproval(uint256 childTokenId, address linker) external view returns (bool);: Returns whether a specific address currently has late parent attachment rights on the given child token.event NodesMerged(uint256 indexed survivorId, uint256 indexed duplicateId);: Emitted when a duplicate record merge completes, fixing the surviving token and the duplicate token.function mergedInto(uint256 duplicateId) external view returns (uint256 survivorId);: Returns the surviving token ID that the burned duplicate token ID, destroyed by the merge, now forwards to.event NodeBurned(uint256 indexed tokenId);: Emitted when a leaf token (a token with no descendants) is burned.function burn(uint256 tokenId) external;: Burns a token with no descendants and removes it from its parents' descendant lists.
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
- Attestation does not prove biological truth: The fact that an authorized caller recorded something proves nothing about biological lineage, proof of birth, or identification of a physical individual. Duplicate or fraudulent registration remains entirely possible, and once incorrect parent information is recorded there is no way to correct it, so it can permanently contaminate a descendant's lineage record.
- The scope of parental approval must be clearly disclosed: Parental approval is not spent after a single use; it can continue to be used for multiple future registrations, and a blanket approval even applies to tokens acquired in the future. When requesting approval, applications must clearly show this scope to the user, and revocation cannot undo a claim that has already been recorded.
- Authorization must be reliably invalidated on ownership transfer: Even if a token is transferred away and later returns to its original owner, a prior individual approval must not be revived. Implementations should not tie approval solely to the owner's address but should use a mechanism such as an ownership generation counter, and implementations that use callbacks must ensure that an approval from a previous ownership period does not remain valid during reentrancy either.
- Multi-transaction merges must protect intermediate state: A merge operation that spans multiple transactions must prevent concurrent transfers, late attachments, burns, or other merges from breaking authorization or in-progress state. The duplicate token must remain alive until the operation completes, and no intermediate state in which a child references an already-destroyed token should ever be exposed externally.
- Bulk queries and traversal can exceed resource limits: Ancestor traversal, operations that rewrite all children, and linear scans of a reverse index can exceed a transaction's gas limit, which may make an otherwise valid merge or burn impossible in certain implementations. Batch queries or reading an entire offspring array can likewise exceed execution or RPC response limits, so clients should bound the scope of their requests and rely on indexed event data wherever possible.