ERC-8382 Private referenceable NFT (Private Referable NFTs)

Draft · NFTs & multi-token · created 2026-08-17

A standard that lets an ERC-721 NFT keep a reference to another NFT as a private commitment, verify its validity with a proof, and selectively reveal it publicly only when needed.

Why it is needed

ERC-721 standardizes only a token's ownership and transfer, not relationships between tokens. ERC-5521 added public reference and referenced-by relationships, enabling NFT graphs to be queried for remixing, licensing, collaboration, and recommendation purposes, but these relationships are always public and can expose commercially or socially sensitive information that an owner may not yet wish to disclose. Creating a private reference requires more than just hiding the value; it requires a way to prove that the hidden parent is an actual, eligible NFT, that the parent's owner specifically approved the relationship with this particular child, that the hidden label and weight comply with a publicly auditable policy, that the reference has not been replayed, that graph insertion-order rules were followed, and that it can later be selectively revealed and independently verified. When each project implements this with its own custom contract, event formats and query methods differ, so wallets, marketplaces, indexers, and provenance explorers cannot consistently discover private references.

What to implement

In depth

Core interface and lifecycle

All implementations must implement ERC-721 and ERC-165, and must implement IERC8382PrivateReferences. Each private reference has an index within the token starting at zero, and its commitment and policy identifier are immutable once created. PrivateReferenceCommitted must be emitted exactly once when a reference is created, and its state must be expressed only as hidden (0) or revealed (1). Querying a nonexistent index must revert, and while hidden, the core interface must never expose information such as the parent contract, parent token ID, label, weight, secret nonce, owner's public key, or approval evidence.

Selective Reveal

A token owner or approved operator can later choose one index and submit a ReferenceOpening along with validationData to reveal that reference. The contract must verify that the submitted content actually opens the stored commitment, and must reject revealing the same index twice or a case where parentContract is zero. Only on successful verification does the state change from hidden to revealed, together with the emission of PrivateReferenceRevealed. The fact that the caller is authorized and the fact that the revealed content is correct are independent checks, and neither can substitute for the other.

Proof-gated minting

A contract supporting IERC8382ProofMint must, before minting, verify that the recipient is not zero, that the number of reference commitments matches the number of nullifiers and falls within the range the profile allows, and that each nullifier is unused and free of duplicates. It must bind context such as chain ID, target contract, action selector, profile identifier, policy, and authentication epoch, verify the active authentication root and rank reservation, and then verify the proof against the exact public-input encoding defined by proofProfile(). All of these checks, along with the state updates, minting, and event emission, must occur within a single atomic transaction, and if verification fails, neither the nullifier nor the reservation may be consumed.

The Proof Profile is swappable

This standard does not mandate a specific proof system (such as Groth16), curve, or hash function. Instead, a single contract immutably uses a 32-byte profile identifier (proofProfile) that encodes the relation and schema version, proof system, hash suite, domain separation tag, the names, order, and width of public signals, the derivation method for commitments and nullifiers, the owner authentication statement, policy encoding, and batch size rules. If any one of these elements changes, a different profile identifier must be used, and a proof made under one profile must not be verified as if it belonged to a different profile.

Canonical Policy disclosure

Disclosing only a policy digest leaves observers unable to determine which rules were applied. An implementation supporting IERC8382CanonicalPolicy must make the original policy content referenced by policyId publicly queryable, that content must remain unchanged after registration, and it must be possible to confirm whether the policy was active during a given epoch. However, compliance with the policy does not mean that the labels or weights accurately reflect actual creative contribution or economic significance.

Owner authentication (registration snapshot method)

Only the current owner of the parent NFT, as confirmed via ownerOf, may register an authorization key. The registered key is bound to a specific epoch and rank namespace, and must subsequently sign the exact child token and reference intent before it can be used in a minting proof. Implementations must explicitly document the rules for root activation, deactivation, and revocation on epoch transitions, and a root from a stale epoch must be rejected unless a separately standardized succession rule applies. This authorization only proves the owner's consent; it does not prove that the reference is economically independent or entitled to compensation.

Rank-based DAG (optional)

For applications that require the graph to be acyclic, each token may hold exactly one immutable rank within a rank namespace. A rank must be reserved before a child can be minted, and this reservation is bound to the exact child precommitment and namespace, being consumed at the moment of minting. Every approved reference must satisfy parentRank < childRank. However, this local inequality alone cannot guarantee global acyclicity unless every token involved holds an immutable rank in the same namespace.

Interoperability with ERC-5521, and Draft status

A private reference that has not yet been disclosed cannot be placed in ERC-5521's reference/referenced-by lists, since the parent token has no public address at that point. After disclosure, a contract that also implements ERC-5521 may expose the public relationship using the same parent contract and token ID, but this must not create a new semantic edge and must remain consistent with ERC-5521's setNode requirements. This proposal is currently in Draft status and does not yet have a complete reference implementation, so its detailed requirements may change or be discontinued.

Things to watch out for

Original ERC · ← ERCs