A decentralized content integrity dashboard built for Aleph Hackathon 2025.
CID Sentinel provides a comprehensive solution for tracking and verifying content integrity using Content Identifiers (CIDs), Service Level Objectives (SLOs), and Ed25519 cryptographic signatures.
``` cid-sentinel/ ├── apps/ │ ├── web/ # Next.js 14 dashboard (port 3000) │ └── api/ # Next.js API for cron jobs (port 3001) ├── packages/ │ └── core/ # Shared types, utils, and crypto ├── contracts/ # Foundry smart contracts └── scripts/ # Build and deployment scripts ```
- Frontend: Next.js 14 App Router, Tailwind CSS, shadcn/ui
- Blockchain: Wagmi, Viem, Foundry
- Crypto: Ed25519 signatures via @noble/ed25519
- Build Tools: Turbo, pnpm workspaces
- Smart Contracts: Solidity 0.8.19, Foundry
- Node.js 18+
- pnpm 8+
- Foundry
```bash
git clone cd cid-sentinel pnpm install
cd contracts forge install cd .. ```
```bash
pnpm dev
pnpm --filter @cid-sentinel/web dev # Web dashboard on :3000 pnpm --filter @cid-sentinel/api dev # API server on :3001
cd contracts forge build forge test ```
```bash
pnpm test
cd contracts forge test -vvv ```
- Package Verification: Track and verify content integrity using CIDs
- SLO Monitoring: Define and monitor Service Level Objectives
- Cryptographic Signing: Ed25519 signatures for authenticity
- Smart Contract Integration: On-chain verification and storage
- Real-time Dashboard: Live metrics and package status
CIDSentinel.sol: Main contract for package verification and SLO management- Authorized verifier system
- Event-driven architecture for transparency
- Gas-optimized operations
- Package verification endpoints
- SLO management
- Cron job handlers for automated tasks
- Integration with smart contracts
- Setup: Use
pnpm devto start all services - Frontend: Develop in
apps/web/with hot reload - API: Build endpoints in
apps/api/app/api/ - Contracts: Test and deploy from
contracts/ - Shared Code: Add types and utils to
packages/core/
```bash
pnpm build
cd contracts forge script script/Deploy.s.sol --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast
pnpm deploy ```
```bash
RPC_URL=your_rpc_url PRIVATE_KEY=your_private_key
DATABASE_URL=your_database_url NEXTAUTH_SECRET=your_auth_secret ```
This project was built for Aleph Hackathon 2025. Contributions welcome!
MIT License - see LICENSE file for details.