This ERC extends ERC-721 with interoperable commitments to private non-fungible token (NFT) to NFT references. A token can publish one or more reference commitments without disclosing the referenced NFT, reference label, weight, or authorization material. Implementations expose a common discovery interface, may require a zero-knowledge or other privacy-preserving proof at mint time, and may support later selective disclosure of individual references.
The core interface is proof-system-neutral. It does not require Groth16, a particular elliptic curve, Poseidon, a fixed number of references, or a specific authorization registry. Optional extensions standardize proof-gated minting, selective reveal, registration-snapshot owner authorization, canonical public policies, and rank-governed directed acyclic graph (DAG) insertion.
Motivation
ERC-721 standardizes ownership and transfer of unique tokens but does not standardize relationships between tokens. ERC-5521 adds public referring and referred relationships, enabling an NFT graph to be queried and indexed. Public references are useful for provenance, remix attribution, licensing, collaboration, and recommendation, but they can disclose commercially or socially sensitive information before the holder is ready to reveal it.
A private reference should not be only an opaque hash. A relying contract may need evidence that:
the hidden parent is an existing eligible NFT;
a key registered by the parent NFT owner authorized the exact child and edge intent;
the hidden label and weight satisfy a publicly auditable policy;
the reference is not replayed;
the insertion obeys a declared graph-ordering rule; and
the committed reference can later be selectively disclosed and independently checked.
Existing applications can implement these properties with custom contracts, but custom event formats and query surfaces prevent wallets, marketplaces, indexers, and provenance explorers from discovering private references consistently. This ERC standardizes the observable lifecycle while leaving the proof system and cryptographic profile replaceable.
Private references may also be consumed by downstream royalty, revenue-sharing, licensing, reputation, or attribution systems. Cryptographic validity, owner authorization, and compliance with an application-defined policy establish that a reference satisfies the declared protocol conditions; they do not by themselves establish that the reference represents genuine creative contribution, an economically independent party, or an entitlement to payment. Applications that attach economic consequences to references therefore need separate payout-eligibility and contribution-authenticity rules.
Specification
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “NOT RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119 and RFC 8174.
Terminology
Child: the ERC-721 token containing one or more private references.
Parent: the token addressed by a reference opening.
Reference commitment: a 32-byte commitment to a private reference and all profile-required binding context.
Opening: the public semantic fields disclosed for a committed reference.
Validation data: profile-specific bytes needed to verify an opening, such as nonces, key material, a proof, or an authentication path.
Policy identifier: a 32-byte identifier for the policy under which a reference was accepted.
Proof profile: a 32-byte identifier for a fully specified statement, encoding, verifier type, hash suite, and version.
Authorization epoch: a registry-defined time or governance interval used to scope owner authorization.
Rank namespace: a domain in which immutable token ranks are compared.
Hidden state: a committed reference whose semantic opening has not been published through the selective-reveal interface.
Revealed state: a committed reference whose opening has been verified and stored.
Nullifier: a profile-defined value used to prevent repeated consumption of a one-time protocol action.
Reference nullifier (referenceNullifiers): a per-reference nullifier used to prevent replay.
External nullifier (externalNullifier): a profile-defined public context value scoping nullifier derivation.
Child commitment (childCommitment): a profile-defined commitment binding the intended child mint context.
Child precommitment (childPreCommitment): a preliminary commitment to the child mint context used to bind a rank reservation before constructing the final child commitment.
Mint nonce (mintNonce): a profile-defined nonce distinguishing mint intents in child commitment derivation.
Action selector: the four-byte function selector identifying the contract action to which the proof is bound.
Accepting contract: the contract accepting and validating a proof-gated mint request, directly or through a delegated verifier.
General Requirements
Conformance requirements apply to contracts implementing the core interface and the optional extensions they advertise. Guidance for downstream consumers is non-normative and outside the conformance requirements of this ERC.
MUST assign each private reference a zero-based index local to the child token.
MUST NOT change the commitment or policy identifier at an existing (tokenId, index).
MUST emit exactly one PrivateReferenceCommitted event when a reference is created.
MUST return the same commitment and policy identifier through privateReference that were emitted at creation.
MUST represent an existing unrevealed reference with status 0 and a revealed reference with status 1.
MUST revert in privateReference and revealedReference when an index is greater than or equal to privateReferenceCount(tokenId).
MUST NOT expose the parent contract, parent token identifier, label, weight, secret nonce, owner public key, or authorization witness through the core interface while the reference remains hidden.
MUST advertise the core interface through ERC-165.
A contract may create private references during mint or attach them through another application-defined lifecycle. If an implementation advertises IERC8382ProofMint, it MUST follow the proof-gated mint requirements in this ERC.
Interfaces and common data types
The interfaces below inherit IERC165, which denotes the ERC165 interface defined in ERC-165, so that supporting contracts can advertise compliance through ERC-165. The core interface is mandatory; all other interfaces are optional extensions.
metadataHash is an application-selected digest bound by the proof profile. It does not replace ERC-721tokenURI semantics.
For ranked profiles, ReferenceOpening.parentRank MUST contain the assigned parent rank in the applicable namespace. For non-ranked profiles, it MUST be zero, and commitment derivation and opening validation MUST use that canonical value. Zero in a non-ranked profile does not represent an assigned rank.
For non-ranked profiles, PrivateReferenceMintRequest.rankNamespace MUST be bytes32(0) and PrivateReferenceMintRequest.childRank MUST be zero.
proofProfile() MUST return the single immutable profile identifier governing all private references created by the contract, independently of whether proof-gated minting is supported.
revealedReference MUST revert while the reference is hidden. It MUST return the opening accepted by the selective-reveal operation after the reference is revealed.
canRevealPrivateReference(tokenId, index, operator) MUST return true if and only if the reference exists, remains hidden, and the operator is authorized under the reveal authorization policy at the time of the call. It MUST return false otherwise. A true result does not guarantee subsequent reveal success: state or authorization may change, and opening validation remains necessary.
An implementation advertising this extension:
MUST verify that opening and validationData open the immutable commitment at (tokenId, index) according to the profile identified by proofProfile().
MUST reject a second reveal for the same index.
MUST reject a zero parentContract.
MUST change status from hidden to revealed only after successful verification.
MUST store the accepted ReferenceOpening and emit PrivateReferenceRevealed atomically.
MUST define a reveal authorization policy and apply the same policy in both canRevealPrivateReference and revealPrivateReference. revealPrivateReference MUST revert if canRevealPrivateReference(tokenId, index, msg.sender) would return false at the time of authorization checking. At minimum, the current token owner and operators approved under ERC-721 SHOULD be supported unless the application deliberately uses a stricter policy.
MUST NOT interpret caller authorization as proof that the opening is correct; authorization and commitment verification are separate checks.
MUST reject a non-zero parentRank under a non-ranked profile.
validationData is intentionally profile-specific. A profile MUST define its canonical encoding. For example, it may contain an edge nonce, approval nonce, owner public key, owner epoch, or a proof of opening.
This ERC does not define when a hidden or revealed reference becomes economically eligible in a downstream application. As non-normative guidance, applications that attach royalties, revenue shares, licensing benefits, reputation, or other economic effects to references should define which lifecycle event controls eligibility, such as commitment time, authorization time, reveal time, listing time, or another application-defined event, and whether later reveal has retroactive economic effect.
An implementation advertising this extension MUST, before minting:
reject the zero recipient;
check that referenceCommitments.length equals referenceNullifiers.length and is permitted by the proof profile;
check that every reference nullifier is canonical, pairwise distinct within the request, and unspent;
check that the child commitment has not previously been consumed if the profile defines child uniqueness;
derive or validate all contract-bound public context required by the profile, including block.chainid, the accepting contract, action selector, proof-profile identifier, policy identifier, authorization epoch, and any external nullifier;
validate the active authorization root and policy for the request epoch;
validate any required rank reservation and rank namespace;
verify proof against the exact canonical public input encoding defined by proofProfile();
mark nullifiers and one-time commitments as consumed;
mint the ERC-721 token, store every reference commitment and policy identifier, and emit one PrivateReferenceCommitted event per index; and
emit PrivateReferenceMinted.
All checks, replay-state updates, minting, storage writes, and events MUST be atomic. A failed operation MUST NOT consume a nullifier, reservation, or child commitment.
The proof verifier MAY be embedded in the token contract or delegated to another contract. bytes proof is opaque to this ERC. The profile defines its format and verification algorithm.
Proof profile requirements
A proof profile defines commitment construction, opening validation and, where applicable, proof verification. It does not require zero-knowledge proofs or proof-gated minting.
A profile identifier MUST commit to, or unambiguously identify, all consensus-relevant proof semantics, including:
relation and schema versions;
proof system and curve, if applicable;
hash or commitment suite;
domain-separation tags;
field and byte encodings;
public-signal names, order, widths, and canonical ranges;
child commitment derivation;
child precommitment derivation, if applicable;
mint nonce semantics and uniqueness requirements;
external nullifier semantics and domain binding;
reference commitment derivation;
nullifier derivation;
owner-authorization statement;
policy encoding;
rank rules, including the rank registry identifier and namespace semantics, if applicable;
batch-size rules; and
verifier code or an immutable verifier identifier.
Any change to one of these items MUST produce a different profile identifier. Implementations MUST NOT verify a proof produced for one profile as though it belonged to another profile. A conforming contract MUST use a single immutable profile identifier. Different profile semantics require a separate conforming contract.
Profiles SHOULD derive commitments and nullifiers from a domain containing at least:
MUST make the canonical policy preimage publicly queryable.
MUST document its canonical application binary interface (ABI) encoding.
MUST guarantee that policyId is the profile-defined digest of the returned preimage.
MUST NOT change the preimage associated with a registered policyId.
MUST expose enough information for an observer to determine whether the policy was active for a specified epoch.
Publishing only an opaque accepted digest is not sufficient for this extension. Such a system may claim compliance with an accepted policy identifier, but not publicly auditable compliance with known policy fields.
Policy compliance is not contribution attestation. A canonical policy may constrain admissible labels, weight ranges, namespaces, epochs, or other machine-checkable fields, but an in-range or otherwise policy-compliant value does not prove that the value faithfully represents real-world creative contribution or economic importance. As non-normative guidance, downstream applications that monetize labels or weights should use additional attestation, admission, moderation, dispute-resolution, or other application-specific mechanisms when such authenticity matters.
Registration MUST check the current ERC-721 owner through ownerOf(parentTokenId).
Under a ranked profile, registerOwnerAuthorization MUST obtain the parent rank through rankOf(parentContract, parentTokenId, rankNamespace) from the profile-defined registry and MUST revert if assigned is false. Under a non-ranked profile, registration MUST require rankNamespace == bytes32(0) and use parentRank equal to zero. The event MUST report the same rank and namespace encoded in the leaf; the caller MUST NOT arbitrarily supply the rank.
A profile MUST define how the parent contract, token identifier, public key, rank, rank namespace, epoch, chain, and registry are encoded in the authorization leaf.
A root accepted for minting MUST be explicitly active for the current authorization epoch and applicable policy, subject to the carry-over rules below. Registration and activation are distinct operations, although they MAY occur atomically.
Implementations MUST document activation and deactivation mechanisms and their authorization rules. This ERC does not prescribe a governance function. AuthorizationRootActivated MUST be emitted atomically when a root becomes explicitly active for a policy and epoch; AuthorizationRootDeactivated MUST be emitted atomically upon explicit deactivation. isAuthorizationRootActive MUST report current eligibility, accounting for activation, deactivation, epoch rollover and profile-defined carry-over rules. Epoch rollover MAY invalidate roots without individual deactivation events if AuthorizationEpochAdvanced and documented epoch semantics allow observers to determine which roots are no longer active.
An implementation MAY accept multiple activated roots within one epoch to preserve proof liveness during registry growth. If it does, activating a newer root MUST NOT silently deactivate older roots in that epoch. Roots from an older epoch MUST be rejected unless a separate carry-over or revocation relation is explicitly standardized by the profile.
Revocation semantics MUST be documented. Epoch rollover revocation and immediate intra-epoch revocation are distinct. An implementation that only prevents future re-registration MUST NOT claim immediate invalidation of previously activated roots.
Owner authorization establishes consent by the owner represented by the registry snapshot; it does not establish that the reference is economically independent, non-Sybil, or entitled to downstream compensation. In particular, an actor controlling both the child and parent assets may be able to satisfy authorization correctly. As non-normative guidance, applications that use authorized references for payments or other scarce benefits should treat authorization and economic eligibility as separate decisions.
keyScheme identifies the signature/public-key encoding. A key scheme profile MUST define canonical public-key and signature validation. Elliptic-curve profiles MUST specify on-curve, non-identity, subgroup, and scalar-canonicality requirements.
MUST assign at most one immutable rank to an asset in a rank namespace.
MUST bind a reservation to the accepting contract, child precommitment, and rank namespace.
MUST prevent callers from substituting a different rank at mint.
MUST consume the exact reservation atomically with mint.
MUST enforce parentRank < childRank for every accepted ranked reference.
MUST define who may assign ranks and prevent unauthorized pre-assignment or namespace griefing.
MUST NOT claim arbitrary global dynamic acyclicity solely from the local inequality unless every relevant token has an immutable rank in the same namespace.
A reservation is publicly linkable to the mint that consumes its child precommitment. Relayers or account-abstraction systems may reduce wallet-identity linkage, but they do not hide the protocol-level reservation-to-mint relation.
ERC-165 requirement
Implementations MUST return true for supportsInterface(type(IERC8382PrivateReferences).interfaceId).
Implementations MUST return true only for optional extension identifiers whose complete semantics they implement.
Events and inherited functions are not included when calculating the interface identifiers.
Additional interfaces SHOULD be forwarded through the implementation’s normal supportsInterface inheritance chain.
Interface
Interface identifier
IERC8382PrivateReferences
0xe57f7eea
IERC8382SelectiveReveal
0x15d38dfb
IERC8382ProofMint
0xdef7b263
IERC8382CanonicalPolicy
0x8f43c3aa
IERC8382OwnerAuthorization
0x1a9dd556
IERC8382RankedReferences
0xce938bbe
Reference lifecycle
A proof-gated ranked implementation normally follows this lifecycle:
A parent NFT owner registers an authorization key for the parent and current epoch.
Governance or another specified mechanism activates one or more authorization roots and a canonical policy. Provers discover activation through AuthorizationRootActivated and confirm eligibility through isAuthorizationRootActive.
A prospective child minter computes a child precommitment and reserves a rank.
The parent owner signs an exact edge intent bound to the child commitment, policy, epoch, and fresh approval nonce.
The prover constructs a proof that hidden parent eligibility, owner authorization, policy compliance, replay derivation, and rank ordering hold.
mintWithPrivateReferences verifies the request and proof, consumes replay state and the reservation, mints the child, and stores commitments.
Wallets and indexers discover hidden references through the core interface and commitment events.
An authorized operator may later disclose one index. The contract verifies the opening and emits PrivateReferenceRevealed.
After disclosure, an implementation may also publish a public relationship compatible with ERC-5521.
ERC-5521 interoperability
Before reveal, a private reference has no public parent endpoint and therefore cannot populate an ERC-5521 referring or referred list without defeating privacy.
After successful reveal, an implementation that also supports ERC-5521 MAY expose the reference through its ERC-5521 query surface. Such publication:
MUST use the same parent contract and token identifier accepted by revealPrivateReference;
MUST NOT create a different semantic edge;
MUST comply with applicable setNode requirements defined in ERC-5521;
MUST enforce any authorization policy defined by the public-reference implementation;
MUST maintain consistency between referring and referred lists, using setNodeReferredExternal for cross-contract reference updates as specified in ERC-5521; and
SHOULD occur atomically with reveal when both interfaces are implemented by the same contract.
ERC-5521 does not specify a normative reference-authorization policy. Its reference implementation uses _isApprovedOrOwner in setNode as an implementation-specific check. Private-reference authorization under this ERC does not replace applicable public-reference authorization checks.
This ERC does not require an unrevealed reverse index at the parent. A reverse index would reveal the hidden parent or require an additional privacy-preserving index protocol outside the scope of this ERC.
Canonical encoding
All bytes32 values are opaque at the core interface but canonical within a profile. When a profile maps a prime-field element into bytes32, it MUST specify byte order and MUST reject non-canonical values greater than or equal to the field modulus.
Addresses used inside field hashes MUST be encoded as their unsigned 160-bit value unless the profile specifies another unambiguous encoding. A uint256 token identifier split into limbs MUST specify limb width and order.
Dynamic arrays MUST be bound with an unambiguous length and ordered index. A profile MUST NOT accept two byte encodings for the same public statement.
Rationale
Why standardize discovery rather than one circuit
Wallets, marketplaces, and indexers need stable commitment, status, and reveal interfaces. They do not need every project to use the same proving system. Requiring a particular circuit would make the ERC obsolete when proof systems or curves change and would turn every circuit revision into an interface revision.
Why use bytes32
The current reference implementation uses BN254 scalar-field values represented as uint256. bytes32 avoids implying ordinary integer arithmetic, accommodates field and non-field commitments, and creates a stable ABI across proof profiles. Profiles remain responsible for canonical range checks.
Why use bytes proof
Proof encodings differ across Groth16, PLONK-family systems, scalable transparent arguments of knowledge (STARKs), signatures, and future mechanisms. An opaque byte string plus a profile identifier avoids fixing verifier argument shapes such as a, b, c, or a fixed public-input array.
Why index references
Batch-size-specific interfaces require a separate ABI for each supported batch size. Indexed references provide a common discovery and reveal surface for implementations supporting one, two, or more references, whether the cardinality is fixed or variable. A proof profile may still fix the allowed cardinality for efficiency.
Why policy preimages are public
A public policy digest alone proves only compliance with some accepted opaque value. Returning the canonical preimage allows observers to recompute the identifier and understand the accepted labels, weights, namespace, activation epoch, or other policy fields without making all fields succinct non-interactive argument of knowledge (SNARK) public signals.
Why reveal is one-way
Once an opening is emitted and stored on chain, it cannot become secret again. A one-way hidden-to-revealed state avoids ambiguous indexing and prevents a token owner from rewriting provenance after disclosure.
Why owner authorization is registration-snapshot based
Checking only current ownership at proof submission does not show that the owner approved the exact hidden edge. Registration-snapshot authorization binds a key to an NFT owner at a defined epoch, after which the key signs the exact child and edge context. This model is explicit about ownership transfer and revocation boundaries.
Why rank governance is optional
Some applications require a DAG; others allow cycles or do not need graph semantics. Rank assignment also introduces namespace governance and reservation complexity. Keeping it optional avoids imposing those costs on basic private-reference applications.
Backwards Compatibility
This ERC is additive to ERC-721. Existing ERC-721 tokens and marketplaces remain valid.
Contracts that also implement ERC-5521 can expose revealed references through ERC-5521. Hidden references cannot be represented as ordinary ERC-5521 edges until disclosure because the parent endpoint is unavailable by design.
Implementations using uint256 field elements can convert canonical values to and from bytes32 at the interface boundary. Existing contracts with batch-size-specific public functions and events may require adapters to expose and advertise the interfaces defined in this ERC.
Test Cases
A conforming test suite should include at least the following cases.
Core interface
ERC-165 reports the correct core and optional interface identifiers.
A minted token reports the correct private-reference count.
Every emitted commitment and policy identifier matches its query result.
Out-of-range indexes revert.
Hidden references do not expose semantic openings.
Commitments and policy identifiers cannot be changed after creation.
Profile discovery works without proof-gated minting and the profile identifier is immutable.
Proof-gated mint
A valid proof mints and records every indexed commitment.
Invalid proofs revert without consuming state.
Wrong chain, accepting contract, action selector, profile, registry, epoch, policy, recipient, metadata hash, nonce, rank, or public-signal order fails.
Duplicate nullifiers within one request fail.
Reused nullifiers and child commitments fail.
Wrong or absent rank reservations fail.
Old-epoch roots fail.
If same-epoch multi-root acceptance is supported, activating a new root does not invalidate proofs against an older activated root in the same epoch.
Selective reveal
A correct opening changes exactly one index to revealed.
A wrong parent, token ID, rank, label, weight, nonce, key, epoch, or policy fails commitment verification.
Unauthorized callers fail.
A second reveal fails.
Revealing one index does not reveal or modify another index.
The stored opening and emitted event agree.
Reveal works without proof-gated minting; incompatible openings fail validation.
Eligibility queries return false for missing, revealed or unauthorized references and true for eligible operators; reveal enforces the same policy even after authorization changes.
An eligible operator cannot bypass opening validation.
Non-ranked openings use zero rank and reject non-zero rank; ranked openings match the committed assigned rank.
Owner authorization
Non-owners cannot register a key for a parent NFT.
Ownership transfer changes who may register or revoke future authorizations.
Off-curve, identity, small-order, wrong-subgroup, malformed signature points, and non-canonical scalars fail for an elliptic-curve profile.
Explicit activation and deactivation emit matching events and update eligibility; unauthorized transitions fail.
Ranked registration obtains the assigned rank from the designated registry, rejects unassigned ranks and distinguishes assigned zero from unassigned.
Non-ranked registration requires zero namespace and emits zero rank; emitted values match the leaf.
Policy and rank
The returned canonical policy recomputes to policyId.
Unknown, inactive, or mismatched policies fail.
Rank assignment is immutable within a namespace.
Unauthorized rank assignment and reservation substitution fail.
Equal or decreasing child rank fails; every accepted parent satisfies parentRank < childRank.
Reference Implementation
A conforming reference implementation is not yet provided with this proposal. The experimental prototype that motivated this ERC uses Circom, Groth16 over BN254, typed Poseidon hashes, Baby Jubjub Edwards-curve Digital Signature Algorithm (EdDSA)-Poseidon authorization, depth-20 owner-key membership, and separate adapters for one-reference and two-reference minting. It does not yet implement the complete standardized interfaces and is not presented as a conforming implementation.
Security Considerations
Proof and verifier binding
A valid proof is meaningful only for the exact relation and public-input encoding expected by the verifier. Implementations must prevent verifier substitution, signal reordering, profile confusion, and reuse across chains, contracts, actions, registries, or versions. Verifier upgrades must not change the semantics identified by the immutable profile identifier. Changes to profile-defined semantics require a different identifier and separate conforming contract.
Commitment binding and hiding are different assumptions
Collision resistance supports binding but does not hide a low-entropy opening. A profile claiming hiding should use independently sampled high-entropy secret nonces and a commitment/hash construction with an appropriate hiding or pseudorandom-output assumption. A Poseidon profile may model each domain-separated invocation as a random oracle or explicitly assume pseudorandom outputs on inputs containing an independent secret nonce. Nonce reuse can reveal equality or enable dictionary attacks.
Authorization-key validation
Signature-verification circuits and contracts must validate public keys and signature points according to the selected scheme. For elliptic-curve schemes this normally includes on-curve, non-identity, correct-subgroup, and canonical-scalar checks. Relying only on a library name without documenting its actual constraints is insufficient.
Root churn and proof liveness
Generating a proof may take long enough for a registry root to change. A latest-root-only policy can invalidate in-flight proofs whenever another authorization is registered. Same-epoch activated multi-root windows improve liveness but increase the amount of state accepted until epoch rollover. The chosen window, activation rules, and emergency revocation limitations must be explicit.
Revocation and ownership transfer
Registration-snapshot authorization does not imply that approval tracks the current parent owner forever. Implementations must state whether transfer, explicit revocation, epoch rollover, or another event invalidates an authorization. An old root must not be silently treated as current. Immediate mid-epoch revocation generally requires more than an append-only root history.
Replay protection
Reference nullifiers must bind the exact approval and action domain. Nullifier state must be updated atomically with mint. Implementations must reject duplicate nullifiers within a batch and across transactions. Child commitments or rank reservations used as one-time identifiers require independent uniqueness checks.
Rank reservations and front-running
A public child precommitment reservation is linkable to the mint that consumes it. An attacker may attempt to reserve identifiers, pre-assign ranks, or grief namespaces if writer permissions are weak. Reservation keys should bind the accepting contract and rank namespace, and registry write permissions must be explicit.
Policy transparency
If only a policy digest is public, observers cannot determine which labels, weights, namespace, or other rules were proved. Implementations claiming publicly auditable policy compliance should expose a canonical immutable preimage. Otherwise they should describe the property as compliance with an accepted policy identifier.
Economic interpretation of verified references
This ERC verifies protocol statements about private references; it does not define a universal notion of economic contribution. A proof can establish that a hidden parent is eligible under the selected profile, that an owner-authorized key approved the exact edge intent, that declared labels or weights satisfy a canonical policy, and that replay and DAG-ordering checks hold. These properties do not imply that the reference deserves a royalty, revenue share, licensing benefit, reputation increase, or other economic value.
Applications that monetize reference-derived features should treat economic eligibility as an application-level security boundary. In particular:
authorization proves consent, not contribution authenticity or economic independence;
policy-compliant labels or weights need not represent genuine contribution;
distinct tokens, owner addresses, registered keys, or reference commitments must not automatically be assumed to represent distinct independent contributors; and
commitment, authorization, reveal, listing, and sale times can have different economic meanings and must not be conflated unless the application explicitly defines them to be equivalent.
An application that makes payouts depend on graph position, path structure, weights, identity granularity, timing, or other reference-derived features should define corresponding admission, attestation, Sybil-resistance, temporal-eligibility, structural, and dispute-resolution controls as appropriate. Cryptographic validity of the provenance relation is necessary for some applications but is not, by itself, evidence that the relation is economically safe to monetize.
Privacy leakage
This ERC hides reference openings, not all metadata. The following may remain public:
the child token and owner;
reference count;
commitments and policy identifiers;
authorization root and epoch;
rank namespace and child rank;
reservation and mint timing;
transaction senders;
reveal timing; and
the protocol-level link between a rank reservation and its mint.
Relayers may reduce sender-to-wallet identity linkage but cannot hide public protocol identifiers. Candidate-set size, policy specificity, timing, public rank, and later disclosures may reduce anonymity. Applications should evaluate these channels under their deployment data rather than infer privacy solely from zero knowledge.
Selective disclosure is irreversible
Reveal data and events are permanently public. Applications should require deliberate authorization and should not put unnecessary secret material into ReferenceOpening. Validation data passed in calldata is also public even if it is not stored.
External calls and reentrancy
ERC-721 safe minting, owner queries, verifier calls, registry calls, and ERC-5521 callbacks may execute external code. Implementations should follow checks-effects-interactions, use reentrancy protection where appropriate, and update replay state before untrusted callbacks while preserving transaction atomicity.
Denial of service and unbounded arrays
Variable reference arrays can exceed practical gas or verifier limits. A proof profile must bound cardinality and validation-data size. Query APIs should support indexed access rather than returning unbounded arrays.
Cryptographic agility
Proof profiles provide cryptographic agility across implementations. Each conforming contract uses a single immutable profile identifier. Different profile semantics require a separate conforming contract. Each profile requires independent review, test vectors, canonical encoding and, where applicable, verifier deployment evidence.