
The ColorRegistry smart contract allows anyone to claim ownership of a color code by registering it on the blockchain.
Once a color (e.g., #FF5733 or rgb(255,87,51)) is registered, no other user can register the same color again.
This demonstrates how decentralized applications (dApps) can manage ownership of unique digital assets — even something as simple as a color!
Stores color codes (HEX or RGB) and associates them with the user’s wallet address.
Ensures each color is unique and can only be registered once.
Provides public read access to the color list and registration details.
Emits an event every time a new color is registered for transparency.
🟢 Decentralized Ownership: Once you register a color, it’s permanently linked to your wallet.
🔒 Uniqueness Guarantee: The same color can’t be registered twice.
⏱️ Timestamped Registration: Every color is stored with its registration time.
📜 Transparent Events: Emits a ColorRegistered event for every new entry.
🌐 Public Data Access: Anyone can view all registered colors and their owners.
India