An EVM compatible Substrate chain, powered by StorageHub and secured by EigenLayer
DataHaven
AI-First Decentralized Storage secured by EigenLayer — a verifiable storage network for AI training data, machine learning models, and Web3 applications.
Overview
DataHaven is a decentralized storage and retrieval network designed for applications that need verifiable, production-scale data storage. Built on StorageHub and secured by EigenLayer's restaking protocol, DataHaven separates storage from verification: providers store data off-chain while cryptographic commitments are anchored on-chain for tamper-evident verification.
Core Capabilities:
Verifiable Storage: Files are chunked, hashed into Merkle trees, and committed on-chain — enabling cryptographic proof that data hasn't been tampered with
Provider Network: Main Storage Providers (MSPs) serve data with competitive offerings, while Backup Storage Providers (BSPs) ensure redundancy through decentralized replication with on-chain slashing for failed proof challenges
EigenLayer Security: Validator set secured by Ethereum restaking — DataHaven validators register as EigenLayer operators with slashing for misbehavior
EVM Compatibility: Full Ethereum support via Frontier pallets for smart contracts and familiar Web3 tooling
Cross-chain Bridge: Native, trustless bridging with Ethereum via Snowbridge for tokens and messages
Architecture
DataHaven combines EigenLayer's shared security with StorageHub's decentralized storage infrastructure:
…
How Storage Works
Upload: User selects an MSP, creates a bucket, and uploads files. Files are chunked (8KB default), hashed into Merkle trees, and the root is anchored on-chain.
Replication: The MSP coordinates with BSPs to replicate data across the network based on the bucket's replication policy.
Retrieval: MSP returns files with Merkle proofs that users verify against on-chain commitments.
Verification: BSPs face periodic proof challenges — failure to prove data custody results in on-chain slashing via StorageHub pallets.
Repository Structure
…
Each directory contains its own README with detailed information. See:
For more options and detailed instructions, see the test README.
Run Tests
bash
cdtest
bun test:e2e # Run all integration tests
bun test:e2e:parallel # Run with limited concurrency
NOTES: Adding the environment variable INJECT_CONTRACTS=true will inject the contracts when starting the tests to speed up setup.
Development Workflows
Smart Contract Development:
bash
cd contracts
forge build # Compile contracts
forge test# Run contract tests
Node Development:
bash
cd operator
cargo build --release --features fast-runtime
cargo test
./scripts/run-benchmarks.sh
After Making Changes:
bash
cdtest
bun generate:wagmi # Regenerate contract bindings
bun generate:types # Regenerate runtime types
Key Features
Verifiable Decentralized Storage
Production-scale storage with cryptographic guarantees:
Buckets: User-created containers managed by an MSP, summarized by a Merkle-Patricia trie root on-chain
Files: Deterministically chunked, hashed into Merkle trees, with roots serving as immutable fingerprints
Proofs: Merkle proofs enable verification of data integrity without trusting intermediaries
Audits: BSPs prove ongoing data custody via randomized proof challenges
Storage Provider Network
Two-tier provider model balancing performance and reliability:
MSPs: User-selected providers offering data retrieval with competitive service offerings
BSPs: Network-assigned backup providers ensuring data redundancy and availability, with on-chain slashing for failed proof challenges
Fisherman: Auditing service that monitors proofs and triggers challenges for misbehavior
Indexer: Indexes on-chain storage events for efficient querying
EigenLayer Security
DataHaven validators secured through Ethereum restaking:
Validators register as operators via DataHavenServiceManager contract
Economic security through ETH restaking
Slashing for validator misbehavior (separate from BSP slashing which is on-chain)
Performance-based validator rewards through RewardsRegistry
EVM Compatibility
Full Ethereum Virtual Machine support via Frontier pallets:
Deploy Solidity smart contracts
Use existing Ethereum tooling (MetaMask, Hardhat, etc.)
Compatible with ERC-20, ERC-721, and other standards
Cross-chain Communication
Trustless bridging via Snowbridge:
Native token transfers between Ethereum ↔ DataHaven
Cross-chain message passing
Finality proofs via BEEFY consensus
Three specialized relayers (beacon, BEEFY, execution)
Use Cases
DataHaven is designed for applications requiring verifiable, tamper-proof data storage:
AI & Machine Learning: Store training datasets, model weights, and agent configurations with cryptographic proofs of integrity — enabling federated learning and verifiable AI pipelines
DePIN (Decentralized Physical Infrastructure): Persistent storage for IoT sensor data, device configurations, and operational logs with provable data lineage
Real World Assets (RWAs): Immutable storage for asset documentation, ownership records, and compliance data with on-chain verification
cdtest
bun build:docker:operator # Creates datahavenxyz/datahaven:local
Development Environment
VS Code Configuration
IDE configurations are excluded from version control for personalization, but these settings are recommended for optimal developer experience. Add to your .vscode/settings.json: