The On-Chain Content Registry in the WebHash Protocol ensures permanent, verifiable, and decentralized storage tracking. It utilizes EVM-compatible smart contracts to register, verify, and audit content stored by participating nodes.
Key Features:
✅ Tracks which nodes store which Content Identifiers (CIDs)
✅ Enforces transparency and trust using cryptographic proofs
✅ Maintains accurate storage usage tracking per node
✅ Enables decentralized content pinning verification
The smart contracts that govern the On-Chain Content Registry are modular and interoperable with other components of the WebHash ecosystem.
1. Smart Contract Architecture Overview
The registry is composed of the following smart contracts:
2. Node Registration & Identity Management
A. NodeRegistry Contract
Maintains a verifiable, decentralized list of participating nodes.
Data Structure:
struct Node {
address nodeAddress; // EVM-compatible address
bytes peerId; // Unique IPFS node identifier
uint256 storageCapacity; // Declared max storage
bool isActive; // Node status
uint256 storageUsed; // Current storage usage
uint256 pinnedCIDsCount; // Number of CIDs pinned
}
✅ Verifies node identity by linking IPFS Peer ID with an on-chain Ethereum address
✅ Ensures public traceability of all node activities
✅ Tracks storage usage to prevent overcommitment