Provenance Attributes
Esta página aún no está disponible en tu idioma.
Provenance attributes provide a flexible way to encode additional information about digital content and its creation process and store them in the NFT’s metadata. Think of them as extensible tags that can capture any aspect of how content came to be - from the tools used to create it to the inspirations that shaped it.
This provides a way to encode information describing the provenance claim by the originator in a standardized way.
These NFT attributes are optional but highly encouraged.
NFT Metadata Structure
Provenance attributes live within the NFT’s metadata in a standardized location. Here’s the structure:
This structure ensures that provenance information, including all attributes, remains consistently accessible within the NFT metadata. The royal.provenance
namespace keeps this data distinct from other metadata the NFT might contain.
Core Concept
Every provenance attribute follows a simple, consistent structure:
This intentionally minimal structure allows for:
- Easy addition of new attribute types as needs evolve
- Flexible data structures within each type
- Simple validation and processing
- Clear separation of concerns
Standard Attribute Types
While you can create custom attribute types, the protocol recognizes several standard types that serve common use cases:
Display Attribute
Provides consistent presentation information for clients rendering the content.
Example usage:
Contributor Attribute
Documents individual contributions to the content. This captures human input separate from tool usage.
Example usage:
AI Service Attribute
Records the use of AI tools in content creation, providing transparency about AI involvement.
Example usage:
Inspiration Attribute
Links to other content that inspired this creation, creating a web of creative influences.
Example usage:
Best Practices
-
Use Multiple Attributes: Don’t hesitate to use multiple attributes, even of the same type, to fully document the creation process.
-
Be Specific: Include detailed information in attribute data - this creates a richer provenance record.
-
Maintain Consistency: When using standard attribute types, follow their defined structures to ensure compatibility.
-
Consider the Timeline: Attributes should reflect the state at creation time - they become part of the immutable record.
Extending the System
The attribute system is designed for extension. To create a new attribute type:
- Choose a descriptive, lowercase type name
- Define a clear data structure
- Document the structure and intended usage
- Consider providing example implementations
While you can create custom attribute types for specific needs, consider if one of the standard types might serve your purpose first.
Implementation Notes
When implementing provenance attribute support:
Remember:
- Validate attributes before registration
- Store the complete attribute data
- Handle unknown attribute types gracefully
- Consider how to present attributes to users