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
event PrivateReferenceCommitted( uint256 indexed tokenId, uint256 indexed index, bytes32 commitment, bytes32 indexed policyId );: Emitted when a new private reference is created, recording the token, index, commitment, and policy identifier.event PrivateReferenceRevealed( uint256 indexed tokenId, uint256 indexed index, address indexed parentContract, uint256 parentTokenId, uint256 parentRank, uint256 label, uint256 weight );: Emitted when a hidden reference is revealed, disclosing the parent contract, token ID, rank, label, and weight.function proofProfile() external view returns (bytes32 profileId);: Returns the immutable proof profile identifier that this contract applies to all private references.function privateReferenceCount(uint256 tokenId) external view returns (uint256 count);: Returns the number of private references registered for a given token.function privateReference(uint256 tokenId, uint256 index) external view returns (bytes32 commitment, bytes32 policyId, uint8 status);: Returns the commitment, policy identifier, and state (0=hidden, 1=revealed) for a given index.function revealedReference(uint256 tokenId, uint256 index) external view returns (ReferenceOpening memory opening);: Returns the actual content of a revealed reference, reverting if it is still hidden.function canRevealPrivateReference( uint256 tokenId, uint256 index, address operator ) external view returns (bool);: Checks whether a specific caller currently has permission to reveal this reference. A true result does not guarantee the reveal will succeed.function revealPrivateReference( uint256 tokenId, uint256 index, ReferenceOpening calldata opening, bytes calldata validationData ) external;: Submits the revealed content and validation data to open the commitment, and if verification succeeds, changes the state to revealed.event PrivateReferenceMinted( uint256 indexed tokenId, address indexed recipient, bytes32 childCommitment, bytes32 indexed policyId, bytes32 proofProfile );: An event emitted when proof-gated minting completes successfully.function mintWithPrivateReferences( PrivateReferenceMintRequest calldata request, bytes calldata proof ) external returns (uint256 tokenId);: Verifies the submitted proof and then mints a new token containing the private reference.
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
- Proof and verifier binding: A valid proof is only meaningful under the exact relationship and public-input encoding the verifier expects. Verifier substitution, signal reordering, profile confusion, and reuse across chains, contracts, actions, registries, or versions must all be prevented, and upgrading the verifier must not change the meaning that an immutable profile identifier points to.
- Preventing replay attacks: Reference nullifiers must be bound to the exact approval and action domain, and nullifier state must be updated atomically with minting. Duplicate nullifiers must be rejected both within a batch and across transactions, and child commitments and rank reservations also require separate uniqueness checks.
- Ownership transfer and revocation: Registration-snapshot-based authorization does not always track the current owner. Implementations must specify what invalidates the authorization among ownership transfer, explicit revocation, and epoch transition, and must not treat a stale root as currently valid.
- Limits of economic interpretation: Even when a proof holds, it does not mean entitlement to royalties, revenue sharing, or a reputation boost. Distinct tokens, addresses, keys, or commitments must not be automatically assumed to represent independent contributors, and any application that pays out rewards must establish its own eligibility review, admission, and dispute-resolution procedures.
- Privacy leakage: This standard only conceals the specific content disclosed by a reference; the child token and its owner, the number of references, commitment and policy identifiers, the authorization root and epoch, the rank namespace, the timing of reservation and minting, the transaction sender, and the time of disclosure all remain public. This public metadata alone can already reduce anonymity.